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.

287 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers
778 views

Pandoc Latex: Overflow in Longtable

I use pandoc with some custom LaTeX template to generate a PDF Table. Hence, I cannot easily influence how Pandoc generates the table code, but instead I can change the configuration in the Latex ...
user avatar
  • 353
3 votes
0 answers
998 views

Using endfloat with both sidewaystable and longtable

I am attempting to use the endfloat package, whilst inputting tables from separate TeX files. I've managed to use the following in the preamble, in order to allow endfloat to process sidewaystables, ...
user avatar
3 votes
0 answers
400 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} \usepackage{...
user avatar
3 votes
0 answers
551 views

Word wrapping for long strings with no spaces in a long table

I have the following tex: \documentclass{article} \usepackage{color} \usepackage{longtable} \usepackage{dcolumn} \usepackage{graphicx} \newcolumntype{d}{D{.}{.}{2}} \begin{document} \centering {\...
user avatar
2 votes
0 answers
82 views

new command within table parameters

I used \newcommand to define a variable and I used that variable in one of the table parameters but that produced an error Here is my code: \documentclass[a4paper,11pt,english]{report} \usepackage{...
user avatar
  • 327
2 votes
0 answers
121 views

Long table can not starts in the same page with a two column text

How to start a long table in the same page with a two column text article? I have a long table within a two column text article. I want to draw a long table starting in the same page with the text or ...
user avatar
2 votes
0 answers
52 views

Howto break columns in mcexam and longtables

Friends! I want to typeset a mcexam (or longtable) in a multicol framework. Is it possible to break columns more properly, i.e. with some variant of \columnbreak? The only workaround I found is using ...
user avatar
2 votes
0 answers
62 views

Split a row with long text (listed items) on it into 2 rows automatically whenever goes through the next page

I need a table looks like . I know it seems impossible to break 1 row goes through to the next page, but this screenshot is taken from a LaTeX document, so maybe there's a possibility to do this. My ...
user avatar
2 votes
1 answer
236 views

environment to balance a table in a multicol

environment to balance a table in a multicol I'd like an environment that balances a table in a multicol environment. By this I mean I'd like to have potentially long tabular-like data that ...
user avatar
2 votes
0 answers
327 views

Set table headings to bold with latex (eisvogel template)

I'm having trouble figuring out how to set the table headings to bold when using the eisvogel.tex template file. I suspect it's a longtable setting, but I've been unable to find out which parameter to ...
user avatar
  • 121
2 votes
0 answers
65 views

Multipage tabularx in threeparttable environment

I have the problem that tables that are larger than one page are not properly split but just overlap the first page. I use tabularx with ltablex what works fine on its own but as soon as I wrap the ...
user avatar
  • 319
2 votes
0 answers
191 views

Table margin, white space problem and position problem

Table margin problem, extra space is appear in the margin of table (see landscape table 3), also table position is wrongly appearing(I have place the second table in last but it appears as second also ...
user avatar
  • 299
2 votes
0 answers
144 views

problems with title spacing in a longtable only section

Consider the following MWE, where I use the titlesec package to add negative spacing before a section heading. (I've exaggerated the negative space for effect). It works as expected in general, except ...
user avatar
  • 21
2 votes
0 answers
103 views

Using longtable in a multicols environment gives improper break on first page

I have taken a look at a number of questions about using longtable inside a multicols environment, particularly this one, where a multicolslongtable environment was defined. Note I am not nesting ...
user avatar
  • 171
2 votes
0 answers
227 views

How to control table page breaking using \longtabu, \multirow, colortbl and \hhline

I have a probably quite specific LaTeX problem using tables, due to the needed specification of the table, which are (mainly): I need support for multiple pages I need a lot of multicolumns I need ...
user avatar
  • 121
2 votes
0 answers
320 views

Pagebreak (newpage) at the end of the table with Longtable

I'm using a Longtable (and Longtabu) inside tcolorbox, but longtable generates a pagebreak (newpage) at the end of the table. Everything is perfect. There are no errors. LaTeX-Result: 0 Error(s) in (...
user avatar
2 votes
0 answers
634 views

Longtable and \endlastfoot question

Is there any way to force longtable environment to put at least one "regular" (data) line on new page (i.e. between table \endhead and \endlastfoot)?? There is MWE describing (unwanted) situation: \...
user avatar
2 votes
0 answers
174 views

how to avoid overlapping the bottom margin when combining tables and longtables

In a document I maintain, one of our tables was discovered to be overlapping with the bottom margin. TeX did not produce any error or warning indicating that there was a problem. The original case is ...
user avatar
2 votes
0 answers
273 views

Geometry: strange behaviour after \restoregeometry in afterpage environment (and longtable)

I have some strange problem tying place a "fake float" with large tables. Here is a MWE: \documentclass[twoside, a4paper]{scrbook} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{...
user avatar
  • 305
2 votes
0 answers
147 views

change line spacing/spanning in table within multirow

I usually use \begin{spacing}{x} to change the line spacing in the text, however, it does not work in the header of longtable, is there any solution? Another question is that, I use |m{16pt} @array ...
user avatar
  • 21
2 votes
0 answers
662 views

Is it possible for a multirow cell to be split across pages when using longtable?

I am using a longtable for a table that spans multiple pages. To my limited understanding, cells cannot be split across pages. However, I was wondering if it's possible for a multirow cell to be split ...
user avatar
2 votes
0 answers
549 views

How to break tablenotes (page break) in longtable with threeparttablex?

How can I break my TableNotes in ThreePartTable (it is a landscape table)? \documentclass[a4paper]{article} \usepackage[english]{babel} \usepackage[top=2.975cm, bottom=2.975cm, left=2.975cm, right=...
user avatar
  • 21
2 votes
0 answers
504 views

longtabu bottom caption too close

I want to add the longtabu caption bottom of the table. I know this is not good. But I was told to do so. When I do it as in the code sample, the caption comes too close to the table. But after the ...
user avatar
  • 141
2 votes
0 answers
210 views

longtable counter

please forgive me if this has already been answered, but i could not seem to find a resolution on any of the boards. i have a longtable that spans multiple pages. I would like to add a footnote at ...
user avatar
  • 141
1 vote
0 answers
38 views

How do I read a LaTeX dataset?

I want to access the data from a published article (Coetzee, Jenny, et al. "Depression and Post Traumatic Stress amongst female sex workers in Soweto, South Africa: A cross sectional, respondent ...
user avatar
  • 11
1 vote
1 answer
36 views

Extra alignment tab has been changed to \cr and cannot see any extra alignment tabs - the output is wrong

I am doing this long table in a landscape environment with wrapped text. Everything works fine for the first data row in the table but once I start adding the second row, I get the error "extra ...
user avatar
  • 11
1 vote
1 answer
29 views

Splitting a row in long table in latex

I was trying to insert a table, but as the table is very long, I used the longtable command. But there is a tiny space at the end of every page. Is there any way to split a single cell, thus utilizing ...
user avatar
1 vote
0 answers
22 views

How can I divide the landscape oriented page into 2 rows and add \longtable each?

I want to divide the landscape-oriented page into two equal rows. And then I want to add \longtable to each row and will continue at the same rows for a few pages. Is this possible?
user avatar
  • 33
1 vote
1 answer
71 views

I am trying to create a descriptive table using Latex, Facing this difficulty while trying to align the table

Here is the code written for the same, I've also attached the image of the output. Please suggest the necessary changes. \documentclass[landscape, 12pt]{article} \usepackage[table, svgnames, ...
user avatar
1 vote
1 answer
61 views

How can I make longtable in subtable?

How can I embed longtable in subtable? If I use like this, longtable does not work. \begin{subtable}{\linewidth} \caption{aa} \begin{longtable}[c]{@{}ccccccc@{}} ... \end{longtable} \end{subtable}
user avatar
1 vote
0 answers
73 views

Which one is better, longtable package or xltabular package?

Which one is better, longtable package and xltabular package? And if I use longtable package, should I use longtable for all tables or use just table package for not long table and use longtable ...
user avatar
1 vote
0 answers
98 views

Footnote overlapping with page number

I found a similar question in the forums but I think my case is a bit different. I'm using the geometry and fancyhdr packages to write my thesis. There is a place where I have to insert a long table (...
user avatar
  • 11
1 vote
0 answers
51 views

Repeating top rows on every page except for one page?

Is there a way to repeat every row on each page except for one page in a table? I checked this post How to repeat top rows (column headings) on every page and this answer https://tex.stackexchange.com/...
user avatar
  • 11
1 vote
0 answers
102 views

Ignored endhead/endfoot when using longtable with caption-package

If I use longtable and the caption-package it sometimes happens, that \endhead and \endfoot are ignored if the table breaks. If I don't load the caption-package it works as intended. Does someone know ...
user avatar
1 vote
0 answers
79 views

How to prevent a long table with \hline from starting on a newpage when content size grows?

TL;DR - I want to know how I can prevent the longtable with hline going to the next page entirely when there isn't enough content space. I've decided to write my dissertation at college using latex. ...
user avatar
1 vote
0 answers
86 views

Redefining questions environment in exam to use longtable

I am trying to redefine the questions environment and take each question and put it inside a longtable environment so that the first column will have the question number, and the middle will have the ...
user avatar
  • 1,874
1 vote
0 answers
85 views

How do I come up with a LoT when using longtable?

Note from Paulo: I translated the question from Portuguese to English and did some retagging. Some rewording was done, but the general idea (and code) remains the same. You can still find the original ...
user avatar
1 vote
0 answers
45 views

table only automatically breaks multiple words

When creating a custom glossary (nomenclature) with a longtable, the system only uses automatic word braking for cells with more than one word. The column is a p{...}-column and it works flawlessly in ...
user avatar
1 vote
0 answers
54 views

Table that may go to more than 1 pages

I have done many changes from the very beginning till the end and then with the help of another person here I have achieved the result that I wish, let's say more or less. In trial and error, I got ...
user avatar
  • 23
1 vote
0 answers
36 views

Stop figures/tables being inserted between the rows of a multipage longtable

I have to include multipage tables in my appendix. I've been using the longtable package, but I've noticed that Latex inserts figures and/or tables in between the rows of a longtable, as shown in the ...
user avatar
1 vote
0 answers
89 views

Can I change font-family only for some text in longtable?

From this longtable: \begingroup \setlength{\LTleft}{-20cm plus -1fill} \setlength{\LTright}{\LTleft} \begin{small} \begin{longtable}{ |p{1cm}|p{5cm}|p{7cm}| } \caption{Tabel Pustaka ...
user avatar
1 vote
0 answers
30 views

Horribly huge table, how to break it up and distribute it along pages

I've got a table which is basically too big in every respect to fit on a single page. It is roughly 10x9 cells containing varying amount of text. Hence I have to use p{} environment to achieve some ...
user avatar
  • 123
1 vote
0 answers
184 views

Longtable Caption Error in Overleaf- Package ltCaption error: Not allowed in longtable* environment

I'm trying to create a longtable in Latex and am using Overleaf as my tool. My table prints fine, except for the caption. I went through past solutions offered to similar questions and followed the ...
user avatar
1 vote
2 answers
107 views

portrait page with section title, and "landscaped longtable"

I have the following landscaped longtable under a section: \documentclass{article} \usepackage{longtable} \usepackage{arydshln} \usepackage{pdflscape} \begin{document} \section{Landscaped longtable ...
user avatar
1 vote
0 answers
46 views

How to set exact spacing in longtable?

I want to make the following table with the text in the most left column is centered (red dotted line) as follows: My current work is as follows: \documentclass{article} \usepackage{longtable,...
user avatar
1 vote
0 answers
132 views

Put a table* at the exact location and span across two columns

I am using IEEE format which splits a page into two columns. I want to put a table at the exact location while it is too long so it has to span across two columns. The layout should be like this: \...
user avatar
1 vote
0 answers
36 views

longtable makes scrartcl collide with footer after float

It seems like having a longtable on the same page as a float that has moved there causes the length calculation to bail out so that the text covers the footer. MWE: \documentclass{scrartcl} \...
user avatar
  • 146
1 vote
0 answers
2k views

Tables converted from markdown to pdf via pandoc puts an unnecessary pagebreak before them

I have a project that converts Markdown files into PDF, using pandoc and a LaTeX PDF template. I'm having a strange issue with the tables. For very few cases (something like 2 in 200 documents), the ...
user avatar
1 vote
0 answers
42 views

environment fails on import of certain packages (longtable / multicol)

I have en environment that fails if I add any of these calls to the preamble: \usepackage{pgfornament} \usepackage{tikzsymbols} \usepackage{xcolor} \usepackage{tikz} \hypersetup{colorlinks={true}} ...
user avatar
1 vote
0 answers
44 views

Why is my longtable being treated like a figure?

I am using longtable for a multi-page table in an Appendix of a paper. I was able to get the table onto multiple pages and am content generally with how that turned out... Unfortunately, my table is ...
user avatar

1
2 3 4 5 6