2

For a report in LaTeX I would like to position the abstract before the table of contents. Is it possible for the Table of Contents to start straight after the Abstract on the same page (at the moment the Table of Contents starts on the next page)?

\documentclass{report}
\begin{document}

\section*{Abstract}

\tableofcontents 
\thispagestyle{empty}

\end{document}

2
  • 1
    Welcome to TEX.SE! Please provide a full minimal working example which reproduces the issue, starting with \documentclass{...} and ending with \end{document}.
    – campa
    Commented May 18, 2020 at 10:25
  • @campa I have added a minimal working example now Commented May 18, 2020 at 10:44

1 Answer 1

7

\tableofcontents automatically adds a \clearpage command. To remove this, replace it with {\let\clearpage\relax \tableofcontents}

MWE:

\documentclass[notitlepage]{report}
\begin{document}
\section*{abstract}

{\let\clearpage\relax \tableofcontents} 
\thispagestyle{empty}

\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .