From 692a797099b0acfd35d4bbd6a322acdc87c2c3a8 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 12 May 2019 20:21:20 +0000 Subject: linguisticspro (12may19) git-svn-id: svn://tug.org/texlive/trunk@51106 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/linguisticspro/linguisticspro.sty | 79 ++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/linguisticspro/linguisticspro.sty (limited to 'Master/texmf-dist/tex/latex/linguisticspro/linguisticspro.sty') diff --git a/Master/texmf-dist/tex/latex/linguisticspro/linguisticspro.sty b/Master/texmf-dist/tex/latex/linguisticspro/linguisticspro.sty new file mode 100644 index 00000000000..21cefaaa764 --- /dev/null +++ b/Master/texmf-dist/tex/latex/linguisticspro/linguisticspro.sty @@ -0,0 +1,79 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{linguisticspro} + [2019/05/11 (Bob Tennent and autoinst) Style file for LinguisticsPro fonts.] + +\RequirePackage{ifxetex,ifluatex,xkeyval,textcomp} + +\newif\iflinguisticspro@otf +\ifxetex + \linguisticspro@otftrue +\else\ifluatex + \linguisticspro@otftrue +\else % [pdf]LaTeX + \linguisticspro@otffalse +\fi\fi + +\newcommand*{\LinguisticsPro@scale}{1} +\newcommand*{\LinguisticsProInitials@scale}{1} +\RequirePackage{xkeyval} +\DeclareOptionX{scaled}{\renewcommand*{\LinguisticsPro@scale}{#1}\renewcommand*{\LinguisticsProInitials@scale}{#1}} +\DeclareOptionX{scale}{\renewcommand*{\LinguisticsPro@scale}{#1}\renewcommand*{\LinguisticsProInitials@scale}{#1}} +\DeclareOptionX{type1}{\linguisticspro@otffalse} + +\ProcessOptionsX\relax + +\iflinguisticspro@otf + \def\linguisticspro@figurestyle{OldStyle} + +\else % type1 + \def\linguisticspro@figurestyle{OsF} + \def\mdseries@rm{regular} + \def\seriesdefault{\mdseries@rm} + \def\bfseries@rm{bold} + +\fi + +\iflinguisticspro@otf + \RequirePackage{fontspec} +\else + \RequirePackage{fontenc,fontaxes,mweights} +\fi + +\iflinguisticspro@otf + \ifxetex\XeTeXtracingfonts=1\fi + \defaultfontfeatures{ + Ligatures = TeX , + Scale = \LinguisticsPro@scale , + Extension = .otf } + \setmainfont + [ Numbers = {\linguisticspro@figurestyle}, + UprightFont = *-Regular , + ItalicFont = *-Italic, + BoldFont = *-Bold , + BoldItalicFont = *-BoldItalic , + ] + {LinguisticsPro} + \newfontfamily\linguisticspro + [ Numbers = {\linguisticspro@figurestyle}, + UprightFont = *-Regular , + ItalicFont = *-Italic, + BoldFont = *-Bold , + BoldItalicFont = *-BoldItalic , + ] + {LinguisticsPro} + +\else % type1 + + \def\linguisticspro@family{LinguisticsPro-T\linguisticspro@figurestyle} + \renewcommand*\rmdefault{\linguisticspro@family} + \newcommand*\linguisticspro{\fontfamily{\linguisticspro@family}\selectfont} + +\fi + +\def\linguisticsprolgr{\fontencoding{LGR}\fontfamily{LinguisticsPro-TOsF}\selectfont} + +\iflinguisticspro@otf + \defaultfontfeatures{} +\fi + +\endinput -- cgit v1.2.3