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}
catoptionsis broken in the new LaTeX kernel because it does some heavy patching of internal commands. The author was already contacted, but no response so far – Phelype Oleinik Oct 08 '20 at 12:55menukeysauthor has been notified some time ago too, and there is also an issue in the github: https://github.com/tweh/menukeys/issues/59 – Ulrike Fischer Oct 08 '20 at 12:59