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

learn more… | top users | synonyms

3
votes
1answer
20 views

Floatrow package conflicting with centering longtable

Consider the MWE below. If I \usepackage{floatrow} the longtable is not horizontal centered. If I comment out \usepackage{floatrow} the table is properly horizontal centered. How can I get this ...
0
votes
1answer
22 views

Set longtable + ThreePartTable to start at the top of the next page

Is this possible? \documentclass{article} \usepackage{threeparttable} \usepackage{dcolumn} \usepackage{longtable} \usepackage{threeparttablex} \usepackage{lipsum} \begin{document} \lipsum[2-4] \...
1
vote
1answer
13 views

longtable multiple-pages not centered

I have a two columns table with lot of records (not all yet but enough to trigger the issue) and use longtable to span on multiple pages, but the second part of the table got offsetted and not ...
1
vote
1answer
24 views

Longtable listed in list of tables indicates different page number than linked to

I have several long tables in appendices which also show up in my list of tables. However, the page number indicated in the table of contents is not the page anchored to when the table name is clicked....
0
votes
1answer
40 views

How to display a table with a lot of columns (long and large table)?

As far I know the longtable package allow to split a long table in multiple page. The problem is that my table is both long and large. I have 35 rows and 40 columns. How to split this table on ...
3
votes
2answers
63 views

Spacing problem on last column using longtable

I am developing some tables on LaTeX environment and I am having some troubles with the spacing. Originally, I was able to generate the tables using the standard \begin{table}, but then I tried to add ...
1
vote
1answer
24 views

longtable caption is floating over longtable

I am attempting to use longtables since my table will span several pages. The problem I have now is that the captions are floating over top of the table making it difficult to read the table. I want ...
0
votes
0answers
22 views

Longtable and tabulary Together [duplicate]

Is it possible to have longtable and tabulary together in a table for autofit and Auto continuation of table in next page Below is my code \documentclass{article} \usepackage{longtable,tabulary,...
0
votes
0answers
19 views

Long table starts in previous blank page [duplicate]

I am writing a longtable that spread across 2 pages. But LaTeX always adds starts the table in a new page rather than the previous blank page. Now I want my longtable starts in the previous blank ...
2
votes
2answers
26 views

Bookmarks of individual longtable rows?

I'm in possession of a lengthy table, individual sections of which are reachable from within the document via this workaround. However, I want to get them to show up as bookmarks and don't know how. ...
0
votes
0answers
55 views

Text isn't justified

I try to write my small books in LaTeX but I can't do it. The problems: 1. Text isn't justified. Here is my source code. \documentclass[slovak]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{...
0
votes
0answers
29 views

Define new column type in which content is surrounded by an environment

Building on this example: \documentclass{article} \RequirePackage{longtable,nameref} \usepackage{amsmath} \usepackage{xcolor} \usepackage{listings} \lstset{ frame=single, breaklines=true, ...
1
vote
1answer
30 views

Extra alignment tab has been changed to \cr? in latex

I get the error mentioned in the title of the question. Can you help me please ? \begin{table}[htb!] \centering \caption{\textit{Résultats global}} \label{tableau4} \...
1
vote
0answers
14 views

Escape characters for page continuation of tables

I've been using the \longtable entry trying to create a log book. I've used it because I need the table to span multiple pages. A simplified version of the document is below. Even though some of the ...
1
vote
1answer
22 views

How can I use a list of commands as rows in a longtable?

If I "hardwire" the rows of the longtable environment it works almost as I want. But, if I try to use commands, LaTeX says missing } and hangs. I want to use commands in the arguments to the \...
1
vote
0answers
22 views

Long table continuing on the same page BEFORE going to the next page

I am trying to make a long narrow table, which would continue on the same page, before going to the next page, like here: Continue long table beside on the same page The method provided there works ...
1
vote
1answer
34 views

longtable into the bottom margins

longtable sometimes writes the bottom row into the margin. Over time, @DavidCarlisle has mentioned awareness of this issue. Most of the discussion is about documents that have floating figures: The ...
0
votes
0answers
26 views

Continue text below forced \pagebreak in longtable

I have a long table that I would like to break up in certain chunks of different sizes. If I use a \pagebreak to break the longtable before the end of the page, the remainder of the page remains blank,...
1
vote
0answers
32 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
28 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
1answer
39 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
2answers
38 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
24 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 ...
1
vote
1answer
15 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 ...
1
vote
0answers
36 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
0answers
34 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
148 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
74 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{...
1
vote
0answers
27 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
29 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
34 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
22 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
150 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
32 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
46 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
35 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 ...
3
votes
1answer
41 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. ...
6
votes
1answer
83 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{...
5
votes
2answers
121 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
52 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
34 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
39 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
17 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
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)?
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
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 ...
0
votes
0answers
30 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} \...
2
votes
1answer
48 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 ...
1
vote
0answers
32 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 ...