michal-h21 / make4ht

Build system for tex4ht
131 stars 15 forks source link

uline in ulem package #131

Closed hcf-n closed 10 months ago

hcf-n commented 11 months ago

I see from other issues that the ulem package is implemented. But I can't seem to get it to work when converting too DocBook. Is \uline{} implemented for DocBook? I would like to see in Docbook when using \uline.

Best regards Hans

michal-h21 commented 11 months ago

Most configurations are missing in Docbook. I can add ulem configuration easily, hopefully. Does the following configuration produce the expected output? If yes, I will update TeX4th sources:


\Preamble{xhtml}
\Configure{uline}{\HCode{<emphasis role="underline">}}{\HCode{</emphasis>}}
\Configure{uuline}{\HCode{<emphasis role="underline">}}{\HCode{</emphasis>}}
\Configure{sout}{\HCode{<emphasis role="underline">}}{\HCode{</emphasis>}}
\Configure{xout}{\HCode{<emphasis role="underline">}}{\HCode{</emphasis>}}
\Configure{uwave}{\HCode{<emphasis role="underline">}}{\HCode{</emphasis>}}
\Configure{dashuline}{\HCode{<emphasis role="underline">}}{\HCode{</emphasis>}}
\Configure{dotuline}{\HCode{<emphasis role="underline">}}{\HCode{</emphasis>}}
\begin{document}
\EndPreamble
hcf-n commented 10 months ago

Works as expected. Thanks!

michal-h21 commented 10 months ago

Great! I've added that to TeX4ht sources, so it should work soon out of the box.