I need to have two \maketitles in a document. The titling package handles this almost perfectly. The issue is that I use the \thanks command in the \title and in the \author, and then, in the second \maketitle, the text of the \thanks command is repeated twice. Does anyone know how I can get rid of the second occurrence of the text of the \thanks command?
Thanks,
Eilon
\documentclass[12pt]{article}
\usepackage{titling}
\begin{document}
\begin{titlepage}
\title{First title\thanks{I thank my kids.}}
\author{Author1\thanks{Affiliation of author1. } and Author2\thanks{Affiliation of author2.}}
\maketitle
\end{titlepage}
\begin{titlepage}
\title{Second title}
\maketitle
\end{titlepage}
\end{document}
Best Answer
LaTeX collects all footnotes added by
\thanks
commands in a macro\@thanks
; it has to be emptied before typesetting the second title. To avoid that the second title page resets the page counter, we use thexpatch
package and modify thetitlepage
environment; this is a hack, though. Alternatively, you can set the page number manually using\setcounter{page}{... desired page number ...}
.