You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current internal DPI for LaTeXML is 100, but that seems arbitrary. I suggest to change it to 96 like CSS, or even better to 96.36, because:
the CSS dots-per-inch is always 96, where in fact dot = 1px
in CSS, 72pt = 1inch (= 96px)
in TeX, 72.27pt = 1inch, and LaTeXML pretends that CSS points are actually TeX points
Thus, to make pixels and points match their TeX meaning even when exported to HTML, the internal dpi value should be 72.27*96/72 = 96.36.
Using the correct DPI value will improve the accuracy of alignment in TikZ and of image sizing, mostly.
At the end of the day, the glitches I see come from LaTeXML using both pxValue and ptValue in the output. I am not sure if there is a general rule for choosing between the two, or if it just happened organically. Everything would work naturally if all logical sizes were consistently exported as (TeX) points, with postprocessing taking care of translating to pixel when required (e.g. for images width/height attributes).
The text was updated successfully, but these errors were encountered:
The current internal DPI for LaTeXML is 100, but that seems arbitrary. I suggest to change it to 96 like CSS, or even better to 96.36, because:
Thus, to make pixels and points match their TeX meaning even when exported to HTML, the internal dpi value should be 72.27*96/72 = 96.36.
Using the correct DPI value will improve the accuracy of alignment in TikZ and of image sizing, mostly.
At the end of the day, the glitches I see come from LaTeXML using both pxValue and ptValue in the output. I am not sure if there is a general rule for choosing between the two, or if it just happened organically. Everything would work naturally if all logical sizes were consistently exported as (TeX) points, with postprocessing taking care of translating to pixel when required (e.g. for images width/height attributes).
The text was updated successfully, but these errors were encountered: