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.
2,505
questions
2
votes
0
answers
26
views
Longtable landscape: toprules exceed margin and caption is centered
My longtable in landscape mode has formatting problems: the rules (top/mid/bottom) exceed the margin and the caption is centred (but I want it to be left-aligned).
I haven't shortened the content of ...
0
votes
1
answer
42
views
How to set subcolumns of a column?
I'm making a table over different pages with the longtable package:
\begin{landscape}
\begin{longtable}{|c|c|c|c|c|c|c|}
\caption{Table noMCI.} \label{tab:long} \\
\hline
\multicolumn{1}{|c|}{\...
2
votes
1
answer
36
views
Subtable is not correctly vertically centered in a longtable
This question is a follow up of previous questions: Problem with vertical centering of cells of a same row of a longtable and Vertically centering subtable in cells of a main longtable.
I am using the ...
3
votes
2
answers
98
views
Problem with vertical centering of cells of a same row of a longtable
This question follows up a previous question: Vertically centering subtable in cells of a main longtable.
I am using the code:
\documentclass{article}
\usepackage{longtable}
\usepackage{array}
\...
3
votes
2
answers
60
views
Vertically centering subtable in cells of a main longtable
I am trying to vertically center the subtables in the cells of column 2:
As you can see, the subtable with a1, a2 is vertically top centered. Analogous situation regarding the cell bellow.
I would ...
1
vote
1
answer
20
views
Is there a less hacky way to add section summary info to this longtable etoc TOC?
For external reasons, I need to make an actually tabular local TOC for a single section, and be able to annotate those sections with summaries. I did it, but I'm not happy with the way I abused ...
1
vote
1
answer
36
views
Two parallel longtables, one on left pages, one on right pages
I have two very large, 3-page long longtables: table 1 with ancient texts and table 2 with modern translations. I would like to have them side-by-side on opposite pages, table 1 on left pages, table 2 ...
0
votes
2
answers
36
views
Prevent unnecessary longtable widows
When the remaining rows of a longtable fit exactly onto the current page, longtable will instead create a widow by printing a footer on the current page and moving the last row onto the next page (...
1
vote
1
answer
42
views
Resizing text inside longtable environment without resizing the caption
In my document there are several tables, of varying length, that added up take a lot of space. Therefore, I decided to reduce the size of the text in each table by using the \small command before the ...
0
votes
1
answer
44
views
Long Table Realignment Help [closed]
I have been able to make the long table, but right now it goes outside my pages. I can only see 2 full columns, a partial half of the 3rd column, and the 4th one is completely bleeding out of the page....
1
vote
1
answer
66
views
long and wide LaTeX table
\begin{table}[ht]
\centering
\caption{Mapping of kinetic models proposed in the literature for the enzymatic hydrolysis process.}
\begin{tabularx}{\textwidth}{l|l|l|l|c}
\toprule
\textbf{Objective} &...
2
votes
0
answers
40
views
Different behaviour of p-columns in longtable [duplicate]
Sometimes a macro might start with \par. Such a macro poses usually no problem in a p column. However, when an assignment precedes it, something seems to go wrong when using {longtable}:
\...
0
votes
2
answers
57
views
caption placement and reference
I am having a trouble with caption and reference of longtable
\documentclass[stu,12pt]{apa7}
\usepackage[american]{babel}
\usepackage{setspace}
\usepackage{longtable}
\usepackage[style=apa,sortcites=...
1
vote
3
answers
34
views
Managing Longtable with Single-Row Contents Exceeding One Page's Length and Being Truncated
I have a long table which I need to include in my thesis appendix.
However, I'm encountering an issue where, within certain rows, I have a list of genes that span over an entire page. Instead of these ...
0
votes
1
answer
22
views
Only one row in a multipage ltablex
I use a long table which goes over multiple pages. In some situations, only one row is on a separate page, but it should be fit on the page before.
Here is the MWE:
\documentclass{scrreprt}
\...
1
vote
1
answer
52
views
Long Table extended cross the paper margin
I am trying to insert a long word table on the appendix page, the table includes over 40 questions for the survey. However, I received something like this, screenshot below:
the code is something ...
0
votes
0
answers
37
views
How do I create a longtable like shown? [duplicate]
I'm working on my thesis and need to create a table like this.
Could anyone provide me with a template?
Currently, I have this
\begin{longtable}{|c|p{10cm}c|p{10cm}|c|p{10cm}c|p{10cm}}
\caption{A ...
0
votes
0
answers
33
views
Why am I getting Black Cells in when using longtables?
I have the following code:
\documentclass{article}
\usepackage{graphicx} % Required for inserting images
\usepackage{longtable, booktabs, colortbl}
\title{test}
\author{xyz}
\date{May 2023}
\begin{...
0
votes
1
answer
58
views
Linewidth in longtabu
I'm trying to understand why my Latex code is wrapping text in column 2 when I apply \linewidth. There is plenty of space for the name of the column. I simply want that the headers' names are written ...
0
votes
2
answers
61
views
LaTeX table does not extend to the next page
I have a long table that doesn't extend to the next page. I am using a journal template. I tried using longtable but it didn't work. I tried table, tabularx and longtable but it didn't work as it ...
0
votes
1
answer
28
views
The table can not be centered
I have a table in the thesis that is too long and has too much information, when I finished, the position of the table is to the right side of the page, not centred. How can I make it centre in the ...
0
votes
0
answers
21
views
How can I \ref different tables in the appendix?
I need to \ref first and second long table into different part of the main text, but when I type \ref, it shows only one {long}, the main text shows the same number of the table. What can I do?
0
votes
0
answers
34
views
How do i make Text in my longtable move away from borders
Basically I got this code:
\documentclass{article}
\setlength{\arrayrulewidth}{0.5mm}
\setlength{\tabcolsep}{18pt}
\renewcommand{\arraystretch}{2.5}
\usepackage{longtable}
\usepackage{array}
\...
0
votes
1
answer
23
views
longtable header continued overlaps with default page header
I have a default page header for all pages of my document. And the longtable headers which continue to the new pages overlap the default page header. Is there a way to make the continued longtable to ...
0
votes
0
answers
47
views
Error when iterating an RMarkdown using kableExtra::column_spec()
This is my best shot at a minimum example, but it's still a little long and convoluted.
I've created an RMarkdown that generates a PDF of the cars dataset using Pandoc and LaTeX. I want the width of ...
0
votes
0
answers
43
views
Deluxe table which extends to next page
I am trying to create a deluxetable that is also a long table (extends to next page). I have a large number of rows, close to 60-70 ones, and I want them to be in two pages. However, when I put all ...
1
vote
0
answers
40
views
how to set right align of "p{}" in table
I want to have a list of texts in a document, and I use the "longtable" package to make the list.
The codes as as following.
\documentclass{article}
\usepackage{longtable}
\begin{document}
...
0
votes
2
answers
62
views
How do I expand the table on the next page when the previous page is full?
I have a problem with the use of LaTeX tables because they are on more than one page, although the maximum number of pages is two. Moreover, the spacing between the rows is big. How can I adjust this? ...
0
votes
1
answer
35
views
caption below long table with specific spacing
I have to add caption below the long table and with 12pt empty space before and after the table caption. Help me in this regard.
\documentclass[10pt, a4paper, oneside]{article}
\usepackage[hidelinks]{...
0
votes
0
answers
21
views
How to auto-size longtable columns
I'm using longtable to break a table across multiple pages of my document. In HTML, I can do something like this to simplify the formatting of my table:
<table style="width: 100%">
...
0
votes
0
answers
37
views
Rowstyle in xltabular
I'm creating a newenvironment for my standard style of table, using xltabular (tabularx + longtable). Something like this:
\newenvironment{tab1}[3]{\xltabular{\textwidth}{#2}
\hline
\rowcolor{WB7} #3 \...
3
votes
1
answer
85
views
using xurl package with \href and a long \url within the longtable package
I am having trouble getting the href's to automatically wrap at the appropriate spot within my \longtable. I tried using the \ltablex package, but that made no difference. Any guidance is much ...
3
votes
2
answers
49
views
How to fix text displaying on top of table line
This is the problem that I want to fix
The text is displaying on top of table line,
This is the code the I am using (generated by https://www.tablesgenerator.com) :
\begin{table}[]
\centering
\...
1
vote
0
answers
21
views
Table is too big for iopart format
I am trying to make a large table in a document with the iopart class. The table is too long and wide to fit on a single page. I'd like some way to decrease the width, perhaps by decreasing the font ...
1
vote
0
answers
87
views
LaTeX Error: Environment longtable undefined
I've been trying to create long tables for my thesis. Everytime I compile I get errors that prevent the creation of a PDF view. Here's the code:
\begin{longtable}{lllllllll}
\caption{Table A.1: Poggio ...
0
votes
0
answers
42
views
Wrapping long url hyperlinks that contain no spaces within a table [duplicate]
For some reason, I have been unable to wrap an href within a table using the solutions presented here: Wrapping long lines that contain no spaces
And, here:
Forcing linebreaks in \url
Any suggestions ...
0
votes
0
answers
33
views
table of contents, long table
My issue is that in the table of contents it shows up as table table 4.1 instead of table 4.1. If anyone knows how to solve this issue, I'd be really thankful.
Here is my code, I had to delete the ...
0
votes
0
answers
31
views
Keep failing to have coloring in the table, longtable Latex
I want to make a color for my rows in different colors. But, when I test it, it keep giving me an error. I don't know what to solve. These are the packages that I used
\usepackage{amsmath}
\usepackage{...
0
votes
0
answers
35
views
What package or package combination to use for a multipage table with caption above the table and an automatically adjustable cell width?
Hi there my question is pretty much in the title. I have to create tables which are longer than one page. The caption needs to be above the table, it would also be a great extra option if i could ...
0
votes
1
answer
40
views
How to add a caption to a long tabularray table read by csvreader?
I am reading data for a supplementary info from different CSV files using the csvsimple package.
To display things nicely, I have written my own csvstyle, as all the CSV files have the same format.
...
1
vote
1
answer
52
views
Wide table, pictures and text issues, multicolumn, etc
I am currently writing an internship report, and trying to sum up some information in a wide table. So far, I got this (table is wider in my doc, but width is not an issue here) :
\documentclass[11pt,...
1
vote
1
answer
47
views
Puting the remainder of the rows in a long table in the next page(s) in IEEETran document class
I have a long table with around 25 rows and my documnet class in IEEETran. Unfortunately, some of the remainder of the rows are hidden in the bottom of the page and I need the remainder to be shown in ...
0
votes
0
answers
35
views
Error when using a custom caption with longtable in LaTeX
I'm having trouble defining a custom caption for a longtable environment in LaTeX. The custom caption works fine for normal tables, but when I try to use it with longtable, I encounter an error. ...
0
votes
1
answer
53
views
LaTeX csvreader/longtable: Put long narrow table multiple times on page
I have a very narrow table (2 columns) imported from a csv using csvreader that currently stretches over 3 pages.
This looks a bit weird, so I would like to have all three pages of the table on the ...
1
vote
1
answer
115
views
A long table in IEEETran class is divided in to two columns
I have a long table and the class of my document is IEEETran but by using the solution introduced in this question Hiding a lot of rows in a table in the down side of a page, my table is represented ...
0
votes
0
answers
56
views
Problems when making a longtable table [duplicate]
I am currently facing an issue with the longtable environment in LaTeX (using Overleaf). Specifically, I am getting the following error message: "Misplaced \noalign" when trying to compile ...
1
vote
2
answers
52
views
Longtable won't fit page width
I have this table that I want to fit over multiple pages, therefore longtable. Now it won't fit to the page width.
The table is pretty big...
The second and third column are coordinates and can't be ...
0
votes
1
answer
79
views
Unable to position table in Latex [closed]
I am having an issue with the positioning of the table in LaTex.
This is the code for the table:
\begin{tabular}
{|m{2cm}|m{2cm}|m{1.5cm}|l|}
\hline Title&Methodology&Dataset&Accuracy\...
0
votes
1
answer
27
views
Get vertical space in table that table lines are not covered by image
The table I created looks as following:
How can I get some horizontal space between the picture and the top of the cell such that not half of the line is covered by the picture?
This is my code:
\...
-1
votes
1
answer
61
views
How to center image in table column
I have created a long table over several pages. Here are the 2 first rows:
\begin{longtable}{| p{.05\textwidth} | p{.10\textwidth} | p{.35\textwidth} |p{.5\textwidth} |}
\hline
\textbf{Kt} & \...