From 3b41ee758e9f04e05050da62542526163c2d04a4 Mon Sep 17 00:00:00 2001
From: Orestis Malaspinas <orestis.malaspinas@hesge.ch>
Date: Tue, 3 Mar 2020 08:08:11 +0100
Subject: [PATCH] added macros in separatefile

---
 00_macros.md  | 5 +++++
 Makefile      | 4 ++--
 metadata.yaml | 8 --------
 3 files changed, 7 insertions(+), 10 deletions(-)
 create mode 100644 00_macros.md

diff --git a/00_macros.md b/00_macros.md
new file mode 100644
index 0000000..7dd8daa
--- /dev/null
+++ b/00_macros.md
@@ -0,0 +1,5 @@
+  \newcommand{\ux}{\bm{x}}
+  \newcommand{\dd}{\mathrm{d}}
+  \newcommand{\real}{\mathbb{R}}
+  \newcommand{\grad}{\mathrm{grad}}
+  
\ No newline at end of file
diff --git a/Makefile b/Makefile
index fb59908..907a770 100644
--- a/Makefile
+++ b/Makefile
@@ -23,10 +23,10 @@ all:  cours.pdf cours.html
 # %.tex: %.md
 # 	pandoc -s $(OPTIONS) $(PDFOPTIONS) -o $@ $<
 
-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
+cours.pdf: 00_macros.md 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
 
-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
+cours.html: 00_macros.md 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
diff --git a/metadata.yaml b/metadata.yaml
index ebfc9a3..c2a99dc 100644
--- a/metadata.yaml
+++ b/metadata.yaml
@@ -16,14 +16,6 @@ documentclass: book
 papersize: A4
 cref: false
 urlcolor: blue
-include-before:
-- |
-  ```{=latex}
-  \newcommand{\ux}{\bm{x}}
-  \newcommand{\dd}{\mathrm{d}}
-  \newcommand{\real}{\mathbb{R}}
-  \newcommand{\grad}{\mathrm{grad}}
-  ```
 ---
 
 
-- 
GitLab