Questions tagged [multirow]

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

Filter by
Sorted by
Tagged with
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} \...
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\...
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 (...
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 ... &...
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 ...
37
votes
3answers
25k views

newline in multirow environment

I have a table with many multirow environment that are each compouned with many lines. I have seen that it is possible to break lines in multirows by fixing a particular width (with minipage for ...
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,...
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 ...
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]{...
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 ...
25
votes
2answers
39k views

Proper centering with cmidrule and multi- row and column

The code below produces the following figure: The issue I am having is that Sample is not vertically aligned, I get proper alignment if \cmidrule(l){2-3} \cmidrule(l){4-5} is removed. How do I get ...
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{...
19
votes
3answers
4k views

Problem typesetting a Prisoner's Dilemma table

I am going to create a table, which should look like The Prisoner's Dilemma, but I can't create it. It should look like this: My preamble look like this: \documentclass[a4paper,12pt,oneside]{...
19
votes
8answers
40k views

Text alignment on top with multirow command

\begin{table}[!h] \centering \caption{Titel} \resizebox{.95\columnwidth}{!}{% \begin{tabular}{p{4.5cm}p{10cm}p{3.5cm}} \hline Name & \multicolumn{2}{p{\textwidth-3\...
17
votes
1answer
37k views

Vertical lines in a multirow and multicolumn table

I am trying to finish this table scheme but I can't figure out what I am doing wrong. I want to convert those discontinued lines into continuous lines and I want to center the label "Total" between ...
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 ...
12
votes
2answers
10k views

How to get multiple multirows in a table?

I want to render a table with results of experiments. There are 6 experiments (multirows) described by 2 columns and each of them is performed 5 times (rows). My code: \begin{tabular}{l r | l || r r}...
12
votes
1answer
8k views

Problem with multicolumn color tables

edition might be grateful since i don´t know how to name this problem. English is not my native idioms. Also I don't know how to interpret this problem as well on so apologies in advance. I am ...
11
votes
2answers
477 views

Non-trivial table in LaTeX

I want to convert this OO table into latex: This is what I have so far: \begin{table} \begin{center} \begin{tabular}{|c|c|c|c|c|c|c|} %p{4cm} \hline \multicolumn{7}{|c|}{Czas wykrycia}...
11
votes
3answers
509 views

Layout of complex table

The MWE \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{tabularx} \usepackage{colortbl} \usepackage{multirow} \usepackage{ragged2e} \...
11
votes
1answer
980 views

siunitx incompatible with multirow?

I can't for the life of me figure out what's causing the errors in this table. As written, I get about a dozen warnings (all on the first data line of the table) about missing } or $. \documentclass{...
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 | +---------+----+------+...
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 ...
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.} &...
10
votes
2answers
8k views

Placing a figure inside a multirow table cell

Is it possible to place a figure within a multirow cell? The vertical alignment is ruined. Does it have to do anything with tikz's bounding boxes? The following mwe produces the following result ...
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? ...
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} ...
9
votes
1answer
72k views

Is it possible to use \cline multiple times when using multirow?

\documentclass{article} \usepackage{multirow} \begin{document} \begin{table}[ht] \begin{center} \begin{tabular}{|c|c|c|c|c|c|c|c|}\cline{3-8} \multicolumn{2}{c|}{\multirow{2}{*}{}}&\multicolumn{3}...
9
votes
3answers
5k views

How to get the braces in the multirow spanning all three rows?

In the following table I would like to have the braces in both multirows span the three rows that the multirow is covering. I tried using \left.\right\} and editing the vertical space, but nothing has ...
9
votes
2answers
15k views

How to get line-breaking / multirow to work in the caption of my beginner's table?

How to get line-breaking / multirow to work in the caption of my beginner's table? \caption{this is my first table's captive caption} I'd like the caption to look sth like this: this is my first ...
9
votes
1answer
9k views

xcolor package; color multirows

Consider the following table: \documentclass[a4paper]{report} \usepackage{multirow} \usepackage[table]{xcolor} \begin{document} \begin{table} \rowcolors{1}{gray!15}{gray!15} \centering \...
9
votes
1answer
2k views

Make \addlinespace globally to work with all tables

I found that useful command \addlinespace[3pt] to create an extra white border around the rows. See example: \documentclass[a4paper]{report} \usepackage{multirow,booktabs} \usepackage[table]{xcolor} ...
8
votes
3answers
902 views

Any ideas on how this table could be made better looking?

\usepackage{multirow} \begin{table}[htbp] \begin{tabular}{p{2.5cm}p{2.5cm}p{1.5cm}p{6.5cm}} \hline \multicolumn{2}{c}{\textbf{Parameters}} & \multirow{2}{*}{\textbf{Used ...
8
votes
3answers
309 views

Use counters value after it appears in the code

Is there a way to use a counters value at one point in the code, but with the counters state of a line, that comes somewhat after the corresponding use of the counters value? E.g. Define the counter ...
8
votes
2answers
2k views

How to insert curly bracket in multirow table

I am constructing a table, where I have a multirow spanning 3 rows. Inside this multirow I would like a big curly bracket that spans the 3 rows. Unfortunately, I have not been able to get it to work. ...
8
votes
3answers
2k views

Multiple paragraphs in a multirow cell?

I'm trying to write multiple paragraphs inside a multirow cell,... but I can't find how! I've tried a lot of options, but none of them worked. First of all, I'll show you what I would like to get: ...
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 ...
8
votes
1answer
6k views

How can I horizontally align text in a multirow element?

In the tabular environment, horizontal alignment is traditionally achieved using such arguments as l, c, and r for the table spec. However, when \multirow (from package multirow) is used, the chosen ...
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]...
8
votes
1answer
838 views

Sideways label for table with alternating row colours

I have a multirow column in a longtable with alternating coloured rows. The alternating colour overflows into the multirow. Colouring the first column white wipes out the specialrule but doesn't seem ...
8
votes
1answer
6k views

Border with multirow and multicolumn

Following example: \usepackage{multirow} \begin{tabular}{cc|c|c|c|c|c|} \cline{3-7} & & \multicolumn{5}{c|}{something} \\ \cline{3-7} & & AAA & BBB & CCC & DDD & EEE\\...
8
votes
1answer
4k views

Prevent longtable breaking in multirow

How can I prevent multirow from breaking in longtable environment, so this won't break at wrong position as shown by code below. \documentclass{article} \usepackage{multirow,tabularx,ltxtable,...
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. ...
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} \...
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[...
7
votes
1answer
4k views

LaTeX - tables, multirow with non integer number of rows

Editted to provide a clearer example Basically I want to make a table that in one column has a series of dates and the second and third columns have a series of objectives for that date. However the ...
7
votes
1answer
851 views

Table Configuration

I'm new to LaTeX, and I'm currently struggling with trying to create a table for a lab report. The table has to look like this: I have tried looking at the \tabular, \tabulary and \tabularx ...
7
votes
1answer
12k views

Tabular inside longtable

I need a longtable like this table shown in HTML: but when I use \multirow, the data inside the \multirow is continued inside the next cell. I have tried with the following \begin{longtable}{|>{\...

1
2 3 4 5
18