summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/inriafonts/InriaSerif.sty
blob: 1e367b55617fd2056d4c1746d52b55c2fe33e0dd (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
%%
%% This is file `InriaSerif.sty',
%% generated with the autoinst utility.
%% 
%% (c) 2019/01/18 Nicolas Markey <inriafonts at markey dot fr>
%% 
%% The Inria fonts were designed by Black[Foundry], and are distributed
%% under the SIL OpenFont Licence:
%%   https://www.fontsquirrel.com/fonts/inria-serif#eula
%% 
%% The support files were created with the autoinst tool, and are 
%% distributed under the LaTeX Project Public License:
%%   http://www.latex-project.org/lppl.txt
%% 
%% This work has the LPPL maintenance status `maintained'.
%% The Current Maintainer of this work is Nicolas Markey.
%% 

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{InriaSerif}
    [2019/01/18  v1.0  Style file for InriaSerif.]

\RequirePackage[T1,LY1]{fontenc}
\RequirePackage{textcomp}
\IfFileExists{mweights.sty}{\RequirePackage{mweights}}{}
\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{shape}{{sl}{tl}}{tlsl}

    \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*{\InriaSerif@scale}{1}
    \RequirePackage{xkeyval}
    \DeclareOptionX{scale}{\renewcommand*{\InriaSerif@scale}{##1}}
    \DeclareOptionX{scaled}{\renewcommand*{\InriaSerif@scale}{##1}}
}{
    \let\DeclareOptionX\DeclareOption
    \let\ExecuteOptionsX\ExecuteOptions
    \let\ProcessOptionsX\ProcessOptions
}

\DeclareOptionX{lining}{\edef\InriaSerif@figurestyle{LF}}
\DeclareOptionX{oldstyle}{\edef\InriaSerif@figurestyle{OsF}}
\DeclareOptionX{tabular}{\edef\InriaSerif@figurealign{T}}
\DeclareOptionX{proportional}{\edef\InriaSerif@figurealign{}}
\DeclareOptionX{bold}{\edef\bfseries@rm{b}}
\DeclareOptionX{light}{\edef\mdseries@rm{l}}
\DeclareOptionX{regular}{\edef\mdseries@rm{m}}
\ExecuteOptionsX{oldstyle,proportional,bold,regular}
\ProcessOptionsX\relax

\renewcommand*
    {\rmdefault}
    {InriaSerif-\InriaSerif@figurealign\InriaSerif@figurestyle}
\renewcommand*{\familydefault}{\rmdefault}
\renewcommand*
    {\sfdefault}
    {InriaSans-\InriaSerif@figurealign\InriaSerif@figurestyle}


\endinput