Skip to content

Misalignment in fraction numbers #22

@tautomer

Description

@tautomer

Hi Jonathan,

Thanks for you wonderful work! I'm having problem in rendering equations with IguanaTex 1.59 combined with dvisvgm package.

Environment

Powerpoint version: Microsoft® PowerPoint® for Microsoft 365 MSO (Version 2110 Build 16.0.14527.20270) 64-bit 
IguanaTex version: 1.59
Tex Live version: 2021

IguanaTex Configuration

pdflatex engine + dvisvgm for vector output

Code

\documentclass{article}
\usepackage{amsmath}
\pagestyle{empty}
\begin{document}
\begin{align}
\ln \frac{k_\mathrm{i}}{T} = -\frac{\Delta H^\ddagger_\mathrm{i}}{RT} + \frac{\Delta S^\ddagger_\mathrm{i}}{R} + \ln \frac{k_\mathrm{B}}{h}
\nonumber
\end{align}
\end{document}

The svg file in the temp folder looks great
image

The pdf file in the temp folder looks great as well
image

Inserting the svg file directly to my slides also works, but the one generated from IguanaTex is misaligned
image

If I renegerate the display with dvisvgm, the vincula are frequently gone. Again, the svg and pdf files in the temp folder are correct.
image

I'm not sure what happened. TeX2img and pdfiumdraw doesn't mess up with the alignment, though.

Also, I found TeX2img, pdfiumdraw and dvisvgm all seem to generate different font sizes though they are all supposed to be 20 pt.
image
TeX2img and pdfiumdraw roughly gives the same size with tex2img being a littile bit larger. I wonder if there is an easy to know the right size in points to keep the generated eqautions the same size?

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions