summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/theanooldstyle/TheanoOldStyle.sty
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2019-07-29 12:42:17 +0000
committerNorbert Preining <preining@logic.at>2019-07-29 12:42:17 +0000
commit6001b946a889b623b96364238f86ef5d0d4f144c (patch)
tree6745233935ae8e505195248215fe9a4d0cd39231 /Master/texmf-dist/tex/latex/theanooldstyle/TheanoOldStyle.sty
parenta8921653dd20aa7dcc9f8c72dd678d4450aeb2e7 (diff)
re-import theanooldstyle with proper file placement
git-svn-id: svn://tug.org/texlive/trunk@51767 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/theanooldstyle/TheanoOldStyle.sty')
-rw-r--r--Master/texmf-dist/tex/latex/theanooldstyle/TheanoOldStyle.sty93
1 files changed, 93 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/theanooldstyle/TheanoOldStyle.sty b/Master/texmf-dist/tex/latex/theanooldstyle/TheanoOldStyle.sty
new file mode 100644
index 00000000000..a00637772e3
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/theanooldstyle/TheanoOldStyle.sty
@@ -0,0 +1,93 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{TheanoOldStyle}
+ [2019/07/27 (Bob Tennent and autoinst) Style file for Theano OldStyle fonts.]
+
+\RequirePackage{ifxetex,ifluatex,xkeyval,textcomp}
+
+\newif\iftheanooldstyle@ttf
+\ifxetex
+ \theanooldstyle@ttftrue
+\else\ifluatex
+ \theanooldstyle@ttftrue
+\else % [pdf]LaTeX
+ \theanooldstyle@ttffalse
+ \fi\fi
+
+\RequirePackage{fontaxes}
+
+\newcommand*{\TheanoOldStyle@scale}{1}
+\RequirePackage{xkeyval}
+\DeclareOptionX{scaled}{\renewcommand*{\TheanoOldStyle@scale}{#1}}
+\DeclareOptionX{scale}{\renewcommand*{\TheanoOldStyle@scale}{#1}}
+\DeclareOptionX{type1}{\theanooldstyle@ttffalse}
+
+\newif\iftheanooldstyle@lining \theanooldstyle@liningtrue
+\DeclareOptionX{osf}{\theanooldstyle@liningfalse}
+\DeclareOptionX{oldstyle}{\theanooldstyle@liningfalse}
+
+\ProcessOptionsX\relax
+
+\iftheanooldstyle@ttf
+ \RequirePackage{fontspec}
+ \iftheanooldstyle@lining
+ \def\theanooldstyle@figurealign{}
+ \else
+ \def\theanooldstyle@figurealign{OldStyle}
+ \fi
+\else
+ \RequirePackage{fontenc,fontaxes}
+ \iftheanooldstyle@lining
+ \def\theanooldstyle@figurealign{LF}
+ \else
+ \def\theanooldstyle@figurealign{OsF}
+ \fi
+\fi
+
+\iftheanooldstyle@ttf
+ \ifxetex\XeTeXtracingfonts=1\fi
+ \defaultfontfeatures{
+ Ligatures = TeX ,
+ Scale = \TheanoOldStyle@scale ,
+ Extension = .ttf }
+ \setmainfont
+ [ Numbers={\theanooldstyle@figurealign},
+ UprightFont = *-Regular ,
+ BoldFont = *-Bold ,
+ ]
+ {TheanoOldStyle}
+ \newfontfamily\theanooldstyle
+ [ Numbers={\theanooldstyle@figurealign},
+ UprightFont = *-Regular ,
+ BoldFont = *-Bold ,
+ ]
+ {TheanoOldStyle}
+ \newfontfamily\theanooldstyleosf
+ [ Numbers={OldStyle},
+ UprightFont = *-Regular ,
+ BoldFont = *-Bold ,
+ ]
+ {TheanoOldStyle}
+ \newfontfamily\theanooldstylelf
+ [ Numbers={},
+ UprightFont = *-Regular ,
+ BoldFont = *-Bold ,
+ ]
+ {TheanoOldStyle}
+
+\else % type1
+
+ \def\theanooldstyle@family{TheanoOldStyle-T\theanooldstyle@figurealign}
+ \renewcommand*\rmdefault{\theanooldstyle@family}
+ \newcommand*\theanooldstyle{\fontfamily{\theanooldstyle@family}\selectfont}
+ \newcommand*\theanooldstyleosf{\fontfamily{TheanoOldStyle-TOsF}\selectfont}
+ \newcommand*\theanooldstylelf{\fontfamily{TheanoOldStyle-TLF}\selectfont}
+
+\fi
+
+\def\theanooldstylelgr{\fontencoding{LGR}\fontfamily{TheanoOldStyle-TLF}\selectfont}
+
+\iftheanooldstyle@ttf
+ \defaultfontfeatures{}
+\fi
+
+\endinput