View Single Post
Old 07-16-2013, 08:54 PM   #8
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,447
Karma: 157030631
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by BeccaPrice View Post
copy/paste and edit and it works wonderfully. Thanks!

Now, is there a way to get the ncx to do that, or do I just live with a flat ToC for the ncx file?
Becca:

You can do this for the NCX via the use of headers, but not through named paragraph classes. Think of it this way: style names are just that--only names. A collection of letters or numbers or symbols that means something to you, but without your direct intervention by providing explicit CSS instructions to the ePUB reader, meaningless to the book.

A header class, however--not a style name for a header, but an actual h1 or h2 declaration--tells the document that this is structural. Had Scrivenver used H1 and H2 classes for your desired in/outdents in the first place, this would be fairly auto-magically done for you. If you are remotely regex-y, you can likely replace all the chapter heads (do NOT FORGET to change the closing p tags to closing header tags!) to h2's for you.

Does that help?

Hitch
Hitch is offline   Reply With Quote