The reason I had previously rejected this approach is the added complexity involved in producing these image files. But after weighing up the advantages and finding myself with some free time in which to install Cygwin, this problem has now largely been mitigated.
For the interested, here are the technical details. You're going to need some kind of TeX installation. If you're a Windows user, I'd recommend using Cygwin and installing the various tetex packages. You'll also need ImageMagick to handle the image file conversion.
- Write your equation in TeX format in the following template:
- Lets assume you've saved your TeX file as eqn.tex. Next compile the TeX to DVI using texi2dvi:
texi2dvi eqn.tex - Then convert the DVI file to encapsulated PS format:
dvips -E eqn.dvi - Finally convert the PS file to a PNG (or other image format) using Image Magick:
convert -density 200x200 eqn.ps eqn.png
\documentclass{article}
\pagestyle{empty}
\begin{document}
% equation goes here: $$ $$
\end{document}
No comments:
Post a Comment