Tagged Questions

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

learn more… | top users | synonyms

1
vote
1answer
90 views

longtable wrong caption

What is the right way to put the caption with longtable? My numbering starts at 2 and I don't have nested tables. This is corrected if I put \caption{Bla} before \end{longtable}, but it will always ...
4
votes
2answers
118 views

Change the font size in longtabu table

I was searching here to find a way to change the font size from normal to \footnotesize for the longtabu tables. However, the answer in longtable question didn't work in my case. They made corrections ...
4
votes
1answer
696 views

longtable caption formatting

I'm having some troubles with captions in longtable tables. I'm trying to typset for a thesis (so am using a class that I didn't write) and my school requires double spacing for body text but single ...
4
votes
1answer
161 views

How to exceed left margin with longtable

I'm trying to make a longtable that is wider than the textwidth at a certain moment. I've tried different things always ending up with a different problem: First possibility: If I use the adjustwidth ...
2
votes
1answer
61 views

Splitting a code listing inside a longtable

Is there a way to have code listings split across multiple pages when included inside a longtable? For example, the following code: \documentclass{article} \usepackage{listings} ...
5
votes
1answer
121 views

Table widths have changed - rerun LaTeX

I have an application which stores LaTeX documents, and then (when the user clicks on a link) renders them into PDF files to be downloaded or viewed. This works well in general, but I'm running into ...
0
votes
0answers
324 views

Adjusting longtable fontsize in latex [closed]

I am not very good at Latex. I have to write a table spanning multiple pages. The following code produces the a table exactly the way i want, however it reduces the font size. If i do not use the ...
3
votes
2answers
85 views

Rotated multipage table at start of chapter

I'm working on an article in which I have to put a large and wide table. This table is directly at the start of a new chapter. Because it is very wide, I want to rotate this table (or use it in a ...
3
votes
1answer
64 views

Longtable overflowing with ESKDX

When I try to create a longtable with \linewidth width in portrait orientation it handles very strange. Here is the MWE ...
4
votes
1answer
131 views

balanced longtables, multicol and page breaks

For a long time, I have been looking for a nice way to have balanced tables inside a multicol environment. Especially, I would like to have automatically balancing multicol-tables inside a table ...
6
votes
1answer
759 views

How to solve longtable is not in 1-column mode error?

I'm trying to compile a document with the example code for longtable but I get an error saying that longtable is not in 1-column mode. Suggest me the correct way?
3
votes
0answers
76 views

Word wrapping for long strings with no spaces in a long table

I have the following tex: \documentclass{article} \usepackage{color} \usepackage{longtable} \usepackage{dcolumn} \usepackage{graphicx} \newcolumntype{d}{D{.}{.}{2}} \begin{document} \centering ...
2
votes
0answers
30 views

How to use maximum space of page to include long tables [closed]

I am writing a report and facing similar problem. I want to included a long table (spreading over many pages) in the appendix of the report. The tale contains around 100 columns but only four rows. I ...
0
votes
1answer
87 views

Longtable fill entire page

I'm using the longtable environment inside the landscape environment, as I have a large table, which spans several pages. However, I would like my table to fill out the entire page with little to no ...
3
votes
1answer
81 views

Spacing text in table cells

How do I to space these two cells on this way? And not on this way: Code: \begingroup \setlength{\LTleft}{-20cm plus -1fill} \setlength{\LTright}{\LTleft} ...
2
votes
1answer
233 views

Dynamic table column generation

I'm trying hard in finding a way to streamline my table generation. As you can see in the attached code, the problem is related with the code "\@for \el:=#1\do{\textbf{\el} &}", where "&" ...
4
votes
1answer
159 views

longtable vertical column separators

I have a quite complex longtable design and I would like to add white column separators. I can add black separators using | but the placement of the lines does not seem ideal either. ...
5
votes
1answer
137 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
142 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
198 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
51 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
41 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
144 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
64 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
84 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
73 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
34 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
155 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
305 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
53 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
185 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
59 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
113 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
81 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
121 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
128 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
162 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
51 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
0answers
146 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
82 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
58 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
57 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
156 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
110 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
133 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
40 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
423 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 ...