View Single Post
Old 11-14-2011, 06:24 PM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,796
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by LaoTseu View Post
If you use Sigil, you can use Regular Expression search and replace.

The regular expression would be:

Search for <p class="chapnum">(.*)</p>
Replace with <h1>\1</h1>

Be sure to select minimal match and do the replace in all html files.

You probably also want to create a style for you header to have it look the way you want. Something like

Code:
h1 {
    margin-bottom: 2em;
    margin-left: 0;
    margin-right: 0;
    margin-top: 10%;
    text-align: center;
    text-indent: 0;
}
There is a whole thread on this forum about Sigil so if you have specific questions about using the software, you can ask there.

Best
IMHO, chapter titles are best in h2.

Code:
h2 {
    margin-bottom: 25px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 25px;
    text-align: center;
    text-indent: 0;
}
JSWolf is offline   Reply With Quote