GeneralCR in a table cell

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
evlabiba
Posts: 8
Joined: Sat Nov 15, 2008 6:17 pm

CR in a table cell

Post by evlabiba »

How do I force a Carriage Return in a table cell?
Thanks to you all.

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: 10359
Joined: Mon Mar 10, 2008 9:44 pm

Re: CR in a table cell

Post by Stefan Kottwitz »

Hi,

you could use \newline inside table cells. Use p-columns for this purpose, or m,b-columns with the array package.

Stefan
LaTeX.org admin
evlabiba
Posts: 8
Joined: Sat Nov 15, 2008 6:17 pm

Re: CR in a table cell

Post by evlabiba »

Thx!
I naïvely thought "\\" and "\newline" were synonyms.
Ciao.
phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Re: CR in a table cell

Post by phi »

Outside a tabular, they are synonyms. Inside a tabular environment, \\ is let to \tabularnewline. This is because this short control sequence should be reserved for the most common application in the current situation.
Post Reply