gsilano / EuropeCV

TeX code associated to the EuropeCV CTAN repository, https://ctan.org/pkg/europecv
LaTeX Project Public License v1.3c
51 stars 18 forks source link

LaTeX hooks Error #38

Closed matteofg closed 4 months ago

matteofg commented 4 months ago

Hi, on GuIT (italian TUG's forum) there is a report of an error message.

Below a mwe:

\documentclass{europecv}
\begin{document}
\begin{europecv}
\end{europecv}
\end{document}

Below the error message on console:

! LaTeX hooks Error: Sorting rule for 'begindocument' hook applied too late.
(hooks)              Try setting this rule earlier.

For immediate help type H <return>.
 ...                                              

l.360 ...begindocument}{showkeys}{before}{nameref}

l.360 refers to nameref.sty file.

welcome[bot] commented 4 months ago

Thanks for opening your first issue here! Make sure that no other issues on the same topic have already been opened!

gsilano commented 4 months ago

Hi @matteofg! Thanks for pointing out this issue. Could you share the LaTeX code with me so I can check the problem?

matteofg commented 4 months ago

Honestly, I wouldn't know what else to share... the mwe above generates the error, without adding more code. If necessary you could take part on GuIT, so the user who opened the issue can give more information.

FYI, the problem occurs with all TeX engines (pdfLaTeX, xeLaTeX, luaLaTeX). I have been typesetting via the MacTeX-2024 Distribution.

matteofg commented 4 months ago

Below a mwe:

\documentclass{europecv}
\begin{document}
\begin{europecv}
\end{europecv}
\end{document}

Below the log file:

This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024) (preloaded format=pdflatex 2024.5.3)  6 MAY 2024 08:56
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**prova.tex
(./prova.tex
LaTeX2e <2023-11-01> patch level 1
L3 programming layer <2024-04-11>
(/usr/local/texlive/2024/texmf-dist/tex/latex/europecv/europecv.cls
Document Class: europecv 08/03/2022 (Unicode TeX detection) European curriculum
 vitae class
\c@FootNoteCounter=\count189
\c@ConferencePublications=\count190
\c@BookChapterPublications=\count191
\c@ReferredJournalsPublications=\count192
\c@Workshops=\count193
\c@Posters=\count194
\c@ResearchProjects=\count195
\c@Awards=\count196
(/usr/local/texlive/2024/texmf-dist/tex/latex/base/article.cls
Document Class: article 2023/05/17 v1.4n Standard LaTeX document class
(/usr/local/texlive/2024/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2023/05/17 v1.4n Standard LaTeX file (size option)
)
\c@part=\count197
\c@section=\count198
\c@subsection=\count199
\c@subsubsection=\count266
\c@paragraph=\count267
\c@subparagraph=\count268
\c@figure=\count269
\c@table=\count270
\abovecaptionskip=\skip48
\belowcaptionskip=\skip49
\bibindent=\dimen140
)
(/usr/local/texlive/2024/texmf-dist/tex/latex/tools/array.sty
Package: array 2023/10/16 v2.5g Tabular extension package (FMi)
\col@sep=\dimen141
\ar@mcellbox=\box51
\extrarowheight=\dimen142
\NC@list=\toks17
\extratabsurround=\skip50
\backup@length=\skip51
\ar@cellbox=\box52
)
(/usr/local/texlive/2024/texmf-dist/tex/latex/tools/longtable.sty
Package: longtable 2023-11-01 v4.19 Multi-page Table package (DPC)
\LTleft=\skip52
\LTright=\skip53
\LTpre=\skip54
\LTpost=\skip55
\LTchunksize=\count271
\LTcapwidth=\dimen143
\LT@head=\box53
\LT@firsthead=\box54
\LT@foot=\box55
\LT@lastfoot=\box56
\LT@gbox=\box57
\LT@cols=\count272
\LT@rows=\count273
\c@LT@tables=\count274
\c@LT@chunks=\count275
\LT@p@ftn=\toks18
)
(/usr/local/texlive/2024/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty
Package: fancyhdr 2024/04/23 v4.2 Extensive control of page headers and footers

\f@nch@headwidth=\skip56
\f@nch@O@elh=\skip57
\f@nch@O@erh=\skip58
\f@nch@O@olh=\skip59
\f@nch@O@orh=\skip60
\f@nch@O@elf=\skip61
\f@nch@O@erf=\skip62
\f@nch@O@olf=\skip63
\f@nch@O@orf=\skip64
)
\ecv@langparwidth=\skip65
\ecv@rulewidth=\skip66
\ecv@colsep=\skip67
\ecv@leftcolwidth=\skip68
\ecv@rightcolwidth=\skip69
\ecv@extrarowheight=\skip70
\ecv@flagwidth=\skip71
\ecv@logowidth=\skip72
\ecv@logooffset=\skip73
)
(/usr/local/texlive/2024/texmf-dist/tex/latex/europecv/ecven.def
File: ecven.def europecv English definitions
)
(/usr/local/texlive/2024/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def
File: l3backend-pdftex.def 2024-04-11 L3 backend support: PDF output (pdfTeX)
\l__color_backend_stack_int=\count276
\l__pdf_internal_box=\box58
)
No file prova.aux.
\openout1 = `prova.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for TS1/cmr/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
(/usr/local/texlive/2024/texmf-dist/tex/latex/etoolbox/etoolbox.sty
Package: etoolbox 2020/10/05 v2.5k e-TeX tools for LaTeX (JAW)
\etb@tempcnta=\count277
)
(/usr/local/texlive/2024/texmf-dist/tex/latex/hyperref/hyperref.sty
Package: hyperref 2024-01-20 v7.01h Hypertext links for LaTeX

(/usr/local/texlive/2024/texmf-dist/tex/generic/iftex/iftex.sty
Package: iftex 2022/02/03 v1.0f TeX engine tests
)
(/usr/local/texlive/2024/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2022/05/29 v1.15 key=value parser (DPC)
\KV@toks@=\toks19
)
(/usr/local/texlive/2024/texmf-dist/tex/latex/kvsetkeys/kvsetkeys.sty
Package: kvsetkeys 2022-10-05 v1.19 Key value parser (HO)
)
(/usr/local/texlive/2024/texmf-dist/tex/generic/kvdefinekeys/kvdefinekeys.sty
Package: kvdefinekeys 2019-12-19 v1.6 Define keys (HO)
)
(/usr/local/texlive/2024/texmf-dist/tex/generic/pdfescape/pdfescape.sty
Package: pdfescape 2019/12/09 v1.15 Implements pdfTeX's escape features (HO)

(/usr/local/texlive/2024/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty
Package: ltxcmds 2023-12-04 v1.26 LaTeX kernel commands for general use (HO)
)
(/usr/local/texlive/2024/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty
Package: pdftexcmds 2020-06-27 v0.33 Utility functions of pdfTeX for LuaTeX (HO
)

(/usr/local/texlive/2024/texmf-dist/tex/generic/infwarerr/infwarerr.sty
Package: infwarerr 2019/12/03 v1.5 Providing info/warning/error messages (HO)
)
Package pdftexcmds Info: \pdf@primitive is available.
Package pdftexcmds Info: \pdf@ifprimitive is available.
Package pdftexcmds Info: \pdfdraftmode found.
))
(/usr/local/texlive/2024/texmf-dist/tex/latex/hycolor/hycolor.sty
Package: hycolor 2020-01-27 v1.10 Color options for hyperref/bookmark (HO)
)
(/usr/local/texlive/2024/texmf-dist/tex/latex/auxhook/auxhook.sty
Package: auxhook 2019-12-17 v1.6 Hooks for auxiliary files (HO)
)
(/usr/local/texlive/2024/texmf-dist/tex/latex/hyperref/nameref.sty
Package: nameref 2023-11-26 v2.56 Cross-referencing by name of section

(/usr/local/texlive/2024/texmf-dist/tex/latex/refcount/refcount.sty
Package: refcount 2019/12/15 v3.6 Data extraction from label references (HO)
)
(/usr/local/texlive/2024/texmf-dist/tex/generic/gettitlestring/gettitlestring.s
ty
Package: gettitlestring 2019/12/15 v1.6 Cleanup title references (HO)
 (/usr/local/texlive/2024/texmf-dist/tex/latex/kvoptions/kvoptions.sty
Package: kvoptions 2022-06-15 v3.15 Key value format for package options (HO)
))
\c@section@level=\count278

! LaTeX hooks Error: Sorting rule for 'begindocument' hook applied too late.
(hooks)              Try setting this rule earlier.

For immediate help type H <return>.
 ...                                              

l.360 ...begindocument}{showkeys}{before}{nameref}

Here is how much of TeX's memory you used:
 2334 strings out of 474050
 39619 string characters out of 5742264
 1925751 words of memory out of 5000000
 24766 multiletter control sequences out of 15000+600000
 558069 words of font info for 36 fonts, out of 8000000 for 9000
 1141 hyphenation exceptions out of 8191
 77i,0n,79p,247b,42s stack positions out of 10000i,1000n,20000p,200000b,200000s

!  ==> Fatal error occurred, no output PDF file produced!
gsilano commented 4 months ago

Hi there! After investigating the issue, it seems that the problem stems from the empty document. If you attempt to compile any of the templates provided in the repository, the CV builds successfully. Therefore, I highly recommend starting from one of these templates and customizing it according to your specific needs.

matteofg commented 4 months ago

Okay, thank you for checking