Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Generating Tables in LaTeX

DZone's Guide to

Generating Tables in LaTeX

· Big Data Zone
Free Resource

Need to build an application around your data? Learn more about dataflow programming for rapid development and greater creativity. 

Typ­ing tables in LaTeX can get messy, but there are some good tools to sim­plify the process. One I dis­cov­ered this week is tables​gen​er​a​tor​.com, a web-​​based tool for gen­er­at­ing LaTeX tables. It also allows the table to saved in other for­mats includ­ing HTML and Mark­down. The inter­face is sim­ple, but it does most things. For com­pli­cated tables, some addi­tional for­mat­ting may be necessary.

Sim­i­lar func­tion­al­ity is avail­able via plu­g­ins in Excel, OpenOf­fice and Libre­of­fice — use­ful if the data for the table is already stored in a spreadsheet.

Good LaTeX edi­tors also have built-​​in table gen­er­a­tors. For exam­ple, TeX­studio has the “Quick tab­u­lar wiz­ard” and TeX­maker has the “Tab­u­lar wiz­ard”. The one in TeX­studio is too sim­ple to be very use­ful, but the TeX­maker wiz­ard has a few more features.

Another use­ful tool to avoid the mess is the “Align columns” func­tion within TeX­studio (nor­mally shown as a blue but­ton at the top of the screen). Place the cur­sor within a table and click the but­ton, and spaces are mag­i­cally added until the columns are aligned. It also works for align, array and matrix envi­ron­ments. Here is a small exam­ple from a recent paper of mine show­ing what it does.

Before:

After:

It is much eas­ier to spot prob­lems if the columns are aligned.


Check out the Exaptive data application Studio. Technology agnostic. No glue code. Use what you know and rely on the community for what you don't. Try the community version.

Topics:

Published at DZone with permission of Rob J Hyndman, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}