From cae4586bc1b760071a235942616b713407c2562f Mon Sep 17 00:00:00 2001 From: Pierre-antoine Comby Date: Thu, 7 Mar 2019 14:44:34 +0100 Subject: [PATCH] sous optimal mais fonctionnel --- compile.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/compile.sh b/compile.sh index cebc3f6..62d34bb 100755 --- a/compile.sh +++ b/compile.sh @@ -2,7 +2,10 @@ # Pour compiler tous les fichiers sources du dépot: -find . -name "main.tex" -execdir sh -c "pwd && latexmk {} -pdf main.tex -e '$latex=q/latex %O -shell-escape %S/'" \; +#find . -name "main.tex" -execdir sh -c "pwd && latexmk -e '$pdflatex=q/pdflatex %O -shell-escape %S/' -pdf {} -quiet| grep Latexmk" \; + +# 3 compilation nécessaire pour obtenir un résultat stable +find . -name "main.tex" -execdir sh -c "pwd && pdflatex -shell-escape -interaction=batchmode {} &&pdflatex -shell-escape -interaction=batchmode {}&&pdflatex -shell-escape -interaction=batchmode {}" \; mkdir "public" for i in `find . -maxdepth 1 -type d -regex \.\/[0-9].*?`;do @@ -10,5 +13,4 @@ for i in `find . -maxdepth 1 -type d -regex \.\/[0-9].*?`;do done; #clean up : shopt -s globstar -#rm -f **/*.aux **/*.log **/*.out -#**/*.fls **/*.fdb_latexmk **/*.toc +rm -f **/*.aux **/*.log **/*.out **/*.fls **/*.fdb_latexmk **/*.toc **/*.pyg