I would like chapter names to not be printed but to appear in each section heading. For example:
\chapter{Mychapter}
\section{}
\blinddocument
\section{}
Would print something like
Mychapter 1
Mychapter 2
How can I achieve that? I've tried titlesec with \chaptertitle
in \titleformat
, like:
\titleformat{\section}[display]
{\normalfont\Large}
{\chaptertitle\ \thesection}{10pt}
{\normalfont}
but \chaptertitle
seems to be only defined inside \sethead
and \setfoot
.
To hide chapters and number sections properly, I've used:
\renewcommand{\thechapter}{}
\renewcommand{\thesection}{\arabic{section}}
but I'm sure there must be something better...