03-12-2011, 02:22 PM | #1 |
Member
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 |
03-14-2011, 03:30 PM | #2 |
Member
Posts: 12
Karma: 10
Join Date: Feb 2011
|
Nobody?
|
Advert | |
|
03-14-2011, 04:23 PM | #3 |
Wizard
Posts: 3,130
Karma: 91256
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')] |
03-15-2011, 02:00 PM | #4 |
Member
Posts: 12
Karma: 10
Join Date: Feb 2011
|
I will try this and let you know.
|
03-19-2011, 02:05 PM | #5 |
Member
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? |
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
TOC Entries from PDF | HamsterRage | Calibre | 2 | 07-12-2010 11:57 AM |
no toc in a pdf? as mcenroe would say.... | extendedping | Amazon Kindle | 4 | 05-29-2010 07:30 PM |
prc to pdf TOC | Maradona10 | Calibre | 1 | 04-29-2010 10:04 AM |
Problem with Calibre PDF TOC | mkumbale | Calibre | 1 | 08-26-2009 07:57 PM |
pdf toc for kindle dx | oski24601 | Calibre | 1 | 07-28-2009 08:40 PM |