kableExtra icon indicating copy to clipboard operation
kableExtra copied to clipboard

Compiling pdf in Rmarkdown with kableExtra full_width = T gives ! Dimension too large error with TeX Live 2021

Open martinschaffhauser opened this issue 3 years ago • 4 comments

Setting full_width = T in the kable function is giving the following error message when knitting the document with pdfTeX Version 3.141592653-2.6-1.40.22 (TeX Live 2021) installed:

! Dimension too large.
\LT@max@sel #1#2->{\ifdim #2=\wd \tw@ 
                                      #1\else \number \c@LT@chunks \fi }{\th...
l.218 \end{longtabu}

Having pdfTeX 3.14159265-2.6-1.40.21 (TeX Live 2020) installed, the issue does not exist.

martinschaffhauser avatar Jun 09 '21 11:06 martinschaffhauser

the tabu package is broken and unmaintained. It is recommended not to use it. See the readme here https://github.com/tabu-issues-for-future-maintainer/tabu

u-fischer avatar Jun 10 '21 15:06 u-fischer

As it impacts kableExtra, does this suggest that full_width should not be used, or will not be provided in the future? I guess I'm unclear on what guidance is being given to the OP?

wphampton avatar Jun 23 '21 12:06 wphampton

Upstream issue: https://github.com/tabu-issues-for-future-maintainer/tabu/issues/27.

@u-fischer: What's a good alternative to tabu, one that supports full-width tables spanning multiple pages?

krlmlr avatar Oct 06 '21 14:10 krlmlr

Just ran into this issue when I tried to recompile my PhD thesis from a couple of years ago and the longtable functionality was broken.

Seems the tabularray package is the new and maintained alternative?

ulyngs avatar Jun 09 '22 15:06 ulyngs

Any news of a workaround?

eeholmes avatar Mar 19 '23 00:03 eeholmes

Bumping this, when longtable = TRUE and full_width = TRUE, I keep getting the error

! Dimension too large. \LT@max@sel #1#2->{\ifdim #2=\wd \tw@ #1\else \number \c@LT@chunks \fi }{\th... l.376 \end{longtabu}

tjbrailey avatar May 20 '23 09:05 tjbrailey

Thanks for the report. We know that tabu is broken beyond repair (and unmaintained). I will soon propose a solution (hopefully it gets accepted; not sure yet).

In any case, since there is no actionable information here, and no reproducible example, I will close this to clean up the issue tracker.

vincentarelbundock avatar Dec 12 '23 02:12 vincentarelbundock