{longtable} is a package for making tables that can be broken across pages.

learn more… | top users | synonyms

1
vote
1answer
31 views

Caption appears with ugly head at end of longtable

I want to put a lengthy caption at the end of a table, and, as currently formatted, the caption doesn't fit on the page with the last row of the table. The result is a rather ugly header on the last ...
2
votes
1answer
19 views

Using longtabu with multicolumn produces errors sometimes

I have a document which uses the longtable package as well as \multicolumn to have certain cells which span multiple columns. This seems to work just fine: \documentclass[10pt]{report} ...
1
vote
0answers
19 views

Row-wise and Column-wise break of extra wide tables, and add a proper label

There is a question "Column-wise break of extra wide tables" Column-wise break of extra wide tables and a very useful answer to it. \documentclass[twoside]{article} \usepackage[latin1]{inputenc} ...
0
votes
0answers
36 views

Command \longtable* already defined

When I compiling latex the following error occurred. Can any one help on this? ! LaTeX Error: Command \longtable* already defined. Or name \end... illegal, see p.192 of the manual. ...
0
votes
0answers
20 views

How to prevent longtable to put header alone in one page

How to prevent longtable to put header alone in one page like in image below. I used endhead to prevent this but this will print the header on each page. Sorry I don't give MWE because I haven't ...
1
vote
2answers
49 views

How to split a long table into pages with multicolumn in each page?

I have a very long table (64 rows) with 14 columns. I split it with lontable package, but it keeps error for multicolumn syntax. Any suggestion please? part of the table is here: And I couldn't ...
2
votes
2answers
24 views

Table column partially colored and how to vertically center text inside table

I have this MWE: \documentclass[a4paper,12pt]{article} \usepackage{color} \usepackage{colortbl} \usepackage{longtable} \usepackage{tabularx} \usepackage[table]{xcolor} \usepackage{multirow} ...
1
vote
0answers
25 views

longtable counter

please forgive me if this has already been answered, but i could not seem to find a resolution on any of the boards. i have a longtable that spans multiple pages. I would like to add a footnote at ...
0
votes
1answer
24 views

Longtable in two pages

I have a table over two pages. Every question of my table is separated with \miderule. However one question is quite long. I want this to span over two pages but because I structured it with midrule ...
6
votes
2answers
48 views

Prevent page break after \midrule in \longtable

I'm trying to tell longtable to only issue a page break at one specific point (by using \\*. Putting a \midrule anywhere near that point causes a page break after the midrule, and not where I want it ...
1
vote
0answers
32 views

Longtabe + multirow + page break

I have with longtabu and multirow. Latex does not display them properly in a page break. \begin{longtabu}{| X[2,l] | X[2,l] | X[2,l] |} \captionsetuptableBegin \caption{Main Objects} ...
1
vote
1answer
96 views

Really big table troubles

I have a really big problem here. I have to insert a big table in a document. No matter how I tried to make it smaller, my boss does not want it to be changed. He made it using word, and I have to ...
0
votes
1answer
66 views

hyperref for longtable jumps to first page of PDF [closed]

I have have longtable in my document, but when I click the caption name in the list of tables, or any reference to the table (using \ref{tab:table label}) it takes me to the first page of the document ...
2
votes
2answers
46 views

Long table to fit on 2 pages

In a middle of a page I have a long table with a lot of maths formulas and I would like to make it fit on 2 pages automatically. Here the code : \documentclass[11pt, a4paper]{article} ...
3
votes
2answers
40 views

Moving a table all the way to the left side of the Page

I'm having trouble with a table I have made. It is too long and goes off of the page to the right. I have already made the font smaller and made the page landscape. What I need to do is have the ...
2
votes
1answer
47 views

How to color a single cell in a longtable [duplicate]

We are using XeLaTeX and the longtable package to visualize information, one of those reports must have a colored cell. A single cell, not the entire row. An example output is here: Is there a way ...
3
votes
1answer
29 views

Automating hline in longtable spanning many pages

Typesetting a document with lots of multipage longtables, How is it possible to automate a \hline at end of page. \documentclass[12pt]{article} ...
3
votes
1answer
87 views

Write an extremely wide equation in LaTeX

How do you write an extremely wide equation in LaTeX without any type of breaks/align/. Do you need a special type of class? Can one use A3 or bigger format? It's not for printing rather just to ...
1
vote
2answers
73 views

Different vertical alignment with multirow

I have longtable with multirow: \documentclass[a4paper,12pt]{report} \usepackage{multirow} \usepackage{longtable} \usepackage{makecell,array} \begin{document} { ...
0
votes
2answers
68 views

Longtable & siunitx

So this is the first time I am attempting to use the longtable package and for some reason, I can't even get MWE to run - Pdflatex gets stuck after loading the booktabs package. I honestly can't see ...
4
votes
1answer
54 views

Caption of table is too small and does not align with other captions of tables

I am making a paper and for one table I have to use the longtable package, after struggling a lot I am almost done with this table. One problem left, the caption does/header of the table is too small ...
1
vote
0answers
52 views

Longtabu, \tabucline placed on wrong page

See the following longtabu axample: \documentclass{article} \usepackage{longtable} \usepackage{booktabs} \usepackage{tabu} \usepackage{lipsum} \begin{document} \tabulinesep=1.5mm % <---- ...
3
votes
1answer
66 views

Caption in the outer margin using longtable within a tufte-latex document

The tufte-latex class has a page layout with a wide margin on the side; the class redefines the figure and table environments so that the captions are put in the margin, side to side with the floating ...
6
votes
2answers
108 views

Long text in multirow

I have long text in a multirow cell. And the text takes more rows than the rows in the second column. \documentclass[a4paper,12pt]{report} \usepackage{multirow} \usepackage{longtable} ...
2
votes
2answers
52 views

Displaying caption of a long table on multiple pages

I'm trying to display a table on three pages. What's the best way to display captions on these three pages and how to do that, please? \documentclass{report} \usepackage{longtable} \begin{document} ...
2
votes
2answers
68 views

Is it possible to pagebreak a longtable if the next “n” amount of rows won't fit on page?

I want to produce a longtable where some "elements" consist of multiple rows (see picture). I want the longtable to pagebreak if the next element doesn't fit in the table. Is there a way to tell ...
0
votes
1answer
86 views

Creating a table fitting one column of a two column style page

I want to create a table, in a two column style page (IEEEtran) but I want the table to fit only one of the columns. The table which I make is exceeding the single column width of the page. Please ...
5
votes
1answer
52 views

How to generate a “<section>-continued” heading after page-break which works with longtable?

I have read the question and answers about the "-continued" heading. The code given in the answers doesn't help me. Thats why I am posting a follow-up-question here. I want to re-display the ...
2
votes
1answer
39 views

Using a fp variable in a longtabu header

So, I am using the tabu package (which I need to use over tabular others for several reasons) to make a long table spanning several pages. This table contains currency amounts in a column, and I'd ...
3
votes
2answers
39 views

Updating length variable inside longtabu working strangely

I have a table, and I want one column to show a running total on each line, i.e., it has to show the total of the values of another column up to that row. I thought about accumulating the total into a ...
1
vote
1answer
12 views

Longtable LoT 'Table' caption

I am writing my master thesis using the provided styles by the faculty. Some of my tables were too long, so I used longtable package. However, in list of tables, tables created with longtable don't ...
2
votes
1answer
66 views

In list of tables,longtable caption repeats equal to the number of pages occupied by a long table

In list of tables,longtable caption repeats equal to the number of pages occupied by a long table. i only want to show the caption and pagne number once for a whole long table.
7
votes
2answers
71 views

How to achieve same table width with different column numbers

I have to print several tables with distinct number of columns. I'm using lingtable because sometimes these tables contains over 300 rows each. Here's the problem. Even defining a fixed width in cm, ...
2
votes
1answer
43 views

Help formatting longtable for landscape oriented table

I am having trouble setting up the code using longtable for a table that will span multiple pages and be presented in landscape format. It will not show the "continued on next page" tag or "Continued ...
1
vote
0answers
107 views

Missing \cr inserted [closed]

I have a problem with the tabu environment. When I compile my code starting my longtable with \documentclass{srrreprt} \usepackage{tabu} \usepackage{longtable} \begin{document} ...
1
vote
1answer
27 views

Head line alignment of top row in a long table

I am unable to set alignment (right aligned) of the top row of long table. \documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{array} ...
2
votes
1answer
44 views

Reducing Row Height in a Longtable

How can we change the line spacing in a long-table? I used package setspace and \linestretch command, but its not working. Minimal Example is attached. \documentclass[english]{article} ...
0
votes
1answer
41 views

How to break table horizontally [duplicate]

I would like to know how I can break a table horizontally without reverting to landscape the page. I did not find anything about this issue. In my special case (s. code down below), I would like to ...
1
vote
0answers
59 views

How to suppress hyphenation in figure and table captions?

To suppress hyphenation in section names I use \hyphenpenalty=10000 in \titleformat command. Is there any similar way to suppress hyphenation in figure and table (and longtable) captions?
5
votes
1answer
46 views

Help cannot spread a long table across two pages in a in two columns page

I urgently need your help. I checked the whole TEX.StackExchange, but for last 4 hours could not solve anything. Please help :) It is quite difficult to explain the question, so would better show it ...
3
votes
1answer
36 views

Long table inserting multiple table headers on same page

Sometimes on a longtable I get broken output. It will insert the non-first table header at the top of the page. It's very rare and only seems to happen when there's a very specific amount of space ...
6
votes
3answers
206 views

How to horizonally align this table?

Is there a way to have a set (dynamic) spacing between the elements in this table without messing up horizontal alignment of the elements in the cell ? \documentclass{ltxdoc} \usepackage{geometry} ...
2
votes
1answer
67 views

Control height of longtable's last page

I want to control table, created by longtable enwironment such way that it would have pagebreak before last two lines if the rest of the table would be longer than some height (it depends on height ...
0
votes
2answers
30 views

Include extra line when using newpage in longtable

I'm trying to change the longtable environment to always produce this row as a first row of cells: \begin{tabular} \textcolor{blue}{\textbf{R}} code & Syntax & Gebruik & Is vector & ...
0
votes
1answer
33 views

problem with logtabu spanning over three pages

\documentclass{scrartcl} \newcommand{\ContactDetails}{% % important contact details \vspace{-1.1em} \begin{tabbing} \textit{foo} \qquad \= foo \quad \= \texttt{\scriptsize foo} \\ \> bar \> ...
1
vote
2answers
73 views

About the horizontal adjustment of \makebox[\textwidth][c] or [l] or [r]

I have been benefits from the post Center figure that is wider than \textwidth and the post Flushright or left of a long Table . I try to use this \makebox[\textwidth][c] or \makebox[\textwidth][l] ...
3
votes
1answer
38 views

How to modify entries of the table using long table package

I have a very long table (about 6 pages) so I'm trying to use longtable package. However, is there any way how to modify entries of the table without actually starting a new table. Now I have data for ...
1
vote
1answer
46 views

longtabu newenvironment caption error [duplicate]

I want to make an environment for my tables. See the following example: \documentclass[a4paper,10pt]{scrartcl} \usepackage{longtable} \usepackage{booktabs} % \toprule, \bottomrule ...
1
vote
0answers
45 views

How can I put pagenumber into longtable header? [duplicate]

I try to fill a multipage table using longtable environment. I need to put some data before table parts on every page. To do this I write \multicolumn{9}{l}{\tabheader}\\ \hline % here i write header ...
5
votes
1answer
114 views

Why isn't my table cell number bolded?

I'm using Pandoc to convert Markdown to LaTeX. A subset of the output looks like this: \documentclass[bachelor]{stpthesis} \usepackage{booktabs,longtable} \begin{document} ...