Skip to content

Instantly share code, notes, and snippets.

@aont
Created April 12, 2011 05:48
Show Gist options
  • Select an option

  • Save aont/915015 to your computer and use it in GitHub Desktop.

Select an option

Save aont/915015 to your computer and use it in GitHub Desktop.
convert Tex to SVG
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