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

learn more… | top users | synonyms

5
votes
1answer
29 views

Longtable Long Word wrapping issue

Im trying to wrap long words in a longtable and its not quite working right. some of the words spill over to the next cell. any help would be great thanks! \documentclass{report} ...
0
votes
1answer
39 views

Figure or longtabu/longtable causes buttom margin overflow

I have been searching for a while now without any luck, so I hope you can help me. The problem is that when I insert a figure/longtabu on my page, the text below is running out of the page, like this ...
2
votes
1answer
26 views

Twocolumn supertabular output overlapping

I'm having problems getting my table on two columns. I have tried using a longtable and supertabular but so far with little succes. I currently have a supertabular with two columns, but the output ...
1
vote
1answer
23 views

Latex longtable coulumn width [on hold]

I have started learning Latex and writing my thesis. I want to typeset a long table. \begin{centering} \begin{longtable}{p{3.5cm}p{10cm}} ...
5
votes
1answer
155 views

Setting vertical spacing between different document elements at the same time

I have the following problem. Let's define three types of document elements: Titles, Paragraphs and Longtables. The problem is to setup vertical spaces between them independently. For example, let's ...
1
vote
1answer
15 views

How to use ERT command to long tables that is provided for float table

I have been provided with ERT (Evil Red Text) command which when used for float tables, displays the caption of the table as Table 1.1 in List of Tables. I want to know how I can use such command for ...
3
votes
3answers
35 views

longtable Alignment

I'm using a long table with image and lots of text. The alignment of it is wrong for me. I'd like to know how to make the text start on top of the box, near the line. Here is my code for the longtable ...
3
votes
1answer
40 views

Fill last page with empty lines in longtable/longtabu

I am generating a PDF automatically from a database and I want to fill the last page up with empty rows. The document looks like \documentclass{article} \usepackage{longtable} \usepackage{tabu} ...
2
votes
1answer
27 views

Show table headers on each page

I have a table that takes about three pages to display and I'm using the longtable package. It's three columns by about 80 rows. On the first page, I have headers for each of the columns. Is there a ...
2
votes
1answer
118 views

Inclusion of a landscape multipage table in an apa6 class document.

I have question concerning the inclusion of a landscape multipage table in an apa6 class document. The example below is working fine (apa6 class is not used): \documentclass{article} ...
1
vote
2answers
37 views

Multiple rows with paragraphs in longtable

I'd like to have the third column (minus the header of that column) as a single cell. I was trying to use multirow and a "p" column to achieve the desired effect, but with no success. How might I do ...
5
votes
2answers
66 views

Adjust margins for long table on a landscape page

My minimum working example: \documentclass{article} \usepackage{longtable} \usepackage{lscape} \usepackage{array} \begin{document} \begin{landscape} \section{My First Section} ...
5
votes
2answers
454 views

How to eliminate the \\ at the end of a longtable

I define a macro \mycmd like this \newcommand\mycmd[2]{{some complicated format #1}&{some complicated format #2}\\} to simplify the input. So I can just write: sometext \begin{longtable}{cc} ...
3
votes
2answers
118 views

specifying a longtable not to split

I am using longtable in my report as I have many tables that are longer than a page. To make it consistent, I am using longtable for all the tables. Many times because of page settings, a small table ...
5
votes
3answers
195 views

Latex: Tabbing environment not working within fancyhdr footer and usage of longtabu

I have problems when I try to use the tabbing environment within a fancyhdr footer and using a longtabu table within the document. The error message is: ! LaTeX Error: Undefined tab position. I ...
2
votes
2answers
84 views

Tabular with linespacing

Moin, I want the rowspacing behavior to be default. So this: \usepackage{longtable} % ... MAGIC ... % \begin{longtable}{ccc} entry1 & entry2 & entry3 \tabularnewline entry4 & ...
5
votes
1answer
33 views

longtable sometimes starts new page when we are near the top of the page

Most of the time longtable does exactly what is required, but sometimes it starts a new page when it is near the top of the page and there is plenty of space for the entire table on the current page. ...
3
votes
2answers
217 views

How to write multiline in a cell of table in latex?

I have multiline table. \documentclass[11pt,table,a5paper]{article} \usepackage[top=2cm, bottom=2cm, outer=2.1cm, inner=1cm,twoside, headsep=26pt]{geometry} \usepackage{collcell} ...
2
votes
1answer
32 views

Gluing text to longtable

I am an occasional LaTex user. My question relates to the use of longtable. If I understand the standard table constructs, then "tabular" defines the layout of the actual table grid with contents, and ...
22
votes
2answers
1k views

Column-wise break of extra wide tables

I have to plot geochemical data tables that are like this table , i.e. with a header column, but that have much more sample columns. When having too many columns, the table has to be broken at a ...
5
votes
1answer
259 views

Longtabu total width, fixed left margin

I'm trying to make a longtabu that is wider than the textwidth at a certain moment. I've tried different things always ending up with a different problem: First possibility: If I use the adjustwidth ...
1
vote
1answer
137 views

Line-breaking long cell contents when using longtable through datatool

I'm trying to display a table loaded from a CSV file and displaying it like this: \DTLloadrawdb[]{myDB}{myDB.csv} \DTLdisplaylongdb[% caption={myDB caption},% label={tab:myDB},% ...
2
votes
1answer
220 views

Splitting a 2-column very long table into various multiple columns across different pages

I have a 645-row table to be included in one article appendix. Such table has only two narrow columns where each row is composed of a Month-Year in the first cell and one date in the last cell of the ...
2
votes
1answer
74 views

long table working in TexNiccenter but not in R Studio GUI

I'm having a weird error where my code is working just fine in TexNiccenter but unable to compile within the R studio GUI (probably not an R studio problem just R problem). Here's some background: my ...
2
votes
1answer
171 views

Math mode in longtabu

I'm trying to typeset a very long table that spans a few pages and contains exclusively mathematical formulae. In order to accomplish that I'm using the \longtabu environment provided by the tabu ...
4
votes
1answer
163 views

split longtable over even and odd pages (2)

I am a first-time user of LaTeX, trying to typeset my thesis. My problem is that some of my tables are large and do not fit on a single page; both in length (many rows) but some also in width (many ...
0
votes
0answers
29 views

How to add audio file to longtable?

I am trying to make a long table that includes embedded audio files. Whenever I try adding files with media9, LaTeX won't create a pdf. Any suggestions on how to make a long table with embedded audio ...
2
votes
1answer
69 views

Longtable: Illegal pream-token (\caption)

there is a table in my document that need to span over 2 pages. The compilation of the code gives me the following error message: Error message ! Package array Error: Illegal pream-token ...
2
votes
1answer
98 views

Longtabu, \tabucline placed on wrong page

See the following longtabu axample: \documentclass{article} \usepackage{longtable} \usepackage{booktabs} \usepackage{tabu} \usepackage{lipsum} \begin{document} \tabulinesep=1.5mm % <---- ...
1
vote
1answer
37 views

How to prevent longtable to put header alone in one page

How to prevent longtable to put header alone in one page like in image below. I used endhead to prevent this but this will print the header on each page. Sorry I don't give MWE because I haven't ...
2
votes
1answer
80 views

In table, how to make one column has different font size for different line?

I use longtabu to create a table, below is the realted code \begin{longtabu} to \textwidth {|>{\footnotesize}X[1 , p ] |>{\footnotesize}X[1 , p ] | >{\footnotesize}X[1 , p ]|} I want the ...
2
votes
2answers
49 views

Long table with tablenote

In the following long table, I can't put table note. Any suggestion? and How I can set the whole table size? \documentclass{article} \usepackage{longtable} \usepackage{pdflscape} ...
3
votes
1answer
97 views

How to suppress hyphenation in figure and table captions?

To suppress hyphenation in section names I use \hyphenpenalty=10000 in \titleformat command. Is there any similar way to suppress hyphenation in figure and table (and longtable) captions?
3
votes
1answer
244 views

Suppress page break before table

I have a large, horizontal table that spans multiple pages. LaTeX puts a page break before the table, but I don't want a page break. I want the text to fill the page before the table. I've tried ...
3
votes
1answer
172 views

Everyrow works with tabu but not with longtabu

I've been wrestling with longtables/longtabu for a while now, and I have it almost working the way I want. The last thing that I want to be able to do is have a \hline inserted for every row. Here's ...
4
votes
2answers
913 views

pgfplotstable; longtable with caption and repeating header

I would like to use the pgfplotstable package in order to import data from a .csv file into a multi-page table. I would like for the table to have: a caption above it and its header to repeat at ...
3
votes
1answer
43 views

Follow-on to tabulary + longtable + captioning

I was able to use the coding provided by Justibus: Several caption problems in longtable and tabulary. What my question is - now that i've been able to make my table wrap columns and break over ...
4
votes
1answer
180 views

How to exceed left margin with longtable

I'm trying to make a longtable that is wider than the textwidth at a certain moment. I've tried different things always ending up with a different problem: First possibility: If I use the adjustwidth ...
4
votes
0answers
46 views

Using multiple autogenerated longtables inside multicols environment

I have several longtables which are auto generated. Since they are not actually long or wide ones, it would be rather space saving for me if I could pack them in a multi column environment. So, I ...
5
votes
3answers
2k views

'longtable' caption without incrementing 'table'?

For reasons both complex and confusing, I would like to caption a longtable without incrementing the table counter in the process. I want to have two consecutive longtable environments to be ...
2
votes
1answer
60 views

multicolumn X paragraph?

\documentclass[a4paper,10pt]{article} \usepackage{array,tabularx,longtable,tabu} \usepackage{lipsum} \begin{document} \begin{longtabu} to \linewidth {Xccr} \lipsum[1] & Val1/1 & Val1/2 ...
3
votes
1answer
43 views

Vertical align in longtable

I would like the content of the first and second column to be vertically aligned on top, since the 3rd column will contain a bunch of data so it would not be readable if vertically centered (which is ...
2
votes
1answer
43 views

Adaptative column width

I am currently automating a report generation and I am now trying to obtain a consistent look on my arrays. I am currently working on a part where the pages need to be set in landscape mode, so I am ...
0
votes
0answers
73 views

Table and longtable centering and caption alignment

I want to format table and longtable in a special way: 1) table/longtable should be positioned to the center of the page 2) table/longtable caption should be positioned between left and right ...
8
votes
2answers
80 views

Longtable and floats: wrong table breaks on pages with floats (part 2)

I think I may have stumbled upon an undocumented feature regarding page breaking in longtable. The following MWE produces (at least in my TeXlive 2014 setup) a document in which the last paragraphs ...
5
votes
2answers
226 views

Weird Error from \midrule

I am getting a weird error code: \expandafter \let \cmrsideswitch \@tempa \fi \fi? Strange error in my table The question above had the same code and it was liked to his use of \cmidrule. I am ...
2
votes
1answer
78 views

Page Breaks in Two-Column, Multi-Page Table

I'm currently using xtab to create long tables that span two columns, and multiple pages. What I'd like to do is have a finer degree of control over when the table is broken on a page / column ...
2
votes
1answer
37 views

Automatically bold first sentence of a caption in longtable

This question is a follow-on from Automatically bold first sentence of a floats caption. I can automatically bold the first sentence of the caption in my normal tabulars, but the code doesn't seem to ...
2
votes
2answers
71 views

Generic table definitions

According to the topic How to use commands in table specs, and still support array package? I have tried to intense the way of creating tables, definitions. \documentclass[fontsize=11pt, % Document ...
0
votes
0answers
28 views

Getting longtable to display an image when first on page right

I've been battling with this problem trying to get this to work properly. I have a complex group of longtables I'm trying to get to display right. What I'm trying to do is compile a catalog ...