diff --git a/plan/.gitignore b/plan/.gitignore new file mode 100644 index 0000000..e120864 --- /dev/null +++ b/plan/.gitignore @@ -0,0 +1,3 @@ +plan.md +plan.html +plan.pdf diff --git a/plan/Makefile b/plan/Makefile new file mode 100644 index 0000000..8cacdc7 --- /dev/null +++ b/plan/Makefile @@ -0,0 +1,16 @@ +TARGET=plan.pdf +MD_TARGET=$(TARGET:.pdf=.md) +SOURCES=$(shell ls -1 [0-9]*_*.md) + +all: $(TARGET) + +$(TARGET): $(MD_TARGET) + pandoc -o "$@" --pdf-engine=lualatex "$<" + +$(MD_TARGET): $(SOURCES) + cat pandoc_header.md > $@ + cat $^ >> $@ + sed -i 's/\\rho/rho/g' $@ + +clean: + rm -f $(TARGET) $(MD_TARGET) diff --git a/plan/pandoc_header.md b/plan/pandoc_header.md new file mode 100644 index 0000000..d23121a --- /dev/null +++ b/plan/pandoc_header.md @@ -0,0 +1,11 @@ +--- +title: Plan de thèse +author: Théophile Bastian +header-includes: + - '\usepackage{fontspec}' +geometry: margin=2.5cm +mainfont: "DejaVu Serif" +sansfont: DejaVuSans +monofont: DejaVuSansMono +mathfont: TeXGyreDejaVuMath-Regular +---