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.

Filter by
Sorted by
Tagged with
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 ...
Fantastic MsFox's user avatar
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|}{\...
Camilla Ghisolfi's user avatar
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 ...
PaulS's user avatar
  • 461
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} \...
PaulS's user avatar
  • 461
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 ...
PaulS's user avatar
  • 461
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 ...
Alex Raster's user avatar
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 ...
Valentina's user avatar
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 (...
oulenz's user avatar
  • 135
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 ...
Literary Locust's user avatar
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....
Nerd's user avatar
  • 9
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} &...
Ícaro Viterbre's user avatar
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}: \...
campa's user avatar
  • 28.3k
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=...
Jihyun's user avatar
  • 103
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 ...
Alicia's user avatar
  • 23
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} \...
Micha's user avatar
  • 2,849
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 ...
Rurri's user avatar
  • 23
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 ...
Adil's user avatar
  • 1
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{...
Unbuckle's user avatar
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 ...
Jo-Achna's user avatar
  • 491
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 ...
Zain's user avatar
  • 13
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 ...
Annie's user avatar
  • 93
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?
Annie's user avatar
  • 93
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} \...
Ezmo's user avatar
  • 3
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 ...
Reshmi Priyesh Jain's user avatar
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 ...
juliandeanmoran's user avatar
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 ...
Devanand Ullas's user avatar
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} ...
wxwuse's user avatar
  • 87
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? ...
Boushra Ali AL-Shehri's user avatar
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]{...
monika's user avatar
  • 127
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%"> ...
Ben Zelnick's user avatar
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 \...
Agente 156's user avatar
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 ...
Steven's user avatar
  • 317
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 \...
4212's user avatar
  • 31
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 ...
ioparttable's user avatar
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 ...
madcat09's user avatar
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 ...
Steven's user avatar
  • 317
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 ...
Lena Jarosch's user avatar
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{...
S4BVGW's user avatar
  • 1
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 ...
Abibo's user avatar
  • 65
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. ...
BernhardWebstudio's user avatar
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,...
Marck's user avatar
  • 147
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 ...
dtr43's user avatar
  • 53
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. ...
Benedikt's user avatar
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 ...
DevNoteHQ's user avatar
  • 101
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 ...
dtr43's user avatar
  • 53
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 ...
Unbuckle's user avatar
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 ...
Signe S's user avatar
  • 11
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\...
Kirti Rattan's user avatar
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: \...
ghxk's user avatar
  • 93
-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} & \...
ghxk's user avatar
  • 93

1
2 3 4 5
51