Tables are used to envision the data in a structured way. It makes the information to become more presentable and easier to read. In this tutorial we are going to learn how to create simple and multi-page tables in LaTeX with customization in their rules and spacing, combining and colouring rows and columns, dealing with captions, references, cell width, positioning and omitting cells. Creating a table with boundaries is demonstrated below:. Multiples entries of this command can be used to distinguish between the headings of a column from its details. Tables can be created by providing a fixed length of the columns as well by providing the measurements between the vertical lines where the arguments are passed with the letters.
At first we're going to create a simple table like this:. After showing you how to modify this table according to your needs, I will also show you how to make your tables prettier and turn the table above into this:. Of course it's up to your personal preference, but most of the time, I've found that the second table is much more readable and easier on the eye than the first table. Afterwards I'm also going to show you, how to do some more elaborate things such as having rows and colums spend multiple cells as well as orienting tables sideways on the page useful for tables with many columns and how to have tables span multiple pages useful for tables with many rows. I've also created a tool to edit LaTeX tables right in your browser. This feature is still experimental, but if you want to try it, you can find it here. The table environment part contains the caption and defines the float for our table, i.
Linux and MacOSX users typically know how to obtain a terminal as many of the power tools and applications on these systems are accessed that way. However, Windows users are often less familiar with command driven tools. To obtain a command prompt in Windows, click the start button and type cmd or command in the search box. Navigate to where the example.