aboutsummaryrefslogtreecommitdiffstats
path: root/bin/tex2pdf
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2017-06-26 16:11:15 +0200
committerDavid Runge <dave@sleepmap.de>2017-06-26 16:11:15 +0200
commit4f03efd2150e262567227d82afc5cd9205c9b15f (patch)
tree4219c2f6e7741a905dab42ad7c68f53bd6cad53b /bin/tex2pdf
parentbd16148e70be4b2a98928016a6d380ad48111c12 (diff)
downloaddotfiles-4f03efd2150e262567227d82afc5cd9205c9b15f.tar.gz
dotfiles-4f03efd2150e262567227d82afc5cd9205c9b15f.tar.bz2
dotfiles-4f03efd2150e262567227d82afc5cd9205c9b15f.tar.xz
dotfiles-4f03efd2150e262567227d82afc5cd9205c9b15f.zip
bin/tex2pdf: Adding -shell-escape to pdflatex execution for minted. Adding more temporary files to be deleted.
Diffstat (limited to 'bin/tex2pdf')
-rwxr-xr-xbin/tex2pdf11
1 files changed, 7 insertions, 4 deletions
diff --git a/bin/tex2pdf b/bin/tex2pdf
index 071e143..7a8dcf1 100755
--- a/bin/tex2pdf
+++ b/bin/tex2pdf
@@ -54,14 +54,17 @@ function create_pdf()
set +e
pdflatex \
-interaction=nonstopmode \
+ -shell-escape \
${filename}${input_suffix} > /dev/null
bibtex ${filename}.aux
makeglossaries ${filename}
pdflatex \
-interaction=nonstopmode \
+ -shell-escape \
${filename}${input_suffix} > /dev/null
pdflatex \
-interaction=nonstopmode \
+ -shell-escape \
${filename}${input_suffix}
set -e
cd ${initial_pwd}
@@ -88,10 +91,10 @@ function show_pdf()
function cleanup()
{
- rm -f ${dirname}/*.{acn,acr,alg,aux,bbl,bcf,blg,dvi,glg,glo,gls,glsdefs,idx,ist,lof,log,lot,nav,out,run.xml,snm,toc,vrb,xdy} \
- ${dirname}/*/*.{acn,acr,alg,aux,bbl,bcf,blg,dvi,glg,glo,gls,glsdefs,idx,ist,lof,log,lot,nav,out,run.xml,snm,toc,vrb,xdy} \
- *.{acn,acr,alg,aux,bbl,bcf,blg,dvi,glg,glo,gls,glsdefs,idx,ist,lof,log,lot,nav,out,run.xml,snm,toc,vrb,xdy} \
- */*.{acn,acr,alg,aux,bbl,bcf,blg,dvi,glg,glo,gls,glsdefs,idx,ist,lof,log,lot,nav,out,run.xml,snm,toc,vrb,xdy}
+ rm -f ${dirname}/*.{acn,acr,alg,aux,bbl,bcf,blg,dvi,glg,glo,gls,glsdefs,idx,ist,lof,log,lol,lot,nav,out,run.xml,snm,toc,upa,upb,vrb,xdy} \
+ ${dirname}/*/*.{acn,acr,alg,aux,bbl,bcf,blg,dvi,glg,glo,gls,glsdefs,idx,ist,lof,log,lol,lot,nav,out,run.xml,snm,toc,upa,upb,vrb,xdy} \
+ *.{acn,acr,alg,aux,bbl,bcf,blg,dvi,glg,glo,gls,glsdefs,idx,ist,lof,log,lol,lot,nav,out,run.xml,snm,toc,upa,upb,vrb,xdy} \
+ */*.{acn,acr,alg,aux,bbl,bcf,blg,dvi,glg,glo,gls,glsdefs,idx,ist,lof,log,lot,nav,out,run.xml,snm,toc,upa,upb,vrb,xdy}
}
probe_extension $1