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?
General ⇒ The heading of very first section is carried over from TOC
The heading of very first section is carried over from TOC
- Attachments
-
- TOC.zip
- TOC header carried over to Part 1 example
- (90.59 KiB) Downloaded 244 times
NEW: TikZ book now 40% off at Amazon.com for a short time.
- 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
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
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
To know what I mean, insert
\sectionmark
:Code: Select all
\part[About this book]{About this book}
\sectionmark{About this book}
However, you could simply use \markboth to manually change the header entry.
Stefan
LaTeX.org admin
Re: The heading of very first section is carried over from T
Amazing. How's that logical?
- 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
Could you be more specific with your question? I mean I explained it:drmCA wrote:How's that logical?
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_K wrote:The reason is, that chapter headings and section headings are used for the page header, but not part headings...
Stefan
LaTeX.org admin
Re: The heading of very first section is carried over from T
Yeah, truly amazing decision to carry over previous section's name into the new part.