diff options
author | Karl Berry <karl@freefriends.org> | 2017-01-28 23:10:18 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-01-28 23:10:18 +0000 |
commit | 391207ac22fa195cb8f5dffb01338323caf51f24 (patch) | |
tree | cbb31f720d1ba09f3ceafa8c7d4592db421ddb3f /Master/texmf-dist/tex/latex/montserrat/montserrat.sty | |
parent | 81376996dea440e6a8c987e0a4ab2f66d21d1935 (diff) |
montserrat (28jan17)
git-svn-id: svn://tug.org/texlive/trunk@43074 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/montserrat/montserrat.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/montserrat/montserrat.sty | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/montserrat/montserrat.sty b/Master/texmf-dist/tex/latex/montserrat/montserrat.sty new file mode 100644 index 00000000000..6cb0228e406 --- /dev/null +++ b/Master/texmf-dist/tex/latex/montserrat/montserrat.sty @@ -0,0 +1,60 @@ +%% +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{montserrat} + [2017/01/25 (msharpe) Style file for Montserrat and Alternates.] + +\RequirePackage[LY1,T1]{fontenc} +\RequirePackage{textcomp} +\IfFileExists{mweights.sty}{\RequirePackage{mweights}}{} +\IfFileExists{fontaxes.sty}{ + \RequirePackage{fontaxes} + \fa@naming@exception{figures}{{superior}{proportional}}{Sup} + \fa@naming@exception{figures}{{superior}{tabular}}{Sup} + \def\sufigures{\@nomath\sufigures + \fontfigurestyle{superior}\selectfont} + \DeclareTextFontCommand{\textsu}{\sufigures} + \let\textsuperior\textsu + + \fa@naming@exception{figures}{{inferior}{proportional}}{Inf} + \fa@naming@exception{figures}{{inferior}{tabular}}{Inf} + \def\infigures{\@nomath\infigures + \fontfigurestyle{inferior}\selectfont} + \DeclareTextFontCommand{\textin}{\infigures} + \let\textinferior\textin + + \fa@naming@exception{figures}{{numerators}{proportional}}{Numr} + \fa@naming@exception{figures}{{numerators}{tabular}}{Numr} + + \fa@naming@exception{figures}{{denominators}{proportional}}{Dnom} + \fa@naming@exception{figures}{{denominators}{tabular}}{Dnom} + +}{} + +\usepackage{trace} +\RequirePackage{xkeyval} +\newcommand*{\Montserrat@scale}{1} +\DeclareOptionX{scale}{\renewcommand*{\Montserrat@scale}{#1}} +\DeclareOptionX{scaled}{\renewcommand*{\Montserrat@scale}{#1}} +\newif\ifMontserrat@famdef +\def\Montserrat@alt{} +\DeclareOptionX{lining}{\edef\Montserrat@figurestyle{LF}} +\DeclareOptionX{oldstyle}{\edef\Montserrat@figurestyle{OsF}} +\DeclareOptionX{tabular}{\edef\Montserrat@figurealign{T}} +\DeclareOptionX{proportional}{\edef\Montserrat@figurealign{}} +\DeclareOptionX{black}{\edef\bfseries@sf{k}} +\DeclareOptionX{extrabold}{\edef\bfseries@sf{eb}} +\DeclareOptionX{semibold}{\edef\bfseries@sf{sb}} +\DeclareOptionX{bold}{\edef\bfseries@sf{b}} +\DeclareOptionX{light}{\edef\mdseries@sf{l}} +\DeclareOptionX{medium}{\edef\mdseries@sf{mb}} +\DeclareOptionX{regular}{\edef\mdseries@sf{m}} +\DeclareOptionX{alternates}{\edef\Montserrat@alt{Alternates}} +\DeclareOptionX{defaultfam}{\Montserrat@famdeftrue} +\ExecuteOptionsX{oldstyle,proportional,bold,regular} +\ProcessOptionsX\relax + + +\renewcommand*{\sfdefault}% +{Montserrat\Montserrat@alt-\Montserrat@figurealign\Montserrat@figurestyle} +\ifMontserrat@famdef\renewcommand*{\familydefault}{\sfdefault}\fi +\endinput |