我正在写一篇文章。我希望字母作为脚注的项目符号出现。因此,我使用以下 MWE:
\documentclass[a4paper,11pt,Times]{article}
\usepackage[english]{babel}
\usepackage{amsbsy}
\usepackage{footnote}
\usepackage{amsmath}
\usepackage{titlesec}
\renewcommand{\thefootnote}{\alph{footnote}}
\title{{The title of the paper}}
\author{First Author\footnote{Details of first author},
Second Author\footnote{Details of second author},
Third Author\footnote{Details of third author}}
\date{}
\begin{document}
\maketitle
Main text goes here
\end{document}
但它返回的脚注始终是符号,即“星号”,“匕首”,“DDagger”
任何帮助将不胜感激。
答案1
您可以在后面添加以下代码片段\documentclass
\makeatletter
\let\@fnsymbol\@alph
\makeatother
用于@Alph
大写字母、@arabic
数字。
编辑:按照原帖者的请求
如果我添加另一个{\footnote{通讯作者}},它只会变成:a,b,c,d,而我想要的是:星号,a,b,c
\documentclass[a4paper,11pt,Times]{article}
\usepackage[english]{babel}
\renewcommand{\thefootnote}{\alph{footnote}}
\makeatletter
\renewcommand*{\@fnsymbol}[1]{\ifcase#1\or*\else\@arabic{\numexpr#1-1\relax}\fi}
\makeatother
\title{{The title of the paper}}
\author{First Author\thanks{Corresponding Author} \thanks{Details of
first author} \and
Second Author\thanks{Details of second author} \and
Third Author\thanks{Details of third author}}
\date{}
\begin{document}
\maketitle
Main text goes here
\end{document}
或者你也可以拥有:
\documentclass{article}
\usepackage{authblk}
\author[1]{First Author\thanks{Corresponding Author}}
\author[2]{Second Author}
\author[1]{Third Author}
\affil[1]{abc, XYZ University}
\affil[2]{xyz, ABC University}
\title{Common title}
\date{}
\begin{document}
\maketitle
Main text.
\end{document}
答案2
标题和作者信息中的脚注被分配符号作为类别的选择article
。
\maketitle
类中的定义重新定义\footnotes
为\thanks
(这并不重要),但确实
\renewcommand\thefootnote{\@fnsymbol\c@footnote}
这正是您想要修复的问题。
在下面的代码中,我将仅添加必要的包,以使其最小化并更方便其他读者使用。此外,打印输出使用较低的文本高度,以避免出现较大的空白。
第一次尝试
\documentclass[a4paper,11pt]{article}
\usepackage{etoolbox}
\makeatletter
\patchcmd{\maketitle}
{\renewcommand\thefootnote{\@fnsymbol\c@footnote}}
{\renewcommand\thefootnote{\alph{footnote}}}
{}{}
\makeatother
\title{{The title of the paper}}
\author{First Author\footnote{Details of first author},
Second Author\footnote{Details of second author},
Third Author\footnote{Details of third author}}
\date{}
\begin{document}
\maketitle
Main text goes here
\end{document}
第二次尝试
上面的打印输出显示一个缺陷:脚注标记位于逗号上方,并且离后面的名称太近。我们也可以使用另一个补丁来修复这个问题。
\documentclass[a4paper,11pt]{article}
\usepackage{etoolbox}
\makeatletter
\patchcmd{\maketitle}
{\renewcommand\thefootnote{\@fnsymbol\c@footnote}}
{\renewcommand\thefootnote{\alph{footnote}}}
{}{}
\patchcmd{\maketitle}
{\def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}}
{\def\@makefnmark{\@textsuperscript{\normalfont\@thefnmark}}}
{}{}
\makeatother
\title{{The title of the paper}}
\author{First Author\footnote{Details of first author},
Second Author\footnote{Details of second author},
Third Author\footnote{Details of third author}}
\date{}
\begin{document}
\maketitle
Main text goes here
\end{document}