Skip to content

Latest texlive packages under Ubuntu 24.10 (Oracular Oriole) fail to compile std.tex #7576

Closed
@zaitseff

Description

@zaitseff

The latest texlive packages, version 2024.20240401, under Ubuntu 24.10 (Oracular Oriole) fail to compile std.tex. In particular, running the following sequence of commands stops with an error:

git clone https://github.com/cplusplus/draft.git
cd draft/source
make

Running that sequence under texlive 2024.20240401 gives:

... [output trimmed -- see attached log file]
) (./styles.tex) (./macros.tex
(/usr/share/texlive/texmf-dist/tex/latex/listings/lstlang1.sty)
(/usr/share/texlive/texmf-dist/tex/latex/listings/lstlang1.sty)
(/usr/share/texlive/texmf-dist/tex/latex/listings/lstmisc.sty)) (./tables.tex)
Started index file generalindex
Started index file grammarindex
Started index file headerindex
Started index file libraryindex
Started index file conceptindex
Started index file impldefindex
Writing glossary file xrefindex.glo 
Writing glossary file xrefdelta.glo 
(./std.aux)
isodate: babel.sty has been loaded
(/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
)

! LaTeX Error: Loading a class or package in a group.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.95 \begin{document}
                     
?

At this point, entering H and pressing Enter gives:

Classes and packages should only be loaded at the top level

I have not debugged this problem further at this time, although I will try to do so. A quick Internet search suggests that, with the newer version of texlive, \RequirePackage or \usepackage, or in this case \begin{document}, inside a \begingroup is what causes this error (see, for example, the first response to this question on StackExchange).

Attached is the std.log file after typing X to exit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions