I want to wrap several paragraphs inside a div with a custom class, but the div is closed automatically in the resulting HTML when a new paragraph begins.
This shows the issue:
\documentclass{article}
\begin{document}
\Hcode{<div class='FOO'>}
\begin{center}
test
\end{center}
\Hcode{</div>}
\end{document}
The 'FOO'-div is closed before the 'center'-div is opened.
The tex4ht tutorial begins to explain what I believe is what I need, but ends with "This exercise will be little bit more difficult".
Does anyone know how I can achieve this?
<div class="foo\global \let \T1\frqq \T1\guillemotright \T1\frqq <!--l. 23--><p class=" noindent"="">. But I now got it to work the way I wanted. Thanks for the swift response! Very nice work with make4ht, too. – Volker May 15 '19 at 12:05make4ht -l -u -f html5 -d html doc.tex "" "" "" "-file-line-error -halt-on-error"– Volker May 15 '19 at 12:58articleclass it works fine. I was using a custom document class with lots of dependencies. Not sure where the problem is... – Volker May 15 '19 at 13:04