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

learn more… | top users | synonyms

2
votes
1answer
45 views

longtable leaves wrong margins inside list environment

Special situation, using longtable inside my custom class. When I use \longtable, \end{longtable} instead of \begin{longtable}, \end{longtable}, I get bad margins when the longtable is inside a list ...
5
votes
1answer
181 views

Longtable appears to prevent \enlargethispage from working

The following code works for me, but if I remove the comment and thus add the longtabu/longtable, then the \enlargethispage loses its effect. \documentclass{article} \usepackage{lipsum} \usepackage{...
0
votes
1answer
37 views

Long table environment not working properly

I'm writing a long table but the contents of the long table are separately written. How can I embed it properly to work. Please run the code to see the self-explaining problem. \documentclass[12pt]{...
0
votes
1answer
143 views

How to avoid text from overlapping adjacent columns using `longtable`

I need to use the same format (or pretty similar) at the start of the \begin{longtable}{...} and preferably the same \mylenght defined from the suggested fixes to my previous problem: First problem ...
4
votes
1answer
82 views

Longtable - How to use it within a table environment?

I have the following latex code. My issue is that the table below does not fit the page. I would like to break the table on the "Panel C" row but I couldn't figure out how to do it while keeping the ...
1
vote
1answer
57 views

Center cells in longtable - all together

I would like to find an easy way to adjust cells in my longtable to centered, while still using the p{} definition of the columns. The code I'm using is: \documentclass[a4paper]{article} \usepackage{...
0
votes
1answer
147 views

Longtabu still not able to shrink text to textwidth even after using X columns

My problem is very similar to this one: Longtabu not able to shrink text to textwidth where the table goes outside the page, even after I explicitly set the width to \textwidth. I also followed the ...
4
votes
1answer
114 views

Printing glossaries with long styles adds to the tables counter

I am using the glossaries package to print a list of acronyms and another one with symbols at the beginning of my document. Since I want my definitions to be aligned and occupy the whole width of the ...
6
votes
2answers
124 views

Fill empty vertical space in a cell

I'm trying to fill the space left in a cell originated by another cell with more height in the same row. \documentclass[a4paper]{report} \usepackage{longtable} \begin{document} \begin{longtable}{|p{0....
1
vote
0answers
83 views

Align by decimal point using long-table

I am have numbers with stars and want to align them by decimal. How is this possible within the longtable environment? \documentclass[12pt]{report} \usepackage{longtable} \begin{document} \begin{...
1
vote
0answers
58 views

Very Wide Table Spanning Multiple Pages in LaTeX

I am writing a two column IEEE paper (standard IEETran). I want to create a table that spans multiple pages in LaTeX. I have tried longtable and that breaks pages rightly. However the problem is my ...
4
votes
1answer
271 views

Adjust longtables to textwidth

I would like to adjust my longtables in a document to the textwidth. What would be the best way to go about this? The code I'm currently using is: \documentclass{article} \usepackage{lipsum} \...
2
votes
1answer
107 views

How to fix longtable and bigfoot LaTeX packages conflict?

When I compile a single *.tex file on my local machine, it seems like the longtable and bigfoot packages conflict resulting in wrong "sticking" of the table header on the next page. Code: \...
3
votes
1answer
101 views

table on a double page

I'm having a really wide table with lots of rows. Transposing or splitting is not an option. Searching the internet did not lead to any usefull findings. is the a possibility to build a table like ...
3
votes
2answers
142 views

Change \endhead in the middle of a longtable

I am creating many longtables in my document, where one table represents the results of a specific topic. Normally the header of the longtable consists of the name of the topic, N and some cmidrules. ...
0
votes
0answers
335 views

Longtable in a knitr (PDF) document: using xtable (or kable)

I am new to knitr and I have had some very basic latex knowledge in the past, so I googled already hoping to find a solution that was already posted somewhere. However, I was not able to solve my ...
3
votes
2answers
70 views

Tabu table is too wide though there is enough space to shrink

I'm trying to make this table to fit to \textwidth. The first column has column type X from tabu package which should make it work. But it does not. Adding the "to \textwidth" option dosen't have any ...
1
vote
0answers
125 views

Long and wide subtables

I'm not a LaTeX expert. I'm using it to write my thesis. Here's my problem. I have a set of tables and subtables, wich are very wide and long, so I'm using \begin{table}[H] \begin{subtable}[]{\...
1
vote
0answers
76 views

package longtable produces strange errors

Community, I am writing a Paper in Latex for with the De Gruyter open style. In general I have a two-column Layout but i need to exclude two big tables that should be horizontal on full pages because ...
2
votes
1answer
100 views

Problem with “underfull vbox” warning

I've a problem with the following piece of code: %%%PREAMBOLO%%% %Classe Documento \documentclass[10pt, a5paper]{article} %Pacchetti per Layout Pagina \usepackage{geometry} ...
1
vote
0answers
63 views

How to make sections in longtable nomenclature

I am using a longtable in my nomenclature to auto-adjust the aligning to the widest label width and would also like to have sections of different types of entries similar to the one here where they ...
1
vote
0answers
46 views

Undesired page-breaks, mdframed and long table

I have a problem. I am creating MSDS sheets using LaTeX, (actually a web-application that creates a LaTeX code). The basic setup of the sheet is such that for each section (there are 16 sections) a ...
1
vote
1answer
342 views

Error: \longtable* already defined [closed]

Sorry, I realize this is a duplicate question, but I can't comment on the other one (not enough points? BS.) and there is no official answer anyways. I'm using: \documentclass[iop,revtex4,...
3
votes
1answer
375 views

longtable inside adjustbox

The following longtable (or longtabu) is too wide. Naive as I am, I have put the table into a adjustbox, but it does not compile. \documentclass{article} \usepackage{longtable} \usepackage{tabu} \...
0
votes
1answer
84 views

Is There a Way to Automatically Break up Overly Wide Tables in LaTeX

My application automatically generates code to be processed by pdflatex based on tabular data it records. I can't make a lot of assumptions about the data. How many columns there will be and what sort ...
1
vote
2answers
236 views

Centering longtable

I use longtable for some very long tables showing evaluation results. They look ok, but I have two problems with them: For some reason, I don't understand, the table seems to be too wide. When I sum ...
1
vote
1answer
121 views

Problems with Hyperref, Endfloat, Longtable and Appendix

I am struggling with my table references in combination with endfloat and longtable. Somehow, they are not referring to the right table. I get the following problem reported (I think that this is the ...
0
votes
0answers
39 views

Redefine \cmidrule for longtable preventing page-break after \cmidrule [duplicate]

Is there a way to redefine the \cmidrule command in such a way that no page-break is allowed after \cmidrule in longtable? To be more specific: I use both the \midrule and the \cmidrule command from ...
2
votes
2answers
159 views

Left margins are different for longtable and tabular

I would like to use a tabular and a longtable in my document, but the left margins are not aligned. \documentclass[letterpaper,11pt]{article} \usepackage{longtable} \begin{document} \begin{tabular}...
3
votes
1answer
189 views

How to make a longtable has rounded corners?

I try this, but it does not work \begin{table} \caption{A table with rounded corners} \centering \begin{tikzpicture} \node (table) [inner sep=0pt] { \begin{longtable}{l|l} \multicolumn{2}{c}{...
2
votes
2answers
259 views

How do I change the style of a longtable caption?

I have \documentclass{article} \usepackage{longtable} \begin{document} \begin{longtable}{|c|c|} \caption{A caption.}\label{tab1} \\ \hline 1 & 2 \\ \hline 3 & 4 \\ \hline \end{longtable} ...
2
votes
2answers
83 views

From table to longtable

I have tried to convert this table to longtable but did not succeed and am hoping that you can help. The longtable-package is loaded already. \documentclass[a4paper,oneside,abstracton]{scrartcl} \...
1
vote
0answers
82 views

Longtable Duplicate Separator at Page Break

I have a longtable spreading over 2 pages. Unfortunately, since I decided to use the booktabs package, I get a duplicate line separator between the table header of the second page and the next table ...
10
votes
2answers
807 views

Appending an empty row after every 5 or 10 rows in LaTeX table

I wonder how to append an empty row after every 5 or 10 rows in LaTeX table. Here is my MWE in .Rnw format. Any help will be highly appreciated. Thanks! \documentclass{article} \usepackage{longtable}...
3
votes
1answer
66 views

Longtable and automatic spacing

I am using the longtable environment in combination with the siunitx package for 3 of my 10 columns. Unfortunately, when compiling the spacing of those three columns is not automatically adjusted. ...
1
vote
1answer
59 views

vertical alignment of minipages in two columns in a longtable

I began to learn latex and I use it to prepare a CV. I made good experiences by organizing my CV with a longtable, in order to define the widths and the alignments of the different text blocks. In my ...
3
votes
1answer
84 views

How do I put align elements into fixed columns?

I want an "align" equation in one column and a text table in the other column. In LaTeX, it seems that "tables" and "columns" are separate but overlapping mechanisms. In LaTeX, "columns" seem to be ...
2
votes
2answers
53 views

Get rid of text over footer after figure and long table

The document is otherwise exactly what I want. The text respects the footer on every page but one. On this one page, the first thing is a figure, followed by a longtable (that doesn't actually ...
3
votes
2answers
82 views

Page numbering wrong with longtable and captions

I'm attempting to make a product catalog/price sheet. I am using longtable, since it's not uncommon for tables to span more than 1 page. Everything works great, but it seems when a longtable starts on ...
4
votes
1answer
608 views

Decrease spacing between lines of paragraph in longtable.

I used the suggestion from Adding row spacing to a longtable? to decrease the row spacing in my longtable. \documentclass{article} \usepackage{longtable} \begin{document} \renewcommand{\...
2
votes
0answers
130 views

How to break tablenotes (page break) in longtable with threeparttablex?

How can I break my TableNotes in ThreePartTable (it is a landscape table)? \documentclass[a4paper]{article} \usepackage[english]{babel} \usepackage[top=2.975cm, bottom=2.975cm, left=2.975cm, right=...
2
votes
2answers
59 views

Align the sep-lines when using tabular inside a longtable

When I create a tabular inside a longtable, although the column width of longtable and tabular are the same but the seperate lines aren't align. \documentclass[10pt,twoside]{article} \usepackage[...
3
votes
2answers
520 views

Change longtable's font size without changing the caption

I'm trying to put quite a long table in my thesis. To save some space I want to reduce the row height, the column separator and use a smaller font size in the table. The problem with the following ...
1
vote
0answers
450 views

\newline not working with longtable?

This table comes from SAS output. The \newline is not working correctly. E.g. "Percent trimmed in tail" ought to be Percent Trimmed In tail but it is showing up as Percent Trimmed In Tail Here ...
1
vote
0answers
178 views

How can I break lines automatically in tabular to fit to page width? [closed]

I expect to break a long text automatically in tabular. After searching this site, there are several ways: (i). Use p{dimension} in tabular, answered here \begin{table}[h] \begin{tabular}{|l|l|} \...
2
votes
1answer
239 views

Longtable smaller size, less space between columns and lines

I created a table from a Stata output, which is longer than one page. I used the package longtable, but the table is too long and width for the page and doesn't adjust. I want to have the table on one ...
2
votes
0answers
57 views

Cutting a table along columns

How do I split a table by its columns? \documentclass[a4paper,10pt]{scrartcl} \usepackage[utf8]{inputenc} \begin{document} \begin{center} \begin{tabular}{llllllllllllllllllll} very long text & ...
1
vote
1answer
29 views

Allow page break in table in customized environment

\documentclass[12pt]{report} \usepackage{amsmath,enumerate} \usepackage[top=1cm,bottom=1.5cm,left=1cm,right=1cm]{geometry} \usepackage{booktabs} \usepackage{longtable,tabu} % allow page break \...
4
votes
1answer
154 views

Longtable headings doesn't appear with fullwidth package

I'm writing a document with long and wide tables spilling over the margin area in a two side document class. I'm using the Marco Daniel's fullwidth package. Using longtable (and even longtabu) the ...
3
votes
1answer
315 views

Indentation of a longtable

I have a table without borders, spanning two pages, the text contained in which I want to start with the same indentation as my hanging footnotes. I have a rough solution, but it relies on inserting ...