Created
October 3, 2013 17:51
-
-
Save spion/6814044 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
rm -rf out 2>/dev/null | |
mkdir out | |
echo " | |
\documentclass{article} | |
\begin{document} | |
\thispagestyle{empty} | |
\LARGE | |
\$\$$1\$\$ | |
\end{document}" | pdflatex -output-directory=out > /dev/null | |
pdfcrop --clip out/*.pdf out/*.pdf > /dev/null | |
pdf2svg out/*.pdf formula.svg > /dev/null | |
cat formula.svg | |
rm formula.svg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment