Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tabu uses wrong box with longtable 4.14 and newer. #26

Open
u-fischer opened this issue Jun 10, 2021 · 5 comments
Open

tabu uses wrong box with longtable 4.14 and newer. #26

u-fischer opened this issue Jun 10, 2021 · 5 comments

Comments

@u-fischer
Copy link

longtable has changed the internal box names, instead of \@ne is now uses \LT@gbox. tabu must be adapted accordingly

see also https://tex.stackexchange.com/questions/600724/dimension-too-large-after-recent-longtable-update

\documentclass{article}
\usepackage{longtable}
\usepackage{tabu}%
\makeatletter
\def\tabuendlongtrial{% 
    \LT@echunk  \global\setbox\LT@gbox \hbox{\unhbox\LT@gbox}\kern\wd\LT@gbox
                \LT@get@widths
}% 

\makeatother

\begin{document}
\begin{longtabu}  {llX}
a & b & c\\
\end{longtabu}
\end{document}
@Lenchik
Copy link

Lenchik commented Jun 27, 2021

Is there a solution with if/fi for this patch being in a preamble of document being comaptible with older compilers (like the one from TexLive 2018)? Just to have document compilable without errors with old and new compilers.

@FrankMittelbach
Copy link
Contributor

@Lenchik this issue has only been opened in case there is ever going to be a new maintainer for the package. The package is badly broken and I rather doubt that this will happen, so the only advice I can give you is not to use it. It is not as if it now has an issue, it had issues for a long time and they are just increasing. In my opinion it should be taken off the distributions.

@u-fischer
Copy link
Author

@Lenchik you can test for the date of a package with \@ifpackagelater. But as Frank wrote: much better is not to use tabu at all.

@TC-RAC
Copy link

TC-RAC commented Nov 8, 2022

Is there any good guidance anywhere of what to do if working with old documents that use tabu and how to update them to something that does work?

@u-fischer
Copy link
Author

@TC-RAC remove tabu and rework the tabulars. How depends on their layout. Often tabu isn't really needed and you can use tabular, in other cases try tabularray.

LSinev added a commit to LSinev/Russian-Phd-LaTeX-Dissertation-Template that referenced this issue Aug 4, 2024
tabu уже давно не поддерживают и всякие обновления то и дело ломают проекты с ним.
Примеры переделаны на tabularray пакет, который точно есть в TexLive 2023 и выше.

Tabularray was suggested at tabu-issues-for-future-maintainer/tabu#26 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants