31
votes
Tabularx: Break long tables over several pages
You cannot use the longtable package if you want to preserve the X column. Therefore you could use ltablex.
\documentclass[12pt]{article}
\usepackage{mathptmx}%
\usepackage{tabularx}
\usepackage{...
18
votes
Accepted
How to convince longtable to do a page break earlier
You can force a page break using \pagebreak
\pagebreak
{\scshape creator} & Name des Benutzers der dieses Objekt angelegt hat \\
{\scshape create\_time} & Datum und Uhrzeit der Erstellung
\...
15
votes
Problem with fontsize when using longtable
Enclose the longtable within \begin{small} and \end{small}, this will ensure the text to be of small size. Worked well for me. Or start the longtable with \small, ending it with \normalsize where the ...
14
votes
How to solve longtable is not in 1-column mode error?
Another option, not covered in the previous answers, is to force single column mode along with a \clearpage before your longtable and then reset it to two column mode after. This would look like:
\...
14
votes
Accepted
Controlling longtable page breaks
Let' see.
rows which should never be followed by a page break
rows which can be followed by a page break if necessary
rows which mark the preferred page break locations
Number 1 can be done with \\...
13
votes
Make a table span multiple pages
You may try longtblr environment of tabularray package. It has X column and can be used in two column documents.
\documentclass{article}
\usepackage[a6paper,margin=15mm]{geometry}
\usepackage{...
13
votes
Accepted
How to use longtable in latex?
You have several issues in your given code, for example command \label has to follow \caption ...
You should not use verticals lines and instead of \hline have better a look to package booktabs (type ...
12
votes
Letters' kerning space so different?
If you run the file
\setbox0\hbox{X}\showthe\wd0
\setbox0\hbox{Y}\showthe\wd0
\setbox0\hbox{Z}\showthe\wd0
\bye
through (Plain-)TeX on the command line, TeX shows the width of the characters X, Y ...
12
votes
Accepted
Dimension too large after recent longtable update
tabu is unmaintained but as a short term fix you can force an old version of longtable to load
\documentclass{article}
\usepackage{longtable}[=v4.13]%
\usepackage{tabu}%
\begin{document}
\begin{...
11
votes
Accepted
Moving longtable left of margin
Reset the length \LTleft:
\documentclass[10pt]{article}
\usepackage{longtable}
\begin{document}
some text\\some text
\setlength\LTleft{-2cm}
\begin{longtable}{l}
xxxxxxx
\end{longtable}
\end{...
10
votes
Letters' kerning space so different?
As the other two answers have already established, the issue is not a matter of kerning. Instead, the issue is that the letters X, Y, and Z don't have the same widths. Specifically, for the case at ...
10
votes
Accepted
Split a big table on two pages
Here you are. With ltablex, the syntax is the same as for longtable. In particular, you don't nest tabularx in a table environment, and the \caption is incorporated to the first head.
\documentclass{...
9
votes
Accepted
How to make table split in two pages
To switch from a table/tabular combination to a longtable setup, the following adjustments are required:
delete \begin{tabular}{ccc} and change \begin{table} to \begin{longtable}{ccc};
delete \end{...
9
votes
Accepted
How to \label a long table without adding a new row?
For referencing of table you should in the first place to have table caption. A label should follows caption. longtable is designed so, that the caption has place in the table:
\documentclass[12pt]{...
9
votes
Tabularx: Break long tables over several pages
Use xltabular. It defines an environment xltabular that - according to the manual and unlike the tabularx environment after importing ltablex - behaves the same way as tabularx. In particular, you can ...
9
votes
Accepted
Why does longtable not process \medskip inside a row, but tabular does?
longtable inserts a strut at the begin of p-cell. This means that TeX is no longer in vertical mode and so the \medskip has a different effect. If one remove this strut the output is identical (but it ...
9
votes
Why does longtable not process \medskip inside a row, but tabular does?
As Ulrike pointed out, the difference is due to a difference in strut handling.
You are using array package
In general longtable follows array usage, it documents
% The rest of this macro is mainly ...
9
votes
Accepted
Split table in multiple pages
I'd like to suggest that you replace the table/tabular combination of environments with a longtable environment. The resulting table spans about 3-1/2 pages.
For the following example code, I had to ...
9
votes
How to split a large table from column
The opening and closing parentheses and the spaces after the commas in all data cells actually take up a lot of space. If you're willing to suppress them, it's entirely possible to typeset the table ...
8
votes
How to generate a table as below?
An alternative using booktabs for the table rules, tabularx to get a table that fits the textwidth and siunitx to properly typeset the units.
\documentclass{article}
\usepackage{tabularx}
\...
8
votes
Accepted
There is only single longtable table in manuscript but why its number is displayed as "Table 2"?
Longtable increases the table counter, with the intention that you use \caption within the environment, and then you have used \captionof{table} outside the environment.
Either change
\end{longtable}...
8
votes
Accepted
How I want to split my table when I use long table and page break it didn't work. I want to split it after 15 citation
In the the last but one row you have after hline command \\- Remove it.
For your table I would change page layout (for example by use of geometry package), use tabularx environment for a table ans ...
8
votes
Accepted
How to have a figure going over several pages?
The concept of floats does usually not allow page breaking. One of your options would be to not use a float and just issue a \captionof after all of your pictures.
Another version: Use the caption ...
8
votes
Accepted
Help with long table from Stargazer
A table enviroment cannot be broken across pages. Delete \begin{table}\centering and \end{table}, replace tabular with longtable, move \caption and label to immediately after \begin{longtable}{..}. ...
8
votes
Page split between longtable caption and table
Assuming you want to have at least 3 rows of the longtable to show up before considering a page break to be unacceptable, you could load the needspace package and issue the directive
\Needspace{5\...
8
votes
A long table can't fit in beamer's frame
do you really need table in your presentation? For audience it is boring usually :-(
that your table can be fit in one frame, you need reduce font size and replace \setcellgapes{5pt}\makegapedcells by ...
8
votes
Accepted
How to put figures into longtable
I suggest defining your own environment so as not to litter the document with instructions that should be local.
\documentclass{article}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{...
7
votes
How can I make a table that takes up more than a single page?
An alternative solution with longtblr environment of the new LaTeX3 package tabularray:
\documentclass[12pt]{article}
\usepackage[a6paper,margin=10mm]{geometry}
\usepackage{tabularray}
\usepackage{...
7
votes
Longtable with threeparttable
You shouldn't be using the threeparttable package and its eponymous environment to encase a longtable environment. Instead, use the threeparttablex package. (Note that its syntax is not the same as ...
7
votes
Accepted
How to get a footer line in a longtable
You could add the instructions
\hline
\endfoot
\endlastfoot
to the longtable structure. This creates non-empty \endfoot material along with empty \endlastfoot material.
In addition, you may want to ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
longtable × 2525tables × 1024
captions × 199
page-breaking × 163
tabularx × 144
landscape × 108
multicolumn × 94
spacing × 93
multirow × 91
vertical-alignment × 81
horizontal-alignment × 77
tabu × 64
width × 56
threeparttable × 53
margins × 49
floats × 47
formatting × 43
columns × 43
longtabu × 43
line-breaking × 42
header-footer × 39
color × 38
booktabs × 38
pgfplotstable × 36
footnotes × 35