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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
|
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{notocondensed-mono}
[2021/09/06 (Bob Tennent) Supports condensed NotoSansMono fonts for all LaTeX engines.]
\RequirePackage{ifxetex,ifluatex,xkeyval,textcomp}
\newif\ifnotocondensedmono@ttf
\ifxetex
\notocondensedmono@ttftrue
\else\ifluatex
\notocondensedmono@ttftrue
\else % [pdf]LaTeX
\notocondensedmono@ttffalse
\fi\fi
\newcommand*{\NotoSansMono@scale}{1}
\DeclareOptionX{scaled}{\renewcommand*{\NotoSansMono@scale}{#1}}
\DeclareOptionX{scale}{\renewcommand*{\NotoSansMono@scale}{#1}}
\DeclareOptionX{type1}{\notocondensedmono@ttffalse}
\newif\ifnotocondensedmono@oldstyle \notocondensedmono@oldstylefalse
\newif\ifnotocondensedmono@proportional \notocondensedmono@proportionalfalse
\DeclareOptionX{lining}{\notocondensedmono@oldstylefalse}
\DeclareOptionX{lf}{\notocondensedmono@oldstylefalse}
\DeclareOptionX{tabular}{\notocondensedmono@proportionalfalse}
\DeclareOptionX{tf}{\notocondensedmono@proportionalfalse}
\DeclareOptionX{proportional}{\notocondensedmono@proportionaltrue}
\DeclareOptionX{pf}{\notocondensedmono@proportionaltrue}
\DeclareOptionX{oldstyle}{\notocondensedmono@oldstyletrue}
\DeclareOptionX{osf}{\notocondensedmono@oldstyletrue}
\newif\ifnotocondensedmono@thin \notocondensedmono@thinfalse
\newif\ifnotocondensedmono@extralight \notocondensedmono@extralightfalse
\newif\ifnotocondensedmono@light \notocondensedmono@lightfalse
\newif\ifnotocondensedmono@medium \notocondensedmono@mediumfalse
\newif\ifnotocondensedmono@semibold \notocondensedmono@semiboldfalse
\newif\ifnotocondensedmono@extrabold \notocondensedmono@extraboldfalse
\newif\ifnotocondensedmono@black \notocondensedmono@blackfalse
\newif\ifnotocondensedmono@semicondensed \notocondensedmono@semicondensedfalse
\newif\ifnotocondensedmono@extracondensed \notocondensedmono@extracondensedfalse
\DeclareOptionX{thin}{\notocondensedmono@thintrue}
\DeclareOptionX{extralight}{\notocondensedmono@extralighttrue}
\DeclareOptionX{light}{\notocondensedmono@lighttrue}
\DeclareOptionX{regular}{\notocondensedmono@lightfalse\notocondensedmono@thinfalse\notocondensedmono@extralightfalse\notocondensedmono@mediumfalse}
\DeclareOptionX{medium}{\notocondensedmono@mediumtrue}
\DeclareOptionX{semibold}{\notocondensedmono@semiboldtrue}
\DeclareOptionX{extrabold}{\notocondensedmono@extraboldtrue}
\DeclareOptionX{black}{\notocondensedmono@blacktrue}
\DeclareOptionX{bold}{\notocondensedmono@blackfalse\notocondensedmono@semiboldfalse\notocondensedmono@extraboldfalse}
\DeclareOptionX{semicondensed}{\notocondensedmono@semicondensedtrue}
\DeclareOptionX{extracondensed}{\notocondensedmono@extracondensedtrue}
\ProcessOptionsX\relax
\ifnotocondensedmono@ttf
\def\notocondensedmono@boldstyle{Bold}
\ifnotocondensedmono@semibold\def\notocondensedmono@boldstyle{SemiBold}\fi
\ifnotocondensedmono@extrabold\def\notocondensedmono@boldstyle{ExtraBold}\fi
\ifnotocondensedmono@black\def\notocondensedmono@boldstyle{Black}\fi
\def\notocondensedmono@regstyle{Regular}
\ifnotocondensedmono@thin\def\notocondensedmono@regstyle{Thin}\fi
\ifnotocondensedmono@extralight\def\notocondensedmono@regstyle{ExtraLight}\fi
\ifnotocondensedmono@light\def\notocondensedmono@regstyle{Light}\fi
\ifnotocondensedmono@medium\def\notocondensedmono@regstyle{Medium}\fi
\else % type1
\def\bfseries@tt{bold}\def\mdseries@tt{m}
\ifnotocondensedmono@semibold\def\bfseries@tt{sb}\fi
\ifnotocondensedmono@extrabold\bfseries@tt{eb}\fi
\ifnotocondensedmono@black\def\bfseries@tt{ub}\fi
\ifnotocondensedmono@thin\def\mdseries@tt{ul}\fi
\ifnotocondensedmono@extralight\def\mdseries@tt{el}\fi
\ifnotocondensedmono@light\def\mdseries@tt{l}\fi
\ifnotocondensedmono@medium\def\mdseries@tt{medium}\fi
\def\bfseries@tt{boldcondensed}\def\mdseries@tt{c}
\ifnotocondensedmono@semibold\def\bfseries@tt{sbc}\fi
\ifnotocondensedmono@extrabold\def\bfseries@tt{ebc}\fi
\ifnotocondensedmono@black\def\bfseries@tt{ubc}\fi
\ifnotocondensedmono@thin\def\mdseries@tt{ulc}\fi
\ifnotocondensedmono@extralight\def\mdseries@tt{elc}\fi
\ifnotocondensedmono@light\def\mdseries@tt{lc}\fi
\ifnotocondensedmono@medium\def\mdseries@tt{mediumcondensed}\fi
\ifnotocondensedmono@semicondensed
\def\bfseries@tt{boldsemicondensed}\def\mdseries@tt{sc}
\ifnotocondensedmono@semibold\def\bfseries@tt{sbsc}\fi
\ifnotocondensedmono@extrabold\def\bfseries@tt{ebsc}\fi
\ifnotocondensedmono@black\def\bfseries@tt{ubsc}\fi
\ifnotocondensedmono@thin\def\mdseries@tt{ulsc}\fi
\ifnotocondensedmono@extralight\def\mdseries@tt{elsc}\fi
\ifnotocondensedmono@light\def\mdseries@tt{lsc}\fi
\ifnotocondensedmono@medium\def\mdseries@rm{mediumsemicondensed}\fi
\else\ifnotocondensedmono@extracondensed
\def\bfseries@tt{boldextracondensed}\def\mdseries@tt{ec}
\ifnotocondensedmono@semibold\def\bfseries@tt{sbec}\fi
\ifnotocondensedmono@extrabold\def\bfseries@tt{ebec}\fi
\ifnotocondensedmono@black\def\bfseries@tt{ubec}\fi
\ifnotocondensedmono@thin\def\mdseries@tt{ulec}\fi
\ifnotocondensedmono@extralight\def\mdseries@tt{elec}\fi
\ifnotocondensedmono@light\def\mdseries@tt{lec}\fi
\ifnotocondensedmono@medium\def\mdseries@rm{mediumextracondensed}\fi
\fi\fi
\def\ttdefault{\notocondensedmonofamily}
\fi
\ifnotocondensedmono@ttf
\def\notocondensedmono@figurestyle{Lining}
\ifnotocondensedmono@oldstyle\def\notocondensedmono@figurestyle{OldStyle}\fi
\def\notocondensedmono@figurealign{Monospaced}
\ifnotocondensedmono@proportional\def\notocondensedmono@figurealign{Proportional}\fi
\else % type1
\def\notocondensedmono@figurestyle{LF}
\ifnotocondensedmono@oldstyle\def\notocondensedmono@figurestyle{OsF}\fi
\def\notocondensedmono@figurealign{T}
\ifnotocondensedmono@proportional\def\notocondensedmono@figurealign{}\fi
\fi
\ifnotocondensedmono@ttf
\RequirePackage{fontspec}
\else
\RequirePackage{fontenc,fontaxes,mweights}
\fa@naming@exception{figures}{{superior}{proportional}}{Sup}
\fa@naming@exception{figures}{{superior}{tabular}}{Sup}
\def\sufigures{\@nomath\sufigures
\fontfigurestyle{superior}\selectfont}
\fi
\ifnotocondensedmono@ttf
\def\notocondensedmono@regular{Regular}
\ifxetex\XeTeXtracingfonts=1\fi
\defaultfontfeatures{
HyphenChar=None,
Extension = .ttf }
\def\notocondensedmono@Lining{Lining}
\ifnotocondensedmono@semicondensed
\setmonofont
[ Numbers = {\ifx\notocondensedmono@figurestyle\notocondensedmono@Lining\else\notocondensedmono@figurestyle\fi} ,
Scale = \NotoSansMono@scale ,
UprightFont = *\ifx\notocondensedmono@regstyle\notocondensedmono@regular\else\notocondensedmono@regstyle\fi,
BoldFont = *\notocondensedmono@boldstyle ,
]
{NotoSansMono-SemiCondensed}
\else\ifnotocondensedmono@extracondensed
\setmonofont
[ Numbers = {\ifx\notocondensedmono@figurestyle\notocondensedmono@Lining\else\notocondensedmono@figurestyle\fi} ,
Scale = \NotoSansMono@scale ,
UprightFont = *\ifx\notocondensedmono@regstyle\notocondensedmono@regular\else\notocondensedmono@regstyle\fi,
BoldFont = *\notocondensedmono@boldstyle ,
]
{NotoSansMono-ExtraCondensed}
\else
\setmonofont
[ Numbers = {\ifx\notocondensedmono@figurestyle\notocondensedmono@Lining\else\notocondensedmono@figurestyle\fi} ,
Scale = \NotoSansMono@scale ,
UprightFont = *\ifx\notocondensedmono@regstyle\notocondensedmono@regular\else\notocondensedmono@regstyle\fi,
BoldFont = *\notocondensedmono@boldstyle ,
]
{NotoSansMono-Condensed}
\fi\fi
\let\notocondensedmonofamily\ttdefault
\newfontfamily\notocondensedmono
[ Numbers = {\ifx\notocondensedmono@figurestyle\notocondensedmono@Lining\else\notocondensedmono@figurestyle\fi} ,
Scale = \NotoSansMono@scale ,
UprightFont = *\ifx\notocondensedmono@regstyle\notocondensedmono@regular\else\notocondensedmono@regstyle\fi,
BoldFont = *\notocondensedmono@boldstyle ,
]
{NotoSansMono-Condensed}
\newfontfamily\notomonocondensedsemicondensed
[ Numbers = {\ifx\notocondensedmono@figurestyle\notocondensedmono@Lining\else\notocondensedmono@figurestyle\fi} ,
Scale = \NotoSansMono@scale ,
UprightFont = *\ifx\notocondensedmono@regstyle\notocondensedmono@regular\else\notocondensedmono@regstyle\fi,
BoldFont = *\notocondensedmono@boldstyle ,
]
{NotoSansMono-SemiCondensed}
\newfontfamily\notocondensedmonoextracondensed
[ Numbers = {\ifx\notocondensedmono@figurestyle\notocondensedmono@Lining\else\notocondensedmono@figurestyle\fi} ,
Scale = \NotoSansMono@scale ,
UprightFont = *\ifx\notocondensedmono@regstyle\notocondensedmono@regular\else\notocondensedmono@regstyle\fi,
BoldFont = *\notocondensedmono@boldstyle ,
]
{NotoSansMono-ExtraCondensed}
\providecommand\sufigures{\addfontfeatures{VerticalPosition=Superior}}
\else % type1
\def\notocondensedmonofamily{NotoSansMono-\notocondensedmono@figurealign\notocondensedmono@figurestyle}
\newcommand*\notocondensedmono{\fontfamily{\notocondensedmonofamily}\fontseries{c}\selectfont}
\newcommand*\notocondensedmonosemicondensed{\fontfamily{\notocondensedmonofamily}\fontseries{sc}\selectfont}
\newcommand*\notocondensedmonoextracondensed{\fontfamily{\notocondensedmonofamily}\fontseries{ec}\selectfont}
\def\ttdefault{\notocondensedmonofamily}
\fi
\DeclareTextFontCommand{\textsu}{\sufigures}
% LGR
\def\notocondensedmono@figurestyle{LF}
\ifnotocondensedmono@oldstyle\def\notocondensedmono@figurestyle{OsF}\fi
\def\notocondensedmono@figurealign{T}
\ifnotocondensedmono@proportional\def\notocondensedmono@figurealign{}\fi
\newcommand*\notomonocondensedlgr{\fontencoding{LGR}\fontfamily{NotoSansMono-\notocondensedmono@figurealign\notocondensedmono@figurestyle}\fontseries{c}\selectfont}
\ifnotocondensedmono@ttf
% turn off defaults in case other fonts are selected:
\defaultfontfeatures{}
\fi
\endinput
|