Commit 3613a00e authored by erdnaxe's avatar erdnaxe 🎇

Update to pandoc metadata files

parent 8c57608c
.PHONY: clean BUILDDIR = build/
TARGETS=$(addprefix $(BUILDDIR), $(patsubst %.md,%.pdf,$(wildcard *.md)))
INPUT=article.md # Configure Pandoc
OUTPUT=article.pdf PARAMETERS = --pdf-engine=xelatex
DEP=$(wildcard *.sty *.jpg *.png) PARAMETERS += --metadata-file config.yml
$(OUTPUT): $(INPUT) $(DEP) all: $(TARGETS)
pandoc $(INPUT) -o $(OUTPUT)
$(BUILDDIR)%.pdf : %.md config.yml
@mkdir -p $(BUILDDIR) # Make sure build dir exists
pandoc $(PARAMETERS) $< -o $@
clean: clean:
rm -f $(OUTPUT) @rm -f $(TARGETS)
...@@ -2,13 +2,6 @@ ...@@ -2,13 +2,6 @@
title: Problème 1. Tours de Hanoï title: Problème 1. Tours de Hanoï
subtitle: SAPHIRE - 104 subtitle: SAPHIRE - 104
author: Alexandre IOOSS author: Alexandre IOOSS
toc: no
lang: fr-FR
papersize: a4
geometry: left=2cm, right=2cm, top=3cm, bottom=3cm
classoption: twoside
documentclass: scrartcl
numbersections: no
--- ---
Le but est de lister les 127 mouvements pour déplacer les disques de la tour A à B. Le but est de lister les 127 mouvements pour déplacer les disques de la tour A à B.
......
documentclass: scrartcl
geometry: left=2cm, right=2cm, top=3cm, bottom=3cm
papersize: a4
classoption: egregdoesnotlikesansseriftitles,twoside
lang: fr-FR
toc: false
numbersections: false
.PHONY: clean BUILDDIR = build/
TARGETS=$(addprefix $(BUILDDIR), $(patsubst %.md,%.pdf,$(wildcard *.md)))
INPUT=article.md # Configure Pandoc
OUTPUT=article.pdf PARAMETERS = --pdf-engine=xelatex
DEP=$(wildcard *.sty *.jpg *.png) PARAMETERS += --metadata-file config.yml
$(OUTPUT): $(INPUT) $(DEP) all: $(TARGETS)
pandoc $(INPUT) -o $(OUTPUT)
$(BUILDDIR)%.pdf : %.md config.yml
@mkdir -p $(BUILDDIR) # Make sure build dir exists
pandoc $(PARAMETERS) $< -o $@
clean: clean:
rm -f $(OUTPUT) @rm -f $(TARGETS)
--- ---
title: Crous de quelque chose title: Crous de quelque chose
subtitle: SAPHIRE - 42 subtitle: SAPHIRE - 42
toc: yes author: Alexandre IOOSS
lang: fr-FR
papersize: a4
geometry: left=2cm, right=2cm, top=3cm, bottom=3cm
classoption: twocolumn,twoside
documentclass: scrartcl
numbersections: yes
--- ---
# Titre 1 # Titre 1
## Titre 2 ## Titre 2
......
documentclass: scrartcl
geometry: left=2cm, right=2cm, top=3cm, bottom=3cm
papersize: a4
classoption: egregdoesnotlikesansseriftitles,twoside,twocolumn
lang: fr-FR
toc: true
numbersections: true
.PHONY: clean BUILDDIR = build/
TARGETS=$(addprefix $(BUILDDIR), $(patsubst %.md,%.pdf,$(wildcard *.md)))
INPUT=slides.md # Configure Pandoc
OUTPUT=slides.pdf PARAMETERS = --pdf-engine=xelatex
DEP=$(wildcard *.sty *.jpg *.png) PARAMETERS += --metadata-file config.yml
PARAMETERS += -t beamer
$(OUTPUT): $(INPUT) $(DEP) all: $(TARGETS)
pandoc -st beamer $(INPUT) -o $(OUTPUT)
$(BUILDDIR)%.pdf : %.md config.yml
@mkdir -p $(BUILDDIR) # Make sure build dir exists
pandoc $(PARAMETERS) $< -o $@
clean: clean:
rm -f $(OUTPUT) @rm -f $(TARGETS)
toc: true
lang: fr-FR
logo: logo-crans.pdf
...@@ -2,13 +2,14 @@ ...@@ -2,13 +2,14 @@
title: Exemple de présentation title: Exemple de présentation
subtitle: avec le thème Cr@ns subtitle: avec le thème Cr@ns
author: Alexandre IOOSS author: Alexandre IOOSS
toc: yes date: un jour viendra
lang: fr-FR header-includes:
logo: logo-crans.pdf - |
header-includes: | ```{=latex}
\usetheme{Madrid} \usetheme{Madrid}
\definecolor{a}{HTML}{df0e24} \definecolor{a}{HTML}{df0e24}
\setbeamercolor{structure}{fg=a!90!black} \setbeamercolor{structure}{fg=a!90!black}
```
--- ---
# Ma section # Ma section
......
.PHONY: clean
INPUT=slides.md
OUTPUT=slides.pdf
DEP=$(wildcard *.sty *.jpg *.png)
$(OUTPUT): $(INPUT) $(DEP)
pandoc -st beamer $(INPUT) -o $(OUTPUT)
clean:
rm -f $(OUTPUT)
---
title: Exemple de présentation
subtitle: avec le thème ENS Paris-Saclay
author: Alexandre IOOSS
toc: yes
lang: fr-FR
logo: logo-ens.pdf
header-includes: |
\usetheme{Madrid}
\definecolor{a}{HTML}{00778b}
\setbeamercolor{structure}{fg=a!90!black}
---
# Ma section
## Ma première frame
- c'est bien
- et en plus ce n'est pas verbeux
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment