Questions tagged [longtable]
{longtable} is for questions relating to the use of the longtable package, which allows for making tables that can be broken across pages.
2,702 questions
2 votes
2 answers
55 views
Row colour problem with longtable, multicolumn and makecell
How do I get the rowcolor spanned for the entire first row? \documentclass{article} \usepackage{longtable, makecell, booktabs} \usepackage[table]{xcolor} \begin{document} \begin{longtable}{m{0.1\...
1 vote
0 answers
53 views
Spurious vertical space after longtable
In the following MWE (and in my real life documents), a spurious vertical space (about a line or 1\baselineskip tall) appears after the end of a longtable. I call it spurious because it only occurs ...
4 votes
1 answer
93 views
How can I make the following threeparttable with footnote span multiple pages in LaTeX?
I’m using threeparttable for footnotes and tabularx to adjust column widths. My table contains notation definitions for an mVRP-D model, and its content is too long to fit on a single page. I need it ...
4 votes
3 answers
114 views
Creating synthetic data for testing various long tables
I need to tabulate some matrix data of dimensions NxN where N can be 4 to 100. For N>20 (N>35 in landscape) the table must span in several pages. Edit: I forgot to say that the data consists of ...
2 votes
2 answers
74 views
different headers / footers on odd / even pages for longtable
Would it be possible to extend longtable (or maybe supertabular) to have different headers/footers on odd and even pages? If I have a table that is too long as well as a little too wide for my (...
2 votes
2 answers
124 views
How to format with longtable
I created a table using tabularx that I was quite happy with. But unfortunately it turns out to be longer than one page. So the obvious choice to solve my problem would be using longtable, but I run ...
1 vote
2 answers
106 views
How can i make this table more suitable and formatted
How can i make the table more formated. this is my code \documentclass[preprint,12pt]{elsarticle} \usepackage{lscape} \usepackage{float} \usepackage{booktabs}% http://ctan.org/pkg/booktabs \...
6 votes
2 answers
201 views
How can I change the "longtblr" caption separator ":" to "."?
I'm making the supplementary tables using longtblr. But, I want to change caption seperator ":" to period ".". I've change the first page, but the second page was not. How can I ...
1 vote
1 answer
101 views
Breaking a Large Cell Across Pages in tabularray (or another environment)
I'm creating a table using the longtblr environment from the tabularray package in LuaLaTeX. The table's content will be generated dynamically, and consequently, some cells might contain a significant ...
1 vote
0 answers
37 views
Why does in the appendix the pageheader count wrongly? [duplicate]
I have reduced my book of 300+ pages to 6 pages. On page 3 the label on the pageheader ist correct: A.1 Werke für Tagfalter. On page 4 we find the new chapter titel: B Die Falter auf der Roten Liste. ...
1 vote
1 answer
83 views
Alternating row colors in longtable: header and first row have same color
I’m trying to create a longtable in LaTeX with alternating row colors (zebra striping). However, I can’t get the coloring to align properly with the table content. Right now, the caption and the first ...
0 votes
1 answer
58 views
Spreadtab problem with longtable
Why the following compiles fine: \documentclass[10pt]{article} \usepackage{spreadtab} \usepackage{longtable} \begin{document} \begin{longtable}{|r|l|p{7cm}|p{2.5cm}|r|r|r|r|} \hline \multicolumn{...
2 votes
1 answer
115 views
Issue with incorrect running head when using longtable in KOMA-Script (scrbook class) [duplicate]
I'm using the scrbook class from the KOMA-Script bundle, and I've run into a problem when using longtable. When I use a normal tabular environment that spans multiple pages, everything works fine — ...
-1 votes
2 answers
165 views
Looping inside longtable using \foreach loop with multicolumn
I am writing a class for generating syllabus book and a beginner. The class file link to github page is here. Here is the image of a sample syllabus expected to get generate. The process flow is given ...
0 votes
1 answer
115 views
How to correctly put equations inside table so they are vertically aligned in center of cell and not shifted?
After installing new Linux and new TL 2025, I am finding problem with how math is centered in longtable. I do not think I changed anything myself but not sure now. I found this compiling the code on ...