I tried to compile an europecv document, but it fails with
(/usr/share/texmf-dist/tex/latex/kvoptions/kvoptions.sty))
! LaTeX hooks Error: Sorting rule for 'begindocument' hook applied too late.
(hooks) Try setting this rule earlier.
For immediate help type H <return>.
...
l.421 ...begindocument}{showkeys}{before}{nameref}
error. The strange thing is that I tried to put the modifications David Carlisle recommended, and in the europecv.cls file there are no line containing the incriminated command, nor the lines David said to being modded... Now I laugh in agony, frome where is this error coming, and when I applies
\AddToHook{begindocument/before}%
\RequirePackage{hyperref}%
}%
the error remains.
\documentclass{europecv} \begin{document} x \end{document}gives no error – David Carlisle May 20 '23 at 21:42