Home ยป Forum ยป Author Hangout

Forum: Author Hangout

ebook chapters calibre

Switch Blayde ๐Ÿšซ

For my ebooks, I define my chapter headings in Word (on a Mac) as "Heading 1".

When I input the docx file into Calibre (epub output), it creates a Table of Contents with those chapter names. And when I do a page forward in Calibre's e-reader, when I'm at the end of a chapter it jumps to a new page for the start of the next chapter.

And they're not all chapter names. For example, the very first "Heading 1" is the name of the novel for the cover page (where I have the title, copyright info, etc) before Chapter 1.

I just formatted a new 11-chapter novella. I decided to have a preview section at the end with a preview page and some preview chapters of another novel. I have a "Heading 1" PREVIEW at the top of the preview page after Chapter 11 (the last chapter of the novella) and then I use "Heading 1" for "Preview-Chapter 1", "Preview-Chapter-2", etc.

The Table of Contents looks fine. But at the end of Chapter 11 (the last chapter of the novella), it doesn't go to a new page for the PREVIEW page. And both Chapter 11 and PREVIEW in the Table of Contents are bolded.

The way I got around it was to put in a manual page break before the PREVIEW heading.

Any idea why I had to do that?

Replies:   Vincent Berg
Ernest Bywater ๐Ÿšซ

OK, there are settings in Calibre which allows you to set what level heading to use where and how. The default is to use Heading 1 as a chapter heading, Heading 2 as a sub-chapter heading, and you can also set further levels of headings under that.

These settings can be altered by going: Preferences - Common Options - Table of Contents and then change the information in the text boxes - the ones labelled Level 1 TOC - Level 2 TOC - Level 3 TOC are the main ones you use to do that. You can see the default is H1 and H2.

For the title page most people use the Heading style for the story title on the front page so it won't be listed in the TOC while the H1 and H2 will be.

In my books I use a Heading 2 at the start of the Other Works list at the end of the book. Thus it shows after the others and it's clear not part of the same story.

As to why the non-new page, I can only guess it was added after the Calibre file was originally made and it didn't process right.

Switch Blayde ๐Ÿšซ

@Ernest Bywater

As to why the non-new page, I can only guess it was added after the Calibre file was originally made and it didn't process right.

I always remove the ebook from calibre when I make a change and add the new version back, so that wasn't it.

It recognized the H1 because it put it in the ToC. But it didn't do the page break.

I like having the cover page in the ToC. I want an easy way to get to it. It not only has the copyright information, acknowledgments, etc., but also "Other Books by author."

I did do a copy and paste from the novel I was previewing to the end of the novella I was creating and added the preview page. So they were sort of two files combined. But that shouldn't have mattered.

Oh well, it works with the manual page break. I was just wondering why I had to do it.

Replies:   Vincent Berg
Vincent Berg ๐Ÿšซ

@Switch Blayde

It recognized the H1 because it put it in the ToC. But it didn't do the page break.

That's a separate Style Definition in the original document (page break before), so if your Heading 1/H1 Styles are properly defined, it's function as you want it to.

Just ensure you don't use both Page bread before and Page break after, otherwise you'll have a LOT of empty pages in your document!.

Vincent, the eBook (design) King!

Replies:   Switch Blayde
Switch Blayde ๐Ÿšซ
Updated:

@Vincent Berg

so if your Heading 1/H1 Styles are properly defined,

That actually solved another problem. When I clicked on "Heading 1" I always had to change the font, color, size, and alignment. I now set the H1 style in Word the way I want it.

I do not have "page break before" checked and Word does not do a page break before the chapter name. But Calibre does put in a page break before the paragraphs defined as "Heading 1", except for the first one. And except that one time (PREVIEW was defined as "Heading 1").

Vincent Berg ๐Ÿšซ

@Ernest Bywater

For the title page most people use the Heading style for the story title on the front page so it won't be listed in the TOC while the H1 and H2 will be.

As Word and html both allow you to modify TOC entries on the fly, I include the full title on the Title Page, but then change it to "Title Page", so there's no question what it is, and it's more easily accessed.

In basic ePub html code, the command is '< h1 title="whatever the hell you want it to be">Displayed Title< /h1>'

Vincent Berg ๐Ÿšซ

@Switch Blayde

Any idea why I had to do that?

Alas, I cheat, as I add a separate 'Preview' chapter, but then post the chapter title within that preview as a simple 'centered text' so it doesn't list in the book's TOC. Either that, or just don't include chapter titles for preview chapters, which is even easier.

Replies:   Ernest Bywater
Ernest Bywater ๐Ÿšซ

@Vincent Berg

I add a separate 'Preview' chapter, but then post the chapter title within that preview as a simple 'centered text' so it doesn't list in the book's TOC.

I cheat in a different way. I do use Heading 1 and Heading 2 for chapter and sub-chapter titles and I also set my Calibre ToC to show them as such (which is the default setting) I also use a Heading 6 which has the exact same settings as Heading 2 which I use for the story titles in the Also by section at the end where I give a brief blurb on other stories that may interest people - that way it looks the same but it's not in the ToC. I sometimes use the Heading 6 to emphasis something within the story like a sign or notice.

Ya gotta love setting styles within the word processor (whichever it be) and making use of them.

Replies:   Vincent Berg
Vincent Berg ๐Ÿšซ

@Ernest Bywater

I also use a Heading 6 which has the exact same settings as Heading 2 which I use for the story titles in the Also by section at the end where I give a brief blurb on other stories that may interest people - that way it looks the same but it's not in the ToC.

While I also list story tiles (under my "Other Books by the Author" front-matter section), I've never found a need to include it under a heading. Instead, I have a separate "Center Bold" style I use for notices ("The End" or "Continued in ..." statements, in addition to my story titles).

Over the years, as I've experimented, I've created a variety of styled definitions, and have recently been purging the older, no longer used styles. Now I've got a very tight list of styles I commonly use, and I actively disable/delete any default Word styles I don't use (Heading 4 - 9, TOC 4 - 9, etc.).

The simplification makes the documents easier to use, figure out, helps the overall efficiency, and reduces file sizes on a variety of formats.

Switch Blayde ๐Ÿšซ

So I guess I found a bug in Calibre.

Replies:   Vincent Berg
Vincent Berg ๐Ÿšซ

@Switch Blayde

So I guess I found a bug in Calibre.

That's one reason why, unlike many others, I don't submit Word/OO files to Calibre, but instead manually create my html files which I submit to Calibre, and then clean up all the CRAP that Calibre dumps in the files they create.

Many distribution sites have troubles with submitted document files, but none have any trouble with my submitted epub files.

Replies:   Switch Blayde
Switch Blayde ๐Ÿšซ

@Vincent Berg

That's one reason why, unlike many others, I don't submit Word/OO files to Calibre, but instead manually create my html files which I submit to Calibre,

I did that with my first novel and regret doing so.

Some day I will painstakingly convert the XHTML back to Word docx.

Back to Top

 

WARNING! ADULT CONTENT...

Storiesonline is for adult entertainment only. By accessing this site you declare that you are of legal age and that you agree with our Terms of Service and Privacy Policy.


Log In