Adding custom code when converting?
I convert all my books to KFX to take advantage of the features it provides, however I also like to slightly edit the resulting file.
html {
margin-left: -35px;
margin-right: -35px;
break-inside: avoid !important
}
I use the above to push the text closer to the edges of my device, removing empty space, and...
body, div, h1, h2, h3, h4, h5, h6, p {orphans: 1 !important; widows: 1 !important;
...the above to remove the resulting extra blank spaces added when converting to KFX, so the text goes from the top right to the bottom of each page.
The problem I have is that I add the html manually to the book, then add the CSS when converting which means it takes forever to convert a bunch of books as I have to edit>add code>save for every single one.
Is there any way to add both these codes when converting, so that I can just select a handful of books and have these added all at once during conversion?
Thanks.
|