Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 02-07-2016, 07:55 PM   #1
ts0329
Junior Member
ts0329 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2016
Device: None
Chapter numbers / titles in ToC

Hello forum,

I'm converting a .docx document into ePub. In the original Word doc, chapter headings consist of a chapter number followed by a chapter title, with a line break in between. For example, a new chapter might start:

"Chapter 1
Title of New Chapter"

I'm using a Heading 2 style for all these chapter headings. When I convert the ebook to ePub, then the Table of Contents contains two entries for each chapter: the chapter number and the chapter title. How can I make these chapter headings a single item in the ToC while keeping the format of "chapter number /line_break/ chapter title?"

Many thanks,

T
ts0329 is offline   Reply With Quote
Old 02-07-2016, 08:30 PM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Is each line wrapped in a separate header tag?

Use this instead:
Code:
<h2>Chapter 1<br/>
Title of New Chapter</h2>
eschwartz is offline   Reply With Quote
Advert
Old 02-07-2016, 10:57 PM   #3
ts0329
Junior Member
ts0329 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2016
Device: None
I'm not sure -- I'm editing via the Styles options on Word, not using HTML.
ts0329 is offline   Reply With Quote
Old 02-07-2016, 11:07 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,857
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Dont style the second paragraph as Heading 2. Instead create a new style that is a clone of Heading 2 but named something else, like sub-heading.
kovidgoyal is offline   Reply With Quote
Old 02-07-2016, 11:13 PM   #5
ts0329
Junior Member
ts0329 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2016
Device: None
That worked! Thanks a lot. Currently, the chapter number ("Header 2" style) has a bigger font than the chapter title (clone of Header 2), even though in Word they both have the same font size as the text itself. Is there a way to keep the same font size for the chapter number in the ePub version?

Many thanks again,.

T
ts0329 is offline   Reply With Quote
Advert
Reply

Tags
chapter headings, chapter titles, table of contents


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Aligned chapter numbers in a TOC democrite ePub 8 01-16-2016 07:17 PM
page numbers & chapter titles yJan ePub 8 10-04-2012 03:42 PM
chapter numbers are graphical alansplace Sigil 6 07-04-2011 10:10 AM
Ebook chapter titles: with or without chapter number? amoroso Writers' Corner 16 06-14-2011 06:35 AM
fixing up chapter numbers cybmole Sigil 4 01-12-2011 02:49 AM


All times are GMT -4. The time now is 01:19 AM.


MobileRead.com is a privately owned, operated and funded community.