|
|
#1 |
|
Junior Member
![]() 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 |
|
|
|
|
|
#2 |
|
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
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> |
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Junior Member
![]() 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.
|
|
|
|
|
|
#4 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609
Karma: 28549044
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.
|
|
|
|
|
|
#5 |
|
Junior Member
![]() 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 |
|
|
|
| Advert | |
|
|
![]() |
| Tags |
| chapter headings, chapter titles, table of contents |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Aligned chapter numbers in a TOC | democrite | ePub | 8 | 01-16-2016 08:17 PM |
| page numbers & chapter titles | yJan | ePub | 8 | 10-04-2012 04:42 PM |
| chapter numbers are graphical | alansplace | Sigil | 6 | 07-04-2011 11:10 AM |
| Ebook chapter titles: with or without chapter number? | amoroso | Writers' Corner | 16 | 06-14-2011 07:35 AM |
| fixing up chapter numbers | cybmole | Sigil | 4 | 01-12-2011 03:49 AM |