I'm writing a custom class based on book.cls for our office's publication series, but I've hit a problem in how to set up a conditional.
Some of the publications are part->chapter->section while others are just chapter->section. Our publication format requires that the alternating page footers are short title (odd page) and either part or chapter (even page).
My question is: how can I determine of a document structure has parts, and if so change the footer accordingly?
\value{part}will be bigger than 0, if you want to know from the start that the document has parts either you will need to invent a new command that declares that, or at end of document write the value of the part counter to the aux file so detect on the next run whether parts are used – David Carlisle Dec 09 '15 at 18:56\value{part}>0in the class definition (i.e.\ifnum \value{part}>0...\fi) for the header/footer to conditionally set/define apartmarkinstead ofchaptermark? – JSCard Dec 23 '15 at 15:25\ifnum \value{part} >\m@neto test for part else setchaptermark. If you drop your comment to an answer, I'll mark it. – JSCard Dec 29 '15 at 17:53