I have the following problem: I would like to use footnotes together with the moderncv documentclass. In my case it gives me an error if I try to compile the following example:
\documentclass[12pt, a4paper]{moderncv}
\moderncvtheme[grey]{classic}
\firstname{First}
\familyname{Last}
\begin{document}
\section{Start}
Hello\footnote{this is a footnote}
\end{document}
I get the following error:
! Undefined control sequence. \H@@footnotetext ...color@begingroup \@makefntext {\rule \z@ \footnotesep \i... l.9 Hello\footnote{this is a footnote}
I am not sure why, but obviously the moderncv documentclass is to blame for this error, if I change the documentclass to article it works.
I appreciate any help.
How Do You Add Footnotes in LaTeX? You can add footnotes in LaTeX using the command \footnote{your footnote text}. This footnote is also automatically numbered.
The easiest (and most brutal) thing they suggest is setting \interfootnotelinepenalty=10000 , which will prevent the footnote from breaking across pages. Alternatively, they suggest adjusting the space on the page (using \enlargethispage{<length>} ), to force the line with the footnote onto the next page.
You can try the footmisc
package. I.e. change the beginning to
\documentclass[12pt, a4paper]{moderncv}
\usepackage{footmisc} % enabling footnotes.
\moderncvtheme[grey]{classic}
% ... rest the same.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With