Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
2answers
44 views

Line break with longtable and multicolumn

I am trying to write up the following table. However, I cannot get a line break to work (needed for Branches and Results column's) and as such the table runs off the side of the page. My attempt is ...
1
vote
1answer
36 views

Superfluous headers and footers when using longtable in revtex4

There are two long tables in my LaTeX file: the first one should be supplied with headers and footers while the second one does not need such auxiliary lines. How to solve that the headers and ...
0
votes
0answers
32 views

Longtable - Changing Font Color of Header Row doesnt extend to all cells

I am using longtable package as most of the tables that I use tend to go on for multiple pages. What I want is now that the header row should be filled with blue colour and white text. The remainder ...
1
vote
2answers
35 views

dialog environment advise

I use longtable environment to make a dialog, like this below. I prefer it than the dialogue environment because of: the || lines at the left the style of the speaker's name (separate from the text) ...
1
vote
1answer
33 views

Use \scriptsize and shift a longtable to the left with revtex4

I have the following table: \documentclass[a4paper,preprint,aps, unsortedaddress]{revtex4} \usepackage[top=2.5cm,bottom=2.5cm, left=3.5cm,right=2.5cm]{...
0
votes
0answers
25 views

\LTleft, \LTright, and \scriptsize not working with revtex4 [duplicate]

I have the follwing table: \documentclass[a4paper,preprint,aps, unsortedaddress]{revtex4} \usepackage[top=2.5cm,bottom=2.5cm, left=3.5cm,right=2.5cm]{...
2
votes
1answer
48 views

Create a multi-page table without tabularx

I have create a multi-page table. Using tabularx, my attempt is as follows: \documentclass[a4paper,preprint,aps,unsortedaddress]{revtex4} \usepackage[top=2.5cm,bottom=2.5cm,left=3.5cm,right=2.5cm]{...
2
votes
2answers
60 views

How to solve text wrapping problem in longtable latex?

\documentclass[12pt]{article} \usepackage{longtable} \usepackage[landscape]{geometry} \usepackage{pdflscape} \begin{document} \begin{center} \begin{longtable}{|p{3cm}|p{6cm}|...
1
vote
0answers
28 views

Error while inserting the title in each column of the table

I have code for wherein I tried to insert the title for each column but I am getting an error. The error says: Missing control sequence inserted How to overcome this? \documentclass[...
0
votes
0answers
21 views

Issues with footnotes using wrapping parbox with longtable, threeparttable and tablenotes

I have an issue with footnote not showing up when I wrap the threeparttable/longtable with a parbox. If I remove the wrapping parbox from the code below, the footnote show up under the table, as I ...
0
votes
0answers
56 views

to insert a very long table (about 4 pages) in a two-column class

I have to insert a very long table in the tex file, for a two-column class, for example: \documentclass[5p]{elsarticle}. The problem is that: the longtable package does not work in this class (as it ...
1
vote
1answer
36 views

tabularx repeat headers at the start of each new page

I am trying to write a latex template for math dissertations for my university and I have gotten most of the formating built into the appropriate class file. However, one issue that I'm not sure how ...
0
votes
0answers
19 views

Bigfoot/Manyfoot in Longtable

I would like to include two types of footnotes inside a longtable-enviornment, however, the declared footnote is created but not shown as you can see in the given example; the rest seems working just ...
0
votes
0answers
27 views

longtable ignoring bottom margin

I came to a problem similar the the one posted at: Longtable and floats: wrong table breaks on pages with floats (part 2): There is even a solution posted at: https://www.latex-project.org/cgi-bin/...
0
votes
0answers
40 views

Macro with logic and longtable

I need to create a macro, like \newcommand, but with logic. The logic has to chose the table that must be created. For this I've found an useful package that is xparse. The problem is that this ...
5
votes
3answers
90 views

Problem with longtable and \\

The code is the following: \documentclass[a4paper,10pt]{article} \usepackage{longtable} \usepackage{tabularx} \newcolumntype{L}{>{\raggedleft}p{0.1\textwidth}} \newcolumntype{R}{p{0.80\textwidth}...
0
votes
0answers
31 views

There is an alternative for \afterpage?

I'm experiencing problems with my floats. Reading about it I found that \afterpage could be the responsible for that situation (answer that I read). I use \afterpage for long horizontal tables spread ...
1
vote
1answer
18 views

elsearticle harv not working with landscaped longtable

I have this very long and large table which I have compiled fine using normal article but today I just copied the whole tex to an elsearticle harv to submit to elsevier. Everything else works without ...
3
votes
1answer
38 views

longtable with caption has extra edge lines in tex4ht

When I compile this MWE in lualatex \documentclass[11pt]{article}% \usepackage{longtable} \begin{document} This is my long table \begin{longtable}{|c|c|} \caption{my caption}\\\hline A & B \...
3
votes
1answer
32 views

how to make tex4ht center a long table as it does with table?

when using \centering option in table, and then using either tabular or longtable then both come out centered in PDF as expected. But in tex4ht, only the tabular comes out centered in middle of the ...
1
vote
1answer
61 views

How to put table in full page when paper format is double column

I am using the double-column paper format, and I've two requirements as follows. First, I need my table to be spanned over the whole width of the document not just one column. Second, if a table is ...
2
votes
1answer
21 views

LaTex Skipping Figure Counting

I'm having trouble with the \label feature in figure environments. Initially, the code I was working with would label Figure 1 in Section 4 as Figure 41. I found this solution: https://stackoverflow....
0
votes
1answer
15 views

Column Limit on Long Table

Is there a limit to the number of columns longtable can handle? I keep getting errors when I try to input seven columns. Code below: \begin{filecontents*}{sample_data.csv} Col1,Col2,Col3,ColPct,...
0
votes
1answer
35 views

Problem with writing a table

Hi everyone I'm trying do write a table but I have some problem. Could you help me in order to fix it? This is my code: \documentclass[a4paper,12pt]{article}[12pt] \usepackage{amsbsy} \...
0
votes
1answer
23 views

Scaling output from stable output

print(xtable(x, type = "latex"), floating = FALSE, tabular.environment = "longtable", file = "/Path/Filename.tex") I am using the above code to output a table directly from R. I am using ...
4
votes
1answer
62 views

Longtable and tikz

I used a preamble for many months where tikz and longtable lived together without problems. From a few days, I think after last update, I have the problem that I have reproduced with the MWE I send. ...
2
votes
2answers
24 views

Specify columns format with redefineable command?

The users of my class might want to change the column format of a class-provided table. Convenient would be to do this by redefining a command. At latex.org I found a solution which works for the ...
2
votes
1answer
71 views

How to use longtable in latex?

I have a really long table and it does not fit the page. So, I want it to span on several pages. When I google about my issue, I came accross longtable. However, it seems like longtable do not support ...
1
vote
1answer
45 views

wrap text beside longtable

i have a question about longtables. Is it possible to get a text wrapped around a (right-situated) longtable? I am using the longtable package and this is my code: \begin{longtable}[r]{| r | r | r ...
0
votes
0answers
38 views

Landscape, multipage, threeparttable hellhole

firstly apologies for the untidiness of the code that is below, there is a lot of unnecessary things in there but kept them in just in case of any possible conflicts . Essentially I'm having a problem ...
3
votes
1answer
276 views

longtabu and color compatibility

After last update of TeX Live packages this code won't compile: \documentclass{article} \usepackage{longtable,tabu} \usepackage{color} \begin{document} \begin{longtabu} to \linewidth {llX} a &...
0
votes
1answer
20 views

Format issues in longtable (left alignment of cells plus different cell lenght)

I got a longtable with rows containing more or less information. I want to achieve a left alignment because of justification errors plus different lengths in row size (horizontally). My current ...
1
vote
1answer
34 views

Grouping table rows while having page breaks in a long table in Latex

I have a long table spread over a few pages, made of groups of rows. I use the packages longtable, booktabs, multirow and multicol, and have read their documentation, but could not find answers to my ...
1
vote
1answer
29 views

How to align contents in tabbing in longtable?

This is my code. \documentclass[a4paper, pdftex, english, 10.25pt]{scrartcl} \usepackage{times} \usepackage[top=1cm, bottom=1cm]{geometry} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \...
-1
votes
1answer
59 views

Creating a very complicated long table

I want to create a complicated long table as in the figure below. I want to create it as a long table so that the heading of the table goes to a new page. The complicity is due to the merge of row and ...
0
votes
0answers
59 views

How to align the contents in longtable?

I would like all the three lines of texts displayed by the pdf document generated by the following code to be aligned to the second line of text. \documentclass[a4paper, pdftex, english, 10.25pt]{...
3
votes
2answers
95 views

Issues with longtable environment

I have used this site with no problems to generate fast Latex code for small and medium size tables: https://www.tablesgenerator.com/ This time I'm trying to build a very long table which needs more ...
2
votes
1answer
34 views

Customisation of longtable caption

I have to change the caption style of a longtable to obtain the same style of a normal table; i.e. to get: , instead of: . In addition, I'd like to reduce the size of the longtable without ...
1
vote
2answers
63 views

Importing CSV as Long Table Not Working

I tried implementing the solution found here with multiple columns, but it is not working for me. It is just replicating the third column three times. What am I doing wrong? I know I wouldn't need a ...
1
vote
0answers
15 views

colortbl seems to break longtable [duplicate]

I've been using both colortbl and longtable together, on big documents, for years (the former to color rows, columns, or individual cells), and the latter to allow big table to break over pages. In ...
1
vote
2answers
60 views

How to fit a table to page width by changing font size?

\begin{table}[htbp] \scriptsize \centering \caption{Table} \begin{tabular}{ccccccccccccccccccccc} \toprule \multirow{2}{*}{Status} & \multicolumn{2}{c}{Jan} & \multicolumn{2}{c}{Feb} & \...
2
votes
1answer
55 views

How add more space in longtable

I'm using this code, \documentclass{article} \usepackage{longtable,lipsum} \begin{document} \begin{longtable}{|p{.5\textwidth}|p{.45\textwidth}|p{2em}|}\hline \lipsum[1]&&\\\hline \lipsum[2]&...
0
votes
0answers
5 views

Longtable-like headers/footers in a list based environment

The longtable package enables you to specify a first header, a recurrent header, a recurrent footer, and a last footer as part of the table. These elements help the user make sense of the table as it ...
0
votes
0answers
27 views

Longtable error: \adl@@cr …tempdima

I am adapting the longtable example from this tutorial, but I can't replicate it. Can I get help interpreting the following error? Undefined control sequence. \adl@@cr ...tempdima \xdef \adl@rowsL {...
1
vote
3answers
41 views

longtable spacing problems with minipages inside cells

I'm new in [tex.se] and I want to ask you how do I correct the problem I have with this snippet: \section{Latex meltdown my brain!!!} This longtable table shows a weird behaviour. If I don't use a ...
1
vote
2answers
28 views

Adding equal space after rows of varying heights in a table

I would like to make a table where I can add 1em of space after many (but not all) rows. The rows vary in height (because they contain content of varying lengths). I am attempting to add the extra ...
0
votes
2answers
25 views

Using longtable for figures: the figures overlap with horizontal and vertical lines

I have a huge number of plots that I want to insert in longtable to make a figure table, possibly ranging several pages. However I am not able to scale the figures inside each table cell in such a ...
2
votes
1answer
40 views

longtable package: Stretch height of last row on page “RTL document”

I took a look at this nice answer longtable package: Stretch height of last row on page and I need to apply this answer in my arabic document (right to left document). The problem that I can not get ...
0
votes
1answer
51 views

Multiple page table with specific size font and centred columns

I want to make a "Multiple page table with specific size font and centered columns" what I have tried until now is with longtabu, but when I set the size of the font it changes all the fonts for the ...
2
votes
1answer
42 views

Large Table in landscape mode not scaling to page

I am trying to fit the following table (from https://www.rand.org/content/dam/rand/pubs/research_reports/RR2200/RR2299/RAND_RR2299.pdf) in landscape mode to a whole page. However, the result is that ...