How to paste a table to LaTeX
TableToLatex turns spreadsheet ranges and delimited text into a booktabs table you can edit in your manuscript. Select a cell in the preview to see exactly which source field supplied it, then copy the LaTeX or save it as a .tex file.
Which format should I choose?
Choose TSV (tabs) when you copy a rectangular range directly from Excel or Google Sheets. A tab separates cells and a line break starts a new row. Quotation marks and commas are literal in this mode. Include the label row in your selection if you want a rule underneath it.
Choose CSV (commas) for text from a comma-delimited export. In CSV, quote fields that contain a comma or line break, and write two double quotes for a literal double quote inside a quoted field. CSV with semicolon delimiters should be re-exported with commas. For a local UTF-8 .csv or .tsv file, the file extension selects the format. You can then inspect or edit the text before generating the preview.
How do I check blanks and decimal places?
The preview reads every cell as text. A value of 0007 keeps its leading zeroes, and 0.500 keeps all three decimal places. A trailing delimiter creates a real empty cell. Select that cell to see its source position between delimiters. When a row has fewer fields than the widest row, the preview puts a marked dash in each missing position. Those dashes are review markers and the LaTeX leaves their positions empty. Check a marked row against the source before adding delimiters yourself.
How do I compile the booktabs output?
Put \usepackage{booktabs} before \begin{document} and insert the generated tabular inside the document, wherever the table should appear. The output includes top and bottom rules. Turn on First row is a header to add a midrule when the header is followed by data. For numbering or cross-references, wrap the fragment in your own table environment and add the caption and label required by your journal.
Copy LaTeX transfers the fragment on its own. Download .tex saves the same fragment so you can keep it beside the manuscript and include it with \input{table.tex}. The file also starts with a comment naming the package it needs.
What happens to special characters?
A cell containing A & B keeps its ampersand in the preview. In the exported code, the ampersand is escaped so LaTeX prints it inside the cell instead of starting another column. Percentage signs, underscores, dollar signs, braces and backslashes are escaped too. A cell with $x_1$ prints as text. If you want it rendered as a formula, review the exported cell in your own editor and explicitly replace it with math syntax.
Unicode characters remain in the LaTeX text. If your current engine or font cannot display a character, compile with XeLaTeX or LuaLaTeX and choose a font that contains that glyph. Check the compiled table for long cells, and adapt the column widths to your document class if needed.
What should I do with complex table layouts?
Start with a regular grid of individual cells. For grouped headings, use the exported grid to verify which columns belong together, then add \multicolumn in your LaTeX editor. You can use the site’s guides for spanning headers, decimal alignment with siunitx, or tables that exceed the column width. Open a spreadsheet workbook in the spreadsheet application and copy the relevant area or export a text file first.