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,...
Mico's user avatar
  • 490k
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 ...
Mico's user avatar
  • 490k
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]{&...
Celdor's user avatar
  • 8,458
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 ...
Zarko's user avatar
  • 289k
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{...
Celdor's user avatar
  • 8,458
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 ...
David Carlisle's user avatar
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 ...
Celdor's user avatar
  • 8,458
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) ...
Zarko's user avatar
  • 289k

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