I have a situation where I'm calling latex.exe
in the background and then dvipng
on it and then loading the file into a QGraphicsScene
using QGraphicsImageItem
and the result is horrible upon zooming out:
this is unprofessional. I can't release the app like this. So I decided to go with online-convert.com to start out with and maybe a paid service if needed (Convertio is $7 / month for starters).
Which would take the latex / dvipng -generated PNG file and convert the symbols into SVG paths (.svg file).
These online services have APIs to connect to them and do it all programatically. But why use one if it's possible somehow to get the SVG straight from LaTeX source files some how?
Please guide. Thanks.
Here is the LaTeX template my program uses. I just realized it's missing dpi information, which I have a class variable for, but it's not appearing in the TeX:
\documentclass[varwidth]{standalone}
\usepackage{lmodern}
\begin{document}\fontsize{30}{36}\selectfont
$\alpha \lim\limits_{\leftarrow} \beta$
\end{document}
dvisvgm
to directly produce SVG as a vector graphics.dvisvgm