File: sourcecodepro-type1-autoinst.sty

package info (click to toggle)
texlive-extra 2020.20210202-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,974,756 kB
  • sloc: perl: 208,744; cs: 25,850; python: 22,859; sh: 16,844; makefile: 15,571; ansic: 13,649; java: 12,741; xml: 4,930; lisp: 1,708; javascript: 1,351; csh: 1,129; ruby: 938; awk: 151; tcl: 142; cpp: 41; sed: 36; pascal: 18
file content (55 lines) | stat: -rw-r--r-- 1,958 bytes parent folder | download | duplicates (3)
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
%% Generated by autoinst on 2018/02/18
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{SourceCodePro}
    [2018/02/18 (autoinst)  Style file for SourceCodePro.]

\RequirePackage[T1,LY1,T2A]{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}{{numerators}{proportional}}{Numr}
    \fa@naming@exception{figures}{{numerators}{tabular}}{Numr}

    \fa@naming@exception{figures}{{denominators}{proportional}}{Dnom}
    \fa@naming@exception{figures}{{denominators}{tabular}}{Dnom}

}{}

\IfFileExists{xkeyval.sty}{
    \newcommand*{\SourceCodePro@scale}{1}
    \RequirePackage{xkeyval}
    \DeclareOptionX{scale}{\renewcommand*{\SourceCodePro@scale}{##1}}
    \DeclareOptionX{scaled}{\renewcommand*{\SourceCodePro@scale}{##1}}
}{
    \let\DeclareOptionX\DeclareOption
    \let\ExecuteOptionsX\ExecuteOptions
    \let\ProcessOptionsX\ProcessOptions
}

\DeclareOptionX{lining}{\edef\SourceCodePro@figurestyle{LF}}
\DeclareOptionX{oldstyle}{\edef\SourceCodePro@figurestyle{OsF}}
\DeclareOptionX{tabular}{\edef\SourceCodePro@figurealign{T}}
\DeclareOptionX{black}{\edef\bfseries@tt{k}}
\DeclareOptionX{semibold}{\edef\bfseries@tt{sb}}
\DeclareOptionX{bold}{\edef\bfseries@tt{b}}
\DeclareOptionX{light}{\edef\mdseries@tt{l}}
\DeclareOptionX{medium}{\edef\mdseries@tt{mb}}
\DeclareOptionX{regular}{\edef\mdseries@tt{m}}
\ExecuteOptionsX{oldstyle,tabular,bold,regular}
\ProcessOptionsX\relax

\renewcommand*
    {\ttdefault}
    {SourceCodePro-\SourceCodePro@figurealign\SourceCodePro@figurestyle}
\renewcommand*{\familydefault}{\ttdefault}

\endinput