2021-07-05 00:21:31 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-07-09 04:49:36 +00:00
|
|
|
mkdir -p ./chapitres
|
|
|
|
|
2021-07-05 00:21:31 +00:00
|
|
|
for section in {1..3}
|
|
|
|
do
|
|
|
|
for chapitre in {1..4}
|
|
|
|
do
|
2021-07-11 22:20:57 +00:00
|
|
|
pandoc -F pandoc-minted -f markdown+fenced_code_attributes+tex_math_dollars -t latex --listings --top-level-division=chapter -i "chapitre_${section}_${chapitre}.md" -o "./chapitres/chapitre_${section}_${chapitre}.tex"
|
2021-07-05 00:21:31 +00:00
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2021-07-11 22:20:57 +00:00
|
|
|
pandoc -F pandoc-minted -f markdown+fenced_code_attributes+tex_math_dollars -t latex --listings --top-level-division=chapter -i "introduction.md" -o "./chapitres/introduction.tex"
|
|
|
|
pandoc -F pandoc-minted -f markdown+fenced_code_attributes+tex_math_dollars -t latex --listings --top-level-division=chapter -i "conclusion.md" -o "./chapitres/conclusion.tex"
|
|
|
|
|
|
|
|
bibtex main.aux
|
|
|
|
makeindex main.idx
|
2021-07-05 00:21:31 +00:00
|
|
|
pdflatex --shell-escape -synctex=1 -interaction=nonstopmode main.tex
|
|
|
|
|