dgatwood wrote the following as part of a post:
Quote:
Originally Posted by dgatwood
The chapter number is a great example of this. When I started writing the content, I was dealing with manual chapter numbers, and it was a nightmare to keep fixing them every time I added a new chapter break. By changing the markup to simply treat each chapter as a unit, that becomes trivial. When the software produces the actual output, it just counts the chapters as it goes, and puts in the correct number.
|
I had the same issue with chapter numbers in my ebooks and solved the issue by using OpenOffice.org (OO.o). Rather than using manual chapter numbering or chapter breaks, I used OO.o's Fields function to create the chapter numbers. I created a field called "Chapter" and made the first "Chapter" equal to "1" and inserted the field into my ebook.
With each subsequent chapter I made "Chapter" equal to "Chapter+1." It made easy to correctly number the chapters, and if I inserted a new chapter the subsequent chapters would automatically be correctly renumbered.