↧ Expand ↧↥ Collapse ↥
Result (updated automatically as you edit the table)
Copy to clipboard

How to use the LaTeX tables generator?

  1. Set the desired size of the table using Table / Set size menu option.
  2. Enter the table data into the table:
    • copy (Ctrl+C) table data from a spreadsheet (e.g. Google Docs, LibreOffice Calc, webpage) and paste it into our editor -- click a cell and press Ctrl+V
    • or double click any cell to start editing it's contents -- Tab and Arrow keys can be used to navigate table cells
  3. Adjust text alignment and table borders using the options from the menu and using the toolbar buttons -- formatting is applied to all the selected cells.
  4. The table's LaTeX source code appears under the editor as you edit -- copy it to your document.

Default or booktabs table style?

For more professionally looking tables you probably want to try booktabs package. The tables produced with this style look more like the tables you can see in the books, scientific articles, and newspapers. The tables differ from the plain LaTeX tables in a few aspects:

  • no vertical rules are used,
  • there is additional space above and below horizontal rules,
  • rules have varying "thickness", and no double rules are used.

You can choose the table style in the output options under the result. If you select the booktabs style, both top and bottom rules will be added automatically.

Long text in a column

A column is as wide as its longest text. To wrap its text, give the column a width: drag the right edge of its header above the table, or right-click the header and choose Set column width (double-click the edge to make the column as wide as its text again). It becomes a p{} column of that width. To make the table as wide as the text on the page, choose Width: Wrap to text width in the output options: the columns with a width share what the other columns leave of it (a tabularx table). Scaling the table to the text width shrinks its text too, which most style guides advise against.