Typing tables in LaTeX can get messy, but there are some good tools to simplify the process. One I discovered this week is tablesgenerator.com, a web-based tool for generating LaTeX tables. It also allows the table to saved in other formats including HTML and Markdown. The interface is simple, but it does most things. For complicated tables, some additional formatting may be necessary.
Good LaTeX editors also have built-in table generators. For example, TeXstudio has the “Quick tabular wizard” and TeXmaker has the “Tabular wizard”. The one in TeXstudio is too simple to be very useful, but the TeXmaker wizard has a few more features.
Another useful tool to avoid the mess is the “Align columns” function within TeXstudio (normally shown as a blue button at the top of the screen). Place the cursor within a table and click the button, and spaces are magically added until the columns are aligned. It also works for align, array and matrix environments. Here is a small example from a recent paper of mine showing what it does.
It is much easier to spot problems if the columns are aligned.
- Tables in LaTeX
- XeLaTeX with TeXstudio
- Getting a LaTeX system set up
- Using TeXstudio with SumatraPDF
- Makefiles for R/LaTeX projects