diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/erewhon-math/fourier-otf.sty | 65 |
1 files changed, 37 insertions, 28 deletions
diff --git a/Master/texmf-dist/tex/latex/erewhon-math/fourier-otf.sty b/Master/texmf-dist/tex/latex/erewhon-math/fourier-otf.sty index 08b5daa413e..bac945866ea 100644 --- a/Master/texmf-dist/tex/latex/erewhon-math/fourier-otf.sty +++ b/Master/texmf-dist/tex/latex/erewhon-math/fourier-otf.sty @@ -1,6 +1,6 @@ -\NeedsTeXFormat{LaTeX2e}[2018/01/01] -\def\fileversion{0.60} -\def\filedate{2023-03-28} +\NeedsTeXFormat{LaTeX2e}[2022/06/01] +\def\fileversion{0.61} +\def\filedate{2023-06-21} \ProvidesPackage{fourier-otf}[\filedate\space\fileversion] % Ensure luatex or xetex engine @@ -15,37 +15,46 @@ \newopentypefeature{Style}{parallelslant}{+ss07} \newopentypefeature{Style}{smalldelim}{+ss09} -\newif\ifFOT@tight -\newif\ifFOT@notext +\newtoks\FOTtoksT +\newtoks\FOTtoksM \newcommand*{\Store@KV@Option}[2]{% + \FOTtoksM=\expandafter{\the\FOTtoksM #1={#2},} \def\FOT@opt{#1}\def\FOT@val{#2}% + \def\FOT@fullos{Numbers}% \def\FOT@scale{Scale}% - \ifx\FOT@opt\FOT@scale\FOTtoksT={Scale={#2}}\fi - \FOTtoksM=\expandafter{\the\FOTtoksM #1={#2},} + \ifx\FOT@opt\FOT@fullos + \FOTtoksT=\expandafter{\the\FOTtoksT Numbers=OldStyle,}% + \fi + \ifx\FOT@opt\FOT@scale + \FOTtoksT=\expandafter{\the\FOTtoksT Scale={#2},}% + \fi } +% \RequirePackage{fourier-orns} % checks \Store@KV@Option availability. - -% Options: forward them to \setmathfont except "tight", "loose" and "no-text". -\RequirePackage{xkeyval} -\newtoks\FOTtoksT -\newtoks\FOTtoksM - -\DeclareOptionX{no-text}{\FOT@notexttrue} -\DeclareOptionX{tight}{\FOT@tighttrue} -\DeclareOptionX{loose}{\FOT@tightfalse} -\DeclareOptionX{fulloldstyle}{\Store@KV@Option{Numbers}{OldStyle}} -\DeclareOptionX{math-style}{\Store@KV@Option{math-style}{#1}} -\DeclareOptionX{bold-style}{\Store@KV@Option{bold-style}{#1}} -\DeclareOptionX{nabla}{\Store@KV@Option{nabla}{#1}} -\DeclareOptionX{partial}{\Store@KV@Option{partial}{#1}} -\DeclareOptionX{CharacterVariant}{\Store@KV@Option{CharacterVariant}{#1}} -\DeclareOptionX{StylisticSet}{\Store@KV@Option{StylisticSet}{#1}} -\DeclareOptionX{Style}{\Store@KV@Option{Style}{#1}} -\DeclareOptionX{Scale}{\Store@KV@Option{Scale}{#1}} -\ExecuteOptionsX{tight} -\ProcessOptionsX +% +% Package options +\DeclareKeys + { + no-text.if = FOT@notext , + tight.if = FOT@tight , + loose.code = \FOT@tightfalse , + fulloldstyle.code = \Store@KV@Option{Numbers}{OldStyle} , + math-style.code = \Store@KV@Option{math-style}{#1} , + bold-style.code = \Store@KV@Option{bold-style}{#1} , + nabla.code = \Store@KV@Option{nabla}{#1} , + partial.code = \Store@KV@Option{partial}{#1} , + CharacterVariant.code = \Store@KV@Option{CharacterVariant}{#1} , + StylisticSet.code = \Store@KV@Option{StylisticSet}{#1} , + Style.code = \Store@KV@Option{Style}{#1} , + Scale.code = \Store@KV@Option{Scale}{#1} + } +% +\FOT@tighttrue +\ProcessKeyOptions +% % Math fonts: Erewhon-Math.otf. No Family name for XeLaTEX! % Following Joseph Wright in https://tex.stackexchange.com/questions/451 +\Store@KV@Option{BoldFont}{Erewhon-Math-Bold.otf} \begingroup \edef\temp{% \endgroup @@ -59,7 +68,7 @@ \medmuskip=2.5mu plus 1mu minus 2.5mu \thickmuskip=3.5mu plus 2.5mu \fi -% Text Serif fonts: erewhon with possible scaling. +% Text Serif fonts: erewhon with possible scaling and oldstyle numbers. \ifFOT@notext \else \RequirePackage{realscripts} |