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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 03-12-2011, 03:22 PM   #1
qxlooper
Member
qxlooper began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Feb 2011
PDF TOC help

<p class="calibre2">Chapter 1 General Policies</p>

<p class="calibre2">Section 1 General Statement</p>

<p class="calibre2"><b class="calibre3">Volume 5</b></p>

<p class="calibre2"><b class="calibre3">Chapter 1</b></p>

<p class="calibre2"><b class="calibre3">General Policies</b></p>

<p class="calibre2"><b class="calibre3">Section 1</b></p>

<p class="calibre2"><b class="calibre3">General Statement</b></p>

I am looking to get Chapter 1 General Policies as the top and then under it, section 1 general statement.


<p class="calibre2">Chapter 1 General Policies</p>

<p class="calibre2">Section 2 Checklist Philosophy Normal Procedures</p>

<p class="calibre2">Flightdeck Checklist</p>

<p class="calibre2"><b class="calibre3">Volume 5</b></p>

<p class="calibre2"><b class="calibre3">Section 2</b></p>

<p class="calibre2"><b class="calibre3">Checklist Philosophy Normal Procedures</b> </p>

<p class="calibre2"><b class="calibre3">Flightdeck Checklist</b></p>

<p class="calibre2"><b class="calibre3">A. Philosophy</b></p>

Other chapters have this. I am trying to get Chapter 1, and under it Section 2, then capture the a. philosophy under it.
Some chapters just have sections under them, and others have things under the sections. I have tried acrobat and made tags to reflect this, but they do not get carried over to Calibre.

How can I accomplish this to make a toc? This is from calibre


Thanks in advance!

Keith
qxlooper is offline   Reply With Quote
Old 03-14-2011, 04:30 PM   #2
qxlooper
Member
qxlooper began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Feb 2011
Nobody?
qxlooper is offline   Reply With Quote
Old 03-14-2011, 05:23 PM   #3
Manichean
Wizard
Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!
 
Manichean's Avatar
 
Posts: 3,130
Karma: 80520
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
You'll need to use the TOC option in the conversion options. The options expect an XPath expression to describe what chapter headings look like. You'll probably want to use somethig like the following:
Code:
Layer 1:
//h:p[re:test(., 'chapter', 'i')]
Layer 2:
//h:p[re:test(., 'chapter', 'i')]
Layer 3:
//h:p[re:test(., '[a-z]\.\s', 'i')]
(Note that these expressions may or may not work, they're mostly intended to get you started. There's a XPath tutorial available in case you need it. Also note that this might only work if there's no TOC already present- if there is, you'll need to force the use of the autogenerated TOC, see the TOC options page in the conversion options for that.)
Manichean is offline   Reply With Quote
Old 03-15-2011, 03:00 PM   #4
qxlooper
Member
qxlooper began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Feb 2011
I will try this and let you know.
qxlooper is offline   Reply With Quote
Old 03-19-2011, 03:05 PM   #5
qxlooper
Member
qxlooper began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Feb 2011
it worked, but when you click on the chapter it just takes you back to page one of the document. also at the end in the index it is all ??..

Any ideas?
qxlooper 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
TOC Entries from PDF HamsterRage Calibre 2 07-12-2010 12:57 PM
no toc in a pdf? as mcenroe would say.... extendedping Amazon Kindle 4 05-29-2010 08:30 PM
prc to pdf TOC Maradona10 Calibre 1 04-29-2010 11:04 AM
Problem with Calibre PDF TOC mkumbale Calibre 1 08-26-2009 08:57 PM
pdf toc for kindle dx oski24601 Calibre 1 07-28-2009 09:40 PM


All times are GMT -4. The time now is 10:44 PM.


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