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

learn more… | top users | synonyms

15
votes
3answers
647 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: ...
13
votes
2answers
35k 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 ...
13
votes
1answer
4k 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
1k 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
1answer
14k 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, ...
12
votes
2answers
13k 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?: ...
11
votes
2answers
396 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
2answers
2k 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
2answers
327 views

Making an odd shaped table

I'm trying to make a table that looks like this: +--------------+ | Class 1 | +--------------+ | A | B | ...
8
votes
2answers
7k 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 ...
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
486 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
605 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
2answers
12k 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 ... ...
7
votes
3answers
1k 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
1answer
7k 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: ...
7
votes
1answer
394 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
430 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
4answers
174 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 ...
6
votes
1answer
10k 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} ...
6
votes
1answer
158 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
2answers
638 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} ...
6
votes
3answers
7k 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 & ...
6
votes
1answer
611 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
2k 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
126 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
107 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, ...
5
votes
3answers
569 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
2answers
149 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
735 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
468 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
117 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
1k 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 ...
5
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 ...
5
votes
1answer
62 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
1k 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
5answers
8k 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. ...
5
votes
1answer
192 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
202 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
467 views

How to wrap text in a cell (without any explicit lengths)

I'm hoping to wrap text in a single "mega-cell" at the end of a table. ---------------------- | header1 | header 2 | ---------------------- | entry1 | entry 2 | ---------------------- | ...
5
votes
2answers
2k views

Image Dropping Down in MultiRow Table

I am trying to build a table of images in Latex. Two of my images are portrait, two are landscape. My end goal, is to have them look like this: | | B | | | A |---| D | | | C | | With my ...
5
votes
1answer
172 views

Multirow in multirow

I am trying to get this to work. It is supposed to have a cell (that was already created with multirow) with three rows but I do not know how to get it to work. I am using shortstack to get it, but ...
5
votes
1answer
276 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 ...
5
votes
1answer
1k views

multirow and text wrapping

I have a problem using multirow along with text wrapping when spanning cell contains a lot of text. Here is my code: \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} ...
5
votes
0answers
98 views

Multirow cells with centered multiline text

I use tabu package to easily typeset tables. Now i need to typeset long table. So i used longtabu. The head of the table consists of much columns. Also there are lots of text in each cell and some ...
4
votes
3answers
96 views

Vertical text in multirow

I'd like to realize the following: But I can not bond the vertical text and the line together. I use a tabular environment and this is what I get: My code is this: %!TEX program = xelatex ...
4
votes
2answers
5k 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}\\ ...
4
votes
2answers
92 views

Multirow with strike through?

Could somebody give me a hint, why the \multirow doesn't work as it should? \documentclass{article} \usepackage{multirow} \begin{document} \begin{tabular}{c|c|c|c|c|c|} \emph{step} & 0 & 1 ...
4
votes
1answer
6k 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 ...
4
votes
1answer
813 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} ...