Tagged Questions

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

learn more… | top users | synonyms

2
votes
2answers
62 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
76 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
128 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 ...
6
votes
2answers
94 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
54 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
49 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
0answers
37 views

Longtable LoT 'Table' caption [closed]

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
115 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
99 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
57 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
436 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
41 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
75 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
51 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 ...
3
votes
1answer
86 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
75 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
58 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
223 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
77 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
33 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
39 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
118 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
42 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
66 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
46 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
116 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} ...
2
votes
1answer
115 views

Longtable: wrapped text and justification of columns

I'm setting a manual line break in a longtable with endfloat. I have created a landscape environment called lgtable and registered it with endfloat so that when the table is sent to the end of the ...
1
vote
1answer
133 views

Help longtable ,landscape,footnotes

I am having a problem with footnotes in lanscape longtable. Below the code I am using ,but the footnote are not appearing at all.Also I tried to use minipage ,but it seems that it doesn't work. Thanks ...
1
vote
0answers
60 views

very long table - 31 columns to fit page

I'm a bit desperate after hours of trying without any success. I have an ouput from R, but the tables are way too wide, having 31 columns. Is there anyway of automatically splitting the table? Maybe ...
6
votes
0answers
121 views

Doing things to every page of a multi-page table

So, the designers did their job and specified coloured backgrounds and rounded corners for all tables. Like so: As described here, this requires doing nasty things like putting the whole table ...
1
vote
1answer
66 views

Flushright or left of a long Table [duplicate]

I have a very long table that cannot be displayed on the page because it is too long and the right hand side of the table has been cutoff. How can I modify the \begin{center} to something else so ...
1
vote
1answer
49 views

longtabu: put running total of some columns under the header on each page

so, I have a longtabu table spanning several pages. The table has a header, that needs to be repeated on each page. Some of the columns are numerical amounts, and I would like to put a row presenting ...
1
vote
1answer
87 views

Is it possible to change the spacing between particular columns of a table?

I am struggling to make a longtable fit on A4 pages in portrait mode. The problem is that the table is too wide. I am not allowed to use smaller fonts (that would solve my problem but it's not an ...
0
votes
0answers
42 views

Can I have a multipage table with fluid column width? [duplicate]

I have a few tables with lots of text in two columns, so I used tabulary to have fluid column width. But then I noticed that I have a table which is longer than one page (I am using a standard article ...
3
votes
1answer
130 views

! Misplaced \omit. Longtable Error and Caption Misalign Extra alignment tab has been changed to \cr

The issue that I am having with the image of my longtable is that the caption is not centered and I have vertical lines that appear above my table. I have looked up other posts about my errors but non ...
2
votes
1answer
170 views

Latex longtable not working?

I have some data I have put in Latex in order to make a table for a report. The table would extend over two pages but my longtable code seems not to make it to the second page. The code I am using is ...
0
votes
1answer
49 views

Longtable caption too separated

I'm using \longtable for a wide table (wider than the example) and the caption appears too separate from the table. I know I could use the option skip like \usepackage[skip=0pt]{caption}, but this ...
3
votes
1answer
1k views

Package array Error: Illegal pream-token

I get the following error: Package array Error: Illegal pream-token (\renewcommand): `c' used \renewcommand When I run my minimum working example: \documentclass{article} \usepackage{hyperref} % ...
3
votes
1answer
51 views

Itemize environment of longtables?

I want to make a list of longtables. The example shows that the table is not indented and the bullet point is not next to the table. How can I do this? It works if I use a tabular environment but I ...
3
votes
2answers
88 views

Table: problem in right most vertical line :(

\documentclass[11pt,a4paper,onesided]{report} \usepackage[utf8]{inputenc} \usepackage[showframe, nomarginpar, left=1.5in, right=1in, top=1.5in, bottom=1in,]{geometry} \usepackage{array} ...
4
votes
2answers
75 views

Heading of paragraph on left side

I want to list something in my document. Each point in the list has a short heading (one word, for example "Usecase"). This word should be on an own column to the left of the text which gets added ...
3
votes
2answers
252 views

Very long table with 25 columns

How can I make a table with 25 columns and 30 lines in one page or more? Result is Thank you
4
votes
1answer
86 views

multicolumn in longtable with span dependant on number of columns

How can I use \multicolumn in a longtable environment to span all columns except for one? The \LT@cols counter is probably the way to go. However, doing arithmetics in LaTeX seems somewhat ...
5
votes
2answers
124 views

How to split long table into two columns ?

I have a table which is very long, so I have used long table to split it across multiple pages, now that still it is spanning many pages, I want to further split the table into two columns in each ...
3
votes
1answer
58 views

My longtable is not fitting in the pagewidth

It looks like this question has been asked many times, but I was unable to solve my problem as I am new to latex. I have the following longtable in my .tex document \begin{longtable}{@{}lll@{}} ...
6
votes
1answer
123 views

How do I remove the space before the first item and after the last item of an enumerate list inside a longtable?

I have several longtables in one document and they all have a fairly big gap before the first item and after the last item of every enumerate-list. Does anyone know how to get rid of that? ...
3
votes
1answer
347 views

Underfull \vbox (badness 10000) detected at line

I have a not-that-complicate table like below, but I always got a error "Underfull \vbox (badness 10000) detected at line 127", hopefully you can reproduce it. Does anybody know the reason and how to ...
4
votes
0answers
50 views

Long table doesnt print out all items [closed]

I hope someone could help me with this, since I'm new to latex and I have very little latex knowledge which help me to solve this problem. I've been struggling googling the answer for days already. ...
0
votes
2answers
70 views

Creating a table within a longtable

I have created a longtable by using information from the question asked here. Now I want to create a table with two columns with 3 rows each within the right part of this long table. A pictorial ...
1
vote
1answer
89 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 ...