Hi Amalthia,
Congratulations on your tutorial.
I wish I'd had access to this a year ago when I was trying to combine MSWord and Calibre to create a standard way of creating my "perfect epub". Still, I suppose it forced me to learn a lot more about Word, HTML and CSS than I would otherwise have done.
If it's OK, I'd like to suggest a simplification of part of your "Cleanup Your RTF or Word Doc..." instructions.
This part:
Code:
Device Table of Contents Only
If you plan on only having a Device Table of Contents Then you only need to find your chapters and use a unique marker before and after: something like ##Chapter 1##
When your document is converted to HTML you can use the Find and Replace Function to search for ##Chapter and replace it with <h2>Chapter and then search for ## and replace that with </h2> The end result will give you the code <h2>Chapter 1</h2> which Calibre can then add to your device's table of contents.
The unique marker can be anything that's not normally in the body of the document.
Creating a macro to accomplish the Search and Replace isn't a bad idea if you plan on formatting many documents that share the same format.
can be simplified to something like:
Code:
Device Table of Contents Only
If you plan on only having a Device Table of Contents, then you only need to find your chapters and apply the MSWord built-in style "Heading 2" to each of them.
When your document is converted to HTML, your chapter headings will automatically be correctly wrapped in <h2>...</h2> tags which Calibre can then add to your device's table of contents.
i.e. you don't need to use a text editor to achieve the <h2>...</h2> tags. Nor do you need to have any standard text (e.g. "CHAPTER") as part of the chapter heading.
Similarly, if you want <h1>, <h3>, ..., <h6> tags then apply MSWord built-in style "Heading 1", "Heading 3", ..., "Heading 6" respectively. Calibre can also use these if you want a multi-level TOC.
Anyway, just a suggestion. Keep up the good work.