01-01-2011, 10:50 AM | #1 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2011
Device: none
|
MultiLevel TOC Sigil
Hi everybody!
Let's say I've created quite a good epub from InDesign, fixing things with Dreamweaver. Now: the TOC on the left is not as I expected. I'm just too bad to manually change the TOC in, e.g., TextEditor, but luckily enough I've just discovered Sigil! It allows me to change the voices, eliminate some of them... BUT WHAT ABOUT TRANSFORMING A 1st LEVEL VOICE INTO A 2nd LEVEL ONE? Please help soon! |
01-01-2011, 11:21 AM | #2 | |
Well trained by Cats
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
In Sigil. Place the cursor on the line with the heading (Notice the Style box switched from 'Normal' to 'Heading1' ) Simply change(pull down) that to 'Heading 2' Do NOT highlight text, Just place the cursor on the same line. These styles and Justification apply to entire 'paragraphs' that terminate with a non-visible end-of-line character (in CV) |
|
Advert | |
|
01-01-2011, 11:27 AM | #3 |
Zealot
Posts: 121
Karma: 5070
Join Date: Dec 2010
Device: none
|
<h1> is for first level, <h2> for second level down to level 6.
If you want to change <h2> into <h3> use the following regex: search: Code:
<h2(.*>)(.*)</h2> Code:
<h3\1>\2</h3> but be careful: if you want to change now all old h3 to h4 you cant cause you have now new h3 which will be converted to. So you have to start at the bottom going to the top when changing the levels in more then one hierarchy. |
01-01-2011, 12:07 PM | #4 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2011
Device: none
|
yes, "heading", sorry!
Mmm... Let me give you an example: I have a cover (an image) and an abstract (without the title "Abstract", just plain text). COVER must be level 1 in the TOC, ABSTRACT level 2. If I put the cursor on the abstract and give it "heading 2", it changes format! But I don't want that! |
01-01-2011, 12:59 PM | #5 | |
Well trained by Cats
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
It chnges size OK, time to hit the stylesheet and overide the size Add/paste at the top (outside any other selectors) Code:
h2 { font-size: 150%} |
|
Advert | |
|
01-01-2011, 01:04 PM | #6 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2011
Device: none
|
I see... Correct me if I'm wrong: I could make my TOC with sigil, then go back to the CSS and change the size.
Would it be difficult to open ONLY the TOC with Sigil and changing it manually? |
01-01-2011, 01:47 PM | #7 |
Zealot
Posts: 121
Karma: 5070
Join Date: Dec 2010
Device: none
|
No, the TOC is derived from the <hx> elements.
|
01-01-2011, 04:11 PM | #8 | |
Well trained by Cats
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
You can modify the CSS at any time, it does not change the document other than appeaence. Bigger,Smaller, Bold, Underline can all be (and should be if it affects more than 1 page. Now you change in one place) done via the CSS. No, I am not saying that you MUST, just that it is a neat and elegant solution. |
|
01-02-2011, 12:35 PM | #9 |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Well, CSS can change only the appearance but that includes making the text invisible.
|
01-02-2011, 02:03 PM | #10 |
Well trained by Cats
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre ePub TOC and Sigil | salasnet | Calibre | 3 | 09-26-2010 05:34 PM |
Sigil Toc editor | Enesco | Sigil | 16 | 09-23-2010 06:41 AM |
Multilevel TOC | MovieBird | ePub | 2 | 05-02-2010 10:37 PM |
sigil and toc | bobcdy | Sigil | 5 | 10-17-2009 04:29 PM |
TOC in Sigil | KindleKid | Sigil | 8 | 08-19-2009 04:30 PM |