我有一份包含两个标题页的文档。在第一个标题页中,我需要包含作者以及脚注以供通讯作者使用,\thanks
但在第二个标题页中仅包含标题和摘要。但是,我无法做到,因为在第二个标题页中,第一页中的作者和脚注与第二个标题页中的相同。我尝试包含,\author{\emptythanks}
但显示以下错误:
! TeX capacity exceeded, sorry [grouping levels=255]. \@footnotetext
#1->\insert \footins
我有以下内容:
\documentclass[12pt,openbib]{article}
\usepackage{titling}
\usepackage{authblk}
\usepackage[T1]{fontenc}
\begin{document}
\title{Title}
\date{ }
\author[1]{Author 1}
\author[2]{Author 2\thanks{Corresponding author}}
\affil[1]{University 1}
\affil[2]{University 2}
\maketitle
\thispagestyle{empty}
\newpage
\setcounter{page}{1}
\title{Title}
\date{ }
\author{\emptythanks}
\maketitle
\begin{abstract}
The Abstract
\end{abstract}
\thispagestyle{empty}
\newpage
\end{document}
答案1
这里有两个问题:一个是 where\emptythanks
去哪里,另一个是包titling
和之间存在冲突authblk
。一个快速的 hack 可以得到你想要的
\documentclass[12pt,openbib]{article}
\usepackage{titling}
\usepackage{authblk}
\usepackage[T1]{fontenc}
% Redefine \emptythanks to do what we want, by stopping \thanks
% from doing anything and getting rid of the thanks already stored
\makeatletter
\renewcommand{\emptythanks}{%
\renewcommand{\thanks}[1]{}
\renewcommand{\@thanks}{}}
\makeatother
\begin{document}
\title{Title}
\date{ }
\author[1]{Author 1}
\author[2]{Author 2\thanks{Corresponding author}}
\affil[1]{University 1}
\affil[2]{University 2}
\maketitle
\thispagestyle{empty}
\newpage
\setcounter{page}{1}
%\title{Title}
%\date{ }
\emptythanks
% You don't need to repeat the title, and this is where \emptythanks would go
\maketitle
\begin{abstract}
The Abstract
\end{abstract}
\thispagestyle{empty}
\newpage
\end{document}