From f27cb1d537a34677b1291d5365c80cde1416417c Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 20 Dec 2019 22:21:32 +0000 Subject: fontsetup (20dec19) git-svn-id: svn://tug.org/texlive/trunk@53195 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/fontsetup/fontsetup.sty | 106 +++++++++++++++++++++ .../tex/latex/fontsetup/fspdefaultfontsot.sty | 38 ++++++++ .../tex/latex/fontsetup/fspebgaramondot.sty | 12 +++ .../texmf-dist/tex/latex/fontsetup/fspfiraot.sty | 26 +++++ .../tex/latex/fontsetup/fspgfsartemisiaot.sty | 16 ++++ .../tex/latex/fontsetup/fspgfsdidotclassicot.sty | 24 +++++ .../tex/latex/fontsetup/fspgfsdidotot.sty | 49 ++++++++++ .../tex/latex/fontsetup/fspgfsneohellenicot.sty | 53 +++++++++++ .../texmf-dist/tex/latex/fontsetup/fspkerkisot.sty | 15 +++ .../tex/latex/fontsetup/fspneoeulerot.sty | 41 ++++++++ .../tex/latex/fontsetup/fsppalatinoot.sty | 17 ++++ .../tex/latex/fontsetup/fspstixtwoot.sty | 17 ++++ .../texmf-dist/tex/latex/fontsetup/fsptimesot.sty | 16 ++++ 13 files changed, 430 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty create mode 100644 Master/texmf-dist/tex/latex/fontsetup/fspdefaultfontsot.sty create mode 100644 Master/texmf-dist/tex/latex/fontsetup/fspebgaramondot.sty create mode 100644 Master/texmf-dist/tex/latex/fontsetup/fspfiraot.sty create mode 100644 Master/texmf-dist/tex/latex/fontsetup/fspgfsartemisiaot.sty create mode 100644 Master/texmf-dist/tex/latex/fontsetup/fspgfsdidotclassicot.sty create mode 100644 Master/texmf-dist/tex/latex/fontsetup/fspgfsdidotot.sty create mode 100644 Master/texmf-dist/tex/latex/fontsetup/fspgfsneohellenicot.sty create mode 100644 Master/texmf-dist/tex/latex/fontsetup/fspkerkisot.sty create mode 100644 Master/texmf-dist/tex/latex/fontsetup/fspneoeulerot.sty create mode 100644 Master/texmf-dist/tex/latex/fontsetup/fsppalatinoot.sty create mode 100644 Master/texmf-dist/tex/latex/fontsetup/fspstixtwoot.sty create mode 100644 Master/texmf-dist/tex/latex/fontsetup/fsptimesot.sty (limited to 'Master/texmf-dist/tex/latex') diff --git a/Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty b/Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty new file mode 100644 index 00000000000..783c3f1d3da --- /dev/null +++ b/Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty @@ -0,0 +1,106 @@ +%\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{fontsetup}[2019/12/20 Easy font setup by Antonis Tsolomitis] +\typeout{fontsetup: Easy font setup by Antonis Tsolomitis} + +\chardef\fontsetupdefault=0 % TODO fork cm-unicode or complete lm fonts +\chardef\fontsetupgfsartemisia=1 +\chardef\fontsetupgfsdidot=2 +\chardef\fontsetupgfsdidotclassic=3 +\chardef\fontsetupgfsneohellenic=4 +\chardef\fontsetupcambria=5 %install cambria as a system font. cambria.ttc, cambriai.ttf, cambriab.ttf, cambriaz.ttf +\chardef\fontsetuplucida=6 %install in TeX tree +\chardef\fontsetupkerkis=7 +\chardef\fontsetupfira=8 +\chardef\fontsetuptimes=9 +\chardef\fontsetuppalatino=10 %install Linotype Palatino as a System font. Files pala.ttf palai, palab, palabi. Install fspPalatinoGreekSmallCaps as a System font. +\chardef\fontsetupstixtwo=11 +\chardef\fontsetupneokadmus=12 +\chardef\fontsetupmsgaramond=13 %install Microsoft Garamond as a System font. Gara.TTF, Garai, Garabd +\chardef\fontsetupebgaramond=14 +\chardef\fontsetupminion=15 % Install MinionPro and provided fspMinionGreekSmallCaps as a system font. +\chardef\fontsetupneoeuler=16 +\chardef\fontsetuplibertinus=17 + +\chardef\fontsetupfont\fontsetupdefault +\DeclareOption{default}{\chardef\fontsetupfont\fontsetupdefault} +\DeclareOption{gfsartemisia}{\chardef\fontsetupfont\fontsetupgfsartemisia} +\DeclareOption{gfsdidot}{\chardef\fontsetupfont\fontsetupgfsdidot} +\DeclareOption{gfsdidotclassic}{\chardef\fontsetupfont\fontsetupgfsdidotclassic} +\DeclareOption{gfsneohellenic}{\chardef\fontsetupfont\fontsetupgfsneohellenic} +\DeclareOption{cambria}{\chardef\fontsetupfont\fontsetupcambria} +\DeclareOption{lucida}{\chardef\fontsetupfont\fontsetuplucida} +\DeclareOption{kerkis}{\chardef\fontsetupfont\fontsetupkerkis} +\DeclareOption{fira}{\chardef\fontsetupfont\fontsetupfira} +\DeclareOption{times}{\chardef\fontsetupfont\fontsetuptimes} +\DeclareOption{palatino}{\chardef\fontsetupfont\fontsetuppalatino} +\DeclareOption{stixtwo}{\chardef\fontsetupfont\fontsetupstixtwo} +\DeclareOption{neokadmus}{\chardef\fontsetupfont\fontsetupneokadmus} +\DeclareOption{msgaramond}{\chardef\fontsetupfont\fontsetupmsgaramond} +\DeclareOption{ebgaramond}{\chardef\fontsetupfont\fontsetupebgaramond} +\DeclareOption{minion}{\chardef\fontsetupfont\fontsetupminion} +\DeclareOption{neoeuler}{\chardef\fontsetupfont\fontsetupneoeuler} +\DeclareOption{libertinus}{\chardef\fontsetupfont\fontsetuplibertinus} +\DeclareOption*{\PackageWarning{fontsetup}{Unknown ‘\CurrentOption’}} +\ProcessOptions + +%provide a test to know if a 16bits TeX is used. +\RequirePackage{ifthen} +\RequirePackage{iftex} +\newboolean{TeXUnicode} +\ifXeTeX + \setboolean{TeXUnicode}{true} +\fi +\ifLuaTeX + \setboolean{TeXUnicode}{true} +\fi + + + +\ifthenelse{\boolean{TeXUnicode}}{% + %The user runs unicode engine + \ifcase\fontsetupfont + \RequirePackage{fspdefaultfontsot} +\or + \RequirePackage{fspgfsartemisiaot} +\or + \RequirePackage{fspgfsdidotot} +\or + \RequirePackage{fspgfsdidotclassicot} +\or + \RequirePackage{fspgfsneohellenicot} +\or + \RequirePackage{fspcambria} +\or + \RequirePackage{fsplucidaot} +% \RequirePackage[usefilenames]{lucida-otf} %for some reason it fails +\or + \RequirePackage{fspkerkisot} +\or + \RequirePackage{fspfiraot} +\or + \RequirePackage{fsptimesot} +\or + \RequirePackage{fsppalatinoot} +\or + \RequirePackage{fspstixtwoot} +\or + \RequirePackage{neokadmus} +\or + \RequirePackage{fspmsgaramondot} +\or + \RequirePackage{fspebgaramondot} +\or + \RequirePackage{fspminion} +\or + \RequirePackage{fspneoeulerot} +\or + \RequirePackage{libertinus-otf} + \fi +}{%the user runs 8bit engine +\relax} + + + + +\endinput + diff --git a/Master/texmf-dist/tex/latex/fontsetup/fspdefaultfontsot.sty b/Master/texmf-dist/tex/latex/fontsetup/fspdefaultfontsot.sty new file mode 100644 index 00000000000..2192c0c32d3 --- /dev/null +++ b/Master/texmf-dist/tex/latex/fontsetup/fspdefaultfontsot.sty @@ -0,0 +1,38 @@ +%% (C) Antonis Tsolomitis, GPL3. +\RequirePackage{fontspec} +\RequirePackage{unicode-math} +\setmainfont[% +ItalicFont=NewCM10-Italic.otf,% +BoldFont=NewCM10-Bold.otf,% +BoldItalicFont=NewCM10-BoldItalic.otf,% +SlantedFont=NewCM10-Regular.otf,% +SlantedFeatures={FakeSlant=0.25}, +BoldSlantedFont=NewCM10-Bold.otf,% +BoldSlantedFeatures={FakeSlant=0.25}, +SmallCapsFeatures={Numbers=OldStyle}]{NewCM10-Regular.otf} + +\setsansfont[% +ItalicFont=NewCMSans10-Oblique.otf,% +BoldFont=NewCMSans10-Bold.otf,% +BoldItalicFont=NewCMSans10-BoldOblique.otf,% +SlantedFont=NewCMSans10-Oblique.otf,% +BoldSlantedFont=NewCMSans10-BoldOblique.otf,% +SmallCapsFeatures={Numbers=OldStyle}]{NewCMSans10-Regular.otf} + +\setmonofont[% +ItalicFont=NewCMMono10-Italic.otf,% +BoldFont=NewCMMono10-Bold.otf,% +BoldItalicFont=NewCMMono10-BoldOblique.otf,% +SlantedFont=NewCMMono10-Regular.otf,% +SlantedFeatures={FakeSlant=0.25}, +BoldSlantedFont=NewCMMono10-Bold.otf,% +BoldSlantedFeatures={FakeSlant=0.25}, +SmallCapsFeatures={Numbers=OldStyle}]{NewCMMono10-Regular.otf} + +\setmathfont{NewCMMath-Regular.otf} + +\newcommand{\tttextsc}[1]{{\ttscshape#1}} + + + + diff --git a/Master/texmf-dist/tex/latex/fontsetup/fspebgaramondot.sty b/Master/texmf-dist/tex/latex/fontsetup/fspebgaramondot.sty new file mode 100644 index 00000000000..a819513535f --- /dev/null +++ b/Master/texmf-dist/tex/latex/fontsetup/fspebgaramondot.sty @@ -0,0 +1,12 @@ +\RequirePackage{fontspec} +\defaultfontfeatures{Ligatures=TeX} + +\setmainfont[ItalicFont=EBGaramond-Italic.otf, +BoldFont=EBGaramond-Bold.otf, +BoldItalicFont=EBGaramond-BoldItalic.otf,SmallCapsFeatures={Numbers=OldStyle}]{EBGaramond-Regular.otf} + +\RequirePackage{unicode-math} +\setmathfont{Garamond-Math.otf} + + +\endinput diff --git a/Master/texmf-dist/tex/latex/fontsetup/fspfiraot.sty b/Master/texmf-dist/tex/latex/fontsetup/fspfiraot.sty new file mode 100644 index 00000000000..172bf45dab9 --- /dev/null +++ b/Master/texmf-dist/tex/latex/fontsetup/fspfiraot.sty @@ -0,0 +1,26 @@ +\RequirePackage{fontspec} +\defaultfontfeatures{Ligatures=TeX} + +\setmainfont[% +ItalicFont=FiraSans-Italic.otf,% +BoldFont=FiraSans-Bold.otf, +BoldItalicFont=FiraSans-BookItalic.otf,% +SmallCapsFeatures={Numbers=OldStyle}% +]{FiraSans-Regular.otf} + +\setsansfont[% +ItalicFont=FiraSans-Italic.otf,% +BoldFont=FiraSans-Bold.otf,% +BoldItalicFont=FiraSans-BookItalic.otf,% +SmallCapsFeatures={Numbers=OldStyle}% +]{FiraSans-Regular.otf} + +\setmonofont[ItalicFont=FiraMono-Regular.otf,ItalicFeatures={FakeSlant=0.2},% +BoldFont=FiraMono-Bold.otf,% +BoldItalicFont=FiraMono-Bold.otf,BoldItalicFeatures={FakeSlant=0.2}% +]{FiraMono-Regular.otf} + +\RequirePackage{unicode-math} +\setmathfont{FiraMath-Regular.otf} + +\endinput \ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/fontsetup/fspgfsartemisiaot.sty b/Master/texmf-dist/tex/latex/fontsetup/fspgfsartemisiaot.sty new file mode 100644 index 00000000000..c4dc761f878 --- /dev/null +++ b/Master/texmf-dist/tex/latex/fontsetup/fspgfsartemisiaot.sty @@ -0,0 +1,16 @@ +\RequirePackage{fontspec} +\defaultfontfeatures{Ligatures=TeX} + +\setmainfont[ItalicFont=GFSArtemisiaIt.otf, +BoldFont=GFSArtemisiaBold.otf, +BoldItalicFont=GFSArtemisiaBoldIt.otf,SmallCapsFeatures={Numbers=OldStyle}]{GFSArtemisia.otf} + +\RequirePackage{unicode-math} +%\setmathfont{XITSMath-Regular.otf} +\setmathfont{STIX2Math.otf} +\setmathfont[range=\mathup/{num,latin,Latin,greek,Greek}]{GFSArtemisia.otf} +\setmathfont[range=\mathbfup/{num,latin,Latin,greek,Greek}]{GFSArtemisiaBold.otf} +\setmathfont[range=\mathit/{num,latin,Latin,greek,Greek}]{GFSArtemisiaIt.otf} +\setmathfont[range=\mathbfit/{num,latin,Latin,greek,Greek}]{GFSArtemisiaBoldIt.otf} + +\endinput diff --git a/Master/texmf-dist/tex/latex/fontsetup/fspgfsdidotclassicot.sty b/Master/texmf-dist/tex/latex/fontsetup/fspgfsdidotclassicot.sty new file mode 100644 index 00000000000..d1f26d14c75 --- /dev/null +++ b/Master/texmf-dist/tex/latex/fontsetup/fspgfsdidotclassicot.sty @@ -0,0 +1,24 @@ +%\RequirePackage[no-math]{fontspec} +\RequirePackage{fontspec} +\defaultfontfeatures{Ligatures=TeX} + +%\RequirePackage[garamond]{mathdesign} + + +%\newfontfamily{\defaultfont}[Scale=1.087,ItalicFont=GFSDidot_Classic,ItalicFeatures={FakeSlant=0.2},BoldFont=GFSDidot_Classic,BoldFeatures={FakeBold=2},BoldItalicFont=GFSDidot_Classic,BoldItalicFeatures={FakeSlant=0.2,FakeBold=2}]{GFSDidot_Classic.otf} + +\newfontfamily{\defaultfont}[Scale=1.05, + ItalicFont=GFSPorson,ItalicFeatures={FakeSlant=0.1,FakeStretch=.92},BoldFont=GFSDidot_Classic,BoldFeatures={FakeBold=1.4,LetterSpace=2},BoldItalicFont=GFSPorson,BoldItalicFeatures={FakeBold=1.4,FakeStretch=.92,FakeSlant=0.1,LetterSpace=2}]{GFSDidot_Classic.otf} + +\newfontfamily{\latinfont}[ItalicFont=ugmri8a,BoldFont=ugmm8a,BoldItalicFont=ugmmi8a]{ugmr8a.otf} +\RequirePackage[Latin, Greek]{ucharclasses} +\setDefaultTransitions{\defaultfont}{} + +\setTransitionsForLatin{\latinfont}{} +\setTransitionsForGreek{\defaultfont}{} + +\RequirePackage{unicode-math} +\setmathfont{Garamond-Math.otf} + + +\endinput diff --git a/Master/texmf-dist/tex/latex/fontsetup/fspgfsdidotot.sty b/Master/texmf-dist/tex/latex/fontsetup/fspgfsdidotot.sty new file mode 100644 index 00000000000..6de2cfd7366 --- /dev/null +++ b/Master/texmf-dist/tex/latex/fontsetup/fspgfsdidotot.sty @@ -0,0 +1,49 @@ + +\RequirePackage{fontspec} + +\setmainfont[ItalicFont=GFSOlga, + BoldFont=GFSDidotBold, + BoldItalicFont=GFSDidotBoldItalic,SlantedFont=GFSDidotItalic, + SmallCapsFeatures={Numbers=OldStyle}]{GFSDidot.otf} +\newfontfamily{\GFSDidotoSubstFont}[% + ItalicFont=GFSDidotItalic, + BoldFont=GFSDidotBold, + BoldItalicFont=GFSDidotBoldItalic, + SmallCapsFeatures={Numbers=OldStyle}]{GFSDidot.otf} + + +\RequirePackage{unicode-math} +%\setmathfont{XITSMath-Regular.otf} +\setmathfont{STIX2Math.otf} +\setmathfont[range=\mathup/{num,latin,Latin,greek,Greek}]{GFSDidot.otf} +\setmathfont[range=\mathbfup/{num,latin,Latin,greek,Greek}]{GFSDidotBold.otf} +\setmathfont[range=\mathit/{greek,Greek}]{GFSOlga.otf} +\setmathfont[range=\mathit/{num,latin,Latin}]{GFSDidotItalic.otf} +\setmathfont[range=\mathbfit/{num,latin,Latin,greek,Greek}]{GFSDidotBoldItalic.otf} + +%% the next code replaces non-existent Olga Latin with GFSDidotItalic Latin +\XeTeXinterchartokenstate=1% +\newXeTeXintercharclass\GFSDidotoSubst% +\count255="0021% +\loop\ifnum\count255<"0341% + \XeTeXcharclass\count255=\GFSDidotoSubst% + \advance\count255 by 1% +\repeat% +\XeTeXinterchartoks 0 \GFSDidotoSubst = {\begingroup\GFSDidotoSubstFont}% +\XeTeXinterchartoks 4095 \GFSDidotoSubst = {\begingroup\GFSDidotoSubstFont}% +\XeTeXinterchartoks \GFSDidotoSubst 0 = {\endgroup}% +\XeTeXinterchartoks \GFSDidotoSubst 4095 = {\endgroup}% +%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%% Fix epsilons %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\AtBeginDocument{\renewcommand{\epsilon}{\textit{ε}} +\renewcommand{\varepsilon}{\textsl{ε}}} +%%%%%%%%% Fix phi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\newfontfamily\phifix[Scale=1.2]{GFSDidotItalic.otf} +\AtBeginDocument{\renewcommand{\phi}{\textrm{\phifix\char"03D5}}} +%%%%%%%%% Fix theta %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\AtBeginDocument{\renewcommand{\theta}{\textsl{θ}} +\renewcommand{\vartheta}{\textit{θ}}} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\endinput diff --git a/Master/texmf-dist/tex/latex/fontsetup/fspgfsneohellenicot.sty b/Master/texmf-dist/tex/latex/fontsetup/fspgfsneohellenicot.sty new file mode 100644 index 00000000000..76e0d0a6537 --- /dev/null +++ b/Master/texmf-dist/tex/latex/fontsetup/fspgfsneohellenicot.sty @@ -0,0 +1,53 @@ +\RequirePackage{fontspec} +\defaultfontfeatures{Ligatures=TeX} +\RequirePackage{fontspec} + +\setmainfont[% main font + UprightFont=GFSNeohellenic, + ItalicFont=GFSNeohellenicIt, + BoldFont=GFSNeohellenicBold, + BoldItalicFont=GFSNeohellenicBoldIt, + RawFeature=+pnum,% variable width numbers + WordSpace={0.75,0.75,1},% + Scale=1.2,%use instead of 12pt +SmallCapsFeatures={Numbers=OldStyle,WordSpace={0.75,0.75,1},LetterSpace=0.06}]{GFSNeohellenic.otf} +%\renewfontfamily\scshape[% +% RawFeature=+smcp,RawFeature=+onum,WordSpace={0.75,0.75,1},LetterSpace=0.06,% +% Scale=1.2%use instead of 12pt +%]{GFSNeohellenic.otf} + + +\RequirePackage{unicode-math} +\setmathfont[% + Scale=1.2%use instead of 12pt +]{GFSNeohellenicMath.otf} + +\renewcommand{\baselinestretch}{1.086} %~1/0.92, use when at 10pt scaled by 1.2 + +%%%%%%%%% special symbols %%%%%%%%%%%%%%%%%%%%% +%fixes the delimiters so that all big sizes appear. TeX default is 5pt. +% run texdoc mathmode and check the "problems with parentheses" section +%\delimitershortfall=1pt +%\newcommand{\myvarnothing}{\symbol{"E000}} +\let\varnothing\undefined +\let\emptyset\undefined +\AtBeginDocument{ +\def\varnothing{\symbol{"E000}}% +\def\emptyset{\symbol{"2205}}} +\DeclareRobustCommand\nrightrightarrows{\mathrel{\char"2B5A}} +\DeclareRobustCommand\nleftleftarrows{\mathrel{\char"2B5B}} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%\let\bigint\undefined +\DeclareRobustCommand\smallprod{\mathop{\char"2B5E}\nolimits} +\DeclareRobustCommand\smallcoprod{\mathop{\char"2B5F}\nolimits} +\DeclareRobustCommand\smallsum{\mathop{\char"2B60}\nolimits} +\DeclareRobustCommand\smallint{\mathop{\char"2B61}\nolimits} +\DeclareRobustCommand\Bigint{\mathop{\char"2B62}\nolimits} +\DeclareRobustCommand\biggint{\mathop{\char"2B63}\nolimits} +\DeclareRobustCommand\Biggint{\mathop{\char"2B64}\nolimits} +\DeclareRobustCommand\bigggint{\mathop{\char"2B65}\nolimits} + + +\renewcommand{\LaTeX}{L\kern-.75ex\raisebox{.7ex}{\textsc{a}}\kern-.1ex\hbox{T}\kern-.4ex\raisebox{-.5ex}{E}\kern-.3exX} + +\endinput \ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/fontsetup/fspkerkisot.sty b/Master/texmf-dist/tex/latex/fontsetup/fspkerkisot.sty new file mode 100644 index 00000000000..8315fa6f9e2 --- /dev/null +++ b/Master/texmf-dist/tex/latex/fontsetup/fspkerkisot.sty @@ -0,0 +1,15 @@ +\RequirePackage{fontspec} +\defaultfontfeatures{Ligatures=TeX} + +\setmainfont[ItalicFont=Kerkis-Italic.otf, +BoldFont=Kerkis-Bold.otf, +BoldItalicFont=Kerkis-BoldItalic.otf,SmallCapsFont=Kerkis-SmallCaps.otf]{Kerkis.otf} + +\setsansfont[ItalicFont=KerkisSans-Italic.otf, +BoldFont=KerkisSans-Bold.otf, +BoldItalicFont=KerkisSans-BoldItalic.otf,SmallCapsFont=KerkisSans-SmallCaps.otf]{KerkisSans.otf} + +\RequirePackage{unicode-math} +\setmathfont{texgyrebonum-math.otf} + +\endinput \ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/fontsetup/fspneoeulerot.sty b/Master/texmf-dist/tex/latex/fontsetup/fspneoeulerot.sty new file mode 100644 index 00000000000..725686c3a86 --- /dev/null +++ b/Master/texmf-dist/tex/latex/fontsetup/fspneoeulerot.sty @@ -0,0 +1,41 @@ +\RequirePackage{fontspec} +\RequirePackage{unicode-math} +%\unimathsetup{math-style=upright} +\setmainfont[ItalicFont=cmunoti.otf, + BoldFont=cmunobx.otf, + BoldItalicFont=cmunobi.otf, + % RawFeature=+pnum,% variable width numbers +SmallCapsFeatures={Numbers=OldStyle}]{cmunorm.otf} +\defaultfontfeatures{Scale=MatchLowercase} +\setmathfont{LibertinusMath-Regular.otf} +\setmathfont[range={"0000-"0001,"0020-"007E, + "00A0,"00A7-"00A8,"00AC,"00AF,"00B1,"00B4-"00B5,"00B7, + "00D7,"00F7, + "0131, + "0237,"02C6-"02C7,"02D8-"02DA,"02DC, + "0300-"030C,"030F,"0311,"0323-"0325,"032E-"0332,"0338, + "0391-"0393,"0395-"03A1,"03A3-"03A8,"03B1-"03BB, + "03BD-"03C1,"03C3-"03C9,"03D1,"03D5-"03D6,"03F5, + "2016,"2018-"2019,"2021,"2026-"202C,"2032-"2037,"2044, + "2057,"20D6-"20D7,"20DB-"20DD,"20E1,"20EE-"20EF, + "210B-"210C,"210E-"2113,"2118,"211B-"211C,"2126-"2128, + "212C-"212D,"2130-"2131,"2133,"2135,"2190-"2199, + "21A4,"21A6,"21A9-"21AA,"21BC-"21CC,"21D0-"21D5, + "2200,"2202-"2209,"220B-"220C,"220F-"2213,"2215-"221E, + "2223,"2225,"2227-"222E,"2234-"2235,"2237-"223D, + "2240-"224C,"2260-"2269,"226E-"2279,"2282-"228B,"228E, + "2291-"2292,"2295-"2299,"22A2-"22A5,"22C0-"22C5, + "22DC-"22DD,"22EF,"22F0-"22F1, + "2308-"230B,"2320-"2321,"2329-"232A,"239B-"23AE, + "23DC-"23DF, + "27E8-"27E9,"27F5-"27FE,"2A0C,"2B1A, + "1D400-"1D433,"1D49C,"1D49E-"1D49F,"1D4A2,"1D4A5-"1D4A6, + "1D4A9-"1D4AC,"1D4AE-"1D4B5,"1D4D0-"1D4E9,"1D504-"1D505, + "1D507-"1D50A,"1D50D-"1D514,"1D516-"1D51C,"1D51E-"1D537, + "1D56C-"1D59F,"1D6A8-"1D6B8,"1D6BA-"1D6D2,"1D6D4-"1D6DD, + "1D6DF,"1D6E1,"1D7CE-"1D7D7 + }]{euler.otf} +\setmathfont[range=up/{greek,Greek}, script-features={}, sscript-features={} + ]{euler.otf} +\setmathfont[range=up/{latin,Latin,num}, script-features={}, sscript-features={} + ]{euler.otf} diff --git a/Master/texmf-dist/tex/latex/fontsetup/fsppalatinoot.sty b/Master/texmf-dist/tex/latex/fontsetup/fsppalatinoot.sty new file mode 100644 index 00000000000..3487754dded --- /dev/null +++ b/Master/texmf-dist/tex/latex/fontsetup/fsppalatinoot.sty @@ -0,0 +1,17 @@ +\RequirePackage{fontspec} +\defaultfontfeatures{Ligatures=TeX} + +\newfontfamily{\defaultfont}[SmallCapsFeatures={Numbers=OldStyle}]{Palatino Linotype} + +\newfontfamily{\greekfont}[SmallCapsFont=fsplpscel]{Palatino Linotype} + +\RequirePackage[Latin, Greek]{ucharclasses} +\setDefaultTransitions{\defaultfont}{} +\setTransitionsForLatin{\defaultfont}{} +\setTransitionsForGreek{\greekfont}{} + +\RequirePackage{unicode-math} +\setmathfont{texgyrepagella-math.otf} + + +\endinput diff --git a/Master/texmf-dist/tex/latex/fontsetup/fspstixtwoot.sty b/Master/texmf-dist/tex/latex/fontsetup/fspstixtwoot.sty new file mode 100644 index 00000000000..f38c44654d4 --- /dev/null +++ b/Master/texmf-dist/tex/latex/fontsetup/fspstixtwoot.sty @@ -0,0 +1,17 @@ +\RequirePackage{fontspec} +\defaultfontfeatures{Ligatures=TeX} + + +\setmainfont[% + Script=Default,% make small caps work for both latn and grek + ItalicFont=STIX2Text-Italic.otf, + BoldFont=STIX2Text-Bold.otf, + BoldItalicFont=STIX2Text-BoldItalic.otf, + % RawFeature=+pnum,% variable width numbers +SmallCapsFeatures={Numbers=OldStyle}]{STIX2Text-Regular.otf} + +\RequirePackage{unicode-math} +\setmathfont{STIX2Math.otf} + + +\endinput diff --git a/Master/texmf-dist/tex/latex/fontsetup/fsptimesot.sty b/Master/texmf-dist/tex/latex/fontsetup/fsptimesot.sty new file mode 100644 index 00000000000..772be2b6334 --- /dev/null +++ b/Master/texmf-dist/tex/latex/fontsetup/fsptimesot.sty @@ -0,0 +1,16 @@ +\RequirePackage{fontspec} +\defaultfontfeatures{Ligatures=TeX} + +\setmainfont[ItalicFont=FreeSerifbItalic.otf, +BoldFont=FreeSerifbBold.otf, +BoldItalicFont=FreeSerifbBoldItalic.otf,SmallCapsFont=FreeSerifb-SmallCapsAlt.otf]{FreeSerifb.otf} + +\RequirePackage{unicode-math} +%\setmathfont{XITSMath-Regular.otf} +\setmathfont{STIX2Math.otf} +\setmathfont[range=\mathup/{num,latin,Latin,greek,Greek}]{FreeSerifb.otf} +\setmathfont[range=\mathbfup/{num,latin,Latin,greek,Greek}]{FreeSerifbBold.otf} +\setmathfont[range=\mathit/{num,latin,Latin,greek,Greek}]{FreeSerifbItalic.otf} +\setmathfont[range=\mathbfit/{num,latin,Latin,greek,Greek}]{FreeSerifbBoldItalic.otf} + +\endinput -- cgit v1.2.3