Skip to content

Instantly share code, notes, and snippets.

@rinx
Last active December 17, 2015 06:48
Show Gist options
  • Save rinx/5567999 to your computer and use it in GitHub Desktop.
Save rinx/5567999 to your computer and use it in GitHub Desktop.
#!/bin/sh
if [ -z $1 ]; then
filename=doc
else
filename=$1
fi
lualatex -ini lualatex.ini > /dev/null 2>&1
cat << EOF > .gitignore
lualatex.fmt
lualatex.log
texsys.aux
$filename.aux
$filename.log
$filename.pdf
EOF
touch $filename.tex
git init
git add .
git commit -m "first commit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment