diff options
author | Karl Berry <karl@freefriends.org> | 2016-04-18 21:49:56 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-04-18 21:49:56 +0000 |
commit | 30b1e2a8178411f40c511d5ab6673929a59d8d85 (patch) | |
tree | abeb6b2e0f9da4eb91f05891a537385cb86da2f0 /Master/texmf-dist/tex/latex/sourcecodepro/sourcecodepro.sty | |
parent | 2ff344a8dc2e0aabd347ac798f88541aed68d8ad (diff) |
sourcecodepro (18apr16)
git-svn-id: svn://tug.org/texlive/trunk@40597 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/sourcecodepro/sourcecodepro.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/sourcecodepro/sourcecodepro.sty | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/sourcecodepro/sourcecodepro.sty b/Master/texmf-dist/tex/latex/sourcecodepro/sourcecodepro.sty index 42fdaa92ada..2a797569848 100644 --- a/Master/texmf-dist/tex/latex/sourcecodepro/sourcecodepro.sty +++ b/Master/texmf-dist/tex/latex/sourcecodepro/sourcecodepro.sty @@ -8,7 +8,7 @@ % Licenced under the LPPL v1.3 or higher. % \NeedsTeXFormat{LaTeX2e}[1994/12/01] -\ProvidesPackage{sourcecodepro}[2015/01/11 v2.4 Adobe's Source Code Pro typeface] +\ProvidesPackage{sourcecodepro}[2015/10/09 v2.6 Adobe's Source Code Pro typeface] \RequirePackage{ifxetex,ifluatex,xkeyval} @@ -65,6 +65,9 @@ \ifsourcecodepro@otf \RequirePackage{fontspec} + % Create a fixed liningnums command: + \renewcommand*\liningnums[1]{{\addfontfeature{RawFeature=+lnum;-onum}#1}} + % Oldstyle/Lining \ifsourcecodepro@oldstyle \def\sourcecodepro@figurestyle{OldStyle} @@ -203,8 +206,9 @@ \edef\ttdefault{SourceCodePro-T\sourcecodepro@figurestyle} \fi - % If source code pro is the default font \oldstylenums needs a new definition. + % If source code pro is the default font \oldstylenums needs a new definition. \ifsourcecodepro@default + \let\nativeoldstylenums\oldstylenums \renewcommand*\oldstylenums[1]{% \begingroup \ifmmode @@ -223,4 +227,4 @@ \edef\familydefault{\ttdefault} \fi -\endinput
\ No newline at end of file +\endinput |