From 0121cb359e35a5b9f084c3c2d81e2d32090e92e4 Mon Sep 17 00:00:00 2001 From: Orestis Malaspinas <orestis.malaspinas@hesge.ch> Date: Sun, 9 Sep 2018 11:19:23 +0200 Subject: [PATCH] modif makefile --- Makefile | 6 +++++- cours.md | 9 +++++++++ default.latex | 9 --------- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 5903a0f..b017243 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,7 @@ PDF=$(MD:%.md=%.pdf) all: $(PNG) $(HTML) $(PDF) -figs/%.png: figs/%.svg figs/%.pdf +figs/%.png: figs/%.svg convert \-flatten $< $@ %.pdf: %.md Makefile @@ -37,5 +37,9 @@ figs/%.png: figs/%.svg figs/%.pdf %.html: %.md Makefile pandoc -s $(OPTIONS) $(HTMLOPTIONS) -o $@ $< +deploy: all + mkdir -p mti + cp cours.html mti/index.html + clean: rm -rf *.html *.pdf diff --git a/cours.md b/cours.md index bb91280..c4bfdc5 100644 --- a/cours.md +++ b/cours.md @@ -18,6 +18,15 @@ cref: false urlcolor: blue --- +\newcommand{\dd}{\mathrm{d}} +\newcommand{\real}{\mathbb{R}} +\newcommand{\integer}{\mathbb{Z}} +\newcommand{\definition}{\textbf{Definition }} +\newcommand{\exemples}{\textbf{Exemples }} +\newcommand{\remarque}{\textbf{Remarque }} +\newcommand{\proprietes}{\textbf{Propriétés }} +\newcommand{\propriete}{\textbf{Propriété }} + # Rappel ## Fonctions diff --git a/default.latex b/default.latex index 64ab8b4..4312f71 100644 --- a/default.latex +++ b/default.latex @@ -233,15 +233,6 @@ $if(institute)$ $endif$ \date{$date$} -\newcommand{\dd}{\mathrm{d}} -\newcommand{\real}{\mathbb{R}} -\newcommand{\integer}{\mathbb{Z}} -\newcommand{\definition}{\textbf{Definition }} -\newcommand{\exemples}{\textbf{Exemples }} -\newcommand{\remarque}{\textbf{Remarque }} -\newcommand{\proprietes}{\textbf{Propriétés }} -\newcommand{\propriete}{\textbf{Propriété }} - \begin{document} $if(title)$ \maketitle -- GitLab