diff options
author | Norbert Preining <norbert@preining.info> | 2021-03-21 03:01:00 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-03-21 03:01:00 +0000 |
commit | 86a0e007d01f87228d2363faf90a2a3b65cf758f (patch) | |
tree | 50ff3b4e1bfbe05e95441645de9d55048feb01bc /macros/latex/contrib/addfont/addfont.sty | |
parent | d3b06b2254431c03e127876a07ae654091314c72 (diff) |
CTAN sync 202103210300
Diffstat (limited to 'macros/latex/contrib/addfont/addfont.sty')
-rw-r--r-- | macros/latex/contrib/addfont/addfont.sty | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/macros/latex/contrib/addfont/addfont.sty b/macros/latex/contrib/addfont/addfont.sty index 7b25c71c69..74d6bf63a4 100644 --- a/macros/latex/contrib/addfont/addfont.sty +++ b/macros/latex/contrib/addfont/addfont.sty @@ -1,4 +1,4 @@ -% Copyright 2016 (c) Palle Joergensen +% Copyright 2016-21 (c) Palle Joergensen % % This file is part of addfont. % @@ -15,21 +15,21 @@ % You should have received a copy of the GNU General Public License % along with addfont. If not, see <http://www.gnu.org/licenses/>. \ProvidesPackage{addfont}% - [2016/09/01 v1.0 Easier usage of fonts without LaTeX support.] + [2021/03/20 v. 1.1 Easier usage of fonts without LaTeX support.] \newif\ifaddfont@fixed \addfont@fixedtrue \RequirePackage{twoopt} \RequirePackage{ifthen} -\newcommandtwoopt*\addfont@all[5][][]{% scale, sel-cmd, enc, font, cmd +\newcommandtwoopt*\addfont@all[5][][]{% #1:scale, #2:sel-cmd, #3:enc, #4:family/font, #5:cmd \addfont@fixedfalse \def\addfont@latestencoding{#3}% \def\addfont@latestfamily{#4}% \ifthenelse{\equal{#1}{\@empty}}{\let\addfont@latestscale\@empty}{\def\addfont@latestscale{s*[#1]}} \DeclareFontFamily{#3}{#4}{#2}% - \DeclareFontShape{#3}{#4}{m}{n}{<->#3}{}% + \DeclareFontShape{#3}{#4}{m}{n}{<->#4}{}% \def#5{\fontencoding{#3}\fontfamily{#4}\mdseries\upshape}} -\newcommandtwoopt*\addfont@fixed[5][][]{% scale, sel-cmd, enc, font, cmd +\newcommandtwoopt*\addfont@fixed[5][][]{% #1:scale, #2:sel-cmd, #3:enc, #4:font, #5:cmd \addfont@fixedtrue \def\addfont@latestencoding{#3}% \def\addfont@latestfamily{#4}% |