I'm producing a fairly large volume using a customized version of book.cls with four Parts containing several chapters in \mainmatter, followed by a \backmatter that contains only the Bibliography for the whole volume (no appendices or index).
What I'm finding is that the running header of the last chapter & section is running through the \backmatter bibliography? I didn't have that problem with volumes that don't have parts and guess that the \chapter* assignment in the bibliography environment definition supplanted the prior chapter/section, but it seems that the \part is somehow getting in the way.
In a (most likely) related problem, the bookmark set by hyperref shows the \backmatter Bibliography being included (i.e. a chapter within) in the last Part.
Is there a way to test for and reset the depth in the \backmatter definition, both for the header and hyperref?
\cleardoublepage\markboth{}{}before\backmatterbut this is only a guess. I don't think thathyperrefhas to do with the problem here. Please provide the minimal document that produces this issue! – Dec 23 '15 at 15:45.clsbased largely on onbook.cls... both\backmatterand\def\ps@headingshave been left unchanged so far (customizations are mainly format and layout particulars). – JSCard Dec 23 '15 at 15:58bookandamsbookhave a much too minimal approach to what should be set with\backmatter. i'm putting a note into the ams-latex bugs/requests list to take a look at this, with reference to this question and comment. thanks for the idea. – barbara beeton Dec 23 '15 at 15:58\backmatterwithout any real solutions or workarounds found. – JSCard Dec 23 '15 at 15:59book.clsas well, which is why I'm having the problem in my customized version. I've seen references to similar problems with\appendixand\backmattercarrying through\markbothwhen parts are used. – JSCard Dec 23 '15 at 16:03\....mattercommands in general . Perhaps you can drop them – Dec 23 '15 at 16:04\if@mainmatteretc. – JSCard Dec 23 '15 at 16:07amsbookis that in the toc, biblio and index are subsumed under the last part; that's probably what you mean by thehyperrefreference. one workaround i've considered is to treat the toclevel of any\chapter*element in the backmatter the same as a part, but i don't have working code. – barbara beeton Dec 23 '15 at 16:22\backmatterdefinition that would test if\value{part}>0and issue a "phantom" part or otherwise increment the part counter in a way that might chuck it back to the same depth?? I don't want to use\part*{}so as not to have any output... – JSCard Dec 23 '15 at 16:29amsbookworks differently frombook, and that's the one i have to solve the problem for. if i come up with something soon, i will share it, but i've got some other priorities higher on my to-do list at the moment. – barbara beeton Dec 23 '15 at 16:48\ifnum \value{part}>\m@ne \renewcommand{\toclevel@chapter}{-1} \fito the\backmatterdefinition), and just set frontmatter and backmatter pagestyle toplain... does what I need for now at least. I'll work on something more robust once thsi current deadline passes... now on to "chapter authors" and separate lists for authors and contributing authors on the titlepage... – JSCard Dec 23 '15 at 20:28book.clsI don't have problem of heading, well your question is not clear for me. 2) for bookmarks you can try `\backmatter\bookmarksetup{startatroot}
– touhami Dec 24 '15 at 07:46frombookmark` package.mainmatterstructure, in which any chapters inbackmatterretain the header/footer marks of the last mainmatter content. As a secondary issue,hyperrefthen also places them hierarchically within the last part set instead of as a base-level bookmark.\backmattershould, one would think, be resetting that hierarchy but doesn't. – JSCard Dec 31 '15 at 02:35