Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 04-23-2012, 05:52 AM   #1
ldrover
Connoisseur
ldrover is fluent in JavaScript as well as Klingon.ldrover is fluent in JavaScript as well as Klingon.ldrover is fluent in JavaScript as well as Klingon.ldrover is fluent in JavaScript as well as Klingon.ldrover is fluent in JavaScript as well as Klingon.ldrover is fluent in JavaScript as well as Klingon.ldrover is fluent in JavaScript as well as Klingon.ldrover is fluent in JavaScript as well as Klingon.ldrover is fluent in JavaScript as well as Klingon.ldrover is fluent in JavaScript as well as Klingon.ldrover is fluent in JavaScript as well as Klingon.
 
ldrover's Avatar
 
Posts: 85
Karma: 4890
Join Date: Jul 2011
Location: Bedford, Nova Scotia
Device: iPad Mini
Doc to epub

I have a word document that I would like to convert to epub with a table of contents. I understand that for Calibre to do this, I should save the file as a HTML file. No problem. How do I, however, create a table of contents?
ldrover is offline   Reply With Quote
Old 04-23-2012, 11:30 AM   #2
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 2,747
Karma: 3973173
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350, PB360, Kobo Glo/AuraHD/Aura6"
An easy way to do this is to:
  1. Mark your Chapters and sub-Chapters in the doc file with one of the MS built-in styles called 'Heading 1', 'Heading 2', ..., 'Heading 6'. 'Heading 1' equates to the HTML tag <h1>, 'Heading 2' to <h2> etc
  2. Save the doc as Webpage-filtered (rather than Webpage) and import the html file into Calibre.
  3. When you convert in Calibre you use what you did in step 1 to set the box called 'Detect chapters at' on the Convert - Structure Detection page. For example:
    • If you mark Chapters with style 'Heading 2' then set the 'Detect chapters at' box to //h:h2 This will give you a proper external metadata TOC in the converted epub.
    • A slightly more complex example...if your book has Sections and Chapters and you want a 2-level nested metadata TOC. Mark the doc Sections with style 'Heading 2' and the Chapters with style 'Heading 3'. When you convert set the 'Detect chapters at' box to //*[name()='h2' or name()='h3']
      On the Convert - TOC page set the 'Level 1 TOC' box to //h:h2 and the 'Level 2 TOC' box to //h:h3

Hope this helps
jackie_w is offline   Reply With Quote
 
Enthusiast
Old 04-23-2012, 03:01 PM   #3
ldrover
Connoisseur
ldrover is fluent in JavaScript as well as Klingon.ldrover is fluent in JavaScript as well as Klingon.ldrover is fluent in JavaScript as well as Klingon.ldrover is fluent in JavaScript as well as Klingon.ldrover is fluent in JavaScript as well as Klingon.ldrover is fluent in JavaScript as well as Klingon.ldrover is fluent in JavaScript as well as Klingon.ldrover is fluent in JavaScript as well as Klingon.ldrover is fluent in JavaScript as well as Klingon.ldrover is fluent in JavaScript as well as Klingon.ldrover is fluent in JavaScript as well as Klingon.
 
ldrover's Avatar
 
Posts: 85
Karma: 4890
Join Date: Jul 2011
Location: Bedford, Nova Scotia
Device: iPad Mini
Thanks

Thanks for the "How To".
ldrover is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
doc to epub Laura81 ePub 62 03-26-2013 11:04 AM
epub to doc americamba ePub 3 03-10-2012 07:57 PM
.doc to .epub Judi Moore Conversion 2 03-18-2011 08:02 PM
Android Epub maker 1.0 (.doc and .docx --> .epub) devseev enTourage Archive 2 08-30-2010 12:35 PM
Converting .doc to epub . . . michael180 General Discussions 2 06-08-2010 08:54 PM


All times are GMT -4. The time now is 03:12 PM.


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