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

learn more… | top users | synonyms

1
vote
1answer
29 views

Use \nopagebreak (or similar) in supertabular

I'm trying to add multipages tabulars with counters in tabular tail. I first tried longtable but as it generates head and tail before the table content I can't use counters. So I used supertable who ...
1
vote
0answers
28 views

Getting matrices with line break in cell

I have a long matrix which is occupying two lines. How can I force a line break in the cell? I've seen it done here for tables: How to add two force line breaks in cell, but that solution doesn't help ...
1
vote
1answer
25 views

Longtable and landscape: wrong position of title and footnote

I have a problem with landscape longtable: the title and footnotes are not in the right position. I tried to delete format \geometry{left=1.2in,right=1.2in,top=1.00in,bottom=1.0in} and it works. ...
1
vote
0answers
28 views

How to get a “thousands” separator in `spreadtab` (wrapping `longtable`)?

I'm trying to use Pandoc for the semi-automatic generation of billing statements from YAML text inputs: For doing sum calculations I use the spreadtab package. For getting automatic page breaks if ...
1
vote
2answers
35 views

break a long table over pages while imposing a table line on each page

I want to draw a big table that goes over three of four pages. I understand package longtable is the most appropriate in this case. My table is a simple table, two columns: symbols and signification. ...
1
vote
1answer
20 views

Glossaries in a scrbook with three columns

I want to print a normal glossary with three columns: The name, the description and the page list. It works fine if the documentclass is a book. It doesn't matter if I'm using external programs like ...
22
votes
1answer
531 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
14 views

Addition of ltablex makes tabularx loses formatting

I created a table T, which looked great. I wanted to create another table spanning multiple pages, and hence I add a package called ltablex. Turns out that just the addition of this package makes the ...
0
votes
1answer
59 views

\nopagebreak in longtable results in undesired negative vertical space

System: XeTeX Version 3.14159265-2.6-0.99992 (TeX Live 2015/W32TeX). MWE (with a grid superimposed to help visualizing the issue): \documentclass[12pt]{book} \usepackage[top=72pt,left=72pt,bottom=...
1
vote
0answers
30 views

Caption and longtabu

I am facing trouble including caption with a longtabu environment. The code is given below, which throws tons of errors. \documentclass{article} \usepackage{longtable} \usepackage{tabu} \begin{...
1
vote
0answers
27 views

Bug in the last row of longtable

I've defined the last row of my longtable object like this: \textbf{TOTAL} & \multicolumn{2}{c|}{\textbf{4.748.032}} & \multicolumn{2}{c|}{\textbf{205.895}} The problem is that I can't get ...
7
votes
1answer
144 views

There is only single longtable table in manuscript but why its number is displayed as “Table 2”?

\documentclass[fleqn,preprint,10pt]{elsarticle} \usepackage{hyperref} \usepackage{longtable} \usepackage{caption} \hypersetup{pdfstartview={XYZ null null 1.00}}%to get pdf zoomed to 100% \usepackage{...
4
votes
3answers
67 views

Can't change longtable width for middle column

When I specify the width by \begin{longtable}p{xcm} For example, here is my code \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{longtable} \begin{document} \newpage \begin{...
4
votes
1answer
105 views

Spanning a table horizontally over pages without rotation or using landscape

I have a very wide table, which I like it to span horizontally through pages. \documentclass[runnngheads]{book} \usepackage{longtable} \begin{document} \begin{longtable}{*{25}c} ...
1
vote
0answers
22 views

Shifting long table to the left

I used tabular to create a table and used the following \hspace*{-3cm}\begin{tabular... To shift the table left to use up some of the page margin After I started to use \begin{longtable}, it seems ...
1
vote
0answers
27 views

Longtable with horizontal border

I've a longtable that uses three pages and I need horizonal borders (top and bottom) when the pages are diferents. Is there a way to fix this?
1
vote
0answers
32 views

how to make a table span 2 pages?

i'm not an expert in Latex, Maybe the question seems straightforward for many of you. I'm trying to make a table span 2 pages . this is my code : \usepackage{tabu} \usepackage{longtable} \...
1
vote
1answer
18 views

Landscape longtable pagenumber rotation works only for 1 page!

Assume I want to draw a multi-page landscape table. Also I want to rotate the pagenumber to landscape. I figured out the following MWE for this, however as you can see, it rotates only the pagenumber ...
6
votes
4answers
147 views

How to move a longtable in an enumerate?

\documentclass{article} \usepackage{longtable,array,lipsum} \begin{document} \begin{enumerate} \item first \item \begin{longtable}[l]{|m{.1\linewidth}|m{.85\linewidth}|}\hline a & \lipsum[1] \\\...
1
vote
1answer
23 views

longtable and filecontents inside a newenvironment

I'm trying to create a new environment for longtable enclosed by a filecontents environment. But I'm stuck and don't know exactly how to solve my problem. \documentclass[a4paper,parskip]{scrartcl} \...
1
vote
1answer
38 views

How to center longtable both horizontally and vertically

I have the following longtable, I want to center its content both vertically and horizontally, So far I've successed in centering it in one of them using the array package and newcolumntype \...
1
vote
0answers
34 views

babel ngerman interfering with longtable pagebreaks

I have a longtable environment and want pagebreaks only after certain rows which can be achieved putting * at the end of the rows that must not be broken (see this post). This does work as long as ...
6
votes
1answer
80 views

Linenumbers in longtable

I have to add line numbers to a document. It would be nice if the line numbers are also printed (and counted) inside tables. Consider the following example: \documentclass{scrartcl} \usepackage{...
3
votes
1answer
39 views

error using tcblisting inside longtable, no error inside tabular.

I was testing a nice solution provided in this answer how-to-crop-background-color-in-listings-to-the-longest-line-in-the-code However, I happened to be using longtable and not the standard tabular. ...
1
vote
1answer
138 views

Longtable integration Stata

As far as I am aware, the available commands that produce LaTeX-formatted tables of stored estimates using Stata, will only produce tables using either the table or tabular environments. Do any other ...
5
votes
2answers
120 views

how to get rid of extra \hline drawn before start of longtable?

Whenever I have a long table \begin{longtable}...\hline .... \\\hline \end{longtable} That happens to start at top of a page, I see an \hline drawn at the end of the previous page. However, if ...
3
votes
1answer
46 views

adjustbox missing endgroup inserted. How to fit longtable to page width?

I am working on my thesis. The appendix contains 2 large tables that span multiple pages. These tables are wider than the page height in landscape mode. When using the \begin{adjustbox}{width = 1\...
3
votes
1answer
32 views

Forcing longtables width exacly within text width

I've been looking for solutions of this problem but I only found solutions that uses small or footnotesize for table font letters, or \setlength\tabcolsep for columns width adjustment. But these ...
2
votes
1answer
32 views

long table multicolumn single word without hyphen [duplicate]

I am trying to create a long table that will be multicolumn. In one of the columns, I have a DNA sequence that is very long. I am trying to use the \multicolumn but the text is not wrapping possibly ...
0
votes
1answer
15 views

Proper cellpadding for all longtables wanted

I want to add cellpadding to my longtables. This works by writing \renewcommand{\arraystretch}{2} \begin{longtable}[H]{|m{0.1\linewidth}m{0.9\linewidth}|}\hline Content \end{longtable} \...
0
votes
0answers
25 views

Longtables and footnotes

I have several footnotes in a longtable that streches over 4 pages. The problem is that my footnotes only appear on one page of the longtable (the one they were inserted on), whereas I want them to ...
0
votes
0answers
15 views

How can I avoid a longtable to be counted? [duplicate]

I use longtables to add Notes to my document. These notes shall not be counted. Can I tell longtable this (similar to \chapter* instead of \chapter)?
14
votes
1answer
5k views

Longtable vs. supertabular: Which is right for which job?

I have a fixed-column long table, with much text inside, that spans about three pages. I set it using the supertabular package, and for the most part it is working (I will still have to go back to ...
0
votes
1answer
26 views

Facing problem with longtable while resizing textwidth

I have very large set of lengthy math equations, I have typed these equations in table so as to save space in original manuscript. Since I can not avoid writing these equation in my manuscript neither ...
8
votes
3answers
2k views

pgfplotstable; longtable with caption and repeating header

I would like to use the pgfplotstable package in order to import data from a .csv file into a multi-page table. I would like for the table to have: a caption above it and its header to repeat at ...
0
votes
0answers
28 views

Complex long table not passing through pages

I used this solution to create the layout of the table: tabularx and hhline, to improve the look of the table. Here is the layout: \usepackage{tabularx,array, rotating, caption, hhline} \...
1
vote
0answers
31 views

Longtabel LTXtable and rowcolors

When i use longtable the rowcounter seems not to work properly so \rowcolors{4}{black!5}{white} does not work as it should. the same problem was in all tabular environments and could be solved by as ...
2
votes
1answer
43 views

How to avoid latex longtable using whole width of page?

When I use longtable with a small amount of columns it uses whole widht of page to display the table. This is the result with three columns: My aim is to make the table only use an amount of space ...
2
votes
1answer
44 views

Longtable forces unwanted new blank page

I have a weird problem with the longtable environment. Once the table finishes near the end of the page, it forces the generation of a new blank page which is left totally empty. Here's the MWE: \...
4
votes
1answer
48 views

scrheadings and longtable not working together

I need pretty urgent help (thesis hits the printer in two days!) getting scrheadings and longtable working together. The problem is if I have scrheadings enabled, the longtable tables will not align ...
1
vote
1answer
34 views

How working position label longtable?

2 problem: How align "continued table" and \caption text in left? \raggedright not working in this situation. How delete empty line before enumerator? Source code: \documentclass{article} \...
0
votes
1answer
71 views

SAS to LaTeX: Environment longtable undefined

My general problem is that, after oh so many hours, I cannot find a way to bring SAS output into LaTeX. I have one way where SAS spits out a table using the sas package, where it gives you tables in ...
1
vote
1answer
27 views

Vertical alignment of attributes on long table

I have created a longtable of 4 columns. As shown below. I would like to have the attribute on the first column, in this case "Business" vertical (sideways)instead of horizontal. What is the easiest ...
0
votes
1answer
31 views

Need help converting table to longtable

How convert the following table to longtable with the same setting. I have problem with enumerate and correct size row and {tabular} not working in longtable \documentclass{article} \usepackage{...
9
votes
3answers
7k views

How to change font size of longtable-lines without changing font size of caption?

I'd like to change the font size of all contents of a longtable to footnotesize. However the rest of the document and also the caption (!) shall be (stay) in normal size. (pdflatex is used) How can I ...
0
votes
0answers
26 views

Longtable with different headers on different pages

I am compiling a longtable and would like my column headers to be repeated across multiple pages. However, my column headers change midway through the table. Therefore, is there a way of repeating ...
2
votes
1answer
23 views

pgfplotstable and longtable with caption is shown multiple times in tableslist

I'm visualizing a csv file using pgfplotstable and longtable as followed: \newcommand{\powerTable}[3]{ \pgfplotstabletypeset[ string type, col sep = comma, skip rows ...
0
votes
0answers
19 views

Extra \hline on bottom of a landscape page

I am getting an extra \hline on the bottom of a landscape page but can't to seem find where in my code. \newlength{\mtL} \setlength{\mtL}{.82\paperheight}% the next hsize \addtolength\mtL{-\headwidth}...
0
votes
0answers
13 views

Longtable vertical lines disappearing [duplicate]

Hi guys I'm having trouble with vertical lines in my longtable. Whatever margins I try for the columns all the vertical lines disappear or reappear. \setlength{\extrarowheight}{8pt} \begin{center} \...
1
vote
1answer
43 views

Split justified text between two pages with longtabu

I would ask how to split justified text between two different pages using longtabu. For now, if a single row exceed the space of the page, the entire text will be printed in the next page, leaving a ...