Graphics, Figures & TablesTable with a different number of rows

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
gonzales81
Posts: 4
Joined: Wed Dec 24, 2008 1:09 pm

Table with a different number of rows

Post by gonzales81 »

Hi!
Can someone please help me to create a table whose colums have a different number of rows, like the one in the attached picture?
I surfed the internet, read many manuals, b ut I couldn't find anything about it.

Thank you....and Merry Xmas... :D
Immagine.PNG
Immagine.PNG (4.34 KiB) Viewed 5669 times

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

corderin
Posts: 77
Joined: Sun Dec 14, 2008 2:27 pm

Table with a different number of rows

Post by corderin »

Hi,

it is very simple you only need the multirow package...

then in a tabular environment you can specify

\multirow{rows number}{rows width}{TEXT}

:)
gonzales81
Posts: 4
Joined: Wed Dec 24, 2008 1:09 pm

Table with a different number of rows

Post by gonzales81 »

corderin wrote:Hi,

it is very simple you only need the multirow package...

then in a tabular environment you can specify

\multirow{rows number}{rows width}{TEXT}

:)
TY very much for yr reply.
The problem is when I use \hline to separate cells horizontally,
the line spans both colums!!Referring to the picture, from the third row on I want horizontal lines only on the right column!
corderin
Posts: 77
Joined: Sun Dec 14, 2008 2:27 pm

Re: Table with a different number of rows

Post by corderin »

Then use

\cline{1-2}

this will print only a line from the first to the second column, you can choose which columns you have to separate...
gonzales81
Posts: 4
Joined: Wed Dec 24, 2008 1:09 pm

Table with a different number of rows

Post by gonzales81 »

corderin wrote:Then use

\cline{1-2}

this will print only a line from the first to the second column, you can choose which columns you have to separate...

Finally I got it! Thank you for yr precious help!
Bye
Post Reply