Preview or export PDF per chapter
Context
It's possible to preview your book using a PagedJS template. It's also possible to export the book using a PagedJS template. However it is nice to export or preview chapters one by one because:
- I can refine my focus if I want to review the output generated from a particular chapter, without scrolling through the whole PDF when I only want to look at chapter 20
- I can generate a PDF of just one chapter if I need just that chapter in PDF, without having to edit my PDF in a separate tool
- I imagine once a book has 200 chapters (possible) the PagedJS rendering will take quite a while, so preview or export per chapter will be the quickest route if I don't need the whole book right now and need to make small changes in the chapter to refine the output, before exporting again.
To elevate this even further, you could add advanced export where a user can select any of the chapters to export. This is useful to exclude work in progress chapters from the export while still have multiple chapters in the PDF. It's also useful if different combinations of exports form essentially different books. For example the social sciences version of a statistics textbook will include 5 of 9 chapters and the version for maths majors will include 9 of 9 chapters.
Proposal
In the Preview & Export page, add all the chapter names under the content dropdown, they should be all ticked by default. The preview should only regenerate once you're done making changes.
Design
All the chapters should be contained by default in the content selection and can be removed or added as needed. Upcoming work which includes selection of frontmatter only in the content section is below, while body content is currently not excludable but should be for this proposal.