Daniel, you can use following config file, myconfig.cfg:
-------------- \Preamble{xhtml} \renewcommand\pagebreak[1][]{% \ifvmode\IgnorePar\fi\EndP\HCode{<div class="pagebreak"></div>}\par } \Css{.pagebreak{ page-break-before: always; }} \begin{document} \EndPreamble --------------- and compile the document with htlatex filename myconfig we can add configuration for this to the sources, if it works correctly. Best regards, Michal 2015-02-02 0:13 GMT+01:00 Daniel Ziltener <puszcza-hack...@gnu.org.ua>: > URL: > <http://puszcza.gnu.org.ua/bugs/?243> > > Summary: Use \pagebreak for ePUB hinting > Project: tex4ht > Submitted by: zilti > Submitted on: Mon 02 Feb 2015 01:13:33 AM EET > Category: None > Priority: 5 - Normal > Severity: 7 - Important > Status: None > Privacy: Public > Assigned to: None > Originator Email: > Open/Closed: Open > Discussion Lock: Any > > _______________________________________________________ > > Details: > > There are tools like calibre that can convert HTML to ePUB, and in the ePUB > standard, the CSS property "page-break-before: always;" ensures a pagebreak. > > So I propose interpreting \pagebreak as <p class='pagebreak'></p> and putting > ".pagebreak { page-break-before: always; }" to the CSS. > > > > > _______________________________________________________ > > Reply to this item at: > > <http://puszcza.gnu.org.ua/bugs/?243> > > _______________________________________________ > Message sent via/by Puszcza > http://puszcza.gnu.org.ua/ >