From eb81c99e209fc53de991afe8df21504106240ccb Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Tue, 16 Aug 2016 17:17:16 +0200 Subject: [PATCH] - call to varwidth package - define command to call a font (Comic Sans MS) --- commun/commun.sty | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/commun/commun.sty b/commun/commun.sty index 224d38b..7451e7d 100644 --- a/commun/commun.sty +++ b/commun/commun.sty @@ -69,8 +69,8 @@ \RequirePackage{tabularx} \RequirePackage{multicol} -% liste -%\RequirePackage{enumitem} +% mise en page +\RequirePackage{varwidth} %-- % @@ -118,12 +118,14 @@ % } -% changer de police -\NewDocumentCommand \setFont { O{\familydefault} O{\encodingdefault} }{% - \fontencoding{#2}% - \fontfamily{#1}% - \selectfont -} +% polices +\newfontfamily\Comic[Ligatures=TeX]{comicsansms} +% tentative pour une commande généraliste +% \NewDocumentCommand \setFont { O{\familydefault} O{\encodingdefault} }{% +% \fontencoding{#2}% +% \fontfamily{#1}% +% \selectfont +% } %--%