首页 > 解决方案 > 附属机构和通讯作者评论作为乳胶文章的脚注

问题描述

我正在尝试使用 LaTeX 文章文档类创建一个简单的论文,作者在标题页上列出,他们的(可能多次重复的)隶属关系作为数字脚注,其他作者评论作为符号脚注。例如,我想要类似的东西

在此处输入图像描述

但是,尽管尝试了多种不同的解决方案,但我还是无法做到这一点。有没有一种简单的方法可以做到这一点?

我尝试使用该bigfoot包创建多种不同类型的脚注,并结合使用footmisc选项multiple来获取多个脚注标记,它们之间带有逗号,但我最终得到了叠加标记并且没有脚注。我最小的乳胶文件是:

\documentclass{article}

\title{My title}

\usepackage[multiple]{footmisc}
\usepackage{bigfoot}

\DeclareNewFootnote{AAffil}[arabic]
\DeclareNewFootnote{ANote}[fnsymbol]

\author{
        David Kaplan\footnoteAAffil{A University}\footnoteAAffil{Another University}\footnoteANote{Corresponding author}\footnoteANote{Equal contributors}
        \and
        Prince Charming\FootnotemarkAAffil{2}\FootnotemarkANote{2}
}
\date{\today}


\begin{document}
\maketitle
\end{document}

我得到的输出是:

在此处输入图像描述

标签: latexpdflatextexfootnotes

解决方案


在其他人的帮助下,我在此处发布了此问题的解决方案。为了完整起见,我正在复制以下解决方案:

\documentclass{article}  % <---- No titlepage

\title{My title}

%\usepackage[dont-mess-around]{fnpct}   % <---- I decided not to use fnpct, but rather put in the commas by hand
\usepackage{bigfoot}

\DeclareNewFootnote{AAffil}[arabic]
\DeclareNewFootnote{ANote}[fnsymbol]

\usepackage{etoolbox}
\makeatletter
\patchcmd\maketitle{\def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}}{}{}{}
\makeatother

% Hook into the \thanks command for the article class to print the footnotes
\makeatletter
\def\thanksAAffil#1{% <--- These %'s are necessary for spacing
  \footnotemarkAAffil\protected@xdef\@thanks{\@thanks%
        \protect\footnotetextAAffil[\the \c@footnoteAAffil]{#1}}%
}
\def\thanksANote#1{%
  \footnotemarkANote%
  \protected@xdef\@thanks{\@thanks%
        \protect\footnotetextANote[\the \c@footnoteANote]{#1}}%
}
\makeatother

\author{% <---- Not sure if these %'s are necessary, but can't hurt
  David Kaplan%
  \thanksAAffil{A University}$^{,}$\thanksAAffil{Another University}$^{,}$%
  \thanksANote{Corresponding author}$^{,}$\thanksANote{Equal contributors}%
  , %
  Prince Charming%
  \footnotemarkAAffil[2]$^{,}$\thanksAAffil{Still another university}$^{,}$\footnotemarkANote[2]$^{,}$%
  \thanksANote{Another note}%
  , %
  Mohamed Ali%
  \thanksAAffil{I am the greatest U.}%
}
\date{\today}

\begin{document}
\maketitle

\begin{abstract}
  This is the abstract.
\end{abstract}

\section{Introduction}

More Text

\end{document}

推荐阅读