Skip to content

Instantly share code, notes, and snippets.

@slashinfty slashinfty/tex2pdf.bat
Last active Apr 12, 2019

What would you like to do?
A Windows batch file for simple LaTeX PDF compiling with clean up
rem this batch file compiles all tex files to pdf files in a folder
for %%i in (*.tex) do (if not exist "%%~ni.pdf" xelatex "%%i")
rem this will delete any extraneous files from compiling
del *.log && del *.aux
rem this will delete original tex files and leave only pdf files
del *.tex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.