GeneralSpanning multiple rows in tabular

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
sveioen
Posts: 28
Joined: Tue Mar 06, 2007 1:04 am

Spanning multiple rows in tabular

Post by sveioen »

Hello all,

trying to make a nice tabular here, but I have a question. If you see the picture attached to this post you see my tabular so far. But I want to remove the two vertical-line column dividers in the last row, and have my text printed in the column in the middle (please take a look at the attached picture). I have tried something called multicolumn, but I am obviously doing something wrong :cry:

Thank you for any help!
Attachments
tab.JPG
tab.JPG (8.42 KiB) Viewed 3854 times

Recommended reading 2024:

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

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

pumpkinegan
Posts: 91
Joined: Thu May 03, 2007 10:29 pm

Spanning multiple rows in tabular

Post by pumpkinegan »

Use the multirow package.

Code: Select all

\multirow{3}*{text}
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Spanning multiple rows in tabular

Post by gmedina »

Without multirow,

Code: Select all

\begin{tabular}{|c||c|c|c|}
 \hline
 &&&\\ \hline\hline
 &&&\\ \hline
 &\multicolumn{3}{c|}{text}\\\hline
\end{tabular}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
sveioen
Posts: 28
Joined: Tue Mar 06, 2007 1:04 am

Re: Tabular help

Post by sveioen »

Excellent. Thank you!
Post Reply