Commit 3613a00e authored by Alexandre (erdnaxe)'s avatar Alexandre (erdnaxe) 🎇

Update to pandoc metadata files

parent 8c57608c
.PHONY: clean
BUILDDIR = build/
TARGETS=$(addprefix $(BUILDDIR), $(patsubst %.md,%.pdf,$(wildcard *.md)))
INPUT=article.md
OUTPUT=article.pdf
DEP=$(wildcard *.sty *.jpg *.png)
# Configure Pandoc
PARAMETERS = --pdf-engine=xelatex
PARAMETERS += --metadata-file config.yml
$(OUTPUT): $(INPUT) $(DEP)
pandoc $(INPUT) -o $(OUTPUT)
all: $(TARGETS)
$(BUILDDIR)%.pdf : %.md config.yml
@mkdir -p $(BUILDDIR) # Make sure build dir exists
pandoc $(PARAMETERS) $< -o $@
clean:
rm -f $(OUTPUT)
@rm -f $(TARGETS)
......@@ -2,13 +2,6 @@
title: Problème 1. Tours de Hanoï
subtitle: SAPHIRE - 104
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.
......
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
OUTPUT=article.pdf
DEP=$(wildcard *.sty *.jpg *.png)
# Configure Pandoc
PARAMETERS = --pdf-engine=xelatex
PARAMETERS += --metadata-file config.yml
$(OUTPUT): $(INPUT) $(DEP)
pandoc $(INPUT) -o $(OUTPUT)
all: $(TARGETS)
$(BUILDDIR)%.pdf : %.md config.yml
@mkdir -p $(BUILDDIR) # Make sure build dir exists
pandoc $(PARAMETERS) $< -o $@
clean:
rm -f $(OUTPUT)
@rm -f $(TARGETS)
---
title: Crous de quelque chose
subtitle: SAPHIRE - 42
toc: yes
lang: fr-FR
papersize: a4
geometry: left=2cm, right=2cm, top=3cm, bottom=3cm
classoption: twocolumn,twoside
documentclass: scrartcl
numbersections: yes
author: Alexandre IOOSS
---
# Titre 1
## 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
OUTPUT=slides.pdf
DEP=$(wildcard *.sty *.jpg *.png)
# Configure Pandoc
PARAMETERS = --pdf-engine=xelatex
PARAMETERS += --metadata-file config.yml
PARAMETERS += -t beamer
$(OUTPUT): $(INPUT) $(DEP)
pandoc -st beamer $(INPUT) -o $(OUTPUT)
all: $(TARGETS)
$(BUILDDIR)%.pdf : %.md config.yml
@mkdir -p $(BUILDDIR) # Make sure build dir exists
pandoc $(PARAMETERS) $< -o $@
clean:
rm -f $(OUTPUT)
@rm -f $(TARGETS)
toc: true
lang: fr-FR
logo: logo-crans.pdf
......@@ -2,13 +2,14 @@
title: Exemple de présentation
subtitle: avec le thème Cr@ns
author: Alexandre IOOSS
toc: yes
lang: fr-FR
logo: logo-crans.pdf
header-includes: |
date: un jour viendra
header-includes:
- |
```{=latex}
\usetheme{Madrid}
\definecolor{a}{HTML}{df0e24}
\setbeamercolor{structure}{fg=a!90!black}
```
---
# 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