Created
April 30, 2018 08:40
-
-
Save thomvil/aa22872be07b1e1050b577e76a10b944 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
build_tex () { | |
fname=${1:r} | |
mkdir -p pdf_build | |
pdflatex -output-directory pdf_build $1 | |
pdflatex -output-directory pdf_build $1 | |
pdflatex -output-directory pdf_build $1 | |
rm -rf pdf_build/.${1}.swp | |
rm -rf pdf_build/${fname}.aux | |
rm -rf pdf_build/${fname}.out | |
rm -rf pdf_build/${fname}.log | |
rm -rf pdf_build/${fname}.toc | |
open "pdf_build/${fname}.pdf" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment