I have been having some problems adapting this intriguing template. I must not understand some of structure.tex logic, especially around fancyhdr. Most attempts do not do what I want and changes often seem "fragile." (The seemingly obvious and simple tweaks from documentation and web fail to do what I want or break something else.)
Rather than us spending time discussing how to debug and hack, *perhaps* it might be more efficient to start conversation with two possible requests. At least, these illustrate some underlying issues.
The FIRST suggestion/request might be to add the following standard book class features into a version of the template:
-
\frontmatter
, - *perhaps* with a sample Preface and/or Acknowledgements "chapter"
-
\mainmatter
, - (your current chapters)
-
\appendix
,- *perhaps* with an sample appendix,
- (bibliography),
-
\backmatter
, - (index)
Adding these book class features would, I think, help many users obtain the "expected" book typography from the beginning. These /*matter commands are supposed to do the typographically-right thing for most usages and users in re the page numbering, chapter numbering, and placement in the TOC of different content for "real-world" books. If someone disagrees, it is possible to find hacks and tweaks around these common commands.
Now as to a problem trying to get the behavior I expected with this template.... When I added a frontmatter "Preface" to this template and it overflowed on to a second page the header came up with a "Chapter 0." Worse, a test with another two page frontmatter also showed up with a second "Chapter 0." This lack of frontmatter chapter numbering is the *intended* typographical behavior for frontmatter, but the "Chapter 0" header display seems an unintended error of this template. Also the nice pictorial design for starting mainmatter chapters seems major overkill for these shorter frontmatter topics. All my attempts to tweak this to a plainer style failed in some way.
The SECOND request is to *EITHER* add four commands *OR* to give me pointers on how I might hack them myself.
I would like four commands defined in a structure.tex, each of which are "twinned" with the four \*matter commands in main.tex. (I suppose one could redefine the std *matter commands, but that seems to add more complexity and less flexibility for neophyte hackers than keeping them separate.)
These new functions are as follows:
1)
\stylefrontmatter
EDITED--> I changed proposed command names--In case someone is interested in working together on this, I have placed four placeholder commands with these names in my files, but will not have time to tweak them for awhile. <--
This would initiate a very plain header with no chapter or section numbers but with page numbers (note, roman page numbering is expected). Probably best to also avoid the chapter/section names in running headers, as most frontmatter chapters should be pretty short. The design for each "chapter start" should be smaller and simpler (i.e. just orange chapter font, no chapterpicture and minitoc)
2)
\stylemainmatter
This initiates the current design with the usual chapter numbering.
3)
\styleappendix
Perhaps similar to mainmatter, but in testing note that letters are used for appendix chapter numbers. (Users who want to simplify the chapter start or header might be able to tweak its definition to look more like \legrandfrontmatter?)4)
\stylebackmatter
Perhaps similar to mainmatter, except that after invoking this command, headers should turn off the chapter/section numbers, as chapter numbering is turned off in backmatter. Thanks for the current template and any suggestions you might make!
I apologize for the length!