blob: 5d4f99996f8e7dfbcd3ab01456e46b4d0aab20b2 (
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
|
% Source Code Pro for LaTeX
%
% Silke Hofstra, silke@slxh.nl
%
% Autoinst based file which loads the type1 version of Source Code Pro
%
% Licenced under the LPPL
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{sourcecodepro-type1}
[2012/11/04 v1.02 Adobe's Source Code Pro typeface]
\RequirePackage[LY1,T1]{fontenc}
\RequirePackage{textcomp}
\IfFileExists{fontaxes.sty}{
\RequirePackage{fontaxes}
\providecommand{\tldefault}{tl}
\DeclareRobustCommand\tlshape{\not@math@alphabet\tlshape\relax
\fontsecondaryshape\tldefault\selectfont}
\DeclareTextFontCommand{\texttl}{\tlshape}
\let\texttitling\texttl
\fa@naming@exception{shape}{{n}{tl}}{tl}
\fa@naming@exception{shape}{{it}{tl}}{tlit}
\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
}{}
\IfFileExists{xkeyval.sty}{
\newcommand*{\sourcecodepro@scale}{1}
\RequirePackage{xkeyval}
\DeclareOptionX{scaled}{\renewcommand*{\sourcecodepro@scale}{##1}}
}{
\let\DeclareOptionX\DeclareOption
\let\ExecuteOptionsX\ExecuteOptions
\let\ProcessOptionsX\ProcessOptions
}
\DeclareOptionX{lining}{\edef\sourcecodepro@figurestyle{LF}}
\DeclareOptionX{nf}{\edef\sourcecodepro@figurestyle{LF}}
\DeclareOptionX{oldstyle}{\edef\sourcecodepro@figurestyle{OsF}}
\DeclareOptionX{osf}{\edef\sourcecodepro@figurestyle{OsF}}
\DeclareOptionX{black}{\renewcommand*{\bfdefault}{k}}
\DeclareOptionX{semibold}{\renewcommand*{\bfdefault}{sb}}
\DeclareOptionX{bold}{\renewcommand*{\bfdefault}{b}}
\DeclareOptionX{light}{\renewcommand*{\mddefault}{l}}
\DeclareOptionX{extralight}{\renewcommand*{\mddefault}{el}}
\DeclareOptionX{regular}{\renewcommand*{\mddefault}{m}}
\DeclareOptionX{default}{\renewcommand*{\familydefault}{\ttdefault}}
\ExecuteOptionsX{lining,bold,regular}
\ProcessOptionsX\relax
\renewcommand*\oldstylenums[1]{%
\begingroup
\ifmmode
\mathgroup\symletters #1%
\else
\fontfamily{SourceCodePro-TOsF}\selectfont #1%
\fi
\endgroup
}
\renewcommand*
{\ttdefault}
{SourceCodePro-T\sourcecodepro@figurestyle}
\endinput
|