From 2f0d4836cf0d6ce2a17558fc185ec79748a9b4a2 Mon Sep 17 00:00:00 2001
From: Orestis Malaspinas <orestis.malaspinas@hesge.ch>
Date: Mon, 2 Mar 2020 23:34:10 +0100
Subject: [PATCH] problem with latex macros in html

---
 Makefile      | 4 ++--
 metadata.yaml | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 75c84d3..fb59908 100644
--- a/Makefile
+++ b/Makefile
@@ -26,8 +26,8 @@ all:  cours.pdf cours.html
 cours.pdf: 01_rappel.md 02_integrales.md 03_optimisation.md 04_edo.md 05_fourier.md 06_probas_stats.md 07_remerciements.md 08_notes.md
 	pandoc -s $(OPTIONS) $(PDFOPTIONS) -o $@ $^ --metadata-file metadata.yaml
 
-%.html: %.md
-	pandoc -s $(OPTIONS) $(HTMLOPTIONS) -o $@ $<
+cours.html: 01_rappel.md 02_integrales.md 03_optimisation.md 04_edo.md 05_fourier.md 06_probas_stats.md 07_remerciements.md 08_notes.md
+	pandoc -s $(OPTIONS) $(HTMLOPTIONS) -o $@ $^ --metadata-file metadata.yaml
 
 deploy: all
 	mkdir -p mti
diff --git a/metadata.yaml b/metadata.yaml
index 0de5221..ebfc9a3 100644
--- a/metadata.yaml
+++ b/metadata.yaml
@@ -16,7 +16,7 @@ documentclass: book
 papersize: A4
 cref: false
 urlcolor: blue
-header-includes:
+include-before:
 - |
   ```{=latex}
   \newcommand{\ux}{\bm{x}}
-- 
GitLab