Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using footnotes with moderncv class in LaTeX

Tags:

latex

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.

like image 835
GorillaPatch Avatar asked Sep 23 '10 14:09

GorillaPatch


People also ask

How do I create a custom footnote in LaTeX?

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.

How do you keep footnotes from breaking across pages in LaTeX?

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.


1 Answers

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.
like image 173
phimuemue Avatar answered Sep 24 '22 14:09

phimuemue