脚注从 0 开始,而不是从 1 开始

脚注从 0 开始,而不是从 1 开始

我搜索了该网站,最后使用footmiscwithmoderncv来使用脚注,但脚注从 0 开始...而不是 1。我想要一个像匕首一样的东西,但网站上的所有解决方案都不起作用。至少,我希望它从 1 开始。

这是一个简单的例子:

\documentclass[10pt,a4paper,sans]{moderncv}        % possible options include font size ('10pt', '11pt' and '12pt'), paper size ('a4paper', 'letterpaper', 'a5paper', 'legalpaper', 'executivepaper' and 'landscape') and font family ('sans' and 'roman')

\renewcommand{\familydefault}{\sfdefault}         % to set the default font; use '\sfdefault' for the default sans serif font, '\rmdefault' for the default roman one, or any tex font name

% modern themes
\moderncvstyle{banking}                            % style options are 'casual' (default), 'classic', 'oldstyle' and 'banking'
\moderncvcolor{black}                                % color options 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'

% character encoding
\usepackage[utf8]{inputenc}                   

% adjust the page margins
\usepackage[margin=0.63in]{geometry}
\setlength{\footskip}{5pt}
\usepackage{import}
\nopagenumbers{}

% personal data
\name{}{}
\phone[mobile]{}                   
\email{}    
\social{}
\homepage{}         


%----------------------------------------------------------------------------------
%            content
%----------------------------------------------------------------------------------

\usepackage{footmisc}

\begin{document}

    \cventry{}{}{}{}{}
    {       \textbf{Relevant Courses Completed by Summer 2025:} Algorithms and Complexity\footref{class_disclaimer}, Programming Languages\footref{class_disclaimer}, Computer Networking, Real Analysis, Abstract Algebra\footref{class_disclaimer}, Digital Circuit Design \& Implementation, Compiler Construction, Probability Theory, Computer Security
    }

\enlargethispage{\footskip}
\footnotetext{\label{class_disclaimer}Enrolled Fall 2025}

\end{document}

答案1

您使用的\footref命令不正确。您需要至少有一个包含标签的正确脚注,然后将其用于\footref您需要的所有相同脚注标记。您可以通过使用以下命令创建新集合来更改使用的符号集\DefineFNsymbols*

\documentclass[10pt,a4paper,sans]{moderncv}        % possible options include font size ('10pt', '11pt' and '12pt'), paper size ('a4paper', 'letterpaper', 'a5paper', 'legalpaper', 'executivepaper' and 'landscape') and font family ('sans' and 'roman')

\renewcommand{\familydefault}{\sfdefault}         % to set the default font; use '\sfdefault' for the default sans serif font, '\rmdefault' for the default roman one, or any tex font name

% modern themes
\moderncvstyle{banking}                            % style options are 'casual' (default), 'classic', 'oldstyle' and 'banking'
\moderncvcolor{black}                                % color options 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'

% character encoding
\usepackage[utf8]{inputenc}                   

% adjust the page margins
\usepackage[margin=0.63in]{geometry}
\setlength{\footskip}{5pt}
\usepackage{import}
\nopagenumbers{}

% personal data
\name{}{}
\phone[mobile]{}                   
\email{}    
\social{}
\homepage{}         


%----------------------------------------------------------------------------------
%            content
%----------------------------------------------------------------------------------

\usepackage[symbol]{footmisc}
\DefineFNsymbols*{cv}{\dagger\ddagger\S\P\|%
    {\dagger\dagger}{\ddagger\ddagger}}
\setfnsymbol{cv}

\begin{document}

    \cventry{}{}{}{}{}
    {       \textbf{Relevant Courses Completed by Summer 2025:} Algorithms and Complexity\footnotemark, Programming Languages\footref{class_disclaimer}, Computer Networking, Real Analysis, Abstract Algebra\footref{class_disclaimer}, Digital Circuit Design \& Implementation, Compiler Construction, Probability Theory, Computer Security
    }

\enlargethispage{\footskip}
\footnotetext{\label{class_disclaimer}Enrolled Fall 2025}
\end{document}

代码输出 脚注

相关内容