From 65eb03f6606dc266c68e5a1e5f39a1bc30cf9011 Mon Sep 17 00:00:00 2001 From: Alice BRENON <alice.brenon@ens-lyon.fr> Date: Tue, 23 Jul 2024 16:18:12 +0200 Subject: [PATCH] Go XeLaTeX and use Libertinus font --- ICHLL_Brenon.md | 1 + Makefile | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ICHLL_Brenon.md b/ICHLL_Brenon.md index b9545e4..f68bee4 100644 --- a/ICHLL_Brenon.md +++ b/ICHLL_Brenon.md @@ -10,6 +10,7 @@ classoption: - english - a4paper - 12pt +mainfont: "Libertinus Serif" header-includes: - \usepackage{textalpha} - \usepackage{hyperref} diff --git a/Makefile b/Makefile index 60cd3d2..b08b7ea 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ FILTERS = pandoc-secnos pandoc-fignos FILE_NAME = ICHLL_Brenon DOCX_STYLE = ICHLL_STYLESHEET.docx DEPEDENCIES = $(FIGURES:%=ressources/%.png) $(SNIPPETS:%.md=%.png) biblio.bib +PANDOC_OPTIONS = --pdf-engine=xelatex all: $(FILE_NAME).pdf $(FILE_NAME).docx @@ -11,7 +12,7 @@ ICHLL_Brenon.pdf: $(DEPEDENCIES) ICHLL_Brenon.docx: $(DEPEDENCIES) %.pdf: %.md - LANG=fr_FR.UTF-8 pandoc $< $(FILTERS:%=--filter %) --bibliography=biblio.bib --csl=apa.csl --citeproc -o $@ + LANG=fr_FR.UTF-8 pandoc $(PANDOC_OPTIONS) $< $(FILTERS:%=--filter %) --bibliography=biblio.bib --csl=apa.csl --citeproc -o $@ %.png: %.pdf pdftocairo -png -singlefile -r 400 $^ $(basename $@) -- GitLab