summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/newtx/newtxtext.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-09-30 00:05:23 +0000
committerKarl Berry <karl@freefriends.org>2014-09-30 00:05:23 +0000
commita458db6297c00b012e16fa3b4391c158ef4f4b92 (patch)
treed05a44b6d1d9d5ca595525160b97bb85db5c3895 /Master/texmf-dist/tex/latex/newtx/newtxtext.sty
parent805c9c1fe26d5bd3dacaba4bc6d38ed7787aea38 (diff)
newtx (29sep14)
git-svn-id: svn://tug.org/texlive/trunk@35284 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/newtx/newtxtext.sty')
-rw-r--r--Master/texmf-dist/tex/latex/newtx/newtxtext.sty15
1 files changed, 12 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/newtx/newtxtext.sty b/Master/texmf-dist/tex/latex/newtx/newtxtext.sty
index 549d689c6fe..efa9e49536f 100644
--- a/Master/texmf-dist/tex/latex/newtx/newtxtext.sty
+++ b/Master/texmf-dist/tex/latex/newtx/newtxtext.sty
@@ -13,8 +13,8 @@
% Added scaled keyword and osf option;
% Modified the definition of \k to bypass problem with grouping;
-\def\fileversion{1.28}
-\def\filedate{2014/06/19}
+\def\fileversion{1.29}
+\def\filedate{2014/09/28}
\ProvidesPackage{newtxtext}[\filedate\space v\fileversion]
\message{`newtxtext' v\fileversion, \filedate\space Text macros based on txfonts (msharpe)}
@@ -29,8 +29,12 @@
\@onlypreamble\useosf
\newif\ifntx@defaultsups
+\newif\ifntx@adobesc
+\newif\ifntx@scosf
\define@boolkey{ntx}{defaultsups}[true]{%
\csname ntx@defaultsups#1\endcsname}
+\define@boolkey{ntx}{adobesc}[true]{%
+\csname ntx@adobesc#1\endcsname}
\define@key{ntx}{helvratio}[0.9]{\def\ntx@helvratio{#1}}
\define@key{ntx}{scaled}[1.0]{\def\ntx@scaled{s*[#1]}%
\def\ntx@scale{#1}}
@@ -43,6 +47,7 @@
\DeclareOption{osf}{\useosf}
%\DeclareOption{osf}{\def\ntx@style{j}}
\DeclareOption{oldstyle}{\useosf}
+\DeclareOption{scosf}{\ntx@scosftrue}
\setkeys{ntx}{helvratio} % set this first, at least to default 0.9
\setkeys{ntx}{scaled} % get at least default
\ProcessOptions*
@@ -51,11 +56,15 @@
\RequirePackage[T1]{fontenc}
\RequirePackage{textcomp}
+\ifntx@scosf %
+\DeclareRobustCommand{\textsc}[1]{%
+{\fontfamily{ntxrj}\scshape\selectfont #1}%
+}\fi% use OsF in small caps
\DeclareRobustCommand{\sustyle}{%
\not@math@alphabet\sustyle\relax
\fontfamily{ntxr1}\selectfont}
-
+\DeclareTextFontCommand{\textsu}{\sustyle}
%\def\@makefnmark{\ifx \thefootnote\orig@footnote \hbox{\sustyle\hspace*{.04em}\@thefnmark}\else\orig@makefnmark\fi}
\ifntx@defaultsups %
\else