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{...
TeXnician's user avatar
  • 33.4k
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 \...
David Carlisle's user avatar
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 ...
Dhruv Ghulati's user avatar
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: \...
Jake's user avatar
  • 1,099
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 \\...
Pieter van Oostrum's user avatar
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{...
L.J.R.'s user avatar
  • 10.6k
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 ...
Mensch's user avatar
  • 65.2k
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 ...
Marcel Krüger's user avatar
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{...
David Carlisle's user avatar
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{...
Ulrike Fischer's user avatar
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 ...
Mico's user avatar
  • 495k
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{...
Bernard's user avatar
  • 270k
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{...
Mico's user avatar
  • 495k
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]{...
Zarko's user avatar
  • 293k
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 ...
dremodaris's user avatar
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 ...
Ulrike Fischer's user avatar
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 ...
David Carlisle's user avatar
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 ...
Mico's user avatar
  • 495k
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 ...
Mico's user avatar
  • 495k
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} \...
Johannes_B's user avatar
  • 24.1k
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}...
David Carlisle's user avatar
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 ...
Zarko's user avatar
  • 293k
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 ...
TeXnician's user avatar
  • 33.4k
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}{..}. ...
Torbjørn T.'s user avatar
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\...
Mico's user avatar
  • 495k
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 ...
Zarko's user avatar
  • 293k
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{...
egreg's user avatar
  • 1.1m
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{...
L.J.R.'s user avatar
  • 10.6k
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 ...
Mico's user avatar
  • 495k
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 ...
Mico's user avatar
  • 495k

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