Questions tagged [multirow]

{multirow} is a package for facilitating multirow cells in {tables} and {arrays}.

Filter by
Sorted by
Tagged with
33
votes
2answers
100k views

Combine 4 cells in a table

Here is a simple table. I want to merge 4 cells. I want to combine the three "this" cells area in this table. I thought I have to use multirow and multicolum at same time. However, I could not find ...
85
votes
4answers
140k views

How to rotate text in multirow table?

I have a big table with a problem, when I want to rotate the text in a \multirow cell, the text is placed outside and is bigger than the dimensions of the cell, I took some advice from here, using\...
26
votes
2answers
15k views

Cellcolor overwrites partial horizontal lines (\cline)

So I need to make a colored table with multirows, together with the use of partial horizontal lines. I used \cline which does not work: the \cellcolor-command overwrites the line. This question told ...
37
votes
1answer
94k views

Combining multirow and multicolumn

When combining multirow and multicolumn in the same cell of a table I am getting extra vertical lines: \documentclass[plain]{article} \usepackage{multirow} \pagestyle{empty} \begin{document} \begin{...
35
votes
7answers
70k views

Centering mutirow text in a table whose cells contain several lines of text

I'd appreciate advise in centering a multirow text. In the MWE below the multirow text "spring" is NOT centered over the three rows that it spans. \documentclass[10pt,a4paper,twoside,open=right,...
7
votes
2answers
19k views

Formatting of Tables in Latex, using multirow and multicolumn together

When I used this piece down, I got. \documentclass[a4paper,12pt]{report} \usepackage[inner=0.75in,outer=0.65in,top=0.75in,bottom=0.75in]{geometry} \usepackage{graphicx} \usepackage{url} \usepackage[...
6
votes
1answer
6k views

Table with multiple merging

Most of the places, examples for merging of cells in tables are given. But, I could not find a merging of cells in complicated fashion as shown below. This question may summarize all the possible ...
93
votes
1answer
573k views

How to use \multirow

I can compile this table separately but when I want to compile the whole file, it gives me an error, which is fixed by removing \multirow. \usepackage{multirow} \begin{table}[htbp] \begin{center} \...
13
votes
1answer
5k views

longtable multirow problem with cline and nopagebreak

I have a problem using with the package lontable and multirow together. It seems that the \* is not avoiding the page breack, if I'm using \cline{i-j} just afterwards. Here the original code for ...
31
votes
3answers
45k views

Vertical Alignment in multirow using cells with >1 lines

I want to vertically align (best would be to center) the text ("TEST") in the left (yellow) column of the following table. It works fine with multirow when every row has exactly the hight of one line: ...
26
votes
3answers
43k views

Text wrap in tables (multirow package loaded)

I searched a bit, but I could not find a reliable way to wrap text in tables with columns spanning more than one row. Any ideas on how to fit this table in the page?: \documentclass[12pt,a4paper]{...
9
votes
2answers
8k views

\rowcolor for a \multirow

The \multirow text is covered by the background color. Does someone know why and can fix it? \begin{table}[h] \caption{caption} \label{tab} \centering \begin{tabular}{cccccc} ...
41
votes
2answers
85k views

Misplaced \noalign

Unfortunately I cannot solve the error with noalign on my own: ! Misplaced \noalign. \hline ->\noalign {\ifnum 0=`}\fi \hrule \@height \arrayrulewidth \futurelet... l.12 ... &...
8
votes
3answers
15k views

Vertical alignment using multirow and booktabs

I'm trying to format correctly the following table: \documentclass[a4paper,twoside]{report} \usepackage{array,colortbl,multirow,multicol,booktabs,ctable} \newcommand{\hdrule}{\midrule[\heavyrulewidth]...
10
votes
3answers
6k views

How can I achieve proper vertical spacing for long blocks of text within a \multirow?

I'm trying to work with a table of the form: \begin{tabular}[]{l D{.}{.}{-1}} \multirow{2}{1in}{Here is a ton of text that is not going to fit in one single line in this 1 inch column.} &...
6
votes
2answers
3k views

Text in multirow overlaps the next row

Suppose, I want to create a table like this: I decided to use \multirow with \newline. But the \multirow cell is not stretched vertically: Code: \documentclass{article} \usepackage[a5paper]{...
2
votes
2answers
728 views

hhline and cell color problems revisited

So, I've read a lot of issues with cell coloring and cell border. I tried to fix them as follows: I use hhline to print horizontal cell borders. If I am in the middle of a multirow cell, I print ...
24
votes
3answers
41k views

Text wrapping in multirow columns [duplicate]

How do I make the long multirow cell wrap its text? Ideally I'd like to be able to specify a width for the entire column. The text should also be centered both vertically and horizontally. \begin{...
10
votes
3answers
17k views

table with tabularx and multirow

While using tabularx and multirow I tried to import this table (made with Word) in LaTeX: but it's not really working. It seems as if there isn't enough space for the text, but shouldn't taburlarx ...
3
votes
2answers
925 views

Issues with a complex table

I have to recreate the following table in LaTeX, but I cannot get it to work perfectly. But for now this is what I have been able to get: This is the code I have so far: \documentclass{article} \...
6
votes
2answers
3k views

How to make TeX fit rotated text into table cell?

This is what I have in HTML: <style type="text/css"> table, th, td { border: 1px solid black; border-collapse: collapse; padding: 2px; margin: 2px; } th { background-color: #dddddd; ...
4
votes
1answer
2k views

Problems with \rowcolors and booktabs

I've got few tables created with few packages included booktabs where I use the command \rowcolors from the xcolor package. But in the last I notice that the colour is wider that the lines of the same ...
8
votes
1answer
2k views

How to create a table with merged columns and rows, and wrapped text, like in MS Word?

The above can easily be created in MS word, but how can I create something like this in latex? Basically changing the columns for specific cells, merging a bunch of cells together, wrapping text in a ...
1
vote
1answer
5k views

Table cell vertical line missing

The vertical line at the end of the cell where i used cell merge is missing.
1
vote
1answer
663 views

Move cell with rowspan on next page

I use multirow package and ltablex package for multipage tables. I have a problem, when cell with rowspan breaks between pages. Then horizontal lines are not drawn http://web-engineering.com.ua/Main....
0
votes
1answer
1k views

Fancy table: Multicol and multirow

Still dealing with fancy tables, now I am trying to get one with multicolumn and multirow cells. I can get multicolumn cells right, but I am still struggling with multirow ones. MWE in Beamer: \...
39
votes
1answer
31k views

Losing the vertical line on my table when using multicolumn

I tried to use this for the last part of my table, but I can't get a vertical line at the end. Does anyone know? \begin{tabular}{|CC|C|C|C|C|C|C|C|C|C|C|}\hline \Tab{Method Based on \\\hline ...
43
votes
3answers
61k views

Table rowspan and colspan

I need to create similar table using LaTeX: I have tried to use \tabular and \multicolumn, but every time I get something wrong. I want: Fixed width columns and fixed height rows; Centered cells (...
5
votes
4answers
11k views

Coloring a multirow

i have currently this code in LaTeX \begin{footnotesize} \begin{center} \begin{longtable}[c]{ll} \caption[API da listagem de um docente]{API da listagem de um docente.} \label{relStruct}\\ \begin{...
4
votes
2answers
8k views

Cannot insert multirow within multicolumn

I want to make a matrix that incorporates both multirow and multicolumn. However the code doesn't work. Sorry if the question is stupid, I am playing with matrices the whole day and probably I am ...
9
votes
3answers
12k views

Multicolumn/multirow inside align

Is there a way to use \multicolumn or \multirow inside an array environment which is inside align environment? For instance, the following piece of code gives me an error. What is the way around this? ...
7
votes
2answers
37k views

Table \rowcolor \columncolor \multirow and \multicolumn Alignment

I'm trying to recreate this table from Word in LaTeX: I'm getting close, but the "Effectiveness" section is not aligned properly, and the "Probability" section is not fully filled in with color. ...
2
votes
1answer
2k views

How to implement this table in LaTeX

I really tried hard to do this on my own, but I keep failing ... Using multi-column and multi-row commands confused me. I know some of you might frown upon such a request but I really need help ...
5
votes
3answers
420 views

Centering text in tables problems with colortabs

I am trying to produce a basic color table as shown below \documentclass{article} \usepackage{booktabs} \usepackage[dvipsnames*,svgnames]{xcolor} \usepackage{colortbl} \usepackage{array} \begin{...
2
votes
1answer
1k views

How can I put some white space between consecutive bigdelim braces in tabular, without inserting space between rows?

In one column of a table (using the tabular environment), I have consecutive braces created using the bigdelim package, as in the following: &\rdelim\}{3}{60pt}[\ S--S--L] & & &\...
2
votes
0answers
451 views

Is it possible for a multirow cell to be split across pages when using longtable?

I am using a longtable for a table that spans multiple pages. To my limited understanding, cells cannot be split across pages. However, I was wondering if it's possible for a multirow cell to be split ...
2
votes
1answer
639 views

How to adjust the width of a wrap text sideways column header and width of a paragraph cell in tabular

I am trying to create table as below, in Texmaker. . here i am facing following issues. To wrap text the column headers from 4 to 6 and align it center. Hspace on paragraph [row 3 last column] is ...
1
vote
1answer
8k views

How do I use multirow in LaTeX?

How do I code a table to look like this? I'm not the best at LaTeX and can't seem to wrap my head around \multirow. I checked other examples prior to posting but they used \multicolumn and it just ...
0
votes
1answer
43 views

How to make the header of a table from 2 line to 4 line?

I had tried to increase the number from 2 to 4 where I need 4 lines \multirow{4}{*}{\thead{Pair number \\ (Class 11 sample sample \& \\ Class 22 sample sample \\ Reference X sample sample)}} &...
10
votes
2answers
885 views

Making an odd shaped table

I'm trying to make a table that looks like this: +--------------+ | Class 1 | +--------------+ | A | B | +---------+----+------+...
7
votes
1answer
14k views

! Missing number, treated as zero, for creating table in Latex

I'm trying to create the following table. This is the code which I wrote. \begin{table}[!htb] \centering \caption{"table1"} \begin{tabular}{|c|c|c|c|c|c|c|c|} System & \multicolumn{2}{c}{...
7
votes
2answers
1k views

problem with \ifthenelse + multicolumn

I encounter various problems when i want to control the display of a table with a ifthenelse test. For example, consider the following M(non)WE : \documentclass{article} \usepackage{multirow} \...
5
votes
2answers
2k views

Long text in multirow

I have long text in a multirow cell. And the text takes more rows than the rows in the second column. \documentclass[a4paper,12pt]{report} \usepackage{multirow} \usepackage{longtable} \begin{...
4
votes
3answers
212 views

issue with hhline and cellcolor in table

I am trying to setup a table with \hhline and \cellcolor. After I got it so far, that I don't see \hhlines in the colored cells I am now missing the black \hhlines which should separate the cells. ...
2
votes
1answer
6k views

Problem with multirow and table cell borders

I'm pulling my hair with the rendering of table cell borders when using multirow and multicol. In the below example, the double-lines in the table's "header" do not extend to the table top, and even ...
2
votes
1answer
1k views

Multirow and Multicolumn with missing lines

I am trying to create a table which uses both multicolumns and multirows, and I am getting some graphical problems. As you can see on below image, the top right corner is missing a line and the ...
2
votes
1answer
512 views

Overfull \vbox caused by tall text in multirow

This is my first post here. I am struggling with overcoming problem of overfull \vbox warning. It is caused by three-lined cell of a table while it \multirow's only two one-lined. In fact in my main ...
2
votes
2answers
1k views

Multirow tabular: un-indent the first line

In pdfLaTeX, tabular environment, the first line of each \multirow cell is indented. No matter if I use l, r or p for column specifier. How to get rid of that?!? Here is the screenshot: Here is my ...
2
votes
1answer
56 views

Specific alignment in subfigure

If I want to print multiple figures in figure, I'm using subfigure in the figure environment. This work quit well and is looking smart, if all figures have the similar height. Now there is this figure ...
2
votes
1answer
331 views

Problem with abbreviation of `\multirow` and `\multicolumn` (LaTeX)

I have had to typeset several block matrixes lately. So I thought of defining abbreviations of \multirow and \multicolumn so as to avoid having to remember the former needs {*} and the latter {r} and ...