diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/ptsans/PTSans.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/ptsans/PTSans.sty | 38 |
1 files changed, 35 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/ptsans/PTSans.sty b/Master/texmf-dist/tex/latex/ptsans/PTSans.sty index 089a3d497fc..611bd890c41 100644 --- a/Master/texmf-dist/tex/latex/ptsans/PTSans.sty +++ b/Master/texmf-dist/tex/latex/ptsans/PTSans.sty @@ -1,7 +1,39 @@ -\ProvidesPackage{PTSans} [2011/01/20 Style file for PTSans.] +\ProvidesPackage{PTSans} [2011/02/09 Style file for PTSans.] +%% +%% Options: +%% [scaled] --> Scale = 0.95 +%% [scaled=0.9] --> Scale = 0.90 +%% +\RequirePackage{keyval} +\define@key{PTSans}{scaled}[0.95]{% + \def\PTSans@scale{#1}} +\def\ProcessOptionsWithKV#1{% + \let\@tempc\relax + \let\PTSans@tempa\@empty + \@for\CurrentOption:=\@classoptionslist\do{% + \@ifundefined{KV@#1@\CurrentOption}% + {}% + {% + \edef\PTSans@tempa{\PTSans@tempa,\CurrentOption,}% + \@expandtwoargs\@removeelement\CurrentOption + \@unusedoptionlist\@unusedoptionlist + }% + }% + \edef\PTSans@tempa{% + \noexpand\setkeys{#1}{% + \PTSans@tempa\@ptionlist{\@currname.\@currext}% + }% + }% + \PTSans@tempa + \let\CurrentOption\@empty +} +\ProcessOptionsWithKV{PTSans} +\AtEndOfPackage{% + \let\@unprocessedoptions\relax +} \renewcommand{\sfdefault}{PTSans-TLF} -\renewcommand{\familydefault}{\sfdefault} -\renewcommand{\bfdefault}{b} +%%\renewcommand{\familydefault}{\sfdefault} +%%\renewcommand{\bfdefault}{b} \endinput |