diff options
author | Karl Berry <karl@freefriends.org> | 2023-09-06 20:13:28 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-09-06 20:13:28 +0000 |
commit | 0c232887be2a49f8f428fff65955a18d4d77d538 (patch) | |
tree | 6af5bd5366503401775c5d541afc05391d044549 /Master/texmf-dist/tex/latex | |
parent | 7814848fc548d8b2ff3e4c48f47e46d1649291d2 (diff) |
arsenal (6sep23)
git-svn-id: svn://tug.org/texlive/trunk@68191 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/arsenal/arsenal.sty | 98 |
1 files changed, 94 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/arsenal/arsenal.sty b/Master/texmf-dist/tex/latex/arsenal/arsenal.sty index 9aa08426d2f..8d2e1de11ef 100644 --- a/Master/texmf-dist/tex/latex/arsenal/arsenal.sty +++ b/Master/texmf-dist/tex/latex/arsenal/arsenal.sty @@ -21,16 +21,16 @@ %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) \ProvidesExplPackage {arsenal} -{2023-09-03} {0.1} +{2023-09-05} {v0.2} {Arsenal font by Andrij Shevchenko} \tl_new:N \l__arsenal_math_tl \keys_define:nn {arsenal} { default .bool_set:N = \l__arsenal_default_bool, - defaul .default:n = true, + default .default:n = true, sfdefault .bool_set:N = \l__arsenal_sfdefault_bool, sfdefault .default:n = true, - math .choices:nn = {none, kpsans, iwona} + math .choices:nn = {none, arsenal+kpsans, kpsans, iwona} {\tl_set_eq:NN \l__arsenal_math_tl \l_keys_choice_tl }, scale .tl_set:N = \l__arsenal_scale_tl, Scale .tl_set:N = \l__arsenal_scale_tl, @@ -52,7 +52,13 @@ { \bool_if:NTF \l__arsenal_default_bool { - \tl_set:Nn \l__arsenal_math_tl {iwona} + \sys_if_engine_xetex:TF + { + \tl_set:Nn \l__arsenal_math_tl {iwona} + } + { + \tl_set:Nn \l__arsenal_math_tl {arsenal+kpsans} + } } { \tl_set:Nn \l__arsenal_math_tl {none} @@ -113,6 +119,90 @@ Scale=\l__arsenal_tmp_tl, BoldFont=KpMath-SansBold.otf] + \setmathfont{KpMath-Sans.otf}[ + range={ + scr/{Latin}, + bfscr/{Latin}, + frak/{Latin}, + bffrak/{Latin}, + up/{Latin, Greek, misc}, + bb/{Latin, Greek, misc}, + it/{Latin, Greek, misc}, + bbit/{Latin, Greek, misc}, + tt/{Latin, Greek, misc}, + sfup/{Latin, Greek, misc}, + sfit/{Latin, Greek, misc}, + bfup/{Latin, Greek, misc}, + bfit/{Latin, Greek, misc}, + bfsfup/{Latin, Greek, misc}, + bfsfit/{Latin, Greek, misc}, + }, + Scale=\fp_to_tl:n {\l__arsenal_tmp_tl * 0.9}, + BoldFont=KpMath-SansBold.otf] +} +\tl_if_eq:NnT \l__arsenal_math_tl {arsenal+kpsans} +{ + \sys_if_engine_xetex:T + { + \ClassWarningNoLine{arsenal}{Option~ arsenal+kpsans~ may~ not~ work~ + with~ XeTeX~ engine.~ Please~ use~ lualatex} + } + \tl_set:Ne \l__arsenal_tmp_tl {\fp_to_tl:n {\l__arsenal_scale_tl * 1.1}} + \RequirePackage[symbols]{kpfonts-otf} + + \setmathfont{KpMath-Sans.otf}[ + Scale=\l__arsenal_tmp_tl, + BoldFont=KpMath-SansBold.otf] + + \setmathfont{KpMath-Sans.otf}[ + range={cal/{Latin},bfcal/{Latin}}, + RawFeature=+ss01, + Scale=\fp_to_tl:n {\l__arsenal_tmp_tl * 0.9}, + BoldFont=KpMath-SansBold.otf] + + \setmathfont{KpMath-Sans.otf}[ + range={ + scr/{Latin, num}, + bfscr/{Latin, num}, + frak/{Latin, num}, + bffrak/{Latin, num}, + up/{Greek, misc, num}, + bb/{Latin, Greek, misc, num}, + it/{Greek, misc, num}, + bbit/{Greek, misc, num}, + tt/{Greek, misc, num}, + sfup/{Greek, misc, num}, + sfit/{Greek, misc, num}, + bfup/{Greek, misc, num}, + bfit/{Greek, misc, num}, + bfsfup/{Greek, misc, num}, + bfsfit/{Greek, misc, num}, + }, + Scale=\fp_to_tl:n {\l__arsenal_tmp_tl * 0.9}, + BoldFont=KpMath-SansBold.otf] + + \setmathfont{Arsenal-Regular.otf}[ + range={ + up/{Latin, latin, num}, + tt/{Latin, latin, num}, + sfup/{Latin, latin, num}, + bfup/{Latin, latin, num}, + bfsfup/{Latin, latin, num}, + }, + Scale=\l__arsenal_scale_tl, + BoldFont=Arsenal-Bold.otf] + + \setmathfont{Arsenal-Italic.otf}[ + range={ + it/{Latin, latin, num}, + bbit/{Latin, latin, num}, + sfit/{Latin, latin, num}, + bfit/{Latin, latin, num}, + bfsfit/{Latin, latin, num}, + }, + Scale=\l__arsenal_scale_tl, + BoldFont=Arsenal-BoldItalic.otf] + } \endinput %% |