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

learn more… | top users | synonyms

21
votes
1answer
25k 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, ...
16
votes
3answers
1k 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: ...
15
votes
3answers
19k 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?: ...
14
votes
2answers
43k views

Combine 4 cells in a table

Here is some simple table - I cannot upload, because I'm just a guest. I want to merge 4 cells. I mean I want to combine three "this" area in this table. I thought I have to use multirow and ...
14
votes
1answer
6k 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 ...
13
votes
1answer
2k 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 ...
12
votes
2answers
20k 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 ... ...
12
votes
2answers
14k 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 ...
11
votes
2answers
406 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 ...
9
votes
4answers
10k 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 & ...
9
votes
2answers
3k 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 ...
8
votes
1answer
41k 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} ...
8
votes
2answers
376 views

Making an odd shaped table

I'm trying to make a table that looks like this: +--------------+ | Class 1 | +--------------+ | A | B | ...
8
votes
1answer
2k 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 ...
8
votes
1answer
11k 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: ...
8
votes
1answer
733 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} ...
7
votes
1answer
797 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 ...
7
votes
4answers
258 views

How to color a cell of a table using multirow and center the cell content?

I have checked for other similar questions. I followed the suggested solution in the question Color in multirows. After implementing this solution, I still have a problem. I want to develop the ...
7
votes
1answer
14k 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} ...
7
votes
2answers
772 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
3answers
2k 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.} ...
7
votes
5answers
13k 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. ...
7
votes
1answer
466 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 ...
6
votes
3answers
547 views

Build table with different cells sizes

I have written this code for the table shown bellow on the left but I like to make some modifications so it looks like the table on the right. Can you help me? ...
6
votes
1answer
8k 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} ...
6
votes
1answer
199 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 ...
6
votes
1answer
2k 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 ...
6
votes
1answer
2k 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 ...
6
votes
2answers
3k 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 ...
6
votes
1answer
762 views

Page breaking prohibition in some rows of the table

I use the longtable package. Its allow command \\*, for page breaking prohibition on row. Here the code, where \\* does not prohibit page breaking. (on line 44) Generaed pdf here: ...
6
votes
1answer
3k 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 ...
6
votes
2answers
307 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} ...
6
votes
1answer
133 views

Using multirow with smallmatrix

I'd like to typeset a bunch of small 3x3 matrices to describe generators of certain ideals, as in this paper, p7. Using smallmatrix works beautifully as long as I only want circles and bullets, ...
6
votes
2answers
6k views

Vertical centering in multirow table cells

The documentation for the multirow package implies that the content of a \multirow will be vertically centered by default. In this example (machine-generated from a Word document, hence all the ...
5
votes
5answers
198 views

Make a sentence into two lines to make column width narrower.

I have a table that has multiwords and columns \documentclass[12pt, twocolumn]{article} \usepackage{booktabs} \usepackage{multirow} \usepackage{lipsum} \begin{document} \lipsum \begin{table}[ht] ...
5
votes
3answers
80 views

No horizontal centering in multirow at \newline

MWE \documentclass[a4paper,11pt]{article} \usepackage{multirow} \usepackage{array} \begin{document} \begin{tabular}{|>{\centering\arraybackslash}m{2cm} ...
5
votes
3answers
3k views

subfigures in array

How do I create a figure using subfigures with this alignment?: |figure 1 | figure 3 | figure 4 | |figure 2 | | | Note that I want figure 3 to be in both rows and figure 4 to be ...
5
votes
1answer
13k 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 ...
5
votes
3answers
142 views

Vertically align multirow in tabularx environment

I'am trying to align the first multirow column vertically centered. Unfortunately multirow does not determine the actual height. Instead it aligns the multirow it based on the height of three single ...
5
votes
2answers
189 views

In a table: Problem equalling the width of only three columns

I am writing a thesis in a large .tex file in Vim. As I show in this image, the first, second and third column have different spacing (width): This is the code for the table: \begin{table}[h] ...
5
votes
2answers
953 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; ...
5
votes
1answer
545 views

Subtable inside a table / Adjusting table column width on the fly

I've been fiddling with the following table for a while, and have some minor issues. \documentclass{article} \usepackage{threeparttable} \usepackage{multirow} \begin{document} \begin{table}[!ht] ...
5
votes
2answers
57 views

Some modifications for multicolumn and multirow

I'm using this code for creating a table in LaTeX: \documentclass[11pt]{article} \usepackage{threeparttable} \usepackage{multirow} \usepackage{makecell} \usepackage{graphicx} \usepackage{color, ...
5
votes
2answers
196 views

image inside a multirow: problems with the vertical space

I have a problem when including an image inside a table using the multirow option. My problem comes from the vertical space dedicated to this row. As you can see in the picture included, the image ...
5
votes
1answer
80 views

How to have multiple rows on the left side of an equation

I have an equation whose left side has a long text. I would like to make it on multiple rows followed by the equal sign and then the right side. \documentclass[12pt]{article} \usepackage{amsmath} ...
5
votes
1answer
2k 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} ...
5
votes
2answers
128 views

Auto-coalesce same values into \multirow

I am generating a pgfplotstable from a data file. In that file, within the Class column, subsequent rows with the same value should automatically be coalesced/collapsed/joined to form a ...
5
votes
1answer
383 views

How to adjust the width of a wrap text sideways column header in tabular [duplicate]

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 ...
5
votes
1answer
260 views

Clashing multirow with tikz

In order to get a diagonal line in a cell, I picked up a piece of code from Diagonal lines in table cell The code adapted to my situation works fine until I decide to use multirow. Here is the MWE. ...
5
votes
1answer
558 views

Table - remove row lines in column to furthest right

How do I remove row lines in the column to furthest to the right. I have seen examples where they do it the left. I would like the "powers" from the table here to be on the right side instead of the ...