Monday, November 28. 2005Multirow and multicolumn spanning with latex tablesTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
That's great. Do you know how to do this incorporating p{} alignment (eg instead of 'c') for any of the columns in a multirow?
Thanks
You just enter the column width directly, for instance:
\multirow{4}{110 pt}{Batch}
Thanks for your comments bejamindees. I've been out of this for a while (have finished my studies for which LATEX was invaluable!), but from memory I had already discovered that you can enter the column width in conjunction with multirow. The advantage of p{} is that the columns widths automatically resize. This is what would be truly advantageous with a multirow table.
Do you know how to do a multi-row & multi-column cell? Something like a 2x2 cell?
I've accomplished this by placing the \multirow inside the \multicolumn.
I couldn't get it to work the other way around, but this way it seems to. Hope that helps!
i have used multirow in multicolumn as well. but in my case, the border of this cell (table) goes missing. do you know how to fix it?
Do you know how this can be done with figures? That is how to make a figure span multiple columns?
Do you know how to do a horizontal line in adjacent cells to a multirow cell ?
My code is like this: \begin{tabular}{|c|r|r|r|} \hline \multirow{2}{*}{1} & \multicolumn{3}{|c|}{2} \cr \hline & A & B & C \cr \hline \end{tabular} Thanks!
they already gave me the solution, in:
\multirow{2}{*}{1} & \multicolumn{3}{|c|}{2} \cr \hline replace \hline for \cline{2-4} thank you anyway!
I am a bit confused.
I was using "tabulary" package in order to have tables with a specific width, and also to use "multicolumn", but now I realize that "multirow" package enables both "multicolumn" and "multirow". So, do you think "tabulary" and "multicolumn" packages are compatible, or not?
I need some help....I can't get multirow to work and so are thus stuck with page breaks and the text in the cell that spans the rows not centred.....can you/anyone help?
Also, where exactly does the \usepackage{multirow} command go in...you say at the top of the latex file....at the very top, before even \documentclass etc? Cheers
Do you know how to use multirow in math mode? I have a 4x1 matrix that I want to use a 2x1 matrix for the last two entries. I tried using tabular, but seems the left and right commands for the brackets require math mode.
Thanks |
Entry's LinksQuicksearchCalendar
CategoriesFriends' BlogsBlog Administration |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||