TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like chapter names to not be printed but to appear in each section heading. For example:


Would print something like

Mychapter 1
Mychapter 2

How can I achieve that? I've tried titlesec with \chaptertitle in \titleformat, like:

  {\chaptertitle\ \thesection}{10pt}

but \chaptertitle seems to be only defined inside \sethead and \setfoot.

To hide chapters and number sections properly, I've used:


but I'm sure there must be something better...

share|improve this question
up vote 2 down vote accepted

Try the following. It would not work for all the options of memoir, because it has two optional arguments for the \chapter command.





  \markboth {\MakeUppercase{#1}}{}}%

    \ifnum \c@secnumdepth >\z@
      \arabic{section}. \ %


\chapter{First chapter}
\section{First section}
\section{Second section}
share|improve this answer
Thank you. This does what I am looking for as far as sections go, but it doesn't hide the chapter headings. How would I make it so that chapter headings don't appear in the document? I guess I could do a \renewcommand{\chapter}{something to adapt chapter} ? – ℝaphink Apr 11 '11 at 8:47
@Raphink: I have changed the code to retain the \chapter* command and chapter marks, but has removed the normal chapter heading. Note that the table of contents (if you are using it) is now a mess and also needs some redefinitions – Danie Els Apr 11 '11 at 9:57
Ouch, that's redefining quite a few things at a low level. Is there no easy way to not print the chapter headings? – ℝaphink Apr 11 '11 at 11:59

Your Answer


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.