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