Skip to content

Instantly share code, notes, and snippets.

@Fitzy1293
Last active September 11, 2020 04:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fitzy1293/b370d63a5c919d1c990fca42f3c8a717 to your computer and use it in GitHub Desktop.
Save Fitzy1293/b370d63a5c919d1c990fca42f3c8a717 to your computer and use it in GitHub Desktop.
#!/bin/bash
while :
do
if [ $1 == '-bib' ]
then
lualatex -interaction nonstopmode $2 > /dev/null
bibtex $2
lualatex -interaction nonstopmode $2 > /dev/null
else
lualatex -interaction nonstopmode $1 > /dev/null
fi
rm *.out
rm *.aux
rm *.dvi
rm *.log
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment