Of Cats And Dragons

Creating an Ebook tutorial

For Authors: Creating Ebook Files

Published 2019-11-20
Carol E. Leever

Note: This is a tutorial, and has nothing to do with our actual stories. It's written specifically for authors who want to know how to format their ebooks for publishing.

When Camilla and I decided to publish our Of Cats And Dragons series on Amazon (this is good for ANY ebook publisher) we had no idea that the writing part was not going to be the most difficult aspect to the process. Getting the actual files ready for publishing proved to be the most frustrating part. Amazon has tutorials and videos -- they're all a bit vague and seem to miss some of the important steps. And when things don't work, there's nowhere to go. Other authors have put up tutorials and videos -- but they always seem to be missing major steps. We eventually managed to get it all figured out by piecing together various tutorials.

That's why I decided to do my own tutorial on how to create an ebook for publication. This tutorial will be done using FREE software only and should be both PC and Mac friendly (though I'm doing this entirely on a PC).

First thing to note, all of your major ebook publishers ask for specific types of files. They usually want a MOBI or an EPUB. If you're doing a Book To Print option on Amazon, they require a PDF. Book To Print is a different thing entirely and I'll do a separate tutorial on that. This tutorial is just on Ebooks alone.

Second thing to note: MOBI is annoying. You have less control over how it formats itself. Amazon says they prefer MOBI, but they will accept an EPUB regardless. You have more control over the EPUB. That being said, I'll show you how to produce both regardless.

Third thing to note: Amazon is not very helpful when it comes to telling you what is wrong with your files. Kobo on the other hands has excellent validation results. It tells you precisely what has gone wrong, which gives you a better idea of what to fix. You might consider using the Kobo upload first, getting your file as clean as you can until Kobo accepts it (it will accept it with mistakes, but prefers you fix them). Once Kobo has cleared your file, you should have no trouble uploading it anywhere else.

I'm going to do two different options in this tutorial. The first is using a DOC; the second is using HTML. Both work fine -- just pick the one you're most comfortable with.

Which Option is easier? That depends on your skill set. If you have a background in HTML, then go with that one. HTML is very easy and the files are very straight forward. That being said, if you know nothing about HTML, the potential for bugs that you will not be able to see is very high. Under those circumstances, I recommend you go with the Word Doc option. I happen to have an extensive background in programming which is why I'm biased toward the HTML -- but if you've never done it before it can be intimidating.

I said I was going to be using FREE software, but obvious Microsoft Word is not free. That's why I don't use it. This tutorial is done using LibreOffice (https://www.libreoffice.org/). It's a free piece of software which is basically Word without all the annoying bits. I used to use OpenOffice, but lately it has become buggy and kept crashing on me. I switched to LibreOffice and haven't had any complaints.

Backup: Make a backup of your book before doing either of these tutorials. That way if something goes wrong, you have clean copy to restart with.

Format using a DOC file

Software Requirements

  • LibreOffice Writer (writer is part of the office suite) Download
  • Calibre (this produces the MOBI and EPUB files) Download I'm using the latest versions of both (this tutorial was written June 2019).
Step One

Get your entire book in one LibreOffice Writer document. That means ALL chapters, all author notes, dedications, copyright, etc. Our structure looks like this for our book Night's Gift

Title Image
Table of Contents (I'll show you how to create this)
Copyright
Dedication
Timeline of Books
Chapters 1-17
Epilogue
Sneak Peak: Radiation
Want More?
Thank you!
About the Authors
Get in Touch

Don't worry about the Title Image or the Table of Contents for right now. Have your document start with your Copyright. (You actually DON'T want a Table of Contents to do this next step.)

REGARDING PAGE BREAKS: They're not necessary for this tutorial. You do NOT need to insert manual page breaks before each chapter. If you already have them there, don't worry about them. If you don't have any, leave them out. If you only have a few, consider removing them.

Step Two

Clear all formatting.

WARNING -- if you have been writing your document in some sort of Writer/Word program and formatting as you go along you need to be using STYLES to make all this work. Formatting directly (highlighting a word and changing the font) makes this whole process difficult. And all these programs have little hidden characters that are impossible to fix manually. You need to start with a clean file and go from there.

However, that being said, if you are editing a 500 page novel that has italic and bold in it, clearing all formatting will clear that too. You don't want to have to redo all that. So do this part carefully. (Our books have both bold and italic, so this part was important. Too much work to put that back in.)

If there are no italic or bold issues in your document -- clear away.

  • Hit Control-A to Select All
  • Then go up to Format > Clear Direct Formatting

If you want to preserve your Italic or Bold. Do this step first!

*Go to Edit > Find and Replace. I'm going to use images for this next part because it's a bit confusing.

* Click the FORMAT button.

Using Find and replace

* Once in the "Search for Formatting" window, click the style you want to 'save'. In my case I clicked 'italic'. Then click OK.

Using Find and replace

* This takes you back to the Find And Replace Window. Notice in the image below that it shows I'm protect the italic formatting (green line). Click the Find All button.

Using Find and replace This should select every italic word in your entire document. For example, in our Timeline of Books, we have a bunch of italic words (we also have some bold, so I'll have to fix that too.) Now that the words are selected, you have to use a style on it.

Using Find and replace

* Open your Styles Menu Panel. You can do this by hitting the arrow on the far right side of the document screen, or by hitting F11 on your keyboard, or by going to View > Styles.

*Once in your Styles Menu, click on the 'A' character at the top of the panel to open up the Character Styles Menu. Under Default Paragraph Font is an option that says "Emphasis" (it's italic). Double click that.

Using Find and replace

NOTHING will appear to happen on your documents. Your italic words won't change, but they are now protected.

If you have other formatting you want to protect. Repeat the steps. For example, I also want to protect all my BOLD words. So I will repeat the steps for that:

  • Open Edit > Find and Replace
  • Click the FORMAT button
  • Click the BOLD style in the Style column
  • Click Ok.
  • Click Find All

Now all my bold words are selected in my document (in my case my chapter titles were also bolded, so they were also selected. Don't worry about that. Just keep going. We'll fix them later.

With all the BOLD words selected, I go to the same Style Panel option, but this time I pick the style for bold words (not the word Emphasis this time). For bold I use the option for STRONG EMPHASIS.

Repeat this for ALL styles you want to protect.

Now that my styles are all protected, I can clear my formatting on the document.

  • Hit Control-A to Select All
  • Then go up to Format > Clear Direct Formatting

If you did everything, your document should now be relatively format free except for your italic and bold (or anything else you protected.) In my case my chapter titles were now messed up -- no longer centered or set in a large font. But that's fine, since we're going to fix all that next.

Step Three

Set the text body style. We're now going to apply styles to the entire document.

  • Hit Control-A to select all.
  • Go the Style Menu Panel. Switch back to the Paragraph styles (the backwards P). And double click Text Body.
Formatting a document

You may be uncertain what this did -- basically it said your entire book is now part of the text body style. We will format it later. That means your title are also part of the text body style, and we need to fix this next. Doing it this way is easier than trying to go through an entire document and select out parts of it, excluding the titles. Titles are short, and relatively few in number, so it's easier to just fix them after the fact.

Step Four

Set your Heading 1 styles. This is typically for your Chapter Titles or anything you want to look similiar (for example the word Copyright on my copyright page. Or my Timeline of Books title).

* Go the first tile on your page (such as the Copyright title, or Chapter 1 title). It doesn't actually matter WHICH title it is as long as it's one of them. Drag your mouse through the title to selected it completely. Make certain you don't select the line below it -- you just want the words in the title. And in the style menu double click Heading 1. If you did it correctly you should see the drop down menu in the top left corner of your tool bar change to Heading 1.

Formatting a document

Now repeat this process for ALL your Titles. So in my case I repeat it for Copyright, Dedication, All Chapter titles, and the Want More, About the Authors, etc. Essentially anything you want included in the Table of Contents set to Heading 1.

In my case I have a 'Sneak Peek' at the end of the book that has the first chapter of the next book in it. I wanted the words Sneak Peek: Radiation to be in the table of contents. But I didn't want the chapter title of that book to ALSO be in the table of contents. It would look weird. So I set the Sneak Peek: Radiation line to Heading 1. And I set the chapter title for the next book to Heading 2. That way I can exclude it from the Table of Contents.

If you have other headers in your book, set them the same way to Heading 2 or Heading 3. Keep in mind precisely what you want in your table of contents and set it accordingly. You can include any heading in a table of contents if you have a very complex structure to your book. In this example I only want to include the Heading 1 in the TOC.

Step Five

Style the book. We now have the basic style set for the book. But we haven't formatted anything.

* Go to one of the chapter titles (any Heading 1) and put your cursor somewhere inside it. Literally put the cursor inside one of the words of the chapter. (Don't select anything!)

* Go over to the Style Panel and right mouse click Heading 1 and select Modify.

A paragraph Style Heading 1 menu panel will open. Set all your styles here. This panel has a bunch of options on it (tabs at the top of the screen). I'll show you what I set.

* Font: I set the Heading 1 to Times New Roman, Bold, 24 pt

* Alignment: Center

Page Break Alert: Here's where we can automatically insert page breaks if your book doesn't have them. If your book already has page breaks before each chapter, skip this step. But if there are no page breaks at all, you can globally insert them now. Under the TEXT FLOW tab, put a Check in the INSERT box under Breaks. Leave the other options at their default. It is defaulted to set a break before each Heading 1 which is where you want it.

Formatting a document

Once you click Ok, you should notice ALL your Heading 1 titles throughout the entire book change automatically.

We'll now do the same thing for the actual text of the book (the paragraphs.)

* Put your cursor somewhere inside one of your paragraphs (I used the first paragraph of the first chapter). Don't select anything, just make certain the cursor is between two of the words somewhere.

* In the Style Menu Panel, right mouse click Text Body and select Modify.

That same style panel will open and all you have to do is set your paragraph styles. For my case I set the following:

* Font: Times New Roman, Regular, 12pt (there's no point in setting any other font size on paragraphs since ebooks allow a user to set that themselves).

* Alignment: Left (Don't justify an ebook. That messes up the flow of text when a reader goes to resize the font.)

Under Indents & Spacing:

* First Line: .25"

* Line Spacing: single

* All other spacing options on this panel should be set to ZERO.

Again, all the paragraphs in your entire document should change when you click 'Ok'. If you have any other sections of the book that you want to format using the styles, do it the same way. In my case, I wanted to format the Heading 2 in my Sneak Peek chapter. I basically made them look exactly like the Heading 1, but they won't be included in the Table of Contents.

Now is the time to set anything that is supposed to be styled differently. In my case, I actually wanted some extra spaces in my End Matter sections. For example, I want double spaces between the hyperlinks on my Get in Touch page. Those will disappear unless I style them.

Currently the Links in the Get in Touch Page are part of the Text Body style. I'm going to change them to something else.

I select the entire section I want to change, and double click one of the unused options in the Style Panel. In this case I select the one called 'Quotations'. You can select anything as long as it isn't something you are currently using. Or you can hit the 'New Style' Button at the top right of the Panel (looks like an A with a line through it) and just make up a name.

Once you have designated your style (by double clicking the name), right mouse click the style name in the Style Panel and hit Modify. Now set your styles exactly the same way you did before. In my case I set all the same settings as I did for Text Body, but I changed the Line Spacing to DOUBLE. Fix any remaining style options you have.

We have these scene divider marks in parts of our books that are supposed to be centered. They ended up Left Justified, so I simple went through the book and manually centered all of them. I also wanted the text in the Copyright page centered, so I manually centered that as well.

Step Six

Add the Title Page. We use a title image so it's pretty straight forward. For a title image, just go to the top of the document, and click Insert > Page Break to add in a blank page at the top of the document (this is right before the Copyright page). You are actually going to need 2 blank pages (the second one is for the Table of Contents) so you can go ahead and Insert > Page Break again to create a second blank page.

* To add the image then simply click Insert > Image and select your image from your files.

Ours looks like this:

title image for Nights Gift

If you want to use a TEXT base title page, you need to make certain that you do not style anything using the Heading 1 or Text Body styles. Type your title and your author name and then format them using something other than the styles you have already use. In the Styles Panel the Heading section actually has a Title and a Subtitle option. I'd use those. You need to do this so that your Table of Contents does not include the title page.

Step Seven

Create your Table of Contents.

This is the most complicated section of the tutorial, but once you know how to do it, it's easy.

* Right after your title page you need to include the table of contents. To do this you need another BLANK page. If you created 2 blank pages in step 6, you already have one. If you didn't, then you need to add one now by clicking the top of page 2 (your Copyright page) and selecting Insert > Page Break.

So the TOC will be between the title page (or image) and the copyright page.

* Once you have your blank page, put your cursor at the top of that page and click there so that the cursor is focused inside the blank page. Then click Insert > Table of Contents and Index > Table of Contents, Index or Bibliography.

Creating a table of contents

This opens up the Table of Contents Menu.

* First set the Title of your Table of Contents in the Type Tab. In my case I just wanted it to say Contents, so I changed the default in the Title bar. On that same tab set the 'Evaluate up to level:' option to 1. This is referencing the Heading 1 sections of your document. I only want Heading 1 options to appear in the Table of Contents. I also have Heading 2 styles in my document and want it to ignore those. You can set the option to evaluate any number of headings up to Heading 10.

Creating a table of contents

Now go to the Entries Tab. Here's where it all looks weird. The Level column indicates what 'look' you are giving the entries. The numbers indicate the Heading 1, Heading 2, etc. We're only doing Heading 1 so I don't need to change anything there.

Creating a table of contents

The Structure section (circled in red above) is where you indicate what the contents will look like. The default is set to include hyperlinks, chapter titles, a bunch of dots, and the page number. I don't want the dots or the page number (we don't include page numbers in ebooks). The part of this that is confusing is it's very hard to understand what the Structure section actually is. It has buttons and these weird blank spaces between them.

Creating a table of contents

* It's actually a long text bar with buttons inside it -- the blank spaces are just part of the text bar that is highlighted oddly. We need to remove some of the buttons to get the table of contents to look correct. You can remove them by clicking on the button in the Structure bar and hitting the delete key on your keyboard. What you want is:

LS E LE

Creating a table of contents

* (The LS stands for the start of the Hyperlink, the E is the Chapter names, and the LE is the end of the hyperlink). So click the E#, #, T, # and hit delete on all of them. That should leave you with the correct options.

When I first did this, I accidentally deleted everything. Mine looked like this:

Creating a table of contents

I fixed it by clicking inside the little spaces between the various buttons and adding back in the elements I needed. The Structure line is what you end up with. The buttons underneath it seem to act as Toggle switches, turning on and off the various options. It just behaves very oddly.

* When your done, click OK. The table of contents will appear on the blank page.

* In my case, I wanted a bit more formatting to my table of contents. You can reopen the dialog box by right mouse clicking anywhere inside the table of contents and selecting Edit Index.

* There is a style tab at the top as well. The first thing I did was set the Title to the Heading 1 style. Select Title in the Levels column, and then double click (you have to double click!) Heading 1 in the Paragraph Styles column. You can also use the same window to change the look of the actual links (the chapter titles). Select Level 1 in the Levels panel, and select an option in Paragraph Styles (I picked Normal Web).

Creating a table of contents

When you click OK your TOC will update. If the actual links don't look correct (wrong color or spacing) its because you need to reset the style you picked. So I picked Normal Web which put a double space between the links. I went over to the Styles Panel, right mouse clicked Normal (Web) and selected Modify.

* Under Indents & Spacing, I sent everything to ZERO, and set the spacing to SINGLE.

* Under Font Effects I set the Font color to blue (hyperlinks are #0000EE in the color chart).

* And I set the Underlining to Single.

When I clicked OK, my table of contents now looked like proper hyperlinks. (BTW -- you must Control-Click a link in LibreOffice to make it work. And your cursor will NOT change into the typical 'hand' that you expect to see. This isn't an issue for the ebook.)

Now is the time to make any last minute changes to your document.

Your document should now be done. Save it as a DOC or DOCx. In LibreOffice you do this by going to File > Save As. And in the 'Save as type' down at the bottom of the window, set it to either .doc or .docx.

Step Eight:

You now need to open up Calibre. When you first run the program you'll see a window like this (yours won't have any books in it except the Quick Start Guide).

Using Calibre

Click the Add Books button at the top left corner. Find your DOC or DOCx file and click it.

It will show up in the listing. Mine is called 'test1' and it showed up at the top of the stack.

Using Calibre

Next make certain your book is selected (click on it) then click the Edit Metadata button on the top menu (second one circled in blue in the image). Fill in the Metadata on the screen. It will have your file name in as the default title. Change that to the actual title of the book. Title sort is the same thing. Type in the Author name, series name and number in series if this is a book series. Leave blank otherwise.

Using Calibre

When I first open my file, it has my title image in as the book cover. I actually want a different image there. So I click 'Browse' and select the actual book cover to replace the title image (it doesn't remove the title image from the book).

Using Calibre

Then click Ok at the bottom of the screen.

Next click the Convert Books Button at the top of the screen (third button).

Using Calibre

In the Convert Books window, select Table of Contents on the left side of the screen. In the middle there is a section that says Level 1 TOC (Xpath expression): Click the magic wand at the end of that line.

Using Calibre

A small window will open. Under the first option that says Match HTML tags with tag name: delete the * and type in h1 (this is indicating the Heading 1 chapter titles that we want included in the ebook table of contents). Click OK.

Using Calibre

Next click the Structure detection option on the left side of the Covert Books window. In the section labeled Insert page breaks before (Xpath expression), click the magic wand button at the end of that line.

Using Calibre

Once again in the top line called Match Html tags with tag name, delete the * and type h1 (this is telling the program to make certain there is a page break before each chapter). Click Ok.

Using Calibre

Click Ok in the Covert Book window to close out the last window.

The program will now create your MOBI file. You'll see a little spinning wheel in the bottom right corner of the program. When it is done spinning, you'll see a hyperlink called MOBI appear on the right hand side of the screen under your book cover where it says 'Formats'. You can click the word Mobi to see a preview of your book. Scroll through it and make certain it looks correct.

Using Calibre

NOTE: if the book does not look the way you want it to, you need to delete the book from Calibre (right mouse click the book in the listing and select 'remove book'), fix the LibreOffice Doc, and then re-add it to Calibre. Calibre doesn't update files properly if you change the main file.

Check your table of contents to make certain it is jumping to the correct locations. Mobi creates a second table of contents at the end of the book all on its own. If you want to get rid of that there is an option that allows you to get rid of it in the Convert Book panel > Mobi Output. Put a check in the box that says to remove the Table of Contents at the end of the book.

Next create your Epub file by clicking the Convert Books button again. This time change the drop down menu in the top right corner to Epub. Then click Ok.

Using Calibre You'll see the spinning wheel again, and a few moments later your Epub file will show up next to the Mobi link. Click it to get a preview.

Using Calibre

You can create PDF files the same way if you need that for some reason as well.

Step Nine

Save the file. Create a folder on your desktop for all your files. Then in Calibre click the Save to disk button. Select the folder you just created and click the 'Select Folder' button. Calibre will now save your files.

Using Calibre

Calibre tends to put a bunch of files in the folder that you don't need. Everything is contained inside the Epub or the Mobi file regardless of what else might be in that folder (including the book cover). You can now upload it to Amazon or where ever you are going to publish the file.





Publishing Ebook using HTML

This is actually my preferred method. Camilla and I use a program I created to write our books that allows us to click a few buttons and export the entire thing into a nice neat HTML file that is all ready for Calibre. But the reality is HTML is pretty straight forward. It's universal across Mac, PC and Linux, and you don't have to worry about 'hidden' characters like you do with a Word document. That being said, if you know nothing about HTML coding, go back to the LibreOffice method instead. HTML coding isn't hard, but you might get confused by the 'tags' used. It's also pretty unforgiving of mistakes. Also I assume in this tutorial that you know what the basic HTML tags and styles are.

Software Requirements

  • Calibre (this produces the MOBI and EPUB files) Download
  • A Text Editor: You can use the default editor on your computer such as Notepad (or Text Wrangler if you are on a Mac). DO NOT USE A WORD PROCESSOR like Word or LibreOffice. It MUST be a text editor. You can download one if you don't have one on your computer -- I use a free program called Notepad++ Download
  • A browser: Firefox, Microsoft Edge, Chrome, Safari -- any will do.
Step One

Create a basic HTML file. Open your text editor and paste the following code into it: Text File With HTML Code

Once the code is pasted in, select File > Save As and give your file a name with a forced extension on it. By force extension I mean actually type the extension. You don't have to mess with the file type drop down, just type the extension and the text editor will save it correctly. So give it a name like: mybook.html (the .html is the extension you need. The 'mybook' part should be a name that has no spaces or weird characters in it, just letters or numbers.) So for my book I called it: NightsGift.html

NOTE: if you are going to use a TITLE IMAGE, make certain the title image is saved in the same location as the .html file. For example, put both of them on your desktop.

Step Two

Add your book. The basic structure of the book is set up with a Table of Contents with jump links in it. Notice how everything is named. The copyright page is called "#copy"; all the chapters are labeled "#toc_1" and numbered consecutively.

For every actual chapter there is a Title wrapped in H1 tags. The Titles also have the name of the appropriate Jump Link inside it. Just continue following that pattern for all the titles. Add in all your paragraphs with proper Paragraph Tags wrapped around them. It's a very simple HTML structure.

Any time you want an EXTRA space between paragraphs (for example, I space out the links I put into my Get In Touch page), just add in either BR tags, or an empty set of paragraph tags. All 'links' such as links to your web page, must be written in the proper link form, for example:

html code

Step Three

Format the book. This is done entirely with the style sheet -- I included my style sheet in the code up above so if you like it, you're done.

I align my h1 and h2 tags to the center, and leave everything else at default.

I turn off the paragraph top and bottom margins to get a proper single spaced paragraph. I also set the text indent to 1.5em (that's on the first line of a paragraph only.) You could make this bigger or smaller depending on what you like.

I added an extra div with a class attribute around the paragraphs in the copyright section because I prefer to center my entire copyright. If you don't want this, just take out the .copy p section of the stylesheet.

I turned off the list styles in the unordered list of the table of contents. NOTE: MOBI will not obey this command. MOBI does not read styles on lists. If you have an unordered list, MOBI will put in bullets and there's no way to stop this. If this is a major issue with you, then change the table of contents so that it uses P tags instead of UL and LI. You'll need to add in an extra style to format it correctly but you can use the nav tag the same way I did in the stylesheet. Just change it to nav p instead of nav li.

If you want numbered items, change the tags to OL tags instead. But once again MOBI will only use 1. 2. 3 etc.

That being said EPUB has no problem with any of this. It will do exactly what you tell it to do and will obey all the list styles properly.

That's it! Save the file and go look at it in your browser. (Double clicking the file icon should automatically open it in the browser.) Fix any mistakes.

Step Four

You now need to open up Calibre. When you first run the program you'll see a window like this (yours won't have any books in it except the Quick Start Guide).

Using Calibre

Click the Add Books button at the top left corner. Find your HTML file and click it. It will show up in the listing. Mine is called 'test1' and it showed up at the top of the stack. Using Calibre

Next make certain your book is selected (click on it) then click the Edit Metadata button on the top menu (second one circled in blue in the image). Fill in the Metadata on the screen. It will have your file name in as the default title. Change that to the actual title of the book. Title Sort is the same thing. Type in the Author name, series name and number in series if this is a book series. Leave blank otherwise.

Using Calibre

When I first open my file, it has my title image in as the book cover. I actually want a different image there. So I click 'Browse' and select the actual book cover to replace the title image (it doesn't remove the title image from the book).

Using Calibre

Then click Ok at the bottom of the screen.

Next click the Convert Books Button at the top of the screen (third button).

Using Calibre

In the Convert Books window, select Table of Contents on the left side of the screen. In the middle there is a section that says Level 1 TOC (Xpath expression): Click the magic wand at the end of that line.

Using Calibre

A small window will open. Under the first option that says Match HTML tags with tag name: delete the * and type in h1 (this is indicating the Heading 1 chapter titles that we want included in the ebook table of contents). Click OK.

Using Calibre

Next click the Structure detection option on the left side of the Covert Books window. In the section labeled Insert page breaks before (Xpath expression), click the magic wand button at the end of that line.

Using Calibre

Once again in the top line called Match Html tags with tag name, delete the * and type h1 (this is telling the program to make certain there is a page break before each chapter). Click Ok.

Using Calibre

Click Ok in the Covert Book window to close out the last window.

The program will now create your MOBI file. You'll see a little spinning wheel in the bottom right corner of the program. When it is done spinning, you'll see a hyperlink called MOBI appear on the right hand side of the screen under your book cover where it says 'Formats'.

Using Calibre

You can click the word "Mobi" to see a preview of your book. Scroll through it and make certain it looks correct. BTW -- the ZIP link is actually your html file and cover image. It takes all your images, and the HTML file and zips it up in a folder to include as part of your output. This is independent of you actual files (it's a new copy).

NOTE: if the book does not look the way you want it to, you need to delete the book from Calibre (right mouse click the book in the listing and select 'remove book'), fix the HTML file and then re-add it to Calibre. Calibre doesn't update files properly if you change the main file.

Check your table of contents to make certain it is jumping to the correct locations. Mobi creates a second table of contents at the end of the book all on its own. If you want to get rid of that, there is an option that allows you to get rid of it in the Convert Book panel > Mobi Output. Put a check in the box that says to remove the Table of Contents at the end of the book.

Next create your Epub file by clicking the Convert Books button again. This time change the drop down menu in the top right corner to Epub. Then click Ok. Unlike MOBI, the EPUB file will obey your list style commands.

Using Calibre

You'll see the spinning wheel again, and a few moments later your Epub file will show up next to the Mobi link. Click it to get a preview.

Using Calibre

You can create PDF files the same way if you need that for some reason as well.

Step Five

Save the file. Create a folder on your desktop for all your files. Then in Calibre click the Save to disk button. Select the folder you just created and click the 'Select Folder' button. Calibre will now save your files.

Using Calibre

You can now upload it to Amazon (or any other place that accepts MOBI and EPUB).

Note: Kobo will validate the heck out of your HTML, and make certain it is clean and correct. There's a few things it demanded that really confused me for a while. First -- it wouldn't accept my title image. I finally figured out it wanted paragraph tags around the image tag. That solved the issue. It won't allow an inline tag to sit by itself -- it needs paragraph tags around it.

The next issue I had was with our collection of books -- we released books 3, 4, and 5 as a single combined Ebook called The Quest For The Autumn King. This meant a very complicated table of contents.

Normally I would use embedded list tags to create sublists -- Kobo would only allow this up to a point. They only want very simple HTML. Basically it was fine for 1 embedded list, but no more than that as far as levels. After a lot of trial and error, I finally came up with a TOC that Kobo was happy with and still looked good. Here's the file for you to look at: Text File With HTML Code