Graphics, Figures & Tablestext centering in table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
21did21
Posts: 58
Joined: Thu Sep 08, 2011 12:27 pm

text centering in table

Post by 21did21 »

Hello world,

i have one question :

=> i try to center my texte in a case where there is 2 lines (see attached item) but i don't understand how i can perform this...

can you explain to me the solution ?

(i have tested with \centering but it don't works)

\hline
WaWA& \centering{9} & 9\\
WAWA& & \\
\hline
Attachments
tableau.jpg
tableau.jpg (5.25 KiB) Viewed 4852 times
Last edited by 21did21 on Fri Mar 02, 2012 1:17 am, edited 1 time in total.

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

21did21
Posts: 58
Joined: Thu Sep 08, 2011 12:27 pm

text centering in table

Post by 21did21 »

Now its ok with this the soluyion :

Code: Select all

\multirow{2}{2cm}{\centering{9}}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10350
Joined: Mon Mar 10, 2008 9:44 pm

text centering in table

Post by Stefan Kottwitz »

Good to see. Btw. \centering is a command without argument, so braces are not needed:

Code: Select all

\multirow{2}{2cm}{\centering 9}
Stefan
LaTeX.org admin
21did21
Posts: 58
Joined: Thu Sep 08, 2011 12:27 pm

Re: text centering in table

Post by 21did21 »

thanks :oops:
Post Reply