summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/linguisticspro/linguisticspro.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/linguisticspro/linguisticspro.sty')
-rw-r--r--Master/texmf-dist/tex/latex/linguisticspro/linguisticspro.sty46
1 files changed, 39 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/linguisticspro/linguisticspro.sty b/Master/texmf-dist/tex/latex/linguisticspro/linguisticspro.sty
index 21cefaaa764..c4e376eedb5 100644
--- a/Master/texmf-dist/tex/latex/linguisticspro/linguisticspro.sty
+++ b/Master/texmf-dist/tex/latex/linguisticspro/linguisticspro.sty
@@ -1,6 +1,6 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{linguisticspro}
- [2019/05/11 (Bob Tennent and autoinst) Style file for LinguisticsPro fonts.]
+ [2019/06/25 (Bob Tennent and autoinst) Style file for LinguisticsPro fonts.]
\RequirePackage{ifxetex,ifluatex,xkeyval,textcomp}
@@ -13,20 +13,33 @@
\linguisticspro@otffalse
\fi\fi
+\newif\iflinguisticspro@lining \linguisticspro@liningfalse
\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{scaled}{\renewcommand*{\LinguisticsPro@scale}{#1}}
+\DeclareOptionX{scale}{\renewcommand*{\LinguisticsPro@scale}{#1}}
\DeclareOptionX{type1}{\linguisticspro@otffalse}
+\DeclareOptionX{lf}{\linguisticspro@liningtrue}
+\DeclareOptionX{lining}{\linguisticspro@liningtrue}
+
\ProcessOptionsX\relax
\iflinguisticspro@otf
- \def\linguisticspro@figurestyle{OldStyle}
+ \iflinguisticspro@lining
+ \def\linguisticspro@figurestyle{}
+ \else
+ \def\linguisticspro@figurestyle{OldStyle}
+ \fi
+
\else % type1
- \def\linguisticspro@figurestyle{OsF}
+ \iflinguisticspro@lining
+ \def\linguisticspro@figurestyle{LF}
+ \else
+ \def\linguisticspro@figurestyle{OsF}
+ \fi
\def\mdseries@rm{regular}
\def\seriesdefault{\mdseries@rm}
\def\bfseries@rm{bold}
@@ -61,16 +74,35 @@
BoldItalicFont = *-BoldItalic ,
]
{LinguisticsPro}
+ \newfontfamily\linguisticsproLF
+ [ Numbers = {},
+ UprightFont = *-Regular ,
+ ItalicFont = *-Italic,
+ BoldFont = *-Bold ,
+ BoldItalicFont = *-BoldItalic ,
+ ]
+ {LinguisticsPro}
+ \newfontfamily\linguisticsproOsF
+ [ Numbers = {OldStyle},
+ UprightFont = *-Regular ,
+ ItalicFont = *-Italic,
+ BoldFont = *-Bold ,
+ BoldItalicFont = *-BoldItalic ,
+ ]
+ {LinguisticsPro}
\else % type1
- \def\linguisticspro@family{LinguisticsPro-T\linguisticspro@figurestyle}
+ \def\linguisticspro@family{LinguisticsPro-\linguisticspro@figurestyle}
\renewcommand*\rmdefault{\linguisticspro@family}
\newcommand*\linguisticspro{\fontfamily{\linguisticspro@family}\selectfont}
+ \newcommand*\linguisticsproLF{\fontfamily{LinguisticsPro-LF}\selectfont}
+ \newcommand*\linguisticsproOsF{\fontfamily{LinguisticsPro-OsF}\selectfont}
\fi
-\def\linguisticsprolgr{\fontencoding{LGR}\fontfamily{LinguisticsPro-TOsF}\selectfont}
+\def\linguisticsprolgr{\fontencoding{LGR}\fontfamily{LinguisticsPro-OsF}\selectfont}
+\def\linguisticsprot3{\fontencoding{T3}\fontfamily{LinguisticsPro-OsF}\selectfont}
\iflinguisticspro@otf
\defaultfontfeatures{}