Questions tagged [longtable]
74 questions
1
vote
1 answer
Combining longtable, booktabs, and xcolor in LaTex, layout problems
I am trying to create a nice-looking table over multiple pages in LaTeX. For that, I am using longtable to divide the table in different pages of the document, booktabs to give it a nicer look, and xcolor to change the way the table looks.
It's a…

jordimaggi
- 99
- 1
- 11
1
vote
1 answer
Figure (with caption) inside a longtable cell
I have a problem running on Latex. I have a huge longtable with an image inside each cell. Each image should have a counter and a caption. I have tried declaring the image as a figure (and it fails compiling) and also declaring it as minipage and…

Eva
- 21
- 3
1
vote
0 answers
Knitr chunk plots within a latex table - size issues
I am writing a report within R studio using the knitr package. I am trying to succinctly describe a list of variables and there inclusion in an analysis. In order to do this I am using the long table package within latex. I have inserted a chunk…

Mandy Moore
- 11
- 4
1
vote
1 answer
long table latex
I want to create a table as depicted in the picture. I have used the following code
\usepackage{tabulary}
\begin{document}
\begin{tabulary}{\linewidth}{LCL}
Pollutant & Description and sources & Health and environment effects \\
\hline
SO$_2$…

P.Chakytei
- 412
- 2
- 12
1
vote
0 answers
Latex Spanning a table horizontally over pages
I have a very wide table, which I like it to span horizontally through pages.
\documentclass[runnngheads]{book}
\usepackage{longtable}
\begin{document}
\begin{longtable}{*{25}c}
\hline
$a_1$ & $a_2$ & $a_3$ & $b_1$…

DrB
- 264
- 1
- 3
- 14
1
vote
0 answers
How to specify column alignment and width at the same time with xtable
Although the problem described in How to set both column width and text alignment in align argument of xtable? looks the same and solution looks promising I can't get this working.
---
output: pdf_document
header-includes:
-…

Jakub Mendys
- 21
- 4
1
vote
1 answer
Using the booktabs \midrule and with brackets
I am having trouble using \midrule in a latex longtable along with brackets. For example, here is my latex document…

TinyHeero
- 580
- 1
- 4
- 18
0
votes
0 answers
kable problem: 'longtable = T' and 'full_width = T' are required in my case but they seem to be incompatible
PROBLEM: How to knit/render in pdf a one column table, containing a continuous text and extending on a second page?
With the default "longtable = F", the table is truncated!
While specifying "longtable = T" the source doesn't compile!
The log…

Roberto Scotti
- 121
- 1
- 8
0
votes
0 answers
kable() function for long tables prints unnecessary lines when knitting with rmarkdown
I ran the following code in a R code chunk.
library(knitr)
library(kableExtra)
library(tidyverse)
long_dt <- rbind(mtcars, mtcars, mtcars)
kable(
long_dt,
format = "latex",
longtable = T,
booktabs = T,
caption = "Longtable"
)…

shani
- 217
- 1
- 8
0
votes
0 answers
R, address data in long-table for (gg)plot
Sorry, can't think of a better title... still learing a lot in R.
I would like to understand how to address "connected" data from a true long-table.
Providing code and data below.
My code:
library(ggplot2)
set.seed(1)
Create a dataframe df1, which…

Kevin Klipsch
- 25
- 4
0
votes
0 answers
How to determin the header height in a longtable?
The following example has rotated headers. The height of this header row is determined by the longest string, in this case the units in the last column.
Now, this code is generated in C#. In C# I could find out which string is the longest, before…

Erik
- 894
- 1
- 8
- 25
0
votes
0 answers
Change "Continued on next page" in df.to_latex / PYLATEX
Good afternoon. I would like to change the phrase "Continued on next page" from df.to_latex.
when running
import pylatex to pl
pl.NoEscape(dff1.to_latex(longtable=True, index=False, multicolumn=True, multirow=True,caption='Tabla de anexos'))
turns…

Andy Cáceres H
- 1
- 1
0
votes
1 answer
How to make a .fhx format table?
I appreciate it if someone can help me with this problem!
I have a large dataset of fire scars (data1), which I want to analyse with "burnr" package and make some graphs.
data1
year series rec_type
1926 tt_25_01 pith_year
2011 tt_25_01…

zac shakeri
- 3
- 2
0
votes
0 answers
Overleaf Easy LongTable
I'm trying to make a long table in overleaf to represent inclusion and exclusion criteria. I've used "longtblr" and set the parameters "colspec = {X[1.9]|X[6]|X[6]}, rowhead = 1, hlines,". I also tried the "landscape". But every time there're…

Arman Shaharia
- 1
- 1
0
votes
1 answer
convert longtable to sidewaystable in latex
I have a table below which I would like to fit in 1 page, I guess using sidewaystable may help, and additionally need to arrange the week range like below. Any help would be appreciated, many thanks in advance.
0 - <2 weeks
1 – 2-4 weeks
3 - >4…

Seyma Kalay
- 2,037
- 10
- 22