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

learn more… | top users | synonyms

0
votes
0answers
38 views

Writing a macro to enclose cell values of a row in parenthesis

I asked this question How do I enclose each table column of a particular row in parenthesis around a month back, there was a suggested approach, but writing the latex macro is beyond my capabiiility ...
0
votes
1answer
56 views

Modify a tabular environment so that it can break over pages

I am working with a template which has the following new environment for defining a list: %% List environment %%%%%%%%%%%%%%%% \setlength{\tabcolsep}{0pt} \newenvironment{entrylist}{% \begin{...
1
vote
0answers
37 views

What to change in longtable.sty in order to avoid confusing marks? [closed]

I have a document with hundreds of longtables throuhout it. While checking the final document it turned out that the headers are putting wrong section names just as described here. A possible solution ...
1
vote
1answer
48 views

I am trying to improve the look of the longtable

I am trying to improve the aesthetics of my long table. For each vial, I measured three masses. To avoid redundancy in my column titles, I was wondering if I could have an additional title on top of ...
8
votes
3answers
444 views

The longtable environment pushes content below it into the bottom margin of a page

When I have two floating environments on a page (one figure and one table), the longtable can push the content below it into the bottom margin of the page. Here is a minimal example: \documentclass{...
4
votes
1answer
76 views

“dec sep align” from pgfplot does not align with the header properly

In my ME below, I am having a problem to get the header align properly with the text. I have looked at the documentation for the pgfplotstable, also from other posts from this forum like that posted ...
1
vote
1answer
127 views

“Continued on next page” in longtable environment part 2

I am attempting to get the effect of the table to show "continued on next page" and "concluded" like that shown here. I am calling a longtable saved in the data.dat file (given below). Can you ...
0
votes
1answer
34 views

pgfplot table cannot compile

I am working of the post found here that talks about importing a .dat file into latex and converting it into a table. The table that I have is a longtable. I am having a problem getting my code to ...
3
votes
2answers
99 views

longtable environment gives error

This post is building from the post found here, where the longtable environment is added. Can you tell me how to get this code to work properly, i.e. for the table to break properly over two or more ...
1
vote
0answers
18 views

Import large table in excel to latex [duplicate]

I have converted a large table in excel to latex. When I put the table in latex, I get part of the table. How to break up the table to span over two or more pages? Here is my code: \documentclass{...
0
votes
1answer
55 views

Linebreak inside multicolumn [duplicate]

I have the following problem I want to create a table that use a \multicolumn, I want the following but I have this. This is the code that I'm using, Does anyone know how to do this? \begin{...
0
votes
0answers
45 views

How to make multi-column multi-page tables with subtable labeling?

I need to make a multiple page table which contains a number of subtables. Preferably, the labeling of the subtables is done automatically. The subtables are somewhat narrow. So I need to be able to ...
6
votes
3answers
234 views

Two longtables side by side

I'm trying to add two tables side by side they need to be split, cannot be multi column like a & b & & & & c & d \begin{longtable}{cc} \begin{longtable} \hline ...
2
votes
1answer
37 views

How to fix default table number and description separator

I have 2 tables using different packages, but the caption gennerate different: When I use table with tabularx: Table 1 – A simple example When I use longtable: Table 2: A simple example \...
2
votes
1answer
151 views

Underfull \hbox (badness 10000) in longtable

I have 1 badbox: Underfull \hbox (badness 10000) in paragraph. I know where the badbox is from. If you change "BBBBBW" in the code to "BBBBB", the badbox will be gone. So maybe because LaTeX does not ...
0
votes
1answer
35 views

Framed longtable using fbox

To make a framed longtable I tried the following code using \fbox and \minipage: \documentclass[10pt,a4paper]{article} {\renewcommand{\arraystretch}{1.5}% \usepackage{longtable} \begin{document}\...
2
votes
1answer
52 views

Problem with caption when using longtable

When I try to add \footnotesize, the caption of the table will a little overlap with the table. Can someone help me? Thanks \documentclass[a4paper,man,natbib]{apa6} \usepackage[english]{babel} \...
3
votes
1answer
119 views

Adding a horizontal line to a multicolumn field in a longtable

I'm trying to add a horizontal line to the top of my table using a \cline. My table has 7 columns, however the first row only has one cell that spans columns 3-7. Here is a snippet of the beginning ...
1
vote
0answers
63 views

how to get longtable in mdframed to show more than firsthead?

I have a document that wraps tables (or rather, tabular/tabulary) with mdframed. This works quite happily whether the table is shown inline or floated to another page (mdframed inside the table*, ...
3
votes
2answers
234 views

Create a caption for table using the \csvautolongtable command from the csvsimple package

I successfully included a .csv table using the \csvautolongtable command from the csvsimple package (the table is more than one page, this is why I am using this command). Now I want to add a caption ...
0
votes
0answers
46 views

Partitioning wide and long table

Hi have this very long table, (24 x 35) and I need to place it in a paper I'm writing. Preferably I would like to split it in columns so that every new page starts with a new list of countries. I have ...
1
vote
1answer
81 views

How can I set the width of a column using multirow command with tabularx, sidewaystable and longtable?

I'd like to ask for a very big favor: I need to do a long table (more than 1 page) which needs to be in 90 degrees (sidewaystable) and well, I need to stablish the width of the columns while using ...
2
votes
0answers
674 views

{longtable} Package array Error: Illegal pream-token (1): `c' used. [closed]

I'm new to Latex and really learning the nuances as I go. My document was compiling fine, until all of a sudden, it wasn't. I'm using the {longtable} command. I get the following error message: ...
3
votes
1answer
69 views

Table numbering when combining ThreePartTable and “ltabulary”

I am trying to use a tabular environment that has the features of tabulary but allows for multiple page tables (this 'catch-all' solution is necessary as by latex code automatically generated so a ...
1
vote
1answer
196 views

How to create an environment to dump a longtable sideways after currentpage, which works under pandoc

Sorry for the long title (and even longer question), but this is a rather complex subject and requires a bit of elaboration. Goal: I want to define a pair of latex macros which I can write in the ...
2
votes
1answer
53 views

Longtable cell width problem

I've got a slight problem with my longtable using the IEEEtran article class. I'm using something close to this MWE, the original one is 4-pages longer than this, and the MWE captures the problem. ...
1
vote
1answer
53 views

Vertical alignment (centering) of cells contents in longtable with “m”

I have a table which cells can have one or more lines of text. I want to center all cell contents vertically, while horizontally making text left aligned. So far I have come up with this code: \...
1
vote
1answer
58 views

How can I handle table record with many parameters without CSV?

I have the following situation: I get a record like this \row{day,dayShort,date}{come,go,break,breakGo}{hours,days}{project} from an external program. This program commits 30 or 40 records and I ...
1
vote
2answers
254 views

Fit longtable to width of latex document

I am having the problem of fitting a latex table to my document: \begin{longtable}{|p{2cm}|p{2cm}|l|l|l|p{2cm}|l|l|} \hline \textbf{} & {\ul \textbf{oenb\_dependent}} &...
2
votes
1answer
42 views

Problem with longtable headers

I have the following problem with a table in more than one page. I am using longtable, I need that in all the pages appear the same caption and also in the first page after the caption the word ...
1
vote
2answers
41 views

Long formatting yields awful table

I just tried to format my longtable but the end of the table leaves to much space between the last and the second last column. Since someone helped me to format the table I do not know how to change ...
2
votes
2answers
56 views

Help on converting tabularx to longtable

I have a table written inside a tabularx environment, but now is too large and I need to convert it in a longtable, preserving the same column distribution and width. I don't know how to adjust the ...
1
vote
1answer
28 views

I would obtain a size of caption of the first table like in the second table

\documentclass[a4paper,11pt,twoside,openright]{book} \usepackage[margin=1in]{geometry} \usepackage[utf8x]{inputenc} \usepackage[italian]{babel} \usepackage[T1]{fontenc} \usepackage{fancyhdr} \...
1
vote
1answer
39 views

Misplaced vertical line in longtable environment

\documentclass[12pt]{article} \usepackage{amssymb} \usepackage{amsmath} \usepackage{enumerate} \usepackage{graphics} \usepackage{epsfig} \usepackage{booktabs} \usepackage{array} \usepackage{latexsym} \...
3
votes
1answer
120 views

Long tables (spanning multiple pages), put side by side

I have looked in all previously related questions but I have not yet found the solution. The problem is the following: For a business report, the requirement is to report the data in two different ...
0
votes
0answers
49 views

table notes in threeparttable & longtable are not appearing properly

I am trying to add table notes to a longtable. The notes are not appearing right below the caption and they are not flushed left with the table. I am using pdflatex version 3.14, latex2e in ubuntu. ...
2
votes
0answers
105 views

Is it possible for a multirow cell to be split across pages when using longtable?

I am using a longtable for a table that spans multiple pages. To my limited understanding, cells cannot be split across pages. However, I was wondering if it's possible for a multirow cell to be split ...
2
votes
1answer
44 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
174 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
127 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
80 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
53 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
138 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
108 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
123 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
260 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
105 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: \...