Plan: (bad) best-effort compilation to pdf
This commit is contained in:
parent
0683fefbef
commit
928e655141
3 changed files with 30 additions and 0 deletions
3
plan/.gitignore
vendored
Normal file
3
plan/.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
plan.md
|
||||||
|
plan.html
|
||||||
|
plan.pdf
|
16
plan/Makefile
Normal file
16
plan/Makefile
Normal file
|
@ -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)
|
11
plan/pandoc_header.md
Normal file
11
plan/pandoc_header.md
Normal file
|
@ -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
|
||||||
|
---
|
Loading…
Reference in a new issue