diff options
Diffstat (limited to 'macros/unicodetex/latex/fontsetup/fontsetup.sty')
-rw-r--r-- | macros/unicodetex/latex/fontsetup/fontsetup.sty | 39 |
1 files changed, 37 insertions, 2 deletions
diff --git a/macros/unicodetex/latex/fontsetup/fontsetup.sty b/macros/unicodetex/latex/fontsetup/fontsetup.sty index f68237105b..5d40b84f27 100644 --- a/macros/unicodetex/latex/fontsetup/fontsetup.sty +++ b/macros/unicodetex/latex/fontsetup/fontsetup.sty @@ -70,6 +70,9 @@ \newif\if@varnothing \DeclareOption{varnothing}{\@varnothingtrue} % +\newif\if@amsbb +\DeclareOption{amsbb}{\@amsbbtrue} +% \ProcessOptions %provide a test to know if a 16bits TeX is used. @@ -92,15 +95,31 @@ % \if@upint \if@varnothing + \if@amsbb + \setmathfont[StylisticSet=2,StylisticSet=3,CharacterVariant=1]{NewCMMath-Book.otf} + \else \setmathfont[StylisticSet=2,CharacterVariant=1]{NewCMMath-Book.otf} + \fi \else + \if@amsbb + \setmathfont[StylisticSet=2,StylisticSet=3]{NewCMMath-Book.otf} + \else \setmathfont[StylisticSet=2]{NewCMMath-Book.otf} + \fi \fi \else \if@varnothing + \if@amsbb + \setmathfont[StylisticSet=3,CharacterVariant=1]{NewCMMath-Book.otf} + \else \setmathfont[CharacterVariant=1]{NewCMMath-Book.otf} + \fi \else + \if@amsbb + \setmathfont[StylisticSet=3]{NewCMMath-Book.otf} + \else \setmathfont{NewCMMath-Book.otf} + \fi \fi \fi % @@ -143,15 +162,31 @@ \RequirePackage{fspolddefault} \if@upint \if@varnothing - \setmathfont[StylisticSet=2,CharacterVariant=1]{NewCMMath-Book.otf} + \if@amsbb + \setmathfont[StylisticSet=2,StylisticSet=3,CharacterVariant=1]{NewCMMath-Regular.otf} + \else + \setmathfont[StylisticSet=2,CharacterVariant=1]{NewCMMath-Regular.otf} + \fi \else + \if@amsbb + \setmathfont[StylisticSet=2,StylisticSet=3]{NewCMMath-Regular.otf} + \else \setmathfont[StylisticSet=2]{NewCMMath-Regular.otf} + \fi \fi \else \if@varnothing - \setmathfont[CharacterVariant=1]{NewCMMath-Book.otf} + \if@amsbb + \setmathfont[StylisticSet=3,CharacterVariant=1]{NewCMMath-Regular.otf} + \else + \setmathfont[CharacterVariant=1]{NewCMMath-Regular.otf} + \fi \else + \if@amsbb + \setmathfont[StylisticSet=3]{NewCMMath-Regular.otf} + \else \setmathfont{NewCMMath-Regular.otf} + \fi \fi \fi \or |