Created
April 12, 2011 05:48
-
-
Save aont/915015 to your computer and use it in GitHub Desktop.
convert Tex to SVG
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DIR_PREV=$PWD | |
| TMPDIR=/tmp/.tex2svg.$$ | |
| mkdir $TMPDIR | |
| cd $TMPDIR | |
| platex << EOS | |
| \documentclass[30pt]{jsarticle} | |
| \begin{document} | |
| \thispagestyle{empty} | |
| \$\$$1\$\$ | |
| \end{document} | |
| EOS | |
| dvipdfm texput.dvi | |
| pdf2svg texput.pdf texput.svg | |
| mv texput.svg $DIR_PREV/output.svg | |
| cd $DIR_PREV | |
| rm -rf $TMPDIR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment