From 8b6d64fa9d06d6ff5428f42c773c7e5d6a42a10f Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Tue, 3 Mar 2020 22:02:56 +0000
Subject: newtx (3mar20)

git-svn-id: svn://tug.org/texlive/trunk@54028 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/newtx/newtxtext.sty | 35 ++++++++++++++++++++++---
 1 file changed, 32 insertions(+), 3 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/newtx/newtxtext.sty')

diff --git a/Master/texmf-dist/tex/latex/newtx/newtxtext.sty b/Master/texmf-dist/tex/latex/newtx/newtxtext.sty
index 11e388118cc..bc8191c238f 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.531}
-\def\filedate{2018/03/27}
+\def\fileversion{1.625}
+\def\filedate{2020/03/02}
 \ProvidesPackage{newtxtext}[\filedate\space v\fileversion]
 
 \message{`newtxtext' v\fileversion, \filedate\space Text macros taking advantage of TeX-Gyre Termes fonts (msharpe)}
@@ -18,6 +18,7 @@
 \@onlypreamble\useosf
 \def\useproportional{\edef\ntx@figurealign{}}
 \@onlypreamble\useproportional
+\RequirePackage{etoolbox}
 
 \def\ntx@figurestyle{lf}% default is lining figure style
 \def\ntx@figurealign{t}% default is tabular figure alignment
@@ -92,7 +93,35 @@
 \DeclareRobustCommand{\sustyle}{%
   \not@math@alphabet\sustyle\relax
   \fontfamily{ntxsups}\selectfont}
-
+\DeclareRobustCommand{\infigures}{%
+  \not@math@alphabet\infigures\relax
+  \fontfamily{ntxdenoms}\selectfont}
+\DeclareTextFontCommand{\textin}{\infigures}
+\providecommand*{\textfrac}[2]{%
+    {\ntxt@printfalse\edef\ntxt@denom{#1\char"F5}\ntxt@textinf #2\@nil%
+    \ifntxt@print\textsu{\ntxt@denom}\fi}}
+
+\newcount\ntxt@cntz
+\newif\ifntxt@print
+%\newcount\ntxt@Isdigit
+\def\ntxt@isdigit#1{% #1 should be a single character
+\ntxt@cntz=\number`#1\relax% 
+\ifnum\ntxt@cntz>47\relax% 
+  \ifnum\ntxt@cntz<58\relax% 
+    \advance\ntxt@cntz by 198 % 246 (0.inf) -48
+    \edef\ntxt@denom{\ntxt@denom\char\the\ntxt@cntz}%
+  \else
+  	\edef\ntxt@denom{\ntxt@denom X}%
+  \fi% 
+\else 
+  \edef\ntxt@denom{\ntxt@denom X}%
+\fi%
+%\show\ntxt@denom
+}
+\def\ntxt@textinf#1#2\@nil{%
+\ntxt@isdigit{#1}%
+\ifblank{#2}{\ntxt@printtrue}{\ntxt@textinf #2\@nil}%
+}    
 \ifntx@scosf %
 \DeclareRobustCommand{\textsc}[1]{%
 {\fontfamily{ntx\ntx@figurealign osf}\scshape\selectfont #1}%
-- 
cgit v1.2.3

