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

learn more… | top users | synonyms

4
votes
1answer
67 views

Reference to longtable wrong if \numberwithin{table}{section} is activated

I've encountered something weird while using the longtable package together with \numberwithin{table}{section} or \counterwithin{table}{section}: if a longtable is the first table in a section, it ...
0
votes
0answers
14 views

Is there an example using tabularx, longtable and spreadtab together? [duplicate]

I can't manage to get a working table with: multi page support / page breaks using the whole page width provide a sum at the bottom of the table / last row Is there a simple example on how to do ...
2
votes
1answer
126 views

How to fix misplaced \noalign on afterpage with \clearpage and too high longtable head?

TeX Live 2014 on Xubuntu 14.04 LTS. Minimal working example: \documentclass[11pt, oneside]{report} \usepackage{afterpage} \usepackage{booktabs} \usepackage{longtable} \begin{document} \afterpage{ ...
0
votes
1answer
43 views

How to define a table with colored sections

I need to write a table like the image below in Latex. This table represents the data structure of a message, which some specific data of the message and other fields that are inserted into two ...
2
votes
1answer
53 views

longtable and for loop problem

Can anyone explain me the difference betweeen the following to tables? Why has the second one an additional line with one column? \newcounter{kartonnr} \newpage \begin{longtable}{|p{1.5 cm}|p{.8 cm}|...
1
vote
1answer
40 views

Space between two consecutive hhlines

While using the longtable and hhline packages, I would need to have space between two consecutive hhlines as in the following MWE \documentclass[10pt]{article} \usepackage{longtable} \usepackage{...
1
vote
1answer
41 views

minipages in bidi-longtable

I have a bidi-longtable in a mixed language document (mainlanguage Arabic). I am using minipages in each cell of the table because I will need to do some complicated things later like footnotes. The ...
1
vote
1answer
109 views

How to span brackets on some rows in longtable?

The goal is to place a brackets into the table (longtable) to embrace some rows of this table: The solution which involves rdelim and \multirows command (described here: usage of \rdelim) gives not ...
0
votes
1answer
51 views

How to establish the width of a column in a longtable

I wrote a table by longtable. It works correctly but I would like to improve the layout of the width a column. In the figure below you can see the result: As you can see, the last colums is very ...
3
votes
1answer
169 views

Longtable in tcolorbox makes itemized lists unbreakable

Structure: Using tcolorbox to take advantage of page-breakable paragraph or list contents, I am trying to use a long table above this to align some summary information. But I am observing that if I ...
1
vote
1answer
42 views

PythonTeX + \InputIfFileExists for inputting rows in longtable creates spurious space before the end

TeX Live 2014 on Xubuntu 14.04 LTS. Minimal working example: \documentclass[11pt, twoside]{book} \usepackage{pythontex} \usepackage{booktabs} \usepackage{multirow} \usepackage{longtable} \begin{...
4
votes
1answer
156 views

Longtable with threeparttable

Can anyone help me to figure out why this code does not work in Lyx? Despite using longtable, the table gets truncated at the end of page after overflowing the bottom margin. \begin{threeparttable} ...
1
vote
1answer
94 views

csv long table in landscape

I want to import a csv table, but the table has too many columns i.e. too wide. So I put it in landscape environment and use the \csvautolongtable. The specific code is the following: \usepackage{...
1
vote
0answers
32 views

Landscape is not compiling to produce pdf if i use \input{chapters/ }

I'm writing my thesis by using \input{chapters/..} to add the chapters to the main .tex. While the PDF is produced in a separate .tex file, it is not produced when I'm compiling the main file. Here ...
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
58 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
477 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
79 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
134 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
36 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
109 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
19 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
58 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
50 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
239 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
165 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
36 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
55 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
139 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
67 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
255 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
47 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
91 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
728 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
70 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
201 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
54 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
60 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
269 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
43 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
60 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
30 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
41 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
128 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
50 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. ...