hi all,
here is my doubt.
I have a table and one of the subtitles is veryyy looong
\multicolumn{3}{c}{title} && \multicolumn{3}{c}{veryyyyy looooooong tiiiiitleeeee}
i would like to see it in the table in three rows.
i.e:
veryyyyy
looooooong
tiiiiitleeeee
Is it possible?
Graphics, Figures & Tables ⇒ multicolumn
NEW: TikZ book now 40% off at Amazon.com for a short time.

multicolumn
Just like any other table cell, if you want wrapping, you need to use the p, b or m column specifier, and manually set the width:
(If you don't want lines, remove all the |'s and \hline's. I just added those so you could see the cells more clearly in the output.)
Code: Select all
Code, edit and compile here:
\documentclass{article}\begin{document}\begin{tabular}{|c|c|c|c|c|c|}\hline\multicolumn{3}{|p{1.7cm}|}{\centering title} & \multicolumn{3}{|p{1.7cm}|}{\centering veryyyyy looooooong tiiiiitleeeee}\\\hlineA & B & C & D & E & F \\\hline\end{tabular}\end{document}