summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/newtx/newtxtext.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/newtx/newtxtext.sty')
-rw-r--r--Master/texmf-dist/tex/latex/newtx/newtxtext.sty24
1 files changed, 22 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/newtx/newtxtext.sty b/Master/texmf-dist/tex/latex/newtx/newtxtext.sty
index c44943b2a86..5668ca8aaac 100644
--- a/Master/texmf-dist/tex/latex/newtx/newtxtext.sty
+++ b/Master/texmf-dist/tex/latex/newtx/newtxtext.sty
@@ -1,7 +1,7 @@
\NeedsTeXFormat{LaTeX2e}
-\def\fileversion{1.436}
-\def\filedate{2015/04/27}
+\def\fileversion{1.437}
+\def\filedate{2015/05/01}
\ProvidesPackage{newtxtext}[\filedate\space v\fileversion]
\message{`newtxtext' v\fileversion, \filedate\space Text macros taking advantage of TeX-Gyre Termes fonts (msharpe)}
@@ -41,6 +41,15 @@
\def\ntx@scale{#1}}
\setkeys{ntx}{helvratio} % set this first, at least to default 0.9
\setkeys{ntx}{scaled} % get at least default
+
+\def\ntx@spc{.25em}
+\def\ntx@stretch{.2em}
+\def\ntx@shrink{.1em}
+\define@key{ntx}{spacing}[.25em]{\gdef\ntx@spc{#1}}
+\define@key{ntx}{stretch}[.2em]{\gdef\ntx@stretch{#1}}
+\define@key{ntx}{shrink}[.1em]{\gdef\ntx@shrink{#1}}
+
+
\DeclareOption{lining}{\edef\ntx@figurestyle{lf}}
\DeclareOption{lf}{\edef\ntx@figurestyle{lf}}
\DeclareOption{theoremfont}{\ntx@thrmtrue}
@@ -51,6 +60,11 @@
\DeclareOption{proportional}{\useproportional}
%\DeclareOption{sups}{\ntx@defaultsupsfalse}
\DeclareOption{scosf}{\ntx@scosftrue}
+\DeclareOption{tighter}{%
+\gdef\ntx@spc{.25em}\gdef\ntx@stretch{.15em}\gdef\ntx@shrink{.06em}}
+\DeclareOption{looser}{%
+\gdef\ntx@spc{.3em}\gdef\ntx@stretch{.2em}\gdef\ntx@shrink{.15em}
+}
\ExecuteOptions{lining,tabular}
\DeclareOption*{%
@@ -60,6 +74,12 @@
\x}
\ProcessOptions*
+\def\ntx@spacing{%
+ \fontdimen2\font=\ntx@spc
+ \fontdimen3\font=\ntx@stretch
+ \fontdimen4\font=\ntx@shrink
+}
+
\@tempdima=\ntx@scale\p@\@tempdima=\ntx@helvratio\@tempdima%
\edef\qhv@scale{\strip@pt\@tempdima}