4
votes
Accepted
Problem with vertical centering of cells of a same row of a longtable
I suggest you switch the underlying column type of the L, C, and R column types from p to m. (m is mnemonic for "middle", I suppose.)
\documentclass{article}
\usepackage{longtable,array,...
4
votes
Vertically centering subtable in cells of a main longtable
The way you're entering the data in the longtable environment, LaTeX "knows" about individual cells -- and about shifting some of the down (or up) if they're the argument of a \multirow ...
3
votes
Accepted
Subtable is not correctly vertically centered in a longtable
Expanding on my comment the following code works:
\documentclass{article}
\usepackage{longtable,array,xparse,lipsum}
\newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}}
\newcolumntype{C}[1]{&...
3
votes
Problem with vertical centering of cells of a same row of a longtable
Like this?
(red lines indicate page layout)
By use longtblr of tabularray package, code for MWE is simple and concise:
\documentclass{article}
%--------------- show page layout. don't use in a real ...
2
votes
Accepted
Vertically centering subtable in cells of a main longtable
The multirow package is not necessary in this case. You can nest tabular environments and easily control between cells alignment, such as top, middle and bottom
\documentclass{article}
\usepackage{...
2
votes
Accepted
Prevent unnecessary longtable widows
longtable really can't look ahead, the whole point of it is to defer page breaking to the asynchronous output routine as for normal page breaking, so it doesn't have control over when page breaking ...
1
vote
How to set subcolumns of a column?
First, you have to specify a total number of columns including those which forms "subcolumns" and then use \multicolumn to merge columns in particular rows, for instance headings.
The table ...
1
vote
Prevent unnecessary longtable widows
If you willing to use longtblr of tabularray package instead of longtable, then in your particular case table can be fit in one page even with one more row in table body:
(red lines show page layout)
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
longtable × 2505tables × 1020
captions × 197
page-breaking × 163
tabularx × 144
landscape × 106
spacing × 92
multicolumn × 92
multirow × 91
vertical-alignment × 81
horizontal-alignment × 77
tabu × 64
width × 57
threeparttable × 53
margins × 48
floats × 47
formatting × 44
columns × 43
longtabu × 43
line-breaking × 42
header-footer × 40
color × 38
booktabs × 38
pgfplotstable × 36
footnotes × 35