3

I've just read this:

Abstract and title together on the first page of an article

Can I achieve the same for a report? If I use the same code in a report-class document, I still get a page break between the title and the abstract.

Example document:

\documentclass{report}
\usepackage{titling}
\usepackage{blindtext}

\title{This is my title}
\author{Me myself and I}
\date{\today}

\begin{document}
\begin{titlingpage}
\maketitle
\begin{abstract}
This is the abstract.
\end{abstract}
\end{titlingpage}
\blinddocument
\end{document}
  • You might consider not using \maketitle at all. – Johannes_B Jan 6 '18 at 8:20
2

A hackish way to do it, suggested here, is placing the \maketitle within a minipage, so its page-clearing is "contained" and doesn't really affect the outer document:

\documentclass{report}
\usepackage{blindtext}

\title{This is my title}
\author{Me myself and I}
\date{\today}

\begin{document}
\begin{minipage}{\textwidth}
\maketitle
\begin{abstract}
This is the abstract.
\end{abstract}
\end{minipage}
\blinddocument
\end{document}

Unfortunately, this will prevent footnotes from being set on the page.

1

You can use the \maketitlehookd hook for this. Note that the abstract is input before \maketitle.

\documentclass{report}
\usepackage{titling}
\usepackage{blindtext}

\newsavebox{\abstractbox}
\renewenvironment{abstract}
 {%
  \global\setbox\abstractbox=\vtop\bgroup
  \begin{center}\bfseries\abstractname\end{center}%
 }
 {\par\egroup}
\renewcommand{\maketitlehookd}{%
  \par\vfil
  \box\abstractbox
}

\title{This is my title}
\author{Me myself and I}
\date{\today}

\begin{document}
\begin{titlingpage}
\begin{abstract}
\blindtext\blindtext
\end{abstract}
\maketitle
\end{titlingpage}
\blinddocument
\end{document}

enter image description here

  • Why do we need both the titling package and the custom command? – einpoklum Apr 10 '18 at 13:24
  • Also, with this in place, I get an error message when placing a footnote inside \author. – einpoklum Apr 10 '18 at 13:29
  • @einpoklum And where should the footnote appear? – egreg Apr 10 '18 at 15:28
  • On the bottom of the title page; I can't think of another option. Note that my super-hacky solution has a similar problem. – einpoklum Apr 10 '18 at 15:29
  • 1
    @einpoklum \author{Me\thanks{Thanks}} does the job cleanly. – egreg Apr 10 '18 at 15:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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