devnull-cz / unix-linux-prog-in-c

Unix/Linux Programming in C course materials
https://devnull-cz.github.io/unix-linux-prog-in-c/
Other
10 stars 2 forks source link

build fails with new Latex due to extra \endgroup #48

Closed vladak closed 3 years ago

vladak commented 3 years ago

When building with pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2021 Gentoo Linux) (preloaded format=pdflatex) / LaTeX2e <2020-10-01> patch level 4 / L3 programming layer <2021-02-18>, the build fails with:

(/usr/share/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)))
(/usr/share/texmf-dist/tex/latex/upquote/upquote.sty)
! Extra \endgroup.
\document ->\endgroup 
                      \the \before@document \begingroup \UseOneTimeHook {beg...
l.156 \begin{document}

Looking for \endgroup, it can be found in the pstex images under img/tex directory and also in xcomment.tex.

vladak commented 3 years ago

I checked that the xcomment files (.sty, .tex) bundled in the repo match the latest versions on https://www.ctan.org/tex-archive/macros/generic/xcomment

vladak commented 3 years ago

I minimized common.tex to bare minimum and the problem is still there. Using a trivial document this seems like a problem in TeX Live itself: https://tex.stackexchange.com/questions/618066/extra-endgroup-with-trivial-document-using-tex-live-2021

vladak commented 3 years ago

Building with pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=pdflatex) works fine.

vladak commented 3 years ago

Filed https://bugs.gentoo.org/816816