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 need to include several lines before the chapter title for some (not all) chapters. A new chapter always starts with a new page, how to realize the following layout for certain chapter while other chapters are normal?

                              header
-------------------------------------------------------------------
paragraph before the chapter title


Chapter 1 Introduction

   xxxxxxxxxxxxxxxxxxxxxxxxxxx

-------------------------------------------------------------------
                              footer
share|improve this question
1  
What \documentclass are you using? Could you provide the community with a minimal working example (MWE), since chapter styling heavily depends on the document class and other packages you may be using. –  Werner Sep 1 at 5:48

1 Answer 1

up vote 3 down vote accepted

You can temporarily switch off the impact of a \clearpage - typically inserted when using \chapter:

enter image description here

\documentclass{report}
\usepackage{lipsum}
\begin{document}
\chapter{A chapter}
\lipsum[1]

{
\cleardoublepage% Move to first page of new chapter
\let\clearpage\relax% Don't allow page break
\noindent\lipsum[2]

\chapter{Another chapter}
}
\lipsum[1]

\chapter{Final chapter}
\lipsum[1]
\end{document}

The above example would work in twoside mode as well.

share|improve this answer
    
Thanks Werner, I should mention that I'm using \documentclass{book}, your code above does not work well for book class. –  Tony Dong Sep 1 at 6:41
    
I got it, just letting cleardoublepage relax works fine, thank you Werner. –  Tony Dong Sep 1 at 6:44
    
@TonyDong: No; issue \cleardoublepage instead of \clearpage. I'll update the answer. –  Werner Sep 1 at 16:28

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.