59 votes
Accepted

newline in multirow environment

There is several ways to do it. A very simple way is using \shortstack \documentclass{article} \usepackage[frenchb]{babel} \usepackage[T1]{fontenc} \usepackage{multirow} \begin{document} \begin{...
flav's user avatar
  • 4,732
38 votes

Text alignment on top with multirow command

This is easily handled with the newly updated multirow command. There is an option that specifies vertical text alignment; put [t] for top alignment. In your example you would write: \multirow[t]{3}{...
Learn_and_Share's user avatar
34 votes

newline in multirow environment

Simple with makecell, which is done for this sort of things: use the \multirowcell command (syntax even simpler than \multirow): \documentclass{article} \usepackage[frenchb]{babel} \usepackage[T1]{...
Bernard's user avatar
  • 271k
24 votes

How to rotate text in multirow table?

A variant that doesn't require manual adjustment of width and automatically centers the rotated cell horizontally: \documentclass{article} \usepackage{array,multirow,graphicx} \begin{document} \...
AboAmmar's user avatar
  • 46.4k
19 votes
Accepted

siunitx incompatible with multirow?

The siunitx code does it's best to 'guess' when content is 'purely textual', but it is best to give it some guidance. Here, the issue arises as siunitx picks up \multirow as 'before the number' but ...
Joseph Wright's user avatar
  • 260k
17 votes
Accepted

How do I use multirow in LaTeX?

i extend your table code (and also correct it) that the table mimic the table which you show in question. note: cells in rows, where multirow cell is placed, had to be presented but should be empty (...
Zarko's user avatar
  • 297k
15 votes

How to insert curly bracket in multirow table

The bigdelimpackage, which comes with multirow is designed for this sort of things. I added some improvements of the table with makecell and booktabs: \documentclass[11pt]{report} \usepackage{...
Bernard's user avatar
  • 271k
13 votes
Accepted

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

A few points: use booktabs package for better spacing use siunitx package to get the space between values and units right use a tabularx to keep the table within the available textwidth, yours was ...
samcarter_is_at_topanswers.xyz's user avatar
11 votes

How to rotate text in multirow table?

Improving Harish Kumar's answer on follow up question of placing longer word inside a cell, i.e., rota to rotatoata. It also uses \rotatebox and \parbox but the order is different. And, if the ...
Seong's user avatar
  • 161
11 votes

Proper centering with cmidrule and multi- row and column

I had this same problem, and wasn't satisfied with having to guess at the bigstruts argument to \multirow, so I came up with this: \documentclass{article} \usepackage{booktabs} \usepackage{multirow} \...
dsedivec's user avatar
  • 1,163
11 votes
Accepted

How to insert curly bracket in multirow table

Something like that? Addendum Another solution to let the right brace out of the tabular, with an ugly hack, to mimic what @Bernard proposed. \documentclass[11pt]{report} \usepackage{amsmath} \...
NBur's user avatar
  • 4,336
10 votes

Multiple paragraphs in a multirow cell?

You should be able to use a blank line to denote a paragraph break but unfortunately \multirow currently doesn't allow \par (looks like an easily fixable bug) but here as almost always you can use \...
David Carlisle's user avatar
10 votes

Multicolumn/multirow inside align

Instead of using \rlap, you can use \multispan2{$\displaystyle contents$\hfil} \omit and \multispan are the plain Tex equivalents of \multicolumn. \omit just removes all of the formatting that {...
Chalkdust's user avatar
  • 101
10 votes
Accepted

Table improvement

I wouldn't use \multirow under any circumstance, but perhaps I can understand it in this case. I properly segregated math and let TeX do the intercolumn space computations; if you notice, I split the ...
egreg's user avatar
  • 1.1m
8 votes

Table rowspan and colspan

The http://www.tablesgenerator.com/ site is helpful - it also knows about multicolumn. More a comment than an answer, since this is likely to be aiming a clinical or scientific audience, tables ...
smoe's user avatar
  • 181
8 votes
Accepted

Center alignment with multirow package

Some suggestions: Change \multirow{4}{2.5cm}{Stack} to \multirow{5}{2.5cm}{Stack} Replace all \cmidrule directives with \addlinespace Use a single \midrule after the header row Use a common line ...
Mico's user avatar
  • 508k
8 votes
Accepted

split a table cell in two lines and columns

Is this what you want? \documentclass{article} \usepackage{multirow} \begin{document} \begin{tabular}{| l | l | c | c |} \hline \multicolumn{2}{|l|}{Header1} & Header2 & Header3 \\ ...
Pieter van Oostrum's user avatar
8 votes
Accepted

Solving "overfull \vbox" in table with multirow

The first argument of \multirow is not really the number of rows replaced by a single cell, but the number of lines – or equivalent thereof – which are replaced. Taking a value of 4 does the job. I ...
Bernard's user avatar
  • 271k
8 votes

I badly need to generate the following table

Here's a slightly different solution, this one using booktabs. I know this does away with some of OP's formatting, but I also know many of us subscribe to the notion that vertical rules ruin tables. \...
Richard's user avatar
  • 2,084
8 votes
Accepted

Two columns overlap in table with multirow macro

with slightly corrected your code: \documentclass{minimal} \usepackage{multirow,bigdelim} \usepackage{amssymb}% added \begin{document} \begin{tabular}{p{24mm}l p{24mm}l l@{\hspace{-7ex}}l}% changed \...
Zarko's user avatar
  • 297k
8 votes
Accepted

Vertically center align table data in multirow table

using m{...} instead of p{} will centre align your cells to center align the last column header: \multicolumn{1}{c|}{\multirow{2}{*}{\textbf{Column 7}}} \documentclass[conference]{IEEEtran} % ...
samcarter_is_at_topanswers.xyz's user avatar
8 votes

Use counters value after it appears in the code

By the time you know the final number of the counter, the \multirow is already typeset, so you can't do much about it. The usual approach in these cases is a two-pass compilation, writing the value ...
Phelype Oleinik's user avatar
8 votes

Layout of complex table

\documentclass{article} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage[table]{xcolor} \definecolor{ColHead}{gray}{0.6} \definecolor{ColDiag}{gray}{0.7} \definecolor{ColBelow}{gray}{0.9} \...
Zarko's user avatar
  • 297k
8 votes
Accepted

Wrapping text in a cell with multirow

Use {=} option in all `multirow cells. If the content of multirow cells should be horizontally centered, than redefine its set up as \renewcommand\multirowsetup{\centering}. Employ the siunitx package ...
Zarko's user avatar
  • 297k
8 votes

Column line missing after "E"?

With "clasic" tabular table you can solve your problem as suggested in @koleygr comment, i.e. for multicolumn cell write \multicolumn{4}{c|}{E} since it overwrite right vertical line defined ...
Zarko's user avatar
  • 297k
7 votes

Vertical alignment when using pictures in multirow

I don't know whether this is the best solution, but you could use the vpos and vmove optional parameters of the multirow commands, as seen below Roughly: \documentclass{article} \usepackage{amsmath} ...
Moriambar's user avatar
  • 11.5k
7 votes
Accepted

How to use \multirow with \hline in some columns

You can do this by \documentclass{scrartcl} \usepackage{longtable} \usepackage{multirow} \begin{document} \begin{longtable}{| p{5cm} | p{5cm} | p{5cm} | } \hline \multirow{3}{*}{...
Raaja_is_at_topanswers.xyz's user avatar
7 votes
Accepted

Using both multicolumn and multirow in a table

To be honest: You do not need multirow for that. \documentclass{article} \begin{document} \begin{table}[!htb] \label{T:equipos} \begin{center} \begin{tabular}{|c|c|c|c|c|c|c|} \hline \multicolumn{7}{|...
TeXnician's user avatar
  • 33.6k
7 votes

Layout of complex table

Here is a tikz solution (that is most likely still in need of some improvement): \documentclass{article} \usepackage{tikz} \usetikzlibrary{fit,matrix} \usepackage{amsmath} \usepackage{multirow} \...
leandriis's user avatar
  • 62.6k
7 votes
Accepted

Tabularx and multirow overflowing

The following should get you started: \multirow{*} results in a cell that is as wide as its contents, hence the overflow. To get a multirow cell that is as wide as the surrounding column, use \...
leandriis's user avatar
  • 62.6k

Only top scored, non community-wiki answers of a minimum length are eligible