Add support for pagebreaks for LaTeX input and HTML output