[tex4ht] How to make tex4ht insert <BR> without adding <P> also?

Michal Hoftich michal.h21 at gmail.com
Mon Sep 23 09:43:06 CEST 2024


Hi Nasser,

The main issue was that tex4ht puts no space after the
> local TOC and the main text of the section, which makes the
> page look little ugly.
>
> I wanted a way to increase the vertical space between the TOC and main
> text a little. All other things I tried was making the vertical
> space too large.
>

The correct solution is to use CSS:

\Preamble{xhtml}
\Css{.sectionTOCS{margin-bottom:2rem;}}
\begin{document}
\EndPreamble

Adjust the value of the margin to your desired size.

Best regards,
Michal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex4ht/attachments/20240923/0c3db760/attachment.htm>


More information about the tex4ht mailing list.