From 568931e4fd4d210828c9e273f0059a436b25f8ba Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Sun, 14 Aug 2016 21:59:16 +0200 Subject: [PATCH] add new command to set a local new font --- commun/commun.sty | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/commun/commun.sty b/commun/commun.sty index ffd7473..63f5c46 100644 --- a/commun/commun.sty +++ b/commun/commun.sty @@ -116,6 +116,13 @@ % \rlap{\raisebox{.45\ht0}{\textcolor{#1}{\rule{\wd0}{#2}}}} {#3} % } + +% changer de police +\NewDocumentCommand \setFont { O{\familydefault} O{\encodingdefault} }{% + \fontencoding{#2}% + \fontfamily{#1}% + \selectfont +} %--%