summaryrefslogtreecommitdiff
path: root/fonts/paratype/tex/PTSerif.sty
blob: 28066516b59e8e05d4611c82ca1110ddbec75284 (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
\ProvidesPackage{PTSerif} [2011/02/10 Style file for PTSerif.]
%%
%% Options:
%%  [scaled]       --> Scale = 0.95
%%  [scaled=0.9]   --> Scale = 0.90
%%
\RequirePackage{keyval}
\define@key{PTSerif}{scaled}[0.95]{%
  \def\PTSerif@scale{#1}}
\def\ProcessOptionsWithKV#1{%
  \let\@tempc\relax
  \let\PTSerif@tempa\@empty
  \@for\CurrentOption:=\@classoptionslist\do{%
    \@ifundefined{KV@#1@\CurrentOption}%
    {}%
    {%
      \edef\PTSerif@tempa{\PTSerif@tempa,\CurrentOption,}%
      \@expandtwoargs\@removeelement\CurrentOption
        \@unusedoptionlist\@unusedoptionlist
    }%
  }%
  \edef\PTSerif@tempa{%
    \noexpand\setkeys{#1}{%
      \PTSerif@tempa\@ptionlist{\@currname.\@currext}%
    }%
  }%
  \PTSerif@tempa
  \let\CurrentOption\@empty
}
\ProcessOptionsWithKV{PTSerif}
\AtEndOfPackage{%
  \let\@unprocessedoptions\relax
}
    
\renewcommand{\rmdefault}{PTSerif-TLF}
%%\renewcommand{\familydefault}{\rmdefault}
%%\renewcommand{\bfdefault}{b}

\endinput