I'm doing a book-class doc which is a collection of problems offered through some years.
So each chapter is a year, and it always has two sections: Problems, and Solutions. And I need them to NOT be numbered, BUT added to ToC (without number), and be present in the running head on the odd page.
secnumdepth
doesn't do it, because subsections (the problems) are numbered
I've tried using \renewcommand{\thesection}{}
but this only makes the numbers disappear, while the space that was between the section number and the header is preserved, so the section titles appear off in the ToC. The same space is present in the running head, and additionally, a full stop appears before the space in the running head.
I've also tried
\newcommand\problems{\section*{\addcontentsline{toc}{section}{Problems}Problems}
which makes for an ok-looking ToC, but doesn't give me the running heads.
I understand that packages like titlesec
and titletoc
might help me, but I'd rather make it as standalone-ish as possible.
\markboth
?scrbook
you can use\addchap
\documentclass{book}
. @cmhughes, you did it!\markright
with\addcontentsline
inserted into\section*
does the trick! I somehow got the impression that only fancyhdr could change the running heads, totally forgot about the mark commands.@
symbol :)