njt,
Sorry that the Word macro broke the document - I tested it once (on the same document I recorded the macro on - big mistake) at around 2 in the morning. The GOOD news is that there was a really simple way to insert the page breaks in OpenOffice. I just had to format the chapter and book styles properly. I've included author and document headers that are automatically populated and I'm working on cleaning the code right now and then implementing an automatic file name. As soon as I get that done, I'll post up a new template. Everything's in one macro set now!
All of the styles that I use are in the "Styles and Formatting" window under the category "Custom Styles." You can modify the styles as you see fit (changing the font and size and what-not) without doing any damage. I'll attach a PDF with the different styles as they'd look in a document - basically, you can use the styles to fine-tune things like subtitles and sub-chapter headings to make the text look better.
Right now, the PDF bookmarks are exported in this tree:
- Sony Reader - Title
- Sony Reader - Book Heading
- Sony Reader - Chapter Heading 1
- Sony Reader - Chapter Heading 2
This will create a primary bookmark using the Title, a sub-bookmark using the Book Headings (Like in "Moby Dick," where there are multiple "books") and a sub-bookmark of that using Chapter Heading 1. If you want to change the way the PDF bookmarks, you can go to Tools > Outline Numbering and select the style you want bookmarked from the drop-down box. Personally, I sometimes like to bookmark the lines I've styled "Sony Reader - Chapter Heading 3" to show up in the bookmark, as well (like the journal entries in "Dracula" or the sections of Locke's "Two Treatises on Government").
I hope that answered your question and I'll do my best to have the new macro up before I go to bed tonight. I've attached Locke's "Two Treatises on Government" and that should give you an idea of how the PDF bookmark tree looks - by adjusting the styles in Tools > Outline Numbering, you can fine-tune the document you're working on to your liking. Let me know if you had a different meaning than I've understood.
Thanks!
Sam