View Single Post
Old 10-21-2013, 08:03 PM   #42
automa
Zealot
automa ought to be getting tired of karma fortunes by now.automa ought to be getting tired of karma fortunes by now.automa ought to be getting tired of karma fortunes by now.automa ought to be getting tired of karma fortunes by now.automa ought to be getting tired of karma fortunes by now.automa ought to be getting tired of karma fortunes by now.automa ought to be getting tired of karma fortunes by now.automa ought to be getting tired of karma fortunes by now.automa ought to be getting tired of karma fortunes by now.automa ought to be getting tired of karma fortunes by now.automa ought to be getting tired of karma fortunes by now.
 
automa's Avatar
 
Posts: 110
Karma: 972092
Join Date: Jan 2012
Device: iPhone
Quote:
Originally Posted by theducks View Post
Just use a consistent entry (template) format

eg Heading 3 followed by a Heading 4

<h3> Chapter n
<h4> The chapter title

Then a Search and replace

to turn the 2 into a single with styling


Code:
 replace:
<h3 class="chapter">Chapter  \1 <br class="ctspace" /> <span class="cst">\2<\span><\h3>
the:
.chapter CSS sets the basics of the chapter number
.ctspace sets the spacing between the 2 lines (if inherited is not acceptable)
.cst controls the chapter title

Because you used a BR, the toc (NCX) will use both


In some cases, you might want a different treatment

<h3 title="create your replace template here" > And Leave the original heading text intact
In this case, what code do you use for find field?
automa is offline   Reply With Quote