From 372e2dc3e6741dd5b4e331a71baa8fba09b1b841 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Thu, 27 May 2021 12:43:48 +0200 Subject: [PATCH] try to apdapt to pdflatex --- commun/commun.sty | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/commun/commun.sty b/commun/commun.sty index 7ef48e9..b8324aa 100644 --- a/commun/commun.sty +++ b/commun/commun.sty @@ -419,8 +419,11 @@ \newfontfamily\Purisa[Ligatures=TeX]{Purisa} \newfontfamily\ScratchedLetters[Ligatures=TeX]{Scratched Letters} \newfontfamily\Lato[Ligatures=TeX]{Lato} -% \else -% \newcommand\Jd[1]{{\usefont{T1}{j.d.}{m}{n} #1 } +\else + \newcommand\newFontCommand[2]{% + \expandafter\newcommand\csname #1\endcsname{\usefont{T1}{#2}{m}{n}}} + + \newFontCommand{Jd}{j.d.} \fi %-------------------------------------------------------- @@ -456,7 +459,7 @@ % Create a macro which can be accessed with the name "\color". % This macro make the following text to be colored in color. \newcommand\newColorCommand[1]{% -\expandafter\newcommand\csname #1\endcsname{\color{#1}}} + \expandafter\newcommand\csname #1\endcsname{\color{#1}}} % Create some color commands \newColorCommand{red}