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

learn more… | top users | synonyms

5
votes
1answer
156 views

Fit coloured longtable to pagewidth

There is a similar question and solution posted here. However, I can't use this solution as I have a coloured table, and the given solution causes white gaps between each column. Is there a way to ...
5
votes
1answer
164 views

Vertically align individual cells in a table

I am wanting the ability to vertically align any cell within a table. This appears possible but only on a per column or row basis. At the moment I can horizontally align the contents of individual ...
3
votes
1answer
218 views

How to disable / suppress bad box warnings within a longtable?

I have a quite long (3 pages) longtable in landscape and it is generating me a ton of bad box warnings (overfull \vbox and \hbox messages up to 30.0000pt too wide). But the table is perfectly fine for ...
3
votes
1answer
53 views

Adding longtable to \listoftables

How to add a longtable into a listoftables, please ? I've filled my longtable, but, the listoftables still empty. How to deal this please ? The code tht I've used : \begingroup ...
0
votes
0answers
49 views

Landscape longtable display only one page

I really try to display this table as landscape, but I always get only first page of it. \documentclass[a4paper,12pt,titlepage]{article} \usepackage[english, czech]{babel} \usepackage[T1] {fontenc} ...
1
vote
1answer
46 views

Strange behaviour with longtable

Consider the code \documentclass{report} \usepackage[margin=2cm,showframe]{geometry} \usepackage{longtable} \usepackage{lipsum} \begin{document} \lipsum[1-2] \begin{longtable}{p{8cm}} \lipsum[3-5] ...
3
votes
1answer
193 views

Extra alignment tab has been changed to \cr end template?

I get the error mentioned in the title of the question. \begin{table*}[!ht] \centering \caption{\textit{first scenario : heuristic methods}} \label{Table2} \resizebox{2\columnwidth}{!}{% ...
2
votes
2answers
65 views

Creating table without problem of exceeding page

I would like to create a table like this, but the first row is too long and exceeded the width of page. How can I create and fix this problem in latex?
2
votes
3answers
87 views

cannot create longtable

could you please help me with the following matter? I am trying to create a long table using the longtable environment. But I keep getting errors. Thank you. Here is my code: \documentclass[11pt, ...
2
votes
1answer
86 views

Bad pagebraks in longtable (empty table on second page)

I have some strange problem with my longtables. In some tables there is a pagebreak after the last row and on the second page there is the table header printed again without following content. I use ...
2
votes
0answers
35 views

How can I import an excel table into latex longtable [duplicate]

I want to import some data from excel which is in table form (raw from that it not formatted) and I want to import into a longtable with the appropriate formatting (if indeed it can be done in one ...
3
votes
2answers
166 views

How to retrieve the caption of a table (longtable)

I want to repeat the caption of a longtable on different pages. Is there any way (other than defining a new variable to save the caption) to get it. How can I get rid of the extra line after the ...
4
votes
1answer
375 views

Altering only header \hline colors with longtabu and colortbl

I'm trying to make a table with the following properties: If the table is very long, the header should be repeated on each new page. Each row should be separated by a line. The line immediately ...
1
vote
0answers
62 views

import latex longtable into lyx with format changing [closed]

I apologize if my question was asked alot previously i am generating my tables from stata into latex then i try to import those tables (longtables) inside a table float in lyx the result is a mess ...
2
votes
1answer
194 views

Split lines, keep a table/aligned text within textwidth and span several pages

I have a very long table that I use to align some text, therefore I don't need it to be (specifically) a table (please consider that in the answers). I am using supertabular for the table to span ...
2
votes
1answer
65 views

longtable: alternating column names/splitting wide table across pages

Need to split some wide tables across multiple pages using longtable. The code below provides an example of what I’m trying to do. Some of the column names need to vary by page. Specifically, ...
1
vote
1answer
123 views

longtable caption (make it look like table caption as defined by a LaTeX class)

I have the following MWE with a table and a longtable, and I just want that the longtable caption looks exactly as the table caption without modifying anything from the table above (just the ...
1
vote
1answer
89 views

First line of ltxtable/longtable indented

I am using the ltxtable package to be able to set the longtable to \textwidth I have \setlength{\parindent}{0pt}' in the preamble. The first line of each longtable is indented, how do I get rid of ...
4
votes
2answers
126 views

Table and Longtable environments reproduce different spacing in LOT

I have been using the table and longtable commands quite a lot for my thesis, and I've observed they reproduce different spaces in the list of tables. Here is the MWE: ...
3
votes
1answer
139 views

longtable within table environment?

I have several tabulars and a threeparttable that are all included within a table environment (\begin{table} precedes them), so they all have common numbering and appear in the tables section at the ...
3
votes
1answer
178 views

Everyrow works with tabu but not with longtabu

I've been wrestling with longtables/longtabu for a while now, and I have it almost working the way I want. The last thing that I want to be able to do is have a \hline inserted for every row. Here's ...
3
votes
1answer
53 views

Make a little space after a longtable and before a caption

I'm trying to make a table which is not centered in the page, so I've used this structure to define it. But, I need to make a little vertical space between the bottom of that table and its caption. ...
2
votes
1answer
172 views

Math mode in longtabu

I'm trying to typeset a very long table that spans a few pages and contains exclusively mathematical formulae. In order to accomplish that I'm using the \longtabu environment provided by the tabu ...
1
vote
0answers
91 views

Complex longtable with multirow, multicolumn, rotation of text, and a strange header

I want do a table like the next figures 1 and 2. The table go expand in many pages. The header is the same in all of them, and I want put the elements A, B and C in the headers of the tables, because ...
3
votes
1answer
62 views

Getting same footnotes on each page of a table

Want to be put the same footnotes on each page of a multipage table. Below is some code that provides an example. How can I get the footnotes that appear at the bottom of page 2 to appear at the ...
4
votes
2answers
60 views

vertical spacing of entire section changes when using sciptsize environment for table

I have the following script: \documentclass{article} \usepackage{longtable} \linespread{1.5} \begin{document} % \section{paragraph 1} This is a paragraph lala allala lalla alala alla alla alal ala ...
4
votes
1answer
189 views

How to set the width of column in longtable method?

I`m trying to put a table in my document. it is bug in both width and height. So I need to use longtable, landscape and fixed width for the column. but I cant. Please help. I want this table fit in ...
6
votes
1answer
119 views

longtable caption — color or redefinition

Dear latexperts: I am experimenting with pandoc as a text processor that translates into LaTeX. This means that the LaTeX coding is mostly out of my control. pandoc uses longtable for its table ...
5
votes
1answer
187 views

Textwidth longtable with centered headers

I'm trying to create a longtable which spans the entire \textwidth. Additionally, although the contents of the table use different alignments, all of the header cells should be centered. Based upon ...
5
votes
1answer
37 views

Total number of longtables (v3.02+)

I'm wondering, are there any ways to get (and forward-reference at the beginning of the document) the total number of tables when using longtables? There are utility packages for standard table ...
0
votes
1answer
2k views

longtabu, column width

having an issue with longtabu and setting columns to a percentage of the table width. I've achieved what i want with tabularx: \documentclass{report} \usepackage{tabularx} \begin{document} ...
1
vote
1answer
42 views

Footnote inside tabular inside longtable

I have a foontone inside a tabular environment inside longtable and of course it does not work. Has anyone faced something similar? What should i do ? Thanks in advance Vasilis \begin{center} ...
20
votes
2answers
472 views

How to print subtotals in each page of a long table?

Some invoices need print a large list of items. In this case, and in my country, invoices must print the subtotal of the previous page for each break page, and add to the last subtotal the accumulated ...
0
votes
0answers
27 views

Row to column table [duplicate]

Is there any way to transpose table? I mean row to column and column to row? Here is the code. \documentclass[a4paper]{article} % <-- remove12pt, again too big for your table. ...
2
votes
2answers
411 views

How to align this table fit the page-width?

I want to align this table. This is mycode \documentclass[a4paper, 12pt]{article} \usepackage[left=15mm,right=20mm,top=20 mm,bottom=20mm]{geometry} \usepackage{lipsum} \usepackage{longtable} ...
2
votes
2answers
239 views

How to make a wide longtable fit on page?

I'm new to LaTeX, and copied over a table from Excel into TeXShop (mac) using the macro. I set it as a longtable because it spans two pages, but with regard to width, the table isn't fitting. Also, ...
1
vote
2answers
133 views

Table and longtable format

I have written LaTeX code for the table I showed but the output is going over the page and doesn't look like same. I mean the cell values are scattered. In every cell numbers are arranged as up and ...
5
votes
1answer
77 views

Need labels and refs in longtable rows [duplicate]

In a longtable, I need the first column to display numbers based on an enumeration by references to labels. This means I can refer to the rows somewhere else in the text. I imagined it would help to ...
1
vote
0answers
50 views

Table troubled in a landscape document

I'm making a long enough table to the landscape document here. But, as you can see, it does not correct. What should I do? The codes: \documentclass[11pt, a3paper, landscape]{scrartcl} ...
2
votes
2answers
1k views

Big Table in latex

Could you please helping me to draw a nice big tables like this one , I don't know how to mange the big table in LateX Many thanks
3
votes
3answers
75 views

Unwanted extra gap in longtable

I have finally faced a problem when all googling, this forum and any wittiness could not help me out. I have been working in a \longtable environment when in seemingly the most simple table I have ...
4
votes
1answer
128 views

How to include a multipage table from an external file

I usually save my tables as standalone PDFs, generated by compiling a standalone document and then include them in the main file via \includegraphics{pdf.name} However, I now have a two-pages table ...
2
votes
2answers
195 views

Double header in longtable

I'm trying to make a longtable and use some R tools for generating them. The problem is that when a long table has more than one columns, it creates double headers, as shown here: ...
1
vote
2answers
55 views

How to fix longtable in right margin

Hello I tried some solutions proposed in other similar questions but I didn't get any solution, my problem is that the longtable don't fix as I want. \documentclass[12pt]{article} ...
3
votes
1answer
89 views

Long landscaped table

I've created a table with http://www.tablesgenerator.com/ and wrapped it with \afterpage{ \begin{landscape} \begin{longtabu}{X} to rotate the table and fit it to as many pages it needs. My code ...
7
votes
1answer
63 views

Biblatex Ibid. citations inside longtabu environment

When using ibid citations inside a longtabu whilst on a page that already has a citation on it, the citation is ibid regardless of whether the author has been cited on that page already or not. ...
6
votes
1answer
748 views

Center longtable horizontally over two pages in landscape

I have a longtable in a landscape environment that ranges over two pages, and where I have introduced a page break where it is most appropriate contentwise. The table including descriptions is too ...
2
votes
1answer
349 views

Longtable and threeparttablex: wrong position of tablenote when table is textwidth

I have a problem with longtable and the position of a table note created by threeparttablex, as the MWE below demonstrates. The first table stretches to the full textwidth and the position of the ...
3
votes
1answer
391 views

captionof in longtable gives Misplaced \noalign

Trying to make a multi-page figure panel, with 50 same-sized figures in a 2-by-5 arrangement on 5 pages, a Figure caption for the entire thing at the top of the first page, and everything placed onto ...
6
votes
2answers
1k views

longtable misplaced noalign

Question Why am I getting multiple misplaced \noalign errors? Reproducible example \documentclass{scrartcl} \usepackage{longtable} \usepackage{booktabs} \begin{document} \section{Table test} ...