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've understood that it's easily solved in the book class. But is there a simple solution for how to do this in the article class?

share|improve this question
    
Do you mean article or maybe scrartcl? –  Marco Daniel Apr 14 '12 at 20:16
    
I meant article –  DoubleTrouble Apr 15 '12 at 11:34

3 Answers 3

up vote 5 down vote accepted

Normally you'd want to start on an odd page:

\let\oldsection\section
\def\section{\cleardoublepage\oldsection}

If you really do want to have the headings on even pages, modify the definition of \cleardoublepage (taking out an \else to give \clearevenpage

\documentclass[twoside]{article}


\let\oldsection\section
\def\section{\clearevenpage\oldsection}

\makeatletter
\def\clearevenpage{\clearpage\if@twoside \ifodd\c@page
    \hbox{}\newpage\if@twocolumn\hbox{}\newpage\fi\fi\fi}
\makeatother

\begin{document}

\section{aaa}
one
\section{aaaa}
one two three
\section{jjaaaa}
one two three four

\end{document}
share|improve this answer
    
Yeah, you are probably right that I want to start on an odd-numbered page. Your solution worked perfectly, thank you! –  DoubleTrouble Apr 15 '12 at 11:38

You can put

\makeatletter
\def\cleartoleftpage{\clearpage\if@twoside \ifodd\c@page
\hbox{}\newpage\if@twocolumn\hbox{}\newpage\fi\fi\fi}
\makeatother

in your preamble and then prefix sections with \cleartoleftpage.

share|improve this answer
    
Thanks, this also works perfectly! –  DoubleTrouble Apr 15 '12 at 11:39

The following uses changepage's strict mode to set a label for every section and check whether it's odd, issuing the necessary page breaks. It takes a couple of compiles (...number of sections), to stabilize the ToC. The command \evenpagesection initiates the sequence:

enter image description here

\documentclass{article}
\usepackage{lipsum}% http://ctan.org/pkg/lipsum
\usepackage[strict]{changepage}% http://ctan.org/pkg/changepage
\newcommand{\evenpagesection}{%
  \global\let\oldsection\section
  \renewcommand\section{%
    \clearpage\checkoddpage%
    \ifoddpage\null\clearpage\fi%
    \oldsection
  }%
}
\begin{document}
\tableofcontents
\evenpagesection % Start sections on an even page
\section{First section}
\lipsum[1]
\section{Second section}
\lipsum[2]
\section{Third section}
\lipsum[3]
\section{Last section}
\lipsum[4]
\end{document}    
share|improve this answer
    
This is also a good solution! Thank you –  DoubleTrouble Apr 15 '12 at 11:39

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.