I would create the entire book in a .txt file without any HTML codes. Enter Chapter at the top of each chapter and enter ## above the word Chapter and above all the other sections of the book, like this:
##
Title
Author
##
Prologue
Your text...
##
Dedication
Your text...
##
Chapter
Your text...
##
Epilogue
Your text...
Then open the .txt file in Calibre and convert it to epub. Click the Txt Input at the left, open the dropdown box under Structure, and choose Markdown. Doing this will create separate HTML files for each section in the book that has ## above it. When you have separate HTML files in the epub, they will each have page breaks before each section, so you won't have to do any extra coding for page breaks.
Then you can use the Edit Book feature in Calibre to add all your CSS codes to everything.
|