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

learn more… | top users | synonyms

4
votes
2answers
56 views

how to get rid of extra \hline drawn before start of longtable?

Whenever I have a long table \begin{longtable}...\hline .... \\\hline \end{longtable} That happens to start at top of a page, I see an \hline drawn at the end of the previous page. However, if ...
2
votes
1answer
31 views

adjustbox missing endgroup inserted. How to fit longtable to page width?

I am working on my thesis. The appendix contains 2 large tables that span multiple pages. These tables are wider than the page height in landscape mode. When using the \begin{adjustbox}{width = ...
3
votes
1answer
25 views

Forcing longtables width exacly within text width

I've been looking for solutions of this problem but I only found solutions that uses small or footnotesize for table font letters, or \setlength\tabcolsep for columns width adjustment. But these ...
2
votes
1answer
19 views

long table multicolumn single word without hyphen [duplicate]

I am trying to create a long table that will be multicolumn. In one of the columns, I have a DNA sequence that is very long. I am trying to use the \multicolumn but the text is not wrapping possibly ...
0
votes
1answer
14 views

Proper cellpadding for all longtables wanted

I want to add cellpadding to my longtables. This works by writing \renewcommand{\arraystretch}{2} \begin{longtable}[H]{|m{0.1\linewidth}m{0.9\linewidth}|}\hline Content \end{longtable} ...
0
votes
0answers
15 views

How can I avoid a longtable to be counted? [duplicate]

I use longtables to add Notes to my document. These notes shall not be counted. Can I tell longtable this (similar to \chapter* instead of \chapter)?
0
votes
0answers
23 views

Longtables and footnotes

I have several footnotes in a longtable that streches over 4 pages. The problem is that my footnotes only appear on one page of the longtable (the one they were inserted on), whereas I want them to ...
0
votes
1answer
20 views

Facing problem with longtable while resizing textwidth

I have very large set of lengthy math equations, I have typed these equations in table so as to save space in original manuscript. Since I can not avoid writing these equation in my manuscript neither ...
0
votes
0answers
26 views

Complex long table not passing through pages

I used this solution to create the layout of the table: tabularx and hhline, to improve the look of the table. Here is the layout: \usepackage{tabularx,array, rotating, caption, hhline} ...
2
votes
1answer
37 views

How to avoid latex longtable using whole width of page?

When I use longtable with a small amount of columns it uses whole widht of page to display the table. This is the result with three columns: My aim is to make the table only use an amount of space ...
1
vote
0answers
27 views

Longtabel LTXtable and rowcolors

When i use longtable the rowcounter seems not to work properly so \rowcolors{4}{black!5}{white} does not work as it should. the same problem was in all tabular environments and could be solved by as ...
2
votes
1answer
38 views

Longtable forces unwanted new blank page

I have a weird problem with the longtable environment. Once the table finishes near the end of the page, it forces the generation of a new blank page which is left totally empty. Here's the MWE: ...
1
vote
1answer
28 views

How working position label longtable?

2 problem: How align "continued table" and \caption text in left? \raggedright not working in this situation. How delete empty line before enumerator? Source code: \documentclass{article} ...
0
votes
1answer
48 views

SAS to LaTeX: Environment longtable undefined

My general problem is that, after oh so many hours, I cannot find a way to bring SAS output into LaTeX. I have one way where SAS spits out a table using the sas package, where it gives you tables in ...
0
votes
1answer
29 views

Need help converting table to longtable

How convert the following table to longtable with the same setting. I have problem with enumerate and correct size row and {tabular} not working in longtable \documentclass{article} ...
0
votes
0answers
23 views

Longtable with different headers on different pages

I am compiling a longtable and would like my column headers to be repeated across multiple pages. However, my column headers change midway through the table. Therefore, is there a way of repeating ...
2
votes
1answer
21 views

pgfplotstable and longtable with caption is shown multiple times in tableslist

I'm visualizing a csv file using pgfplotstable and longtable as followed: \newcommand{\powerTable}[3]{ \pgfplotstabletypeset[ string type, col sep = comma, skip rows ...
0
votes
0answers
19 views

Extra \hline on bottom of a landscape page

I am getting an extra \hline on the bottom of a landscape page but can't to seem find where in my code. \newlength{\mtL} \setlength{\mtL}{.82\paperheight}% the next hsize ...
0
votes
0answers
13 views

Longtable vertical lines disappearing [duplicate]

Hi guys I'm having trouble with vertical lines in my longtable. Whatever margins I try for the columns all the vertical lines disappear or reappear. \setlength{\extrarowheight}{8pt} \begin{center} ...
0
votes
0answers
32 views

Single column table, spanning multiple pages, on two column document

As the title says, I would like to create a single column table, that spans multiple pages, on a two column document. On top of that, the table uses multicolumns. Below is my MWE: ...
4
votes
1answer
44 views

Longtable does not fit the page margins

I am trying to fit a long table within the page margins. I tryied to follow the suggestions provided to other users on the same topic, but nothing seems to work. Any help would be more than ...
1
vote
2answers
67 views

How can I align text of cell at center of rectangle?

I want to make a longtable and I want to align text at each cell of the first and the third columns at center of center of rectangle. For example Fisrt and 2 points as picture, but I cannot align. ...
3
votes
2answers
54 views

How can I convert a longtable into enumerate?

I have a longtable and this is my code \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{fourier} ...
0
votes
0answers
32 views

Is it possible to wrap a table around another table (or any float/text/minipage)?

Is it possible to wrap a table around another table (or any float/text/minipage)? I.e. the table width is adjusted so another thing indents the table. Imagine text wrapping a float, but instead of ...
1
vote
1answer
30 views

Long table - How can I shrink it without destroying the formatting and how can I wrap the titles of the columns?

I have this long table and I am struggling to find a way a) to wrap the titles of the 3rd and 4th column into two lines (Transmitted data that was unencrypted & Third party domains)and b) I ...
2
votes
0answers
43 views

longtable overwrites page number

In my thesis I need to display a lot of long tables for which I use the longtable environment. Most of the time it works perfectly, but sometimes for some reason it doesn't split the table and the ...
3
votes
2answers
27 views

Longtable - Caption too short

I'm using longtable. But the caption is too short that it splits up my 12 word caption into two lines centered, only 1/3 of the table width. I would like to show the caption in one line. Any advice? ...
1
vote
1answer
41 views

How do I include the word “Table” in the LoT for longtables?

I'm working on my thesis using a package provided by the University. When I compile my document, the LoT is displayed as follows: Do you know how can I include the word "Table" for the appendix C ...
1
vote
0answers
30 views

How to center a longtable in scrbook

During a thesis project (in an scrbook) I try to center a longtable with data and graphics, which is always misaligned. On the search for a solution I stumbled upon a longtable MWE, that worked ...
1
vote
1answer
26 views

Vertical alignment of attributes on long table

I have created a longtable of 4 columns. As shown below. I would like to have the attribute on the first column, in this case "Business" vertical (sideways)instead of horizontal. What is the easiest ...
0
votes
1answer
37 views

How to convert this long array into a longtable with four colums?

I have a long array \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} ...
2
votes
0answers
80 views

How to place multiple tablenotes on appropriate page with longtable?

I am trying to get footnotes (footnotes 2 and 3 in MWE) at the bottom of the table on the appropriate page with longtable. But with MWE I have provided I am able to get footnote only at the end of the ...
5
votes
1answer
86 views

inconsistent table number

I have the following problem: I placed two tables of the same kind following each other but the second table has inconsistent number: The first table has the number 2.1 (chapter 2, Nr. of the table 1) ...
2
votes
2answers
31 views

too big distance between the lines in a table with Arabic letters

I use the package semtrans in order to print Arabic letters in a Table in my document. My problem is that line spacing between two lines of Arabic letters (probably because of the used font) in the ...
3
votes
2answers
36 views

Help with longtable

I have this very long-table. I want to break it in two pages, specifically at Panel C - meaning that Panel C and Panel D should appear in a new page. I have tried to delete \begin{table} and replace ...
0
votes
1answer
54 views

Using \endhead is causing my table to not align

I attempting to use longtable to layout some tabular data. This works great: \begin{longtable}{l | l l | l} Year & To & From & Task \\ 2015 & Jan 8 & ...
1
vote
0answers
43 views

Problem in combination of longtable and stepcounter{rowcount}

I am making a longtable consisting of 3 columns: linenumber of the text in the table, column with a short abbreviation and a column with possible a lot of text. Since the third column contains a lot ...
4
votes
1answer
45 views

scrheadings and longtable not working together

I need pretty urgent help (thesis hits the printer in two days!) getting scrheadings and longtable working together. The problem is if I have scrheadings enabled, the longtable tables will not align ...
1
vote
0answers
48 views

R xtable and table width

I have to fit a table with many columns to the width of a page, using xtable and longtable environment. My R code is library(xtable) data <- matrix( data = 1000000000, ncol=14, nrow = 100) ...
0
votes
0answers
16 views

Longtable in pgfplotstable

I'm trying to get pgfplotstable in combination with a longtable to work. The data is read from a file "Errordata.dat". The file is saved as ANSI-formatted. 1,2,3,4,5,6,7,8,9 1,2,3,4,5,6,7,8,9 ...
6
votes
1answer
50 views

longtable extends unnecessarily to a second page

The following code displays what I think is a minor but annoying bug. The longtable shown extends to the second page, but there are no columns on the second page, so it is unnecessary to extend the ...
3
votes
2answers
109 views

Why does a loop fail to repeat when filling longtable contents?

The following works: \documentclass{article} \usepackage{longtable} \begin{document} \newcount\n \n=0 \begin{longtable}{ccc} \loop \ifnum\n<10 \advance\n by1 hello \repeat ...
2
votes
0answers
61 views

longtable with pgfplotstable - adding predefined rows and breaking manually

Based on this link pgfplotstable; longtable with caption and repeating header I wrote this MWE: \documentclass{article} \usepackage{longtable} \usepackage{booktabs} \usepackage{multirow} ...
1
vote
2answers
37 views

Spacing too tight between rows of a longtable, revtex4.1 document class

I am writing the supplemental material of a paper using the revtex4-1 document class, and I would like to include a long table of numbers that takes more than a page. I read the ReVTeX manual and ...
0
votes
0answers
38 views

How to use longtables in a beamer environment

I have a problem when I use the longtable package in a beamer environment. This is my code : \documentclass[12pt]{beamer} \documentclass[aspectratio=169]{beamer} \usepackage{graphicx} ...
0
votes
1answer
39 views

Using of \multirow with alignment in longtable

I've made a longtable and now try to add sells "lang1-2-3-4" like here: Could you please correct my code for longtable. \documentclass[a4paper,12pt]{article} \usepackage[T1,T2A]{fontenc} ...
1
vote
0answers
24 views

Set rowcolors to one specific longtable

I have several longtable defined in my tex file, and I have set alternate colors to the table with \rowcolors{2}{gray!5}{white} in the preamble of the file. The problem with this solution is that all ...
0
votes
1answer
35 views

Problem with the longtable width

How can I set the longtable width to be like the textwidth?. \begin{center} \begin{longtable}{@{}cccccccc@{}} \caption[Feasible triples for a highly variable Grid]{Materiales y medios de ...
0
votes
0answers
22 views

Cellpadding for longtable wanted

When using the tabular environment I used \renewcommand{\arraystretch}{2} in order to get a decent cell-padding. I now switched to longtable environment and there the command has no effect. Anyone ...
0
votes
0answers
19 views

How can I fill the entire page height with text from the longtable before spanning the row to a new page? [duplicate]

I have a long table which spans over a few pages. However, every time I insert a new row which can't fit the remaining height of the page, it automatically adds that row to a new page. My question is ...