blob: 205ba07548548b7b287e6607a58788d65cfdd0ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
%%
\NeedsTeXFormat{LaTeX2e}
\def\fileversion{1.03}
\def\filedate{2019/11/07}
\ProvidesPackage{montserrat}[\filedate\space v\fileversion]
\message{`montserrat' v\fileversion, \filedate\space Style file for Montserrat and Alternates (msharpe)}
\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}
\def\defigures{\@nomath\defigures
\fontfigurestyle{denominators}\selectfont}
\DeclareTextFontCommand{\textde}{\defigures}
\let\textdenominators\textde
\def\nufigures{\@nomath\nufigures
\fontfigurestyle{numerators}\selectfont}
\DeclareTextFontCommand{\textnu}{\nufigures}
\let\textnumerators\textnu
}{}
\RequirePackage{xkeyval}
\newcommand*{\Montserrat@scale}{1}
\DeclareOptionX{scale}{\renewcommand*{\Montserrat@scale}{#1}}
\DeclareOptionX{scaled}{\renewcommand*{\Montserrat@scale}{#1}}
\newif\ifMontserrat@famdef
\def\Montserrat@alt{}\newif\ifMontserrat@alt
\DeclareOptionX{lining}{\edef\Montserrat@figurestyle{LF}}
\DeclareOptionX{osf}{\edef\Montserrat@figurestyle{OsF}}
\DeclareOptionX{oldstyle}{\edef\Montserrat@figurestyle{OsF}}
\DeclareOptionX{tabular}{\edef\Montserrat@figurealign{T}}
\DeclareOptionX{t}{\edef\Montserrat@figurealign{T}}
\DeclareOptionX{proportional}{\edef\Montserrat@figurealign{}}
\DeclareOptionX{p}{\edef\Montserrat@figurealign{}}
%\DeclareOptionX{mainfont}{
% \renewcommand{\familydefault}{\sfdefault}
%}
\DeclareOptionX{black}{\edef\bfseries@sf{black}}
\DeclareOptionX{extrabold}{\edef\bfseries@sf{extrabold}}
\DeclareOptionX{semibold}{\edef\bfseries@sf{semibold}}
\DeclareOptionX{bold}{\edef\bfseries@sf{bold}}
\DeclareOptionX{medium}{\edef\mdseries@sf{medium}}
\DeclareOptionX{regular}{\edef\mdseries@sf{regular}}
\DeclareOptionX{thin}{\edef\mdseries@sf{thin}}
\DeclareOptionX{extralight}{\edef\mdseries@sf{extralight}}
\DeclareOptionX{light}{\edef\mdseries@sf{light}}
%\DeclareOptionX{thin}{\edef\mdseries@sf{t}}
%\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{extralight}{\edef\mdseries@sf{el}}
%\DeclareOptionX{light}{\edef\mdseries@sf{l}}
%\DeclareOptionX{medium}{\edef\mdseries@sf{mb}}
%\DeclareOptionX{regular}{\edef\mdseries@sf{m}}
\DeclareOptionX{alternates}{\edef\Montserrat@alt{Alternates}\Montserrat@alttrue}
\DeclareOptionX{defaultfam}{\Montserrat@famdeftrue}
\ExecuteOptionsX{lining,proportional,bold,regular}
\ProcessOptionsX\relax
\ifMontserrat@alt
\edef\Montserrat@other{Montserrat-\Montserrat@figurealign\Montserrat@figurestyle}
\else
\edef\Montserrat@other{MontserratAlternates-\Montserrat@figurealign\Montserrat@figurestyle}
\fi
\def\montserratalt{\fontfamily{\Montserrat@other}\selectfont }
\renewcommand*{\sfdefault}%
{Montserrat\Montserrat@alt-\Montserrat@figurealign\Montserrat@figurestyle}
\ifMontserrat@famdef%
\renewcommand*{\familydefault}{\sfdefault}
\edef\mdseries@rm{\mdseries@sf}
\edef\bfseries@rm{\bfseries@sf}
\let\mddefault\mdseries@rm
\rmfamily
\fi
\endinput
|