9

In the appendix of my thesis (using scrreprt) I want to start a new chapter containing a lot of large figures. For formating reasons I don't want the automatic heading, created when using \chapter{bla}. However I do want the chapter to appear in the TOC and also I want the page header to show the chapter correctly.

So my question is, is there a way to start a new chapter without the automatic heading? I don't want all chapters to be without heading, only this one.

  • Does the following meet your need? \chapter[My Contents Title]{} – Alan Sep 7 '14 at 13:19
  • Unfortunaly not, because number of the chapter is still printed, e.g. "A." in my case. But thanks for the idea. – Haatschii Sep 7 '14 at 14:27
7

The chapter head is typeset by \@makechapterhead, which is a macro with one argument, while the TOC entry and the heading are direct responsibiity of \@chapter and independent of \@makechapterhead. If we temporarily redefine it to simply gobble its argument, we're done.

\documentclass{report}

\makeatletter
\newcommand{\unchapter}[1]{%
  \begingroup
  \let\@makechapterhead\@gobble % make \@makechapterhead do nothing
  \chapter{#1}
  \endgroup
}
\makeatother

\pagestyle{headings}

\begin{document}
\tableofcontents

\chapter{Regular}

Text

\unchapter{No chapter head}

Text\newpage
text: check the heading

\chapter{This is regular again}

\end{document}
-1

An old exchange...

but I have a great solution so I give it.

\makeatletter
\newcommand{\mychapter}[1]{%
  \begingroup
    \chapter*{#1}
    \addcontentsline{toc}{chapter}{#1}
     \markboth{#1}{}
  \endgroup
}
\makeatother

And, of course, replace \chapter by \mychapter in your latex file.

  • 5
    Welcome to TeX.SX! Are you sure this is a great solution? You will still create the heading with this (\chapter*) which is not what the OP has asked for. – TeXnician Dec 12 '18 at 8:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.