I'm writing a book in which, between chapters, I may have chapter-size chunks of text that discuss a software package related to the book's content. Consequently, I wish to label these things something other than chapters. For example, I'd like my TOC to be something like this:
1 Here would go my title for Chapter 1
2 Here would go my title for Chapter 2
Software Break 1: Getting to Know Foo and Bar
3 Here would go my title for Chapter 3
Software Break 2: Here Come Baz and Quux!
4 Here would go my title for Chapter 4
and so on. You can see three requirements here:
- Software Breaks have a counter independent from that of Chapters.
- Software Breaks appear differently in the TOC.
Otherwise, Software Breaks function identically to chapters. E.g., somewhere in a chapter, I might type something like this:
We covered widget frozzling in Software Break \ref{break:intro} on page \pageref{break:intro}.
I guess what I'm saying is that I want to recreate whatever the standard book document class does for Chapters, but again, as a totally other class of thing, called a Software Break. So I took a look at the book.cls
source code (here), but I'm simply not a sophisticated enough LaTeXer to understand it yet. I could try copying and pasting big chunks of stuff about chapter definitions, but I'd have no confidence I was doing it right or that it would succeed.
Alternately, perhaps what I need to do is manually change the name/appearance/number of just some of my chapters? I won't exactly be moving chapters around a lot, so if I have to manually number them, it's not a big deal.
Any advice appreciated! Thank you!
\part
then I would recommend that you number your software breaks with Roman Numerals I, II, III, ... What abouthyperref
support?