开发者

Smart page breaks to make chapters print modularly

开发者 https://www.devze.com 2023-01-03 22:10 出处:网络
I\'m writing a booklet for my debate club in LyX, a开发者_运维问答nd it is a collection of Prep Cases - each prep case is a chapter. Currently I have a \"new page\" after every chapter, but I want som

I'm writing a booklet for my debate club in LyX, a开发者_运维问答nd it is a collection of Prep Cases - each prep case is a chapter. Currently I have a "new page" after every chapter, but I want something more - I want to make sure chapters begin in odd numbered pages, so that when I print the whole booklet in duplex - each prep case will be a standalone, separable unit. Is that possible in LyX or plain LaTeX?


Edit: silly me. I meant to say sections and not chapters. Is this possible with sections?


I'm not sure how to do this in Lyx, but if it will let you slip in some raw LaTeX, put this in your preamble:

\let\originalsection=\section
\renewcommand\section{\par\cleardoublepage\originalsection}


Normally, this is done using the openright option on the document class. This causes \chapter to use \cleardoublepage internally, thus starting on an odd page.

You can also use \cleardoublepage manually instead but just using the option is more convenient.


I am using the Exam class (based on Article) and I got this to work in LyX 2.2 with the following:

  • Document>Document Settings>Page Layout>Two-sided document
  • Insert>Formatting>Clear Double Page whenever you want to force a part of your document to start on an odd-numbered page.
0

精彩评论

暂无评论...
验证码 换一张
取 消