How do I remove blank pages coming between two chapters in Appendix?

前端 未结 8 1417
执笔经年
执笔经年 2021-01-29 22:41

Is there a way to remove blank pages appearing between two chapters, in Appendix?

相关标签:
8条回答
  • 2021-01-29 22:43

    Your problem is that all chapters, whether they're in the appendix or not, default to starting on an odd-numbered page when you're in two-sided layout mode. A few possible solutions:

    The simplest solution is to use the openany option to your document class, which makes chapters start on the next page, irrespective of whether it's an odd or even numbered page. This is supported in the standard book documentclass, eg \documentclass[openany]{book}. (memoir also supports using this as a declaration \openany which can be used in the middle of a document to change the behavior for subsequent pages.)

    Another option is to try the \let\cleardoublepage\clearpage command before your appendices to avoid the behavior.

    Or, if you don't care using a two-sided layout, using the option oneside to your documentclass (eg \documentclass[oneside]{book}) will switch to using a one-sided layout.

    0 讨论(0)
  • 2021-01-29 22:44

    I tried Noah's suggestion which leads to the best solution up to now.

    Just insert \let\cleardoublepage\clearpage before all the parts with the blank pages Especially when you use \documentclass[12pt,a4paper]{book}

    frederic snyers's advice \documentclass[oneside]{book} is also very good and solves the problem, but if we just want to use the book.cls or article.cls, the one would make a big difference presenting your particles.

    Hence, Big support to \let\cleardoublepage\clearpage for the people who will ask the same question in the future.

    0 讨论(0)
  • 2021-01-29 22:49

    If you specify the option 'openany' in the \documentclass declaration each chapter in the book (I'm guessing you're using the book class as chapters open on the next page in reports and articles don't have chapters) will open on a new page, not necessarily the next odd-numbered page.

    Of course, that's not quite what you want. I think you want to set openany for chapters in the appendix. 'fraid I don't know how to do that, I suspect that you need to roll up your sleeves and wrestle with TeX itself

    0 讨论(0)
  • 2021-01-29 22:49

    In my case, I still wanted the open on odd pages option but this would produce a blank page with the chapter name in the header. I didn't want the header. And so to avoid this I used this at the end of the chapter:

    \clearpage
    
    \thispagestyle{plain}
    

    This let's you keep the blank page on the last even page of the chapter but without the header.

    0 讨论(0)
  • 2021-01-29 22:54

    One thing I discovered is that using the \include command will often insert and extra blank page. Riffing on the previous trick with the \let command, I inserted \let\include\input near the beginning of the document, and that got rid of most of the excessive blank pages.

    0 讨论(0)
  • 2021-01-29 22:56

    You can also use \openany, \openright and \openleft commands:

    \documentclass{memoir}
    \begin{document}
    
    \openany
    \appendix
    
    \openright
    \appendixpage
    This is the appendix.
    
    \end{document}
    
    0 讨论(0)
提交回复
热议问题