TransWikia.com

catoptions/menukeys packages compilation error

TeX - LaTeX Asked by ejazz on February 18, 2021

Before an update of TeXLive distribution, I used without problem the menukeys package. Since the update (a couple of days), the results are correct (PDF) but the following compilation error occurs (PDFLaTeX and LuaLaTeX):

 ! Extra endgroup.
document ->endgroup 
    let BeforeStartOfDocument @firstofone cpt@beforestartdoc let BeforeStartOfDocument @notprerr gundefcs cpt@beforestartdoc gdef cpt@docstarted {}begingroup UseOneTimeHook {begindocument/before}@kernel@after@begindocum...
l.11 begin{document}

Tracing back to the error with a MWE, it seems that the catoptions package induces the issue. The fact that this package has not been updated for several years is disturbing…

From where this issue may be coming from ?

MWE

documentclass[10pt]{article}
usepackage[a4paper,margin=1in]{geometry}
%usepackage{menukeys}% Compilation error
usepackage{catoptions}% Same compilation error

begin{document}

section{Menukeys test}

Where is the issue ? %menu{File>New File}

end{document}

2 Answers

catoptions is incompatible with a lot of latex code and finally does not work at all in the current latex release. Until it is updated you can roll back the changes as follows

RequirePackage[2020-02-02]{latexrelease}
documentclass[10pt]{article}
usepackage[a4paper,margin=1in]{geometry}
%usepackage{menukeys}% Compilation error
usepackage{catoptions}% Same compilation error

begin{document}

section{Menukeys test}

Where is the issue ? %menu{File>New File}

end{document}

Answered by David Carlisle on February 18, 2021

EDIT: As pointed out by ejazz, the below is merely a workaround.

I reverted with tlmgr by doing

$ tlmgr restore latex
Available backups for latex: 53958 (2020-10-08 13:20)
$ tlmgr restore latex 53958

and now I can compile documents using menukeys again without any error.

Answered by toromtomtom on February 18, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP