[tex4ht] [bug #424] inline math alignment problem in svg mode when using tex4ht

Nasser M. Abbasi nma at 12000.org
Fri May 24 17:05:02 CEST 2019


                 Summary: inline math alignment problem in svg mode when using
                 Project: tex4ht
            Submitted by: nma123
            Submitted on: Fri 24 May 2019 06:01:22 PM EEST
                Category: None
                Priority: 5 - Normal
                Severity: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any



This looks like a hard problem. But I thought to make entry here to keep track
of it and not forget it.


When using svg for math with tex4ht, the inline math in some places does not
come out as well aligned with the text around it. This does not affect mathjax



%This below is needed for tex4ht, without, inline math does not
%even render well at all
\ifx\HCode\undefined \else

But $\ln x=\frac{s}{\pi}\ln b$, hence $x=e^{s\frac{\ln b}{\pi}}$, and the
above becomes

 \ln x&=\frac{s}{\pi}\ln b


Command (all on one line)

make4ht -ulm default -f html5+dvisvgm_hashes foo.tex 
  "htm,pic-align,notoc*,p-width,charset=utf-8,svg" "-cmozhtf -utf8"

The inline math that shows up is not well align on same baseline as text. 
More examples at above link.

TL 2019 on linux



Reply to this item at:


  Message sent via/by Puszcza

More information about the tex4ht mailing list