latex tabular, this is the page you want. The tabular environment creates the actual rows and columns inside a LaTeX table.
Quick answer: define the column layout in
\begin{tabular}{...}, separate cells with &, and end each row with \\.Related topics: Creating tables in LaTeX | Advanced tablesBasic tabular Syntax
tabular-basic.tex
Ready to use this syntax? Continue in the browser editor when you want to adapt the example in a real project.Open LaTeX Cloud Studio
lmeans left-aligned columncmeans centered columnrmeans right-aligned column&separates columns\\ends the row
tabular block from your own rows, set the column alignment in the LaTeX table generator and copy the resulting code.
A Minimal Example
minimal-tabular.tex
Column Alignment Options
For
m{} and b{}, load the array package.
Horizontal Lines and Better Rules
The simplest way to draw lines is with\hline:
tabular-lines.tex
booktabs:
tabular-booktabs.tex
table vs tabular
These are different:
tabularcreates the grid of rows and columnstableis a float wrapper used for captions, labels, and placement
table-vs-tabular.tex
Spanning Columns with \multicolumn
Use \multicolumn when one cell should cover multiple columns:
multicolumn.tex
When tabular Is Not Enough
Use a different tool when you need more than a basic grid:
tabularxfor tables that should fill a fixed widthlongtablefor tables that span multiple pagessiunitxwhen you need decimal alignmentbooktabsfor cleaner horizontal rules
Common tabular Problems
- Columns do not line up: check that every row has the same number of
&separators. - Text runs too wide: switch to
p{width}ortabularx. - Caption does not work: wrap
tabularinsidetable. - Numbers look uneven: use
siunitxinstead of plainralignment.
