5

I am using the article class in LaTeX, and I want a page break between sections, so I added the following to the preamble:

\usepackage{titlesec}
\newcommand{\sectionbreak}{\clearpage}

However, I don't want a page break between the title and contents page. Here is my MWE:

\documentclass{article}
\usepackage{titlesec}
\newcommand{\sectionbreak}{\clearpage}
\title{Linear State Space Control Theory}
\date{June 4, 2015}
\author{texasflood}
\begin{document}
\maketitle
\tableofcontents
\section{Introduction}
Hello
\section{State space description}
\end{document}

I tried adding \nopagebreak[4] in between \maketitle and \tableofcontents but it didn't work.

8
\documentclass{article}
\usepackage{titlesec}

\title{Linear State Space Control Theory}
\date{June 4, 2015}
\author{texasflood}
\begin{document}
\maketitle
\tableofcontents
\newcommand{\sectionbreak}{\clearpage}
\section{Introduction}
Hello
\section{State space description}
\end{document}

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.