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

learn more… | top users | synonyms

1
vote
1answer
20 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
18 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
33 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 ...
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 ...
1
vote
0answers
25 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
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
26 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
65 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
21 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
26 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
31 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
34 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 ...
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. ...
6
votes
1answer
79 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
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
45 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
30 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
31 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
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
24 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
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} \...
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 ...
1
vote
0answers
30 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
40 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: \...
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
67 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 ...
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{...
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
22 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} \...
0
votes
0answers
37 views

Single column table, spanning multiple pages, on two column document

As the title says, I would like to create a single column table, that spans multiple pages, on a two column document. On top of that, the table uses multicolumns. Below is my MWE: \documentclass[11pt,...
4
votes
1answer
45 views

Longtable does not fit the page margins

I am trying to fit a long table within the page margins. I tryied to follow the suggestions provided to other users on the same topic, but nothing seems to work. Any help would be more than ...
1
vote
2answers
74 views

How can I align text of cell at center of rectangle?

I want to make a longtable and I want to align text at each cell of the first and the third columns at center of center of rectangle. For example Fisrt and 2 points as picture, but I cannot align. ...
3
votes
2answers
59 views

How can I convert a longtable into enumerate?

I have a longtable and this is my code \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{fourier} \usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{...
0
votes
0answers
38 views

Is it possible to wrap a table around another table (or any float/text/minipage)?

Is it possible to wrap a table around another table (or any float/text/minipage)? I.e. the table width is adjusted so another thing indents the table. Imagine text wrapping a float, but instead of ...
1
vote
1answer
31 views

Long table - How can I shrink it without destroying the formatting and how can I wrap the titles of the columns?

I have this long table and I am struggling to find a way a) to wrap the titles of the 3rd and 4th column into two lines (Transmitted data that was unencrypted & Third party domains)and b) I ...
2
votes
0answers
45 views

longtable overwrites page number

In my thesis I need to display a lot of long tables for which I use the longtable environment. Most of the time it works perfectly, but sometimes for some reason it doesn't split the table and the ...
3
votes
2answers
38 views

Longtable - Caption too short

I'm using longtable. But the caption is too short that it splits up my 12 word caption into two lines centered, only 1/3 of the table width. I would like to show the caption in one line. Any advice? ...
1
vote
1answer
41 views

How do I include the word “Table” in the LoT for longtables?

I'm working on my thesis using a package provided by the University. When I compile my document, the LoT is displayed as follows: Do you know how can I include the word "Table" for the appendix C ...
1
vote
0answers
35 views

How to center a longtable in scrbook

During a thesis project (in an scrbook) I try to center a longtable with data and graphics, which is always misaligned. On the search for a solution I stumbled upon a longtable MWE, that worked nicely....
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 ...