Quote:
Originally Posted by JSWolf
So once you've created the styles, you just apply them. <p class="caption">
That was so very easy.
|
yes
.note {
page-break-inside:avoid;
background-color: #E6E6E6;
display: block;
padding: 1pt 12pt;
margin: 6pt 24pt 12pt 36pt
}
I created a clip in sigil <div class="note">\1</div>
and just select the paragraphs for the new div and click the clip

ok maybe i'm a little too excited over that. Took me a while to figure out \1 means the code to be included
On the plus side i think i have figured how to hack iBook Author to work for me instead of apple.
Short version when you tell IBA to make a preview to iBooks it creates a preview copy which is very nearly an epub which looks like ffgfgfgjkxkgxk.epub
This is actually a folder
use archive manager to create a zip file (you need to tell it to use zip)
and rename to mygreatepub.epub
if you import it with calibre you get your epub but the book editor can't edit it.
So convert it with calibre to epub again.
This copy can now be polished in calibre or sigils editor.
The conversion was pretty good the only visible errors was with a few headers where the line height was wrong and that was fixed in one css style.
The best bit is only 2 stylesheets one for the page and one for the content
where as iba's epub export made a style sheet for each page and did horrible things to the css.
It seems to be well formed captions are with images headings don't start at the beginning of pages. In fact it's become a rather nice experience.
Thank you for your help