4

How can I automatically start a new page with each part?

I found this answer, which work nicely for section breaks, but was unable to customize the command to works with parts.

I looked the titlesec documentation, but it wasn't apparent to me how to use the package to start a new page for parts.

Here is the preamble:

\documentclass[11pt,titlepage]{article} 
\usepackage[T1]{fontenc} 
\usepackage{libertine} 
\usepackage{amsmath} 
\usepackage[usenames,dvipsnames]{xcolor} 
\usepackage{hyperref}
\usepackage{graphicx} 
\usepackage{fancyhdr} 
\usepackage{floatrow} \floatsetup[table]{style=plaintop}
\usepackage{pdfpages}
\usepackage{indentfirst}
\usepackage{booktabs}
\usepackage{pdflscape} 
\usepackage[verbose,top=2.5cm,bottom=2cm,left=2cm,right=2cm, headsep=1.5cm]{geometry} 
\usepackage{fancyhdr} \lhead{\includegraphics[width=1cm] ./figures/logo.jpg}}
\usepackage{titlesec}
\newcommand{\sectionbreak}{\clearpage} %new page after each section
5
  • 1
    Do you have to use the article class? Simply changing to report will work.
    – erik
    Apr 10, 2015 at 19:26
  • Don't parts always start a new page?
    – Johannes_B
    Apr 10, 2015 at 19:28
  • Changing to report class did work, but changes the section enumeration (now listed from 0.1, 0.2, ... instead of 1, 2, 3...). Any way to make it happen with an article class?
    – Minnow
    Apr 10, 2015 at 19:44
  • This answer shows how to remove the zero preceding the section number. However, if you don't want an entire part page, which the report class will create, then Ian's answer should work nicely.
    – erik
    Apr 10, 2015 at 19:54
  • @erik - your link to the section numbering is handy too, thanks.
    – Minnow
    Apr 10, 2015 at 21:16

2 Answers 2

5

Try this.

\documentclass{article}
\usepackage{lipsum} %for dummy text
\let\oldpart\part
\renewcommand\part{\newpage\oldpart}
\begin{document}
\part{The first}
\lipsum[1-2]
\part{The second}
\lipsum[3-4]
\end{document}
3

With etoolbox you can apply a \clearpage before \part

\documentclass{article}
\usepackage{lipsum} %for dummy text
\usepackage{etoolbox}
\preto{\part}{\clearpage}
\title{Some}
\author{you}
\begin{document}
\maketitle
\part{The first}
\lipsum[1-2]
\part{The second}
\lipsum[3-4]
\end{document}

You must log in to answer this question.

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