[tex4ht] underline math does not work in tex4ht when in mathjax mode

William F Hammond gellmu at gmail.com
Sun Apr 7 03:30:52 CEST 2019

I think it's reasonable that MathJax would never want to apply a
text-decoration like "underline" to mathematical content except possibly a
single symbol.  But I think that border-bottom would make sense for a
<span> in text that contains math (so outside the domain where MathJax

I'm neutral on whether this might lead to a viable change in tex4ht.

In the cited MWE each of the two \underline commands generates in tex4ht
"<span class="underline"> and that (outside the scope of MathJax) is tied
to the text-decoration "underline".  Instead for the span with math one can
change the class attribute from "underline" to, say, "uline", and for that
class use the CSS property border-bottom instead of text-decoration, e.g.,

         span.uline {border-bottom: 0.2ex solid black;}

     -- Bill

William F Hammond
Email: gellmu at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex4ht/attachments/20190406/8940db9b/attachment.html>

More information about the tex4ht mailing list