Text Formatting ⇒ Section* title in header
Section* title in header
In class book, when I made a section* with an asterisk (that is, a non-numbered section), its title does not appear in the header. There is still the title of the previous section (which is a regular one, so without *). How to make the title of a non-numbered section to be in the header?
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Section* title in header
Hi and welcome,
that depends on the basic setup, which is not shown. My first guess would be setting it by hand by using
If you want to have the section title in the table of contents as well, there is a simpler solution. Try out unnumberedtotoc.
that depends on the basic setup, which is not shown. My first guess would be setting it by hand by using
\markright{section title}
. I haven't tested this though. If you want to have the section title in the table of contents as well, there is a simpler solution. Try out unnumberedtotoc.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
- Stefan Kottwitz
- Site Admin
- Posts: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
Section* title in header
Yes,
Genereally I prefer KOMA-Script classes, they provide a command
Stefan
\markright{section title}
or \markboth{section title}{section title}
would fix it. Of course it should go at the desired place within the document.Genereally I prefer KOMA-Script classes, they provide a command
\addsec
for this purpose.Stefan
LaTeX.org admin