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

learn more… | top users | synonyms

2
votes
2answers
72 views

What do I need to change if I change table to longtable?

I just used excel2latex to import a table, but the table is too long and across pages. I tried several times but found the table is shrunk and I don't know how to center all the contents of the cells. ...
0
votes
1answer
24 views

Converting -sidewaystable- with -dcolumn- to -lscape- -longtable- in order to span multiple pages

I would to like to change my question from the previous one (Subtable as sidewaystable over three pages): Instead of putting subtables I would just like to have one table spanning over multiple pages. ...
0
votes
0answers
62 views

Subtable as sidewaystable over three pages

I am trying to create a sideways table over three pages. So my question is first: Is it better to use "one" sidewaystable that "continues" over several pages or to split them each up into subtables ...
1
vote
2answers
117 views

How to automatically break “a long word with underscore” in a cell of table, using longtabu package?

I use longtabu package for creating tables, because the table can be very long (several pages) and i need automatic linebreak(or wordbreak) if the sentence(or a single word) in certain cell is too ...
1
vote
1answer
65 views

converting threeparttable tabular to threeparttablex and longtable

I am trying to convert an existing threeparttable to a threeparttablex table with longtable so I can break the table over multiple pages, but I'm having some trouble. Specifically, I'm getting an ...
2
votes
1answer
84 views

long table working in TexNiccenter but not in R Studio GUI

I'm having a weird error where my code is working just fine in TexNiccenter but unable to compile within the R studio GUI (probably not an R studio problem just R problem). Here's some background: my ...
1
vote
1answer
83 views

Latex Longtable - Caption starts at margin

I am having a problem using longtable \caption. The captions are not set to \textlength and run into the margins. I would like the multi-line captions to be restricted to \textlength and centred under ...
1
vote
0answers
106 views

Longtable: how to force a page break?

I am writing an application and I have to complete a table similar to this: and since the descriptions in the second column will be lengthy, I have decided to use longtable. Some of the ...
0
votes
1answer
78 views

Latex longtable misalignment after pagebreak

I have a longtable spanning multiple pages but the verticle alignment is forced at the pagebreak, so the first page is pushed down to the bottom while the second page is glued to the top. How can i ...
2
votes
1answer
46 views

How to right-align whole longtables

Say I have the following document: \documentclass{article} \usepackage{longtable} \begin{document} \begin{longtable}{|lr|} \hline A & 1\\ B & 2\\ C & 3\\ \hline ...
5
votes
2answers
133 views

Colorbox not working with longtable

I have some tables that I want to entirely color in light grey, but the same command lines that work for the tabular environment (see second table example) do not work for the longtable environment ...
5
votes
1answer
70 views

Table does not align properly after \newgeometry settings

I have a huge longtable and used \newgeometry to make it fit the page. After the table there is a short text (which I could align successfully) but another small table that comes after the text won't ...
0
votes
0answers
19 views

How to continue a very long table on multiple pages? [duplicate]

I have a long table in latex. I used the commands: \begin{table}[ht] \begin{center} \begin{tabular}{cccccccc} (..the table..) \end{tabular} \end{center} \end{table} However the table length ...
3
votes
1answer
119 views

How to right-justify URLs inside a table?

I have a table containing a URL, and I want the URL to break so that the URL is right-justified along with the other text. In my example below you can see that the last few lines are not ...
2
votes
1answer
188 views

How to make automatically line break when use longtable?

I use longtable package to produce a table covers two pages, but if there are too many words in one column, the sentence can not switch to the next line automatically, see picture, the 4th column. ...
1
vote
1answer
70 views

Prevent longtable to split cells while using \hline

although the question seems to be trivial and to be answered several times, I have not found a solution yet :-( I'm using a longtable to describe a set of computer benchmarks. Each benchmark entry ...
3
votes
1answer
113 views

Any alternatives for longtable package? (produce tables can continue to the next page)

I have a program and I want to output the program results as PDF. I am considering to use LATEX to do the work. My results may contain many big tables, I just realized it is not so direct to output ...
1
vote
0answers
44 views

Longtable with dynamic footer

In the example below, what I want is for the foot row, which longtable adds on every page break, to be the opposite background color of the row above it. It seems that the footer code is evaluated ...
4
votes
1answer
73 views

equal column spacing in longtable

Does anyone know how to get equal spacing between columns in longtable? My code is attached below. Thanks. Franz \documentclass[12pt,a4paper]{article} \usepackage[latin1]{inputenc} ...
3
votes
1answer
97 views

longtable next to longtable [no multicolumn]

I'd like to place multiple tables (two or three) next to each other, with the following requirements: They need to be able to span accross pages They need to be aligned next to each other I need to ...
2
votes
2answers
102 views

Lots of text in one table cell

I need to place lots of text in one table cell. I tried to use longtable, but it seems to work, say, only on a row basis and gives terrible result in case when one row isn't fit in a page. Something ...
2
votes
1answer
88 views

How to combine ‘float’ and ‘longtable’ packages functionality

I want to use exact placement for my table. As I read on SO it can be done with [H] option for table environment provided by ‘float’ package. But this doesn't seem to work with longtable which I have ...
4
votes
1answer
53 views

How to use Spanish Unicode characters while wrapping text in a longtabu cell

Some time ago i referred to this stack exchange to solve the problem of wrapping long text in a longtabu cell. The provided solution worked, but now my requirements have changed to having to be able ...
3
votes
1answer
147 views

how to make longtable continue a long row to next page?

I have a long table of 4 rows. I'd like help to make the table look better. (based on comments, this is not possible to do using longtable. Is there a different table environment or package I can use ...
3
votes
2answers
80 views

Problem with 'longtable' and the width of the table

I'm using the package longtable to define a table in two pages but it has too much width when I write long text in a cell that fills until the border of the page and doesn´t have room for all the ...
0
votes
0answers
15 views

How to combine bigdelim and alternate row coloring inside a longtable in LyX? [duplicate]

It seems that it's quite a conflict to use some big (multirow) delimiter (bigdelim) and applying alternate row coloring inside a longtable at the same time (using LyX). The following example ...
1
vote
1answer
37 views

Longtable: Double header caused by a page break in front of the table

when i place a longtable at the bottom of the page a page break occurs and the table starts at the next page. This is absolutely correct and the expected behaviour. But instead of the first header i ...
5
votes
1answer
58 views

Using longtable inside xparse \NewDocumentEnvironment

I am trying to create a wrapper for the longtable environment and it works fine with the standard \newenvironment command. Now I want to use \NewDocumentEnvironment from the xparse package to allow ...
0
votes
0answers
85 views

Longtable captions do not wrap inside threeparttable environment

I'm using the threeparttable package to automatically wrap my captions to table width. However, I occasionally need to use longtable to split a table across multiple pages. When I do so, the caption ...
1
vote
1answer
68 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
75 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
81 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
196 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. ...
1
vote
1answer
44 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
62 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 ...
1
vote
2answers
69 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
40 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
37 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
214 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
67 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
132 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
86 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
66 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
85 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
85 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
40 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
99 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
142 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
99 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
110 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 ...