0

In a moderncv document, I get "Undefined control sequence" when I use longfbox:

\documentclass{moderncv}
\usepackage{longfbox}

\name{First}{Last} \begin{document} Lorem \end{document}

The output seems to be generated OK, but LaTeX throws an error about @makefntext:

/usr/share/texlive/texmf-dist/tex/latex/mdwtools/footnote.sty:170: Undefined control sequence.
l.170 \expandafter\@tempa\@makefntext
                                     \@@\@@@

I already checked Error with longfbox package and Using footnotes with moderncv class in LaTeX, but those seems to be different issues.

quazgar
  • 1,273
  • 1
    it is the same as in your second link: the package expects some setup for footnotes that the class doesn't provide. Try if it works if you load footmisc. – Ulrike Fischer Sep 19 '23 at 10:52
  • You are right. I tried it before, but missed that the order matters of course. – quazgar Sep 19 '23 at 11:17

1 Answers1

1

Kudos to Ulrike-Fischer: adding footmisc before longfbox works as mentioned in Using footnotes with moderncv class in LaTeX:

\documentclass{moderncv}
\usepackage{footmisc}  % Insert this usepackage before longfbox
\usepackage{longfbox}

\name{First}{Last} \begin{document} Lorem \end{document}

quazgar
  • 1,273