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 am using LaTeX for my thesis and I am getting a blank page after Appendix and the next chapter. My document class is book:

\documentclass[a4paper,oneside,12pt]{book}

I have tried inserting the following commands in my preamble but it does not seem to work:

\makeatletter\@openrightfalse\makeatother

and

{\let\cleardoublepage\clearpage 
\input{appendix}
}

and

\csname @openrightfalse\endcsname

could someone help me out with this?

share|improve this question

1 Answer 1

If you do not wish to have blank pages after chapters throughout the document, you should be using the openany option for the documentclass. The following gives a two page document with no blank pages

\documentclass[openany]{book}

\begin{document}
\chapter{A Chapter}
\appendix
\chapter{Appendix}
\end{document}

When using the oneside option this happens already, and the opposite option openright has no effect. The reason for this is that the openright option asks the chapter and other commands to use \cleardoublepage, but \cleardoublepage acts as \clearpage for oneside documents.

If you wish to have blank pages after chapters in the body of the document, but not in the appendices, then the simplest way is as follows: use standard two side formatting and switch the value of the openright option at the appendix:

\documentclass{book}

\begin{document}
\chapter{A Chapter}
\chapter{Another Chapter}
\cleardoublepage\makeatletter\@openrightfalse\makeatother
\appendix
\chapter{Appendix}
\chapter{Another Appendix}

\end{document}

However, you say you are using the oneside option, perhaps for other formatting effects. Should you wish to keep that, then we need to redefine \cleardoublepage so as not to test for the twoside option:

\documentclass[oneside]{book}

\makeatletter
\renewcommand{\cleardoublepage}{\clearpage \ifodd\c@page\else
    \hbox{}\newpage\if@twocolumn\hbox{}\newpage\fi\fi}
\makeatother

\begin{document}
\chapter{A Chapter}
\chapter{Another Chapter}
\cleardoublepage\makeatletter\@openrightfalse\makeatother
\appendix
\chapter{Appendix}
\chapter{Another Appendix}

\end{document}

Moving appendix material to an external file and using \input will lead to the same results.

share|improve this answer
    
Thank you Andrew for your reply. With the \documentclass[openany]{book}, although I get rid of the blank pages, I also skew the arrangement of rest of my document. With \documentclass[a4paper,oneside,12pt,openany]{book} command, it still does not work. I have my appendix as an external file and i \include{appendix} to the document. –  Mayur Aug 29 '12 at 19:03
1  
As Andrew pointed out, you might use \input instead of \include. \include issues a \clearpage command before including the file contents, which \input does not. –  Alex Aug 30 '12 at 8:13
    
@Mayur I have updated my answer to address this. –  Andrew Swann Aug 30 '12 at 8:45

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.