Graphics, Figures & Tables ⇒ multicolumn
multicolumn
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?
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
multicolumn
Code: Select all
\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}\\
\hline
A & B & C & D & E & F \\
\hline
\end{tabular}
\end{document}