latex - 附属机构和通讯作者评论作为乳胶文章的脚注
问题描述
我正在尝试使用 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}
我得到的输出是:
解决方案
在其他人的帮助下,我在此处发布了此问题的解决方案。为了完整起见,我正在复制以下解决方案:
\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}
推荐阅读
- javascript - 单击共享按钮时打开新标签
- c++ - 如何在 C++ 中对数组中的字母进行排序?
- jquery - 如何在按钮单击时将参数传递给jquery
- javascript - 从 Codebehind 调用 javascript 函数不起作用
- node.js - Mongoose 从数组中删除单个对象
- css - 具有两种背景颜色的 body 元素
- visual-studio-code - 如何在 VSCode 中从 WebStorm 导入设置
- node.js - webpack 4 使用 nodejs api - 不创建供应商块
- c# - 在.NET Core 中排除模型中的主键,因为 SQL 在 INSERT 时生成 PK
- functional-programming - 如何在 FP 中构造组件?