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

\endinput