Questions tagged [longtable]

{longtable} is for questions relating to the use of the longtable package, which allows for making tables that can be broken across pages.

is for questions relating to the use of the longtable package. This package defines the longtable environment that makes tables that can be broken across pages.

2570 questions
50
votes
8 answers

How to solve longtable is not in 1-column mode error?

I'm trying to compile a document with the example code for longtable but I get an error saying that longtable is not in 1-column mode. Suggest me the correct way?
PSK
  • 1,032
16
votes
2 answers

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 overflow the bottom of the…
yori
  • 5,681
  • 29
  • 59
13
votes
2 answers

I don't use \centering, but why must I use \arraybackslash in my table?

I don't use \centering or \Centering in my table below. But I will get errors if I don't insert \arraybackslash. Question: What is \arraybackslash for? It seems so mysterious for me. Why must I insert \arraybackslash in place labeled (3) that is…
Display Name
  • 46,933
10
votes
2 answers

How to resize or scale a longtable - revised

***Further to my earlier post, I am now getting errors and no output from latex simply by inserting: %\resizebox{.88\hsize}{!}{ } into my code. I have edited the code below to show where I am inserting it. Am I missing something incredibly simple…
user1834300
10
votes
2 answers

Boldfacing an entire row in a longtable environment

I have a really long \longtable - some 150 rows. I need to make certain rows (~80 of them) boldface and leave the other ones normal. But just putting {\bf a & b & ... & z} \\ causes an error. Is there an elegant, simple way to do this? I've…
9
votes
1 answer

longtable spanning textwidth

Possible Duplicate: How to fit landscape multi-page table to textwidth I am trying to fit a longtable in a page with the following…
azetina
  • 28,884
8
votes
2 answers

Splitting a wide table or a longtable into two blocks

I have a very wide table (code below). I would like to put a small gap between the data under "First Group" and "Second Group" - two of the main multicolumns column headers. I tried putting in a double pipe (||) between these two columns where I…
Ariel
  • 1,569
  • 1
  • 12
  • 27
8
votes
1 answer

Automatically restart longtable coloring on new page

I have a zebra-striped longtable such as the following: \documentclass{article} \usepackage[table]{xcolor} \usepackage{longtable} \usepackage{lipsum} \begin{document} \lipsum[9-13] \rowcolors{2}{white}{gray!25} \begin{longtable}{|m{2cm} m{1.5cm}…
JayC
  • 103
8
votes
1 answer

Reducing Row Height in a Longtable

How can we change the line spacing in a long-table? I used package setspace and \linestretch command, but its not working. Minimal Example is attached.…
Ahmad
  • 479
8
votes
2 answers

Underfull \vbox (badness 10000) detected at line

I have a not-that-complicate table like below, but I always got a error "Underfull \vbox (badness 10000) detected at line 127", hopefully you can reproduce it. Does anybody know the reason and how to fix it? This is a just an example and I may have…
7
votes
2 answers

How to Repeat Cell Content on Next Page for \longtable using \multirow

I've created a LaTEX document that has several large tables that span multiple pages using long table. The table has several Topics (column 1) and Topics (column 2). The issue is that on the second page I have an empty column 1, but the subtopics…
Dan
  • 71
6
votes
5 answers

Break a long table into 2 pages

I have a very long table and want to split it into two pages, and I want the first page to say something like "to be continued" and the second one "continued from the last table." I know I have to use the \endhead and \endfirsthead codes somewhere,…
6
votes
1 answer

There is only single longtable table in manuscript but why its number is displayed as "Table 2"?

\documentclass[fleqn,preprint,10pt]{elsarticle} \usepackage{hyperref} \usepackage{longtable} \usepackage{caption} \hypersetup{pdfstartview={XYZ null null 1.00}}%to get pdf zoomed to…
IgotiT
  • 453
6
votes
2 answers

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. If the table has to break at some point, the new…
6
votes
2 answers

Is it possible to limit the number of pages a long table uses?

I have a table that is longer than one page but only by like half a page, and so am using longtable to break it into 2 pages. However, the problem that I'm running into is that based on where it is in the document, latex wants to start the table at…
brady
  • 61
1
2 3
18 19