在LaTeX中使用moderncv类的脚注

17

我有以下问题:我想要在现代CV文档类中使用脚注。在我的情况下,如果我尝试编译以下示例,则会出现错误:

\documentclass[12pt, a4paper]{moderncv}
\moderncvtheme[grey]{classic}

\firstname{First}
\familyname{Last}

\begin{document}
\section{Start}
Hello\footnote{this is a footnote}
\end{document}

我遇到了以下错误:

! Undefined control sequence. \H@@footnotetext ...color@begingroup \@makefntext {\rule \z@ \footnotesep \i... l.9 Hello\footnote{this is a footnote}

我不确定原因,但很明显是moderncv文档类导致了这个错误。如果我将文档类更改为article,则可以正常工作。

感谢任何帮助。


请注意,在导入longfbox包时也会出现相同的错误,幸运的是,footmisc的修复方法在这种情况下也适用。 - undefined
2个回答

28

你可以尝试使用footmisc包。即将开头更改为

\documentclass[12pt, a4paper]{moderncv}
\usepackage{footmisc} % enabling footnotes.
\moderncvtheme[grey]{classic}
% ... rest the same.

2
问题是,脚注出现在cventry之后,而不是页面底部。是否可能将它们放在页面底部? - Will Sewell

4

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接