?

Log in

Previous Entry | Next Entry

First one of the big changes from 5.13 Calibre to 6.11 Calibre is that I don't need separate settings for converting my html files to LRF, Epub, or Mobi. I use one html page to make all 3 file types. I kept the default conversion settings in Calibre for LRF, epub, and mobi.



The big change here is that it appears I don't need a work around anymore for my Chapters. < h2 >Chapter One< / h2 > does not appear double when you use the automated Table of Contents feature. Here is what I have in my preferences to generate the Table of Contents.



Under Preferences the TOC looks like this.





The structure detection looks like this in my settings. (I don't really understand how this works to be honest I believe I'm using the default settings)






When you convert your file make sure that your Look and Feel section matches your preferences. They should match. Once your preferences are set you should not have to adjust them again.









This is the code I use in the Extra CSS box under the Look and Feel section. It only works if you code your html using < h2 > for chapters < h1 > or < h3 > for Titles you don't want in the Table of Contents. If you use two < h2 > tags right after each other you'll get two page breaks it doesn't look pretty! So try to make sure you don't have

< h2 > title </h2>
< h2 > Author </h2>

Both will end up in Table of Contents and Title will end up on one page and Author will end up on the next. Seriously, it's not pretty! So watch out for that.

body { margin: 0; }
p {margin-top: 0pt; margin-bottom: 0pt; padding: 0pt; text-indent: 15pt; text-align: justify;}
h1 { text-align: center; }
h2 {text-align: center; font-size: larger; page-break-before: always;}
h3 { text-align: center; }
h4 { text-align: center; }
h5 { text-align: center; }
h6 { text-align: center; }
img {text-align: center; }





The margin settings under Page Setup do not work. Here's an example of my page setup. The top and bottom margin settings do not work. It's a bug, I already put in a ticket for it.



The good news is that there is a workaround. if you add this piece of code into the Extra CSS preferences/conversion box it'll set the margins for you.

body { margin: 0; }
p {margin-top: 0pt; margin-bottom: 0pt; padding: 0pt; text-indent: 15pt; text-align: justify;}

This is already included into my cheat sheet if you have already copied and pasted that into your Extra CSS then you don't need to do anything else.


I believe these are the default settings but just in case you want to make sure your settings match here is what I have.



I changed the way Calibre saves my files to disk because I prefer Author - Title if you'd like to use that here's an example of how mine looks.




If you have any questions please ask. I'll be the first to admit I'm not great at making tutorials.

Comments

( 2 comments — Leave a comment )
owlrigh
Sep. 21st, 2009 02:40 am (UTC)
Have you tinkered with the epub format in Sigil? I've been making a few of the stories I like into fanfiction ebooks for my own use and been tinkering with format in Sigil. These are for stories I know I want to read more than once :)
amothea
Sep. 21st, 2009 06:33 am (UTC)
I haven't had the chance to even download Sigil but I am curious to see how the program works and if it's better than Calibre for creating epubs. But at the moment since I'm making LRFs and Mobi, it seems best for my use to keep using Calibre to also create the epub files.

was it easier to use Sigil to create epub fanfic?
( 2 comments — Leave a comment )