From 7cd0f02e94c1e6f69e0612e043a0cab7b04cf5aa Mon Sep 17 00:00:00 2001 From: Orestis Malaspinas <orestis.malaspinas@hesge.ch> Date: Thu, 21 Jun 2018 10:26:08 +0200 Subject: [PATCH] ajout joli code de florent --- Makefile | 5 +++-- header.tex | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 header.tex diff --git a/Makefile b/Makefile index 0d8388f..f324ad1 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,12 @@ BEAMEROPTIONS = -t beamer -BEAMEROPTIONS += --pdf-engine=pdflatex +BEAMEROPTIONS += --pdf-engine=xelatex BEAMEROPTIONS += --default-image-extension=pdf BEAMEROPTIONS += -V theme:metropolis BEAMEROPTIONS += -V themeoptions:numbering=none -V themeoptions:progressbar=foot BEAMEROPTIONS += -V fontsize=smaller BEAMEROPTIONS += --highlight-style espresso +BEAMEROPTIONS += -H ./header.tex --listings default: git_tutorial.md - pandoc -s $(BEAMEROPTIONS) -o git_tutorial.pdf git_tutorial.md \ No newline at end of file + pandoc -s $(BEAMEROPTIONS) -o git_tutorial.pdf git_tutorial.md diff --git a/header.tex b/header.tex new file mode 100644 index 0000000..274cdbd --- /dev/null +++ b/header.tex @@ -0,0 +1,17 @@ +\lstset{ + basicstyle=\fontsize{7}{7}\ttfamily, + keywordstyle=\color[rgb]{0.13,0.29,0.53}\bfseries, + stringstyle=\color[rgb]{0.31,0.60,0.02}, + commentstyle=\color[rgb]{0.56,0.35,0.01}\itshape, + backgroundcolor=\color[RGB]{238,238,238}, + showspaces=false, + showstringspaces=false, + showtabs=false, + tabsize=4, + captionpos=b, + breaklines=true, + extendedchars=true, + columns=fixed, + frame=trbl, + framesep=4pt, +} -- GitLab