Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a document with two title pages. In the first I need to include the authors with footnote for the corresponding author using \thanks but in the second one only include the title and abstract. However, I have not been able because in the second title page the same authors and footnote from the first page appears in the second one. I tried to include \author{\emptythanks} but the following error is displayed:

 ! TeX capacity exceeded, sorry [grouping levels=255]. \@footnotetext
#1->\insert \footins

I have the following:

\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}
share|improve this question

1 Answer 1

up vote 2 down vote accepted

There are two problems here: one is where \emptythanks goes, and the other is that there is a clash between the packages titling and authblk. A quick hack to get what you want is

\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}
share|improve this answer
    
Thank you, it works for the footnote. However, I was not clear before and I need also to not include the authors and affiliations in the second page. How could I do that? –  user2246905 Sep 27 '13 at 15:45
    
I included \makeatletter \newcommand{\emptyauthor}{% \renewcommand{\author}[1]{} \renewcommand{\@author}{}} \makeatother and in the second title page include \emptyauthor and it seems to works –  user2246905 Sep 27 '13 at 16:17
    
Yep, that'll do it ... although in your code you don't need to change the \author command, just \@author. The former adds a new author, the latter is the list of authors. –  Ant Sep 27 '13 at 16:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.