GeneralThe heading of very first section is carried over from TOC

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
drmCA
Posts: 31
Joined: Mon Aug 13, 2012 12:18 am

The heading of very first section is carried over from TOC

Post by drmCA »

In the MWE below the caption in the header of the pages under 'about' part is 'contents' where it should have been 'about'.

What am I doing wrong?
Attachments
TOC.zip
TOC header carried over to Part 1 example
(90.59 KiB) Downloaded 244 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

The heading of very first section is carried over from TOC

Post by Stefan Kottwitz »

The reason is, that chapter headings and section headings are used for the page header, but not part headings. You could change it to use part headings instead, but this is probably not good.

To know what I mean, insert \sectionmark:

Code: Select all

\part[About this book]{About this book}
\sectionmark{About this book}
Then you will see this text in the header. You might notice, that it doesn't seem consistent. The consistent way would be, in this part, to start a chapter and a section, instead of beginning text without any sectioning before.

However, you could simply use \markboth to manually change the header entry.

Stefan
LaTeX.org admin
drmCA
Posts: 31
Joined: Mon Aug 13, 2012 12:18 am

Re: The heading of very first section is carried over from T

Post by drmCA »

Amazing. How's that logical?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

The heading of very first section is carried over from TOC

Post by Stefan Kottwitz »

drmCA wrote:How's that logical?
Could you be more specific with your question? I mean I explained it:
Stefan_K wrote:The reason is, that chapter headings and section headings are used for the page header, but not part headings...
and possible solutions. Commonly, in a book, in a new part a new chapter starts. You just started to write text instead. So you cannot use the predefined chapter based layout, but as usual it can easily be modified.

Stefan
LaTeX.org admin
drmCA
Posts: 31
Joined: Mon Aug 13, 2012 12:18 am

Re: The heading of very first section is carried over from T

Post by drmCA »

Yeah, truly amazing decision to carry over previous section's name into the new part.
Post Reply