Generalbreak line in table

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
kostoglotov
Posts: 58
Joined: Sun Apr 27, 2008 12:50 pm

break line in table

Post by kostoglotov »

Does anyone know how to break line in the text inside a column of the table? I can do that so far by playing with the column width, which is not so good...
cheers

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
Joined: Mon Mar 10, 2008 9:44 pm

break line in table

Post by Stefan Kottwitz »

Hi kostoglotov,

you could use a p-column (p like parbox) and force a linebreak by inserting \\ for example:

Code: Select all

\begin{tabular}{p{2cm}p{3cm}}
This\\is column 1 & column2
\end{tabular}
Instead of \\ you may break the paragraph by \par or an empty line.

The array package provides m (middle) and b (bottom) column type.

Stefan
LaTeX.org admin
Post Reply