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'm writing a document in LyX (an editor for LaTeX) and I need every chapter to begin on a new page (not necessarily an odd one). Right now it just puts every chapter one after the other.

How can I do this in LyX?

share|improve this question

migrated from stackoverflow.com Jul 18 '11 at 14:41

This question came from our site for professional and enthusiast programmers.

1  
Can't you use Insert -> Page break? –  Naltharial Jul 18 '11 at 12:03
    
Yeah, that worked. Thanks! –  Ricky Robinson Jul 18 '11 at 12:54
1  
Most document classes will have chapters start on new pages by default. What class are you using? –  Seamus Jul 18 '11 at 14:50
1  
Welcome to TeX.sx! Your question was migrated here from another stackexchange site. Please register on this site, too, and make sure that both accounts are associated with each other, otherwise you won't be able to comment on or accept answers or edit your question. –  N.N. Jul 18 '11 at 16:17
add comment

1 Answer

As Seamus commented, most classes already start chapters on a new page. This requires using the \chapter command.

However, if you use \section commands, page breaks would not automatically happen, this is not very common for smaller sections. But you can define it, by this modification in your LyX document preamble:

\let\stdsection\section
\renewcommand*{\section}{\clearpage\stdsection}

The first line stores the original \section command with a different name, then \section is redefined to include a \clearpage before. A good effect is, that \clearpage forces figures and tables to be printed out before the next page is started, so they don't float into the next section. That's why I did not use just \newpage.

However, I strongly recommend using a class with \chapter commands, such as book, report, memoir, scrbook or scrreprt. The last two are from the great KOMA-Script bundle.

share|improve this answer
add comment

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.