From 4f03efd2150e262567227d82afc5cd9205c9b15f Mon Sep 17 00:00:00 2001 From: David Runge Date: Mon, 26 Jun 2017 16:11:15 +0200 Subject: bin/tex2pdf: Adding -shell-escape to pdflatex execution for minted. Adding more temporary files to be deleted. --- bin/tex2pdf | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'bin/tex2pdf') 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 -- cgit v1.2.3-70-g09d2