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

learn more… | top users | synonyms

11
votes
1answer
732 views

When using longtable, my table counter starts from 2 rather than 1. Why?

When using longtable, my table counter starts from 2 rather than 1. Why? \documentclass[12pt]{article} \usepackage{xcolor} \usepackage{array,booktabs,longtable} %\extrarowheight5pt \begin{...
4
votes
2answers
497 views

How do I number appendix longtables and include them in the *ToC*?

I am writing my PhD dissertation. I have many appendices (like 6?), mostly tables. As it happens automatically for tables and figures, I'd like to get a label plus progressive number before I ...
2
votes
1answer
491 views

Landscaped longtable doesn't allow appendix title on same page

My landscaped longtables leave the appendix title page and are placed on the next page. Now the appendix title page is empty, apart from the one-line title. What can I do about it?
4
votes
0answers
140 views

Avoiding bottomrule to go to next page [duplicate]

Sometimes my longtable bottom rules end up in the following page. How do I avoid that?
10
votes
1answer
6k views

How do I set right alignment in a longtable column with a fixed width?

How do I set right alignment in a longtable column with a fixed width? I have \begin{longtable}{p{3cm}p{8cm}} and I'd like my first column to be aligned on the right.
7
votes
1answer
933 views

Vertical line in longtable

I would like my vertical line to be slightly detached from the horizontal lines. I am using \usepackage{longtable}. \footnotesize \begin{longtable}{r | p{10cm}} \caption{My caption 1\label{1}}\\ ...
4
votes
3answers
2k views

How to interrupt longtable to place float (figure)?

I am writing a document describing a process step by step. After trying with enumerate (which did not look so appealing) I switched to longtable. This longtable can span more than two full pages. ...
6
votes
0answers
353 views

Page numbering in longtable [closed]

I have a table that needs to span on multiple pages. For this I've used longtable. For each page that the table spans i need to specify something like page current_page/total_number of pages (not for ...
2
votes
0answers
654 views

Why does LaTeX longtable start on next page? [closed]

I have a 3-column-longtable that spans over several pages, there's no problem with that. The thing is that there's some text before the longtable. Instead of starting right under the text, LaTeX ...
5
votes
1answer
3k views

Prevent longtable breaking in multirow

How can I prevent multirow from breaking in longtable environment, so this won't break at wrong position as shown by code below. \documentclass{article} \usepackage{multirow,tabularx,ltxtable,...
1
vote
2answers
6k views

longtable in LaTeX too wide?

I am having problems with a longtable, it goes off the side of the page and any attempt to limit the width only seems to work on the first page. Here is a cut down version of my table % Appendix B \...
3
votes
1answer
199 views

Wrong layout: the text crosses the border of paper

UPDATE. The combination of the longtable and figure given below results in misplacement of the following text. The text must go to the third page, but it doesn't. Instead of this it crosses the border ...
4
votes
2answers
2k views

Longtable width exceeds page

I saw these topics and sure they help a lot, Resize longtable to width of landscape page How to fit landscape multi-page table to textwidth But still it does not fix my problem for some reason. I ...
0
votes
2answers
193 views

Enumerating contents in Tables and Table stretching

In my document, I have a table with pretty much texts in it. One of my problem is that I have about 2, 3 hierchical levels of texts, such as row 1: Description row 2: 1. Advantages a. on ...
9
votes
1answer
2k views

How to wrap text around a landscape table over multiple pages? \sidewaystable or \landscape + \longtable

I am trying to create a landscape table that breaks over multiple pages. I have successfully done this with the following code: \begin{landscape} \begin{longtabu} to \textwidth{some columns} \caption[...
3
votes
1answer
2k views

How to force the table orders in Latex

I have several tables and some of them are long tables. LaTeX displays them in different order than I want. Say, I would like to order them as table 1 table 2 table 3(longtable) table 4 table 5 ...
3
votes
1answer
502 views

Misalignment of table columns when using multirow

I have a LaTeX document in which I am using custom environment and commands to make everything a bit easier. However, when I use the multirow command in one of my custom environments, the alignment of ...
4
votes
2answers
382 views

Need help with cosmetic changes to longtable

I need some assistance with a longtable (code below). I have a few things that I've been trying to accomplish but have not been able to. 1) I want the grey background to cover the table in a similar ...
9
votes
1answer
6k views

Sidewaystable together with longtable?

I've a massive sidewaystable (code below). I've been trying different combinations of longtable, supertabular, lscape, rotating, sidewaystable, table, etc, and I can't get it to be sideways and also ...
4
votes
1answer
1k views

Long table and pgfplotstable with multiple data files

I have two csv files: namespgf.csv Sl. No., Reg. No.,Name,Category,Group,Gate,Sponsored,Department 1,MS001,Ajay-D-Vimal Raj P,PY,OBC,--,No,Physics 2,MS002,Harish Kumar,PY,GE,GATE,Yes,Physics 3,MS003,...
3
votes
2answers
4k views

Center content in longtable

I have this table \documentclass[a4paper]{scrartcl} \usepackage{longtable} \begin{document} \begin{longtable}{c|p{6cm}p{4cm}p{4cm}} \hline Blub & Bla & Blip & Blop \\ Blub & Bla &...
4
votes
1answer
6k views

“Same as above” representation

When I have a table, where one row has the same content as above, is there a representation for that in latex? In Germany we sometimes use ------- " -------- to say that the line here is the same as ...
3
votes
1answer
411 views

Big table in beamer

I have a big table that does not fit in the slides with Beamer, i write this : \documentclass[10pt]{beamer} \usetheme{CambridgeUS} % theme \usepackage{tikz} \begin{document} \begin{frame} \...
6
votes
1answer
245 views

huge table + footnote-ish thing

I have a book, which is basically a 100-page table. I use xtab package to layout this book. The book has a list of 100-ish definitions, which are referenced multiple times in the table. Think of a ...
3
votes
1answer
868 views

Long table in landscape mode with alternating row colors does not work with \multicolumn

I am trying to put together a longtable in landscape mode over several pages using the longtable package. The idea is simple. I want alternating row colors in the main body of the table. However, ...
7
votes
1answer
5k views

How to apply alternate row coloring in a longtable in LyX?

In attempting to apply an alternate table row coloring (using xcolor) in a longtable, one confronts, sooner or later, problems in compiling a PDF. In xcolor's documentation it is clearly stated, ...
7
votes
1answer
10k views

longtable spanning textwidth [duplicate]

Possible Duplicate: How to fit landscape multi-page table to textwidth I am trying to fit a longtable in a page with the following specifications: \documentclass{article} \usepackage[...
1
vote
1answer
267 views

LaTeX Longtable bug: header-only page generated: how do I fix?

here is my LaTeX: (how does one format it nicely?): [Edit:] Reducing the example \documentclass{article} \usepackage{longtable} \usepackage{lscape} \begin{document} \begin{landscape} \noindent \...
2
votes
1answer
1k views

Alignment in a longtable + centered rule

The first row in my longtable-environment should be left-aligned and only have a specific width. The other rows should be right-aligned. I get the error Extra alignment tab has been changed to \cr 1 &...
5
votes
2answers
281 views

Last part of longtable after next float

I'm having the following problem with a document I'm making. I have a table which is split over five pages. This is done with longtable and it works fine. In the next section I have another (simple) ...
7
votes
3answers
6k views

Implementing page break in tabularx environment

Please consider the following example for better understanding. I would like LaTex to use page breaks within the tabularx environment, so that one part of the contains of \LongText will be displayed ...
1
vote
2answers
2k views

Align table caption with left border of longtable

Subj. I cannot use singlelinecheck=off because it aligns it to the left border of the page. And why table is too narrow? \documentclass[12pt,a4paper,oneside]{article} \usepackage[left=35mm,right=...
6
votes
1answer
2k views

Ltablex customize caption

I use ltablex package for creating tables. How can i change the caption name for the continuation of the table, as in the picture?
1
vote
0answers
46 views

Table fixed width [duplicate]

Possible Duplicate: How to obtain width of longtable? I have many tables that I create with longtable or ltablex. How can I make all tables the same width?
2
votes
2answers
2k views

Add pdf/excel to appendix

I have a large (1 page high, 5 pages wide, in landscape) excel sheet and I want to add it to the appendices of my thesis. Is there a way to convert this to a latex tabular or can I export the excel to ...
4
votes
1answer
486 views

Correct longtable \multicolumn exceeding page boundaries/margins

I have problem with some of the longtable tables, as illustrated here: Is there an easy way to make table wrap cell contents multi-line so that it does not exceed page margins?
4
votes
1answer
2k views

Longtable margin

I use the package longtable for build tables. But the table has many columns, then it to fall outside the limits page. How do I fix this? And how to change the margin for tables? Look at the example: ...
8
votes
3answers
1k views

Keep first column on every page of long sideways-table

I have a table with a lot of columns, so I am going to make it landscape.The very first column is a sort of header, so I would like to repeat it on every page. Is there a way to do that?
1
vote
0answers
102 views

How to install package `tabu`? [duplicate]

Possible Duplicate: Where do I place my own .sty files, to make them available to all my .tex files? I want to include style sheet tabu.sty when compile. Currently, the following error will be ...
2
votes
1answer
895 views

Tabular: set a line between each row in \newenvironment

I have created a particular table with 3 columns using \newenvironment. Now I want to put a line between each row and from the 2th to the 3th column. I know it is possible to add \cmidrule{2-3} at the ...
6
votes
1answer
1k views

How to suppress glsgroupskip on pagebreak? (glossaries package)

I'm using the 'glossaries' package to build a list of abbreviations. I have my own style defined based on a standard longtable style (to easily see what's the matter I pick the 'longheaderborder' ...
5
votes
1answer
4k views

nomencl with units, nomgroups and longtable

I use nomencl with nomgroups and nomunit. The only way I achieved to properly align it is given in the picture. It was produced using the methods of the documentation. The file.ist is standard, ...
14
votes
1answer
5k views

Longtable vs. supertabular: Which is right for which job?

I have a fixed-column long table, with much text inside, that spans about three pages. I set it using the supertabular package, and for the most part it is working (I will still have to go back to ...
3
votes
2answers
957 views

reference to a label linked with a longtable row

Is there a way to link to a specific row in a Longtabl environment. This is usefull when using the hyperref package and allows the viewer to simply jump from somewhere in the document to the right row ...
5
votes
1answer
929 views

Page breaks in table rows

I want to make a document that contains a synopsis of events, like YEAR HISTORY CULTURE SCIENCE 1770 History para- culture para- science para- ...
8
votes
2answers
528 views

longtable changes the page heading

Consider the following MWE: \documentclass{article} \usepackage{kantlipsum} \pagestyle{headings} \usepackage{longtable} \begin{document} \section{First} \kant[1] % using this longtable changes ...
6
votes
2answers
15k views

Resize longtable to width of landscape page [duplicate]

\documentclass[a4paper,12pt]{article} \usepackage{longtable} \usepackage{pdflscape} \usepackage{graphicx} \begin{document} \begin{landscape} % \resizebox{\textwidth}{!}{ } \begin{longtable}{|c|c|c|...
2
votes
1answer
522 views

Single entry in list of tables using datatool + longtable

I'm using the \DTLdisplaylongdb from datatool in order to create a multi-page table with longtable. How do I provide a caption that only shows up once in the list of tables? (Right now it's showing an ...
10
votes
1answer
7k views

How to fit landscape multi-page table to textwidth

\usepackage{longtable} \begin{landscape} \begin{table}[!htb] \centering \resizebox{\linewidth}{!}{% \begin{longtable}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|} % Table here \end{longtable}% }% \end{table} \...
6
votes
1answer
390 views

longtable: extra table structure after last entry

My long table extends one more column after the last row and is not smooth. What am I missing? \usepackage{longtable} \begin{longtable}{|l|l|} \caption{sample table with extra lines} \\ \hline \...