I’m looking to migrate an existing book into PB, and one thing I am wrestling with is the structure/navigation hierarchy. The book I have is organized into units, chapters and readings, and so far my chapters map naturally to PB parts, and readings map to PB chapters. (The readings-as-chapters mapping is especially nice because PB chapters track contributors so well.) My problem is that I haven’t run into anything that will let me express the “unit” grouping – either one more level of hierarchy up, or the ability to nest PB parts.
I’m wondering if anyone has had a similar problem, and ideally whether they’ve found a solution, say another plugin or some interesting hack using PB parts and CSS? In my book, the unit will need to have content (much like a PB part), but what’s most important is the ToC, and specifically how the print export version looks.
I hope this is clear, and I appreciate any help. I’m loving Pressbooks so far, this really feels like what an online reading and publishing platform ought to be. Thanks!
Hi Steel, thank you for the quick response! Offhand, do you know if there will still be some way to indicate different contributors for the different <h1> sections? Even if it’s not an out-of-the-box mechanism, I’m comfortable playing with CSS and markup to make it work.
Hmmm. Two ideas. One, you can add multiple contributors to a given chapter. Second, you could also add a heading element or even just a bolded paragraph just under the <h1> title indicating which of the contributors is responsible for that particular reading. For example:
The contributor elements here could be anything (h2s, paragraphs, spans, etc.) and could also receive custom classes (i.e. author in the example above) if you wanted to style them consistently in some way. You can look at the existing attribution given by the contributor tool for multiple contributors in a given chapter and adapt/revise to your needs?
Hi, there. I’m interested in nesting chapters as our textbooks are comprised (in this order) of Parts > Chapters > Units > Sub-units. Unfortunately, the link listed in this discussion no longer exists. Is it because nesting is more easily integrated now? If so, please point me to how to do that. Thank you.
Thank you, Steel. Did you mean to call out a specific theme or point me to how to choose a theme? And, are you saying that the heading structure will determine the nested units? If so, that’s fine; we’re just trying to sort out how our sections will map onto PB when we move them out of our working drafts with are Google docs.
Hi @mbelair – the two level TOC should work with any theme that supports it (all but a very small number, I think). The idea would be that you simply designate top level headings as H1s in the chapter, and they’ll have links automatically created and displayed in the book’s ToC, much like the guide itself, if you look closely.
You can make this collapsible/expandible, too – there’s a web setting that lets you collapse/expand the top level sections. I’m afraid there’s no way at present to automatically generate additional levels within the Pressbooks interface at present. You’ll notice that parts themselves can contain content, however, so maybe that will stimulate some additional structure ideas?