diff options
author | Karl Berry <karl@freefriends.org> | 2013-05-02 21:48:59 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-05-02 21:48:59 +0000 |
commit | af17255de8ba608f03d26eeb4ef5a774990da738 (patch) | |
tree | efc667e973aaed90bd0a75b6512361d9f36fd8ed /Master/texmf-dist/tex/latex/sourcesanspro/sourcesanspro.sty | |
parent | 0aded7b9ed8d32ea2311499243871cc3ee7a7ec0 (diff) |
sourcesanspro (2may13)
git-svn-id: svn://tug.org/texlive/trunk@30210 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/sourcesanspro/sourcesanspro.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/sourcesanspro/sourcesanspro.sty | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/Master/texmf-dist/tex/latex/sourcesanspro/sourcesanspro.sty b/Master/texmf-dist/tex/latex/sourcesanspro/sourcesanspro.sty index 85449755d80..150788ee76a 100644 --- a/Master/texmf-dist/tex/latex/sourcesanspro/sourcesanspro.sty +++ b/Master/texmf-dist/tex/latex/sourcesanspro/sourcesanspro.sty @@ -1,6 +1,6 @@ % Source Sans Pro for LaTeX % -% Silke Hofstra, silke@slxh.nl +% Silke Hofstra, tex@slxh.nl % % This file selects either the OTF or the TYPE1 fonts based on % the LaTeX engine used. @@ -8,13 +8,14 @@ % Licenced under the LPPL v1.3 or higher. % \NeedsTeXFormat{LaTeX2e}[1994/12/01] -\ProvidesPackage{sourcesanspro}[2013/04/09 v2.1 Adobe's Source Sans Pro typeface] +\ProvidesPackage{sourcesanspro}[2013/04/26 v2.2 Adobe's Source Sans Pro typeface] -\RequirePackage{ifxetex,ifluatex,xkeyval,textcomp} +\RequirePackage{ifxetex,ifluatex,xkeyval} % Switches \newif\ifsourcesanspro@otf \newif\ifsourcesanspro@default +\newif\ifsourcesanspro@sfdefault \newif\ifsourcesanspro@oldstyle \newif\ifsourcesanspro@tabular \newif\ifsourcesanspro@black @@ -50,13 +51,15 @@ \DeclareOptionX{scale} {\renewcommand*{\SourceSansPro@scale}{#1}} \DeclareOptionX{scaled} {\renewcommand*{\SourceSansPro@scale}{#1}} \DeclareOptionX{default} {\sourcesanspro@defaulttrue} +\DeclareOptionX{sfdefault} {\sourcesanspro@sfdefaulttrue} +\DeclareOptionX{nosfdefault} {\sourcesanspro@sfdefaultfalse} \DeclareOptionX{type1} {\sourcesanspro@otffalse} \DeclareOptionX{t1} {\sourcesanspro@otffalse} \DeclareOptionX{opentype} {\sourcesanspro@otftrue} \DeclareOptionX{otf} {\sourcesanspro@otftrue} % Default options -\ExecuteOptionsX{lining,proportional,bold,regular} +\ExecuteOptionsX{sfdefault,lining,proportional,bold,regular} \ProcessOptionsX\relax % Load OpenType files @@ -105,14 +108,16 @@ Numbers = {\sourcesanspro@figurealign , \sourcesanspro@figurestyle } , Scale = \SourceSansPro@scale , Extension = .otf } - + % Sans serif font - \setsansfont - [ UprightFont = *-\sourcesanspro@regstyle , - ItalicFont = *-\sourcesanspro@regstyle It , - BoldFont = *-\sourcesanspro@boldstyle , - BoldItalicFont = *-\sourcesanspro@boldstyle It] - {SourceSansPro} + \ifsourcesanspro@sfdefault + \setsansfont + [ UprightFont = *-\sourcesanspro@regstyle , + ItalicFont = *-\sourcesanspro@regstyle It , + BoldFont = *-\sourcesanspro@boldstyle , + BoldItalicFont = *-\sourcesanspro@boldstyle It] + {SourceSansPro} + \fi % Font families % Regular/Bold @@ -192,9 +197,11 @@ \fi % Sans serif font - \renewcommand* - {\sfdefault} - {SourceSansPro-\sourcesanspro@figurealign\sourcesanspro@figurestyle} + \ifsourcesanspro@sfdefault + \renewcommand* + {\sfdefault} + {SourceSansPro-\sourcesanspro@figurealign\sourcesanspro@figurestyle} + \fi % If source sans pro is the default font \oldstylenums needs a new definition. \ifsourcesanspro@default |