summaryrefslogtreecommitdiff
path: root/fonts/newtx/doc/newtxdoc.tex
diff options
context:
space:
mode:
Diffstat (limited to 'fonts/newtx/doc/newtxdoc.tex')
-rw-r--r--fonts/newtx/doc/newtxdoc.tex453
1 files changed, 281 insertions, 172 deletions
diff --git a/fonts/newtx/doc/newtxdoc.tex b/fonts/newtx/doc/newtxdoc.tex
index 896df5e230..8078b03f3d 100644
--- a/fonts/newtx/doc/newtxdoc.tex
+++ b/fonts/newtx/doc/newtxdoc.tex
@@ -1,9 +1,9 @@
-% !TEX TS-program = xelatex
+% !TEX TS-program = lualatex
\def\fsc{11pt}
\documentclass[\fsc]{article}
\usepackage[margin=1in]{geometry}
\usepackage[parfill]{parskip}
-\pdfmapfile{=newtx.map}
+%\pdfmapfile{=newtx.map}
%\pdfcompresslevel=0
%\pdfgentounicode=1
@@ -28,7 +28,12 @@
\usepackage[type1,sfdefault,scale=1]{sourcesanspro}% used by \mathsf, optional
\usepackage[scaled=.98,varqu,varl]{zi4}
%\usepackage[nohelv,nott,amsthm,largesc,theoremfont,trueslanted,scosf]{newtx}% Use newtxmath, not a unicode math package
-\usepackage[amsthm,largesc,theoremfont]{newtx}% Use newtxmath, not a unicode math package
+\usepackage[libertinus,textscale=1,amsthm]{newtx}% Use newtxmath, not a unicode math package
+%\usepackage{amsthm}
+%\usepackage{newtxmath}
+%\usepackage[largesc,theoremfont,scosf]{newtxtext}
+%\usepackage[no-math]{fontspec}
+%\setmainfont{TeXGyreTermesX}
%\setsansfont{sourcecodepro}[scale=MatchLowerCase]
\makeatletter
\@ifundefined{ver@amsthm.sty}{\typeout{amsthm NO}}{\typeout{amsthm YES}}
@@ -52,17 +57,21 @@
\DeclareMathSymbol{\Sumop}{\mathop}{largesymbols}{"50}
\usepackage{bm}
%\usepackage{hyperref}
-\makeatletter
-\ifntx@otftext
- \setmonofont{inconsolata}[Scale=MatchLowercase]
-\fi
-\makeatother
+%\iftutex
+% \setmonofont{inconsolata}[Scale=MatchLowercase]
+%\fi
\title{New TX font package}
\author{Michael Sharpe}
\date{\today} % Activate to display a given date or no date
\begin{document}
-%\show\textlf
+\makeatletter
+%\expandafter\show\csname @textsuperior\endcsname
+%\expandafter\show\csname opt@libertine.sty\endcsname
+\makeatother
+%%\show\textsfrac
+%\show\ntx@TF
+%\makeatother
\maketitle
%\char"2044{\addfontfeatures{RawFeature=+ss20;+dnom}\color{red}\char"2044}
%1\addfontfeatures{VerticalPosition=Inferior}23
@@ -72,7 +81,6 @@
%1{\infigures 1}
%x\textsf{x}X\textsf{X}
%
-%\end{document}
\section{Introduction}
This package is meant to be a replacement for Young Ryu's {\tt txfonts}. It is a complete text ({\tt newtxtext}) and math ({\tt newtxmath}) package with roman text font provided by a Times clone, sans serif based on a \textsf{Helvetica} clone, typewriter faces, plus math symbol fonts whose math italic letters are from a Times Italic clone. As of version 1.4, {\tt newtxtext} no longer depends on {\tt txfonts} but is based on the richer source \textsf{TeXGyre Termes}, but {\tt newtxmath} continues to use the {\tt txfonts} math glyphs with many metric adjustments and some wholesale modifications.
@@ -95,8 +103,8 @@ Also introduced in 1.7 is {\tt newtx.sty}, which to some extent reduces the (hum
\textbf{Basic {\tt newtx} options:}
\begin{itemize}
-\item
-{\tt type1text} (or {\tt type1} specifies that text processing should use a type1 package. (The default is to use an otf text package if processing with a unicode engine. With a non-unicode engine, a type1 text package is the default.)
+%\item
+%{\tt type1text} (or {\tt type1} specifies that text processing should use a type1 package. (The default is to use an otf text package if processing with a unicode engine. With a non-unicode engine, a type1 text package is the default.)
\item {\tt otfmath} specifies to use an otf math engine rather than the default type1 math package, {\tt newtxmath}.
\item Option {\tt scale} or {\tt scaled} will pass the same {scale} option to both the text package and {\tt newtxmath}.
\item For dealing with cases where the text package should be loaded with a different scale from {\tt newtxmath}, you specify separately the options {\tt textscale[d]} and {\tt mathscale[d]}. There is one useful special case to notice: the option {\tt textscale[d]=0} selects a text scale factor that matches to the math scale factor, the latter defaulting to 1 unless otherwise specified.
@@ -104,34 +112,45 @@ Also introduced in 1.7 is {\tt newtx.sty}, which to some extent reduces the (hum
\item Other options are passed along to the text package, with the exception of a few handled by {\tt newtx}.
\end{itemize}
-The effect of loading the {\tt newtx} package is fundamentally one of four types, depending on the options you specify and the processing engine.
+The effect of loading the {\tt newtx} package is fundamentally one of three types, depending on the options you specify and the processing engine.
+\subsection{Basic example preambles.}
+
+\textsc{I: Otf text, otf math (requires unicode engine)}
-\textsc{Otf text, otf math (requires unicode engine)}
+Supports an arbitrary otf math font with otf text using {\tt TeXGyreTermesX}.
\begin{verbatim}
- \usepackage[]{newtxtext} %no other text package possible
- \RequirePackage{fontspec} % just in case
+ % Without newtx package:
+ \usepackage[otfmath]{newtxtext}
\usepackage{unicode-math} %loads amsmath
- %\setmathfont{}[] %expects your input here for math package
+ \setmathfont{}[] %expects your input here for otf math font and options
+% or, with newtx package:
+ \usepackage[otfmath]{newtx} % pass options to text package
+ \setmathfont{}[] %expects your input here for otf math font and options
\end{verbatim}
\textsc{Notes:}
\begin{itemize}
-\item Your option list to {\tt newtx} must include {\tt otfmath}.
-\item After loading {\tt newtx}, you must load your chosen unicode math package with \verb|\settmathfont{}[]|.
+\item Your option list to {\tt newtx[text]} must include {\tt otfmath}, otherwise it will load {\tt newtxmath}.
+\item With {\tt newtx}, you may specify some other otf text fonts.
+\item After loading {\tt newtx}, you must load your chosen unicode math package with \verb|\setmathfont{}[]|.
\item
You do not need to load {\tt amsmath}: it is loaded by {\tt unicode-math}.
-\item Don't bother with setting math options to {\tt newtx}---they are sent only to {\tt newtxmath}.
+\item When using an otf math font, options to {\tt newtx} are passed only to {\tt newtxtext}.
+
\item Babel, if used, must be specified before {\tt newtx[text]}, which loads {\tt fontspec}.
\item Polyglossia, if used, must be specified after loading {\tt newtx[text]}.
\end{itemize}
-\textsc{Otf text, type1 math (requires unicode engine)}
+\textsc{II: Otf text, type1 math (requires unicode engine)}
+
+Supports specially prepared text font packages with {\tt newtxmath}.
\begin{verbatim}
- \renewcommand*{\rmdefault}{\ntx@minfam} % loads minimal version of text font
- \usepackage[]{newtxmath} % options will be as passed from newtx
+% Without newtx
+ \renewcommand*{\rmdefault}{t1ntxmin} % loads minimal version of text font
+ \usepackage[]{newtxmath} % specify mathoptions
\usepackage[no-math]{fontspec}
- \usepackage{\ntx@TF} % the chosen text font
-
-
+ \usepackage{} % the chosen otf text font package, or fontspec \setmainfont, etc
+% or, using newtx
+ \usepackage[]{newtx} % options will be passed to text font package and newtxmath
\end{verbatim}
\textsc{Notes:}
\begin{itemize}
@@ -141,82 +160,80 @@ You do not need to load {\tt amsmath}: it is loaded by {\tt unicode-math}.
\end{itemize}
-\textsc{type1 text, otf math (requires unicode engine)}
-\begin{verbatim}
- \usepackage[type1text]{newtxtext} %no other text package possible
- \RequirePackage{fontspec} % just in case
- \usepackage{unicode-math} %loads amsmath
- %\setmathfont{}[] %expects your input here for math package
-\end{verbatim}
-\textsc{Notes:}
-\begin{itemize}
-%\item No special option requirements---this is the default case.
-\item Your option list to {\tt newtx} must include {\tt otfmath}.
-\item Don't bother with setting math options to {\tt newtx}---they are sent only to {\tt newtxmath}.
-\item Babel, if used, must be specified before {\tt newtx[text]}.
-\item Polyglossia, if used, must be specified after loading {\tt fontspec}.
-\end{itemize}
-
-\textsc{type1 text, type1 math}
+\textsc{III: type1 text, type1 math (requires non-unicode engine)}
\begin{verbatim}
- \renewcommand*{\rmdefault}{\ntx@minfam}% minimal text family, Roman and Bold for math
+% Without newtx
+ \renewcommand*{\rmdefault}{t1minntx}% minimal text family, Roman and Bold for math
\usepackage{newtxmath} % options will be as passed from newtx
- \usepackage{\ntx@TF} % the chosen text family
+ \usepackage{} % the chosen text package
+ % should load tt and sans math before math
+% or, using newtx
% should load tt and sans math before newtx
+ \usepackage[<options>]{newtx} % Incl name of text font package
+ % if not newtxtext
\end{verbatim}
\textsc{Notes:}
\begin{itemize}
-\item If not processing with non-unicode latex, no special option requirements. If using unicode latex, your option list should include {\tt type1text} and you may include option {\tt nofontspec} if you will have no use for it.
\item Babel, if used, must be specified before {\tt newtx[text]}.
\end{itemize}
- With {\tt newtx}, the simplest invocation could be just
-\begin{verbatim}
-\documentclass{article}
-\usepackage{newtx}
-\begin{document}
-\end{verbatim}
-which would work under all LaTeX engines:
-\begin{itemize}
-\item
-Under {\tt [pdf]latex}, the effect is the same as
-\begin{verbatim}
-\usepackage{newtxtext, newtxmath}
-\end{verbatim}
-though it is implemented equivalently as
-\begin{verbatim}
-% specify newtxtext with tabular lining figures for math operators
-\renewcommand{\rmdefault}{minntx} % for math use only
-\usepackage{newtxmath}
-\usepackage{newtxtext}% type1 text by default
-\end{verbatim}
+Note that with a unicode engine, it is not possible to load a type1 text font package unless you have created custom {\tt tu}-encoded support files.
-\item Under unicode LaTeX, in the absence of other options, the implementation is
-\begin{verbatim}
-% specify newtxtext with tabular lining figures for math operators
-\renewcommand{\rmdefault}{minntx} % minimal newtxtext for math use only
-\usepackage{newtxmath}
-\usepackage{newtxtext}% otf text by default, loads [no-math]fontspec
-\end{verbatim}
-and the effect is to run unicode latex on the {\tt TeXGyreTermesX} font family for text and use {\tt newtxmath} as the math font.
-\end{itemize}
+% With {\tt newtx}, the simplest invocation could be just
+%\begin{verbatim}
+%\documentclass{article}
+%\usepackage{newtx}
+%\begin{document}
+%\end{verbatim}
+%which would work under all LaTeX engines:
+%\begin{itemize}
+%\item
+%Under {\tt [pdf]latex}, the effect is the same as
+%\begin{verbatim}
+%\usepackage{newtxtext, newtxmath}
+%\end{verbatim}
+%though it is implemented equivalently as
+%\begin{verbatim}
+%% specify newtxtext with tabular lining figures for math operators
+%\renewcommand{\rmdefault}{minntx} % for math use only
+%\usepackage{newtxmath}
+%\usepackage{newtxtext}% type1 text by default
+%\end{verbatim}
+%
+%\item Under unicode LaTeX, in the absence of other options, the implementation is
+%\begin{verbatim}
+%% specify newtxtext with tabular lining figures for math operators
+%\renewcommand{\rmdefault}{minntx} % minimal newtxtext for math use only
+%\usepackage{newtxmath}
+%\usepackage{newtxtext}% otf text by default, loads [no-math]fontspec
+%\end{verbatim}
+%and the effect is to run unicode latex on the {\tt TeXGyreTermesX} font family for text and use {\tt newtxmath} as the math font.
+%\end{itemize}
+%
+%\begin{itemize}
+%\item
+%{\tt otfmath} changes the code above to
+%\begin{verbatim}
+%\usepackage{newtxtext}
+%\RequirePackage{fontspec}
+%\usepackage{unicode-math} %loads amsmath
+%\end{verbatim}
+%which expects a subsequent
+%\begin{verbatim}
+%\setmathfont{}[]
+%\end{verbatim}
+%line to set up a unicode math font as the partner to text from {\tt TeXGyreTermesX}.
+\subsection{Options to newtx}
+Aside from options that are passed along to the text and math packages, {\tt newtx} has options it processes internally.
\begin{itemize}
\item
-{\tt otfmath} changes the code above to
-\begin{verbatim}
-\usepackage{newtxtext}
-\RequirePackage{fontspec}
-\usepackage{unicode-math} %loads amsmath
-\end{verbatim}
-which expects a subsequent
-\begin{verbatim}
-\setmathfont{}[]
-\end{verbatim}
-line to set up a unicode math font as the partner to text from {\tt TeXGyreTermesX}.
-\item You may specify as an option to {\tt newtx} the name of any supported text package and any options other than scale[d] that are understood by that package. The default text package is {\tt newtxtext}, which need not be specified explicitly. Other valid options as of early March, 2022, are:
+You may set the scale for both text and math by setting {\tt scale} or, equivalently, {\tt scaled}. Alternatively, you may scale text and math separately by means of the options {\tt textscale[d]}, {\tt mathscale[d]}.
+\item Option {otfmath} is acted upon only under a unicode engine, and specifies unicode math rather than the default---type1 math using {\tt newtxmath}.
+\item Option {\tt subscriptcorrectionfile} allows you to set your own file specifying subscript corrections.
+\item You may specify as an option to {\tt newtx} the name of any supported text package and any options other than scale[d] that are understood by that package. The default text package is {\tt newtxtext}, which need not be specified explicitly. Other valid options as of early May, 2022, are:
\begin{verbatim}
libertine
libertinus
@@ -247,7 +264,7 @@ ncf --> scholaxf
\end{itemize}
The sty file {\tt newtx.sty} stores a good deal of information about each of the supported text packages and uses some of this to translate its macros into forms understood by the text package.
-For example, how the following line in your preamble is interpreted depends on the LaTeX engine and the options you set.
+How the following line in your preamble is interpreted depends on the LaTeX engine and the options you set.
\begin{verbatim}
\usepackage[libertine,vvarbb]{newtx}
\end{verbatim}
@@ -261,12 +278,44 @@ The first line, setting the \verb|\rmdefault| temporarily to {\tt minlibertine},
\begin{verbatim}
\usepackage[T1]{fontenc}
\end{verbatim}
-If you look at, say, {\tt t1minlibertine.fd} (the ``min'' part of the name is supposed to denote ``minimal''), you will see that if leads to {\tt libertine} text fonts with TLF (Tabular Lining Figures). When {\tt newtxmath} is loaded it is sets its {\tt operators} fonts to the corresponding {\tt libertine} text font so that mathematical operator names, numerals, punctuation and accents are chosen from this font. Indeed, this is the only way it will be used.
+If you look at, say, {\tt t1minlibertine.fd} (the ``min'' part of the name is supposed to denote ``minimal''), you will see that it leads to {\tt libertine} text fonts with TLF (Tabular Lining Figures). When {\tt newtxmath} is loaded it is sets its {\tt operators} fonts to the corresponding {\tt libertine} text font so that mathematical operator names, numerals, punctuation and accents are chosen from this font. Indeed, this is the only way it will be used.
-Finally, the actual text font package, {\tt libertine}, is loaded with whatever is selected by the text options you specified. For example, if your options specified to {\tt newtx} included {\tt p, osf}, then all figures in text (but not in math) would be in proportional oldstyle shape.
+Finally, the actual text font package, {\tt libertine}, is loaded with whatever is selected by the text options you specified. For example, if your options specified to {\tt newtx} included {\tt p,osf}, then all figures in text (but not in math) would be in proportional oldstyle shape.
There is a ``min'' fd family for each possible text font family, each pointing to TLF figured tfm files, but using a family name that will not conflict in any way with the final text font family. Examples are {\tt minntx} (for {\tt newtxtext}), {\tt minetbb} and so on.
+\subsection*{Options and macros particular to {\tt libertine} and {\tt libertinus}}
+
+These packages are more complex than most text packages because they contain options to control more than just a Roman text font. Libertinus is more straightforward than libertine in its scaling options, which we summarize below.
+
+\hspace*{.5in}\textbf{Libertinus scale options:}\\
+\hspace*{.5in}{\tt ScaleRM}\hspace{.5in}Scale for serifed face.\\
+\hspace*{.5in}{\tt ScaleSF}\hspace{.5in}Scale for sans serif face.\\
+\hspace*{.5in}{\tt ScaleTT}\hspace{.5in}Scale for typewriter face.\\
+
+\hspace*{.5in}\textbf{Libertine scale options:}\\
+\hspace*{.5in}{\tt llscale}\hspace{.5in}Scale for serifed face.\\
+\hspace*{.5in}{\tt scale}\hspace{.66in}Scale for sans serif face.\\
+\hspace*{.5in}{\tt ttscale}\hspace{.5in}Scale for typewriter face.\\
+
+Libertine also has options {\tt rm} and {\tt sf} which limit the loading to the serif face and the san serif face respectively, and a {\tt mono} option that may be set to {\tt false} to prevent loading its typewriter font.
+
+Though {\tt libertinus} is now the better choice, there are likely to be many existing documents based on {\tt libertine} and I've tried to set up {\tt newtx} to use scale options that map to both. There are new options to {\tt newtx} that affect only these fonts:
+
+\hspace*{.5in}{\tt ScaleBaseRM}\hspace{.5in}Scale base for serifed face [1].\\
+\hspace*{.5in}{\tt ScaleBaseSF}\hspace{.5in}Scale base for sans serif face[1].\\
+\hspace*{.5in}{\tt ScaleBaseTT}\hspace{.5in}Scale base for typewriter face [.88].\\
+
+The actual scale that will be applied to the serifed face will be {\tt textscale*ScaleBaseRM}, and similarly for {\tt SF} and {\tt TT}. Note that the default base values are 1, 1, .88.
+
+Any other scale options other than {\tt scale[d]}, {\tt textscale[d]} and {\tt mathscale[d]} are absorbed by {\tt newtx} and will have no effect.
+
+%When loading {\tt libertine} from {\tt newtx}, as illustrated above, the {\tt newtx} option {\tt scale} (or {\tt scaled}) is mapped to the {\tt libertine} option {\tt llscale} which controls only the libertine serif font. To control the scales for the typewriter and the sans serif components, you need to add options {\tt ScaleTT=} (should be about 85\% of {\tt scale}) and {\tt ScaleSF=}, which is mapped to the {\tt libertine} option {\tt scale=}, which should be close in value to {\tt scale}
+%
+%For {\tt libertinus}, the option names are a bit different. While {\tt scale} is translated to {\tt ScaleRM}, the scale factor for libertine serif, the scale factors for typewriter and sans serif are {\tt ScaleTT} and {\tt Scale SF}.
+
+The {\tt type1} versions of both {\tt libertine} and {\tt libertinus} do not encode the subscript figures, though the glyphs are available in the {\tt.pfb} and {\tt.otf} files. {\tt Newtx} now includes \{T1, OT1, LY1\} support files for those subscripts and make available the \verb|\textfraction| macro making use of the superior and inferior figures. (This is of course only for non-unicode LaTeX.)
+
\subsection{A more general layout using {\tt newtx}}
A more realistic preamble than those detailed above would follow the general pattern:
@@ -307,7 +356,7 @@ For example:
\setotherlanguages{french,russian}
\usepackage[]{hyperref}
\end{verbatim}
-If you process with a unicode engine, {\tt fontspec} will be loaded by {\tt newtxtext} unless instructed not to by option {\tt nofontspec} to {\tt newtx}. (For example, you may wish to process with LuaLaTeX in order to use {\tt lua} while using type1 text and math packages and are concerned about processing speed.
+If you process with a unicode engine, {\tt fontspec} will be loaded by {\tt newtxtext}.
\subsection{Notes}
%\section{Usage with Lua\LaTeX\ and Xe\LaTeX}
%As far as I can tell, \textsf{newtxmath} works with both, but requires a very specific loading order and choice of options. Briefly, the math options must all be loaded prior to loading and using {\tt fontspec}. As of version 1.5, {\tt newtxtext} will load fontspec when processing with XeLaTeX or LuaLaTeX unless one or more of the options {\tt nofontspec}, {\tt type1} is specified. (If you specify the option {\tt no-otfmath} to {\tt newtxtext}, it will pass the option {\tt no-math}to the {\tt fontspec} call. This should be done if {\tt fontspec} will not be expected to load an Opentype package or install math support using {\tt mathspec}.)
@@ -436,18 +485,6 @@ If you process with a unicode engine, {\tt fontspec} will be loaded by {\tt newt
%%\end{verbatim}
%%prevents the problem with the {\tt cabin} package.
-\subsection{The stacked fraction macro}
-Having collected a lot of data about the text fonts it supports, it seemed worth-while to construct a macro that would work for most of those fonts: \verb|\textsfrac[1]{17}{32}| renders in {\tt newtxtext} as \textsfrac[1]{17}{32} and \verb|\textsfrac{9}{64}| as \textsfrac{9}{64}. Compare these with output from the diagonal fraction macro \verb|\textfrac|: \textfrac[1]{17}{32}, \textfrac{9}{64}.
-
-There are four options with which you may control the layout of the fractional part.
-\begin{itemize}
-\item
-{\tt sfracvcenter} controls the vertical center of the fraction bar.
-\item{\tt sfracbarthick} controls its thickness.
-\item{\tt sfracvspacing} controls the vertical space about and below the fraction bar.
-\item{\tt sfracscaling} controls the size of the figures in the fraction.
-\end{itemize}
-The last of these is just a number like .85 by which to scale the denominator figures used in the construction. The first three items may be specified in either {\tt em} units or in {\tt ex} units. If you use a number greater than 6, it is interpreted as a multiple of an {\tt em} (recall that for most fonts, and certainly for those supported by {\tt newtx}, 100{\tt em} is equal to 1{\tt pt} if you are processing at 10pt. On the other hand, 1{\tt ex} is the height of the letter x in the current text font. If you specify a number less than 6, it is interpreted in {\tt ex} units.
\subsection{Limitations of {\tt newtx}}
@@ -455,7 +492,7 @@ The last of these is just a number like .85 by which to scale the denominator fi
2. You can't use an arbitrary text font with {\tt newtx}. It needs considerable information to be available including how to pair it to a variant of {\tt newtxmath}.
-3. Aside from the minor addition of the stacked fraction macro \verb|\textsfrac|, {\tt newtx} is simply a convenience: it loads packages and sets option so that you don't have to remember as many details.
+3. Aside from the minor additions of the stacked fraction macro \verb|\textsfrac|, denominator figures for {\tt libertine-type1} and {\tt libertinus-type1} and an extension of \verb|\textfrac| to those packages, {\tt newtx} is simply a convenience: it loads packages and sets options so that you don't have to remember as many details.
The original loading via {\tt newtxtext} and {\tt newtxmath} should still work as long as you remember all the loading rules.
\section{Newtxmath}
@@ -553,7 +590,7 @@ Here is a specific example following this pattern, but without {\tt theoremfont}
As of version 1.4, there are four normal figure styles: tabular lining, tabular oldstyle, proportional lining and proportional oldstyle, the default figure alignment being \texttt{tabular}. To make \texttt{proportional} the default, use the option \texttt{p} or \texttt{proportional}.
-Option {\tt defaultsups} (same effect as {\tt defaultsups=true}) forces the package to use the \LaTeX\ default footnote markers (or, at least, those in force when the package is loaded) instead of those preferred by the package---Times Roman superior figures instead of spindly ordinary Times lining figures reduced to about 70\%. (Footnote markers in minipages use the default lowercase italic alphabetic characters, unless otherwise specified by redefining \verb|\thempfootnote|.) For better control over position and size of footnote markers, use the {\tt superiors} package after loading {\tt newtxtext}. The \verb|\sustyle| font switch and its related \verb|\textsu| macro know not only about figures, but also the upper and lower case letters, including \texttt{egrave}, so that traditional French expressions like \textlf{1}\textsu{i\`ere} may be typeset correctly.
+Option {\tt defaultsups} (same effect as {\tt defaultsups=true}) forces the package to use the \LaTeX\ default footnote markers (or, at least, those in force when the package is loaded) instead of those preferred by the package---Times Roman superior figures instead of spindly ordinary Times lining figures reduced to about 70\%. (Footnote markers in minipages use the default lowercase italic alphabetic characters, unless otherwise specified by redefining \verb|\thempfootnote|.) For better control over position and size of footnote markers, use the {\tt superiors} package after loading {\tt newtxtext}. The \verb|\sustyle| font switch and its related \verb|\textsu| macro know not only about figures, but also the upper and lower case letters, including \texttt{egrave}, so that traditional French expressions like \textlf{1}\textsup{i\`ere} may be typeset correctly.
As of version 1.7, there are two additional figure forms having the same sizes as the superior figures: denominator figures aligned to the text baseline and inferior figures whose baseline lies below the text baseline. The latter may be called either with \verb|{\infigures 12345}| {\infigures 12345} or \verb|\textinf{6789}| \textinf{6789}, while denominator figures may be called with the font switches \verb|\defigures|, \verb|\destyle| or by the macro \verb|\textde|. Prior to version 1.7, these were arranged a little differently in LaTeX, and only for upright regular text. With version 1.7, these are available under all \LaTeX\ engines. There is also a much improved (at least in unicode latex) \verb|\textfrac| macro that builds a fraction from superior figures and denominator figures: e.g., \verb|\textlf{5}\,\textfrac{7}{80}| renders as \textlf{5}\,\textfrac{7}{80}. The macro was changed starting in version 1.630 to add an optional argument for the integer part, and to allow adjustments to the space before and after the fraction solidus by means of the package options {\tt foresolidus} and {\tt aftsolidus}, which have no effect in unicode latex because they are not needed. Now, for example, \verb|\textfrac[5]{7}{80}| renders as \textfrac[5]{7}{80}.
@@ -962,9 +999,9 @@ so that \verb|\BIA| works as expected in all math styles (display, text, script,
\usepackage[T1]{fontenc} % best for Western European languages
\usepackage{textcomp} % required to get special symbols
\usepackage[varqu,varl]{inconsolata}% a typewriter font must be defined
-\usepackage{amsmath}% must be loaded before amsthm, if using
-\usepackage{amsthm}% must be loaded before newtxmath
-\usepackage[libertine,vvarbb]{newtxmath}
+%\usepackage{amsmath}% not needed, as it is Required by newtxmath
+%\usepackage{amsthm}% must be loaded before newtxmath
+\usepackage[amsthm,libertine,vvarbb]{newtxmath}
\usepackage[scr=rsfso]{mathalfa}
\usepackage{bm}% load after all math to give access to bold math
%After loading math package, switch to osf in text.
@@ -1068,6 +1105,14 @@ To pass options to {\tt amsmath}, you can pass the options as options to \verb|\
\end{verbatim}
will load {\tt amsmath} with option {\tt intlimits}. As of version 1.14, {\tt newtxmath} respects the {\tt amsmath} macros for placement of limits on integrals.
+As of version 1.72, the preamble fragment above may be replaced by
+
+\begin{verbatim}
+\documentclass[11pt,intlimits]{article}
+\usepackage{newtx} % options to newtx will be passed to text and math
+\end{verbatim}
+
+
\section{The {\tt minion} option}
This option allows the use of MinionPro as math letters (Latin and Greek) within the math font, but there are some caveats:
\begin{itemize}
@@ -1116,6 +1161,7 @@ which allows you to use letter X from {\tt boldlettersA} but without any math fe
\end{verbatim}
\end{itemize}
+
\section{Bold math fonts}\label{sec:boldmath}
Every math font in the {\tt txfonts} package, and in the {\tt newtx} package, is accompanied by a bold version. Some usage examples are given below. Generally, one may use either \verb|\boldmath| to change an entire formula to bold, or \verb|\boldsymbol| to change one symbol, but the spacing generally works better after loading the {\tt bm} package and using the \verb|\bm| macro.
@@ -1164,7 +1210,7 @@ When \textsc{Cost} is mentioned in the following discussion, this is to remind y
In the \TeX\ world, Blackboard Bold appeared first in the {\tt amstex} package, with {\tt msam} containing Gothic and {\tt msbm} containing Blackboard Bold. The only weight provided was regular. Those AMS additions, referred to below as \textsf{AMSadd}, were designed to blend well with Computer Modern, with geometric symbols vertically centered on its math axis and line widths matching those in Computer Modern. They are not good matches for the math axis and line width in {\tt newtx}. (\textsc{Cost}=$2$.)
-In the original {\tt txfonts}, the \textsf{AMSadd} fonts \verb|msam*| and \verb|msbm*| were replaced by {\tt AMSa} and {\tt AMSb}, with vertical positions and line widths appropriate to Times, each available in regular and bold. (\textsc{Cost}=$2$.) In the {\tt newtx} package, these two seven bit fonts are replaced by one eight bit font. (\textsc{Cost}=$1$.) In the sequel, this will be called \textsf{TXAMSadd}. The Gothic and Blackboard Bold alphabets they contain were not substantially heavier that those in the \textsf{AMSadd} fonts, but the shapes were somewhat different. For example, Blackboard Bold A in the original AMS additions and in the original {\tt txfonts} look as followed, scaled up by a factor of five:\\
+In the original {\tt txfonts}, the \textsf{AMSadd} fonts \verb|msam*| and \verb|msbm*| were replaced by {\tt AMSa} and {\tt AMSb}, with vertical positions and line widths appropriate to Times, each available in regular and bold. (\textsc{Cost}=$2$.) In the {\tt newtx} package, these two seven bit fonts are replaced by one eight bit font. (\textsc{Cost}=$1$.) In the sequel, this will be called \textsf{TXAMSadd}. The Gothic and Blackboard Bold alphabets they contain were not substantially heavier than those in the \textsf{AMSadd} fonts, but the shapes were somewhat different. For example, Blackboard Bold A in the original AMS additions and in the original {\tt txfonts} look as followed, scaled up by a factor of five:\\
\scalebox{5}{\hbox{\fAMSb\char65 }} {\scalefont{5}{$\mathbb{A}$}}\\
In both, there are areas of the glyphs where the narrow gaps between the outlines do not render well at normal text sizes, making for uneven gray blotched areas. In my opinion, neither is good for high quality work. Technically, both work work well with respect to \verb|hyperref| and the macros \verb|\bm|, \verb|\boldmath| and \verb|\boldsymbol|.
@@ -1217,7 +1263,7 @@ The third possibility is specified by the option {\tt vvarbb}, looking like $\v
\item No matter which alphabet option you chose, you may use symbols from of of the variant alphabets by means of the macros \verb|\vmathbb|, \verb|\vvmathbb|: e.g., \verb|\vmathbb{N}| gives $\vmathbb{N}$ and \verb|\vvmathbb{C}| gives $\vvmathbb{C}$. Note that for consistency with earlier usage in {\tt newtxmath}, \verb|\varmathbb| is a synonym for \verb|\vmathbb|.
\item In each of the two variant alphabets, there are digits taken from the STIX Blackboard Bold alphabets, as well as {\tt dotlessi} and {\tt dotlessj}.
\item \textbf{Important note:} Under the option {\tt stix2}, there are still three blackboard fonts but the macro \verb|\vmathbb| now points to glyphs from {\tt DSSerif}, a serifed double-struck family that replaces the original variant that is still available under other options. With {\tt stix2}, the {\tt dotlessi} and {\tt dotlessj} glyphs from the {\tt DSSerif} font are provided.%available as \verb|$\imathbbs$| and \verb|$\jmathbbs$|, no matter which blackboard bold option you chose.
- As of version $1.659$, the preferred names of $\imath$ and $\jmath$ from other alphabets have been changed so as to follow unicode naming conventions, though the old names will remain as alternatives.
+ As of version $1.659$, the preferred names of $\imath$ and $\jmath$ from other alphabets have been changed so as to follow unicode naming conventions, though the old names will remain as alternatives.
\begin{center}
\begin{tabular}{@{} lll @{}}
\toprule
@@ -1378,6 +1424,98 @@ The font files {\tt ntxexmods.pfb} and {\tt ntxbexmods.pfb} were derived from {\
The last two entries provide us with a way to access custom-encoded versions of {\tt fxlri.pfb} and {\tt fxlbi.map} in order to access some of the unencoded alternate characters---eg, Greek letters, {\tt J.alt} and {\tt v.alt}. The font file \textsf{LibertineTheta-Regular.pfb} was created from the Theta symbol in {\tt fxlri.pfb}, which requires some FontForge help to look correct.
This version contains optical versions of the math italic and symbol fonts at 7\texttt{pt} and 5\texttt{pt}, allowing better rendering in \verb|\scriptstyle| and \verb|\scriptscriptstyle|.
+%\newpage
+\section{Changed Math Font Tables}
+\subsection{letters}
+\fonttable{ntxmi}
+\newpage
+\subsection{lettersA}
+\fonttable{ntxmia}
+\newpage
+\subsection{symbols}
+\fonttable{ntxsy}
+%\newpage
+
+\subsection{A sample newtx-subs.tex}
+You may either copy the entire block below, starting with the line \verb|\begin{...| and ending after the line beginning \verb|\end{|
+and pasting it into the top of your document before the \verb|\documentclass...| line, which will allow for easy editing and will write the file to the same folder as your document, or make your own file, omitting those outer two lines.
+
+\begin{verbatim}
+\begin{filecontents*}{newtx-subs.tex}
+{f}{-3}
+{j}{-3}
+{p}{-1}
+{y}{-1}
+{A}{-3}
+{B}{-1}
+{D}{-1}
+{H}{-1}
+{I}{-1}
+{K}{-1}
+{L}{-1}
+{M}{-1}
+{N}{-0.5}
+{P}{-1}
+{X}{-1}
+{\rho}{-1.5}
+{\mu}{-1}
+\end{filecontents*}
+\end{verbatim}
+\subsection*{The {\tt ebgaramond} option to newtxmath}
+As {\tt ebgaramond} has an x-height considerably smaller than {\tt newtx}, some amount of scaling is useful to bridge the gap. In making the replacement letters, I increased the size of the EBGaramond letters in math by 5\%, so make some scaling combination for text that compensates for this. The weights of {\tt ebgaramond} used in the substitutions were regular and semibold. This dictates one of the options used for {\tt ebgaramond}.
+
+\textsc{Example preamble not using newtx:}
+\begin{verbatim}
+\usepackage[lining,semibold,scaled=1.05]{ebgaramond}
+% Latex BOLD renders with ebgaramond semibold
+\usepackage[T1]{fontenc} % best for Western European languages
+\usepackage[varqu,varl]{inconsolata}% a typewriter font for \mathtt
+\usepackage{amsmath}% must be loaded before amsthm, if using
+\usepackage{amsthm}% must be loaded before newtxmath
+\usepackage[ebgaramond,vvarbb,subscriptcorrection]{newtxmath} % STIX Bbb
+\usepackage{bm}% load after all math to give access to bold math
+\end{verbatim}
+\textsc{Same preamble using newtx:}
+\begin{verbatim}
+\usepackage[T1]{fontenc} % best for Western European languages
+\usepackage[varqu,varl]{inconsolata}% a typewriter font for \mathtt
+\usepackage[ebgaramond,semibold,textscale=0,vvarbb,subscriptcorrection,amsthm]{newtx}
+\usepackage{bm}% load after all math to give access to bold math
+\end{verbatim}
+%}
+
+\section{Changes to math character names in version 1.72}
+The names of some math characters containing a colon had become inconsistent with {\tt unicode-math} and the {\tt mathtools} package. Revision 1.72 (2023) of {\tt newtx} harmonizes the commands for colon-related math glyphs with the revisions made in 2022 in the {\tt mathtools} package---the last column below shows the new names used for such glyphs in {\tt newtx} that are also in {\tt mathtools}. The changes are consistent with the unicode-math command names.
+
+\begin{center}Math colon symbols in newtxmath and mathtools (MT)\\ \vspace{6pt}
+ \begin{tabular}{@{} ccccccc @{}}
+ \toprule
+ Symbol & u+ & unicode-math & txfonts & legacy newtx & legacy MT & newtx/MT \\
+ \midrule
+ $\colonapprox$ & • & • & \verb|\colonapprox| & \verb|\colonapprox| & \verb|\colonapprox| & \verb|\colonapprox| \\
+ $\colonsim$ & • & • & \verb|\colonsim| & \verb|\colonsim| & \verb|\colonsim| & \verb|\colonsim| \\
+ $\Colonapprox$ & • & • & \verb|\Colonapprox| & \verb|\Colonapprox| & \verb|\Colonapprox| & \verb|\Colonapprox| \\
+ $\Colonsim$ & • & • & \verb|\Colonsim| & \verb|\Colonsim| & \verb|\Colonsim| & \verb|\Colonsim| \\
+ $\coloneq$ & 2254 & \verb|\coloneq| &\verb|\coloneqq| & \verb|\coloneq| & \verb|\coloneqq| & \verb|\coloneq| \\
+ $\eqcolon$ & 2255 & \verb|\eqcolon| &\verb|\eqqcolon| & \verb|\eqcolon| & \verb|\eqqcolon| & \verb|\eqcolon| \\
+ $\colondash$ & • & • &\verb|\coloneq| & • & \verb|\coloneq| & \verb|\colondash| \\
+ $\dashcolon$ & 2239 & \verb|\dashcolon| &\verb|\eqcolon| & • & \verb|\eqcolon| & \verb|\dashcolon| \\
+ $\Coloneq$ & 2A74 & \verb|\Coloneq| & \verb|\Coloneqq| & \verb|\Coloneqq| & \verb|\Coloneqq| & \verb|\Coloneq| \\
+ $\Eqcolon$ & • & • &\verb|\Eqqcolon| & \verb|\Eqqcolon| & \verb|\Eqqcolon| & \verb|\Eqcolon| \\
+ $\Colondash$ & • & • & \verb|\Coloneq| & \verb|\Coloneq| & \verb|\Coloneq| & \verb|\Colondash| \\
+ $\Dashcolon$ & • & • & \verb|\Eqcolon| & \verb|\Eqcolon| & \verb|\Eqcolon| & \verb|\Dashcolon| \\
+ \bottomrule
+ \end{tabular}
+\end{center}
+
+
+For users with existing documents using any of the symbols in the last four rows, the legacy {\tt newtx} commands are aliased to the new commands. Unless the commands \verb|\Coloneqq|, \verb|\Eqqcolon|, \verb|\Coloneq| and \verb|\Eqcolon| have already been defined, the effect is the same as
+\begin{verbatim}
+\let\Coloneqq\Coloneq
+\let\Eqqcolon\Eqcolon
+\let\Coloneq\Colondash
+\let\Eqcolon\Dashcolon
+\end{verbatim}
\section{Appendix 1: Changes made in version 1.5}
\begin{itemize}
\item
@@ -1455,6 +1593,7 @@ $\smallointctrclockwise$ & \verb|$\smallointctrclockwise$|& $\ointctrclockwise$
\item New macros \verb|\setSYdimens| and \verb|\setEXdimens| allow experts to modify some math font dimensions.
\end{itemize}
\def\jj{\mkern-3mu j}
+
\section{Appendix 2: Changes made in version 1.60}
Versions of {\tt newtx} dated from September, 2019 (1.60 for {\tt newtxmath} make some quite substantial changes, mostly to math mode.
\section{Goals}
@@ -1469,9 +1608,11 @@ The following changes were made to both {\tt newtx} and {\tt newpx}.
Some of the individual font files from which the math fonts are built turned out to have some fairly minor structural issues. These have all been corrected. The more major issue was the lack of unicode mapping for all characters in the fonts. For the symbol and math extension fonts, this issue was largely solved by Ross Moore's {\tt glyphtounicode} files that are now accessible as part of TeXLive and MiKTeX. The main problem was the math alphabets like math italic, bold math italic, upright Greek and slanted Greek, all of which have now been assigned their own unicode points. For all of these, I constructed new fonts using unicode names for the glyphs, then made \textsf{fontinst} scripts that renamed those unicode values to the original simple names as used in the encoding files so that I could use my old encoding and adjustment files. This exercise has now been carried out for {\tt newtxmath}, {\tt newpxmath}, {\tt newtxmath/libertine}, {\tt newtxmath/cochineal}, {\tt newtxmath/stix2}, {\tt newtxmath/xcharter} and {\tt newtxmath/erewhon.} Each of these can now be considered to have an ``enhanced'' status that allows them to share all the new assets described below.
The other packages which may be specified as an option to {\tt newtxmath} (e.g., {\tt baskervaldx, baskervillef}) must be considered for the moment to be ``unenhanced'' and able to share only some of the new assets. In particular, only the enhanced items can generate archivable pdf.
-Also modified were the {\tt sups} fonts in {newtxtext}, where the main issue was unicode mapping. Superior number and some superior letters do have assigned unicode values, but in may cases a more creative approach was needed, and provided once again by Ross Moore. I rebuilt the superior font files using those unicode names, solving that particular problem.
+Also modified were the {\tt sups} fonts in {newtxtext}, where the main issue was unicode mapping. Superior numbers and some superior letters do have assigned unicode values, but in may cases a more creative approach was needed, and provided once again by Ross Moore. I rebuilt the superior font files using those unicode names, solving that particular problem.
Here is a sample preamble showing the elements you will need to specify to generate a pdf satisfying the PDF/A-1b standards, as verified by Adobe Acrobat Pro. (Other verification processes may yield different outcomes.)
+
+
\begin{verbatim}
\documentclass[noamsfonts]{amsart} % save 2 math families
%\pdfcompresslevel=0 %Set this only if are going to debug the pdf
@@ -1491,7 +1632,7 @@ Here is a sample preamble showing the elements you will need to specify to gene
\subsection{Glyph spacing changes} \textbf{(For enhanced packages only)}I reworked the math italics to improve the rendering of some superscripts. This affects (a) parentheses, brackets and braces to inhibit clashes; (b) glyphs like j, f, p, y, \verb|\rho|, \verb|\beta| and \verb|\mu| where a long tail could pose problems intersecting with other glyphs; (c) glyphs like such as D, Q and \verb|\Phi| that are round on the right, where interference is most likely to occur with a superscript. Increasing the left side-bearing of j, etc., helps with superscripts but creates an ugly gap when used as subscripts.
- The {\tt subscriptcorrection} option to {\tt newtxmath} has been corrected and enhanced so that it now offers a partial solution the subscript spacing problem. I regret that this option is incompatible with xy-pic, both depending on making \verb|_| an active character. {\tt Newtxmath} will detect if the {\tt xy} package is loaded and disable {\tt subscriptcorrection} if so. You would have to correct such issues by manually inserting a negative \verb|\mkern|. For example, you might put in your preamble something like
+ The {\tt subscriptcorrection} option to {\tt newtxmath} has been corrected and enhanced so that it now offers a partial solution the subscript spacing problem. I regret that this option is incompatible with {\tt xy-pic}, both depending on making \verb|_| an active character. {\tt Newtxmath} will detect if the {\tt xy} package is loaded and disable {\tt subscriptcorrection} if so. You would have to correct such issues by manually inserting a negative \verb|\mkern|. For example, you might put in your preamble something like
\begin{verbatim}
\def\jj{\mkern-3mu j}
\end{verbatim}
@@ -1534,15 +1675,17 @@ In both cases, there are full upper-case and lower-case and {\tt dotlessi}, {\tt
There are in fact two additional macros, \verb|\mathslscr| (slanted script) and \verb|\mathuscr| (upright script) that may be used. By default, \verb|\mathscr| is \verb|\let| to \verb|\mathslscr|, but, under option {\tt uprightscript}, \verb|\mathscr| is \verb|\let| to \verb|\mathuscr|.
-The secondary letters font {\tt (lettersA)} and math family 2 {\tt(symbols)} have been rearranged. The first of these continues to have a Fraktur alphabet, but it a modification of its original one, having wider vertical stems and a blacker appearance more in keeping with the weight Times. {\tt Dotlessi} and {\tt dotlessj} have been added and can be specified in math mode by \verb|$\imathfrak$| and \verb|$\jmathfrak$|---\verb|$\mathfrak{\imath}$| also works. There are in addition two subsidiary Bbb alphabets in {\tt lettersA}, specified by the respective options {\tt varbb}, {\tt vvarbb}, and there are corresponding {\tt dotlessi}, {\tt dotlessj} activated by \verb|$\imathbb$|, \verb|$\jmathbb$|, which always render as $\imathbb$, $\jmathbb$ no matter the choice of which Blackboard Bold Alphabet. If you select one of the options {\tt varbb}, {\tt vvarbb}, you will have Bbb digits 0..9 using, e.g., \verb|$\mathbb{1}$| to get~$\vvmathbb{1}$. With both options, the arguments \verb|\imath|, \verb|\jmath| will render as expected, as are all upper and lower case letters.
+The secondary letters font {\tt (lettersA)} and math family 2 {\tt(symbols)} have been rearranged. The first of these continues to have a Fraktur alphabet, but it a modification of its original one, having wider vertical stems and a blacker appearance more in keeping with the weight of Times. {\tt Dotlessi} and {\tt dotlessj} have been added and can be specified in math mode by \verb|$\imathfrak$| and \verb|$\jmathfrak$|---\verb|$\mathfrak{\imath}$| also works. There are in addition two subsidiary Bbb alphabets in {\tt lettersA}, specified by the respective options {\tt varbb}, {\tt vvarbb}, and there are corresponding {\tt dotlessi}, {\tt dotlessj} activated by \verb|$\imathbb$|, \verb|$\jmathbb$|, which always render as $\imathbb$, $\jmathbb$ no matter the choice of which Blackboard Bold Alphabet. If you select one of the options {\tt varbb}, {\tt vvarbb}, you will have Bbb digits 0..9 using, e.g., \verb|$\mathbb{1}$| to get~$\vvmathbb{1}$. With both options, the arguments \verb|\imath|, \verb|\jmath| will render as expected, as are all upper and lower case letters.
+
Among the new symbols added are:\\
$\bullet$ \verb|\hslash|, \verb|\hbar|, \verb|\lambdaslash|, \verb|\lambdabar|, \verb|\Zbar|, \verb|\Angstrom| are now constructed from the native glyphs, but only in the enhanced families.\\
$\bullet$ Euler's constant \verb|$\Euler$| ($\Euler$).\\
$\bullet$ Hermitian transpose \verb|\hermtransp| or \verb|\htransp| is used like \verb|$\mathbf{A}^{\htransp}$| ($\mathbf{A}^{\htransp}$). This usage is similar to simple transpose \verb|$\mathbf{A}^{\transp}$| ($\mathbf{A}^{\transp}$).\\
-$\bullet$ Independence (in the probabilistic sense) can use \verb|\Perp|, $\Perp$, and there is a new \verb|\nPerp|, $\nPerp$ for the negation.
+$\bullet$ Independence (in the probabilistic sense) can use \verb|\Perp|, $\Perp$, and there is a new \verb|\nPerp|, $\nPerp$ for its negation.
\subsection{Adaptive vector accent} The \LaTeX\ macro \verb|\overrightarrow| provides a right arrow with adaptive width, but not matching the vector head of {\tt newtxmath}. Likewise, the {\tt esvect} provides a similar service with a choice of vector heads, none of which match {\tt newtxmath}. I've added code to provide a matching adaptive vector accent and which uses the same macro name, \verb|\vv|, as {\tt esvect}.
+
For a comparison of these vector accents, \verb|$\vec{XY} \vv{XY} \overrightarrow{XY}$| renders as\\
$\vec{XY} \vv{XY} \overrightarrow{XY}$.\\
$\bullet$ \verb|$\vv{AB}$| renders as $\vv{AB}$.\\
@@ -1558,70 +1701,36 @@ The \verb|\widebar| macro added to version 1.7 came to me via Murray Eisenberg.
The superior letters fonts in {\tt newtx}
have been extended and all glyphs now have appropriate unicode mappings.
\item
-The AMS fonts replacement, {\tt ntxsym} corrects the former misplacement of \verb|\kbbb|, \verb|\daleth|, \verb|\circledR| and \verb|\circledS|.)
+The AMS fonts replacement {\tt ntxsym} corrects the former misplacement of \verb|\kbbb|, \verb|\daleth|, \verb|\circledR| and \verb|\circledS|.)
\end{itemize}
-%\newpage
-\section{Changed Math Font Tables}
-\subsection{letters}
-\fonttable{ntxmi}
-\newpage
-\subsection{lettersA}
-\fonttable{ntxmia}
-\newpage
-\subsection{symbols}
-\fonttable{ntxsy}
-%\newpage
-
-\subsection{A sample newtx-subs.tex}
-You may either copy the entire block below, starting with the line \verb|\begin{...| and ending after the line beginning \verb|\end{|
-and pasting it into the top of your document before the \verb|\documentclass...| line, which will allow for easy editing and will write the file to the same folder as your document, or make your own file, omitting those outer two lines.
-\begin{verbatim}
-\begin{filecontents*}{newtx-subs.tex}
-{f}{-3}
-{j}{-3}
-{p}{-1}
-{y}{-1}
-{A}{-3}
-{B}{-1}
-{D}{-1}
-{H}{-1}
-{I}{-1}
-{K}{-1}
-{L}{-1}
-{M}{-1}
-{N}{-0.5}
-{P}{-1}
-{X}{-1}
-{\rho}{-1.5}
-{\mu}{-1}
-\end{filecontents*}
-\end{verbatim}
-\subsection*{The {\tt ebgaramond} option to newtxmath}
-As {\tt ebgaramond} has an x-height considerably smaller than {\tt newtx}, some amount of scaling is useful to bridge the gap. In making the replacement letters, I increased the size of the EBGaramond letters in math by 5\%, so make some scaling combination for text that compensates for this. The weights of {\tt ebgaramond} used in the substitutions were regular and semibold. This dictates one of the options used for {\tt ebgaramond}.
-\textsc{Example preamble not using newtx:}
-\begin{verbatim}
-\usepackage[lining,semibold,scaled=1.05]{ebgaramond}
-% Latex BOLD renders with ebgaramond semibold
-\usepackage[T1]{fontenc} % best for Western European languages
-\usepackage[varqu,varl]{inconsolata}% a typewriter font for \mathtt
-\usepackage{amsmath}% must be loaded before amsthm, if using
-\usepackage{amsthm}% must be loaded before newtxmath
-\usepackage[ebgaramond,vvarbb,subscriptcorrection]{newtxmath} % STIX Bbb
-\usepackage{bm}% load after all math to give access to bold math
-\end{verbatim}
-\textsc{Same preamble using newtx:}
-\begin{verbatim}
-\usepackage[T1]{fontenc} % best for Western European languages
-\usepackage[varqu,varl]{inconsolata}% a typewriter font for \mathtt
-\usepackage[ebgaramond,semibold,textscale=0,vvarbb,subscriptcorrection,amsthm]{newtx}
-\usepackage{bm}% load after all math to give access to bold math
-\end{verbatim}
+%for {\tt newtx}
%\subsection{Operatorname issues}
-%For some of the text fonts supported by {\tt newtx}, an {\tt OT1} version of the text fonts has been constructed with Greek capital letters in the first eleven slots, just as in Computer Modern, and some older TeX constructs depend on that. In those cases, even if you set {\tt T1} as your text font encoding before loading {\tt newtxmath} or {\tt newtx}, the operator font will be set to the {\tt OT1} version, not the {\tt T1} version. (You may prevent this by specifying option {\tt noOT1} to {\tt newtxmath} or {\tt newtx}.) Using the {\tt OT1} encoded operators font should not be a problem unless you wish to use accented characters in some operator names. This is the case in Spanish and Portuguese, and possible other languages. One solution could be to define the affected operators individually with commands like
+%For some of the text fonts supported by {\tt newtx}, an {\tt OT1} version of the text fonts has been constructed with Greek capital letters in the first eleven slots, just as in Computer Modern, and some older TeX constructs depend on that. In those cases, even if you set {\tt T1} as your text font encoding before loading {\tt newtxmath} or {\tt newtx}, the operator font will be set to the {\tt OT1} version, not the {\tt T1} version. (You may prevent this by specifying option {\tt noOT1} to {\tt newtxmath} or {\tt newtx}.) Using the {\tt OT1} encoded operators font should not be a problem unless you wish to use accented characters in some operator names. This is the case in Spanish and Portuguese, and possibly other languages. One solution could be to define the affected operators individually with commands like
%\begin{verbatim}
%\DeclareMathOperator{\mIn}{\text{{\fontencoding{T1}\selectfont m\'in}}}
%\end{verbatim}
%making use of the {\tt amsmath} \verb|\text| macro, which gives you proper scaling in scriptstyle and scriptscriptstyle as well.
+\makeatletter
+%\expandafter\show\csname ver@newtx.sty\endcsname
+\@ifundefined{ver@newtx.sty}{\end{document}}{\makeatother}
+%
+%\show\nustyle
+\subsection{The stacked fraction macro}
+Having collected a lot of data about the text fonts it supports, it seemed worthwhile to construct in {\tt newtx} a macro that would work for most of those fonts:
+\verb|\textsfrac[1]{17}{32}| renders in {\tt newtxtext} as \textsfrac[1]{17}{32}
+ and \verb|\textsfrac{9}{64}| as \textsfrac{9}{64}. Compare these with output from the diagonal fraction macro
+ \verb|\textfrac|: \textfrac[1]{17}{32}, \textfrac{9}{64}. Note: \verb|\textsfrac| is not available unless you load via {\tt newtx.sty}.
+
+There are four options with which you may control the layout of the fractional part.
+\begin{itemize}
+\item
+{\tt sfracvcenter} controls the vertical center of the fraction bar.
+\item{\tt sfracbarthick} controls its thickness.
+\item{\tt sfracvspacing} controls the vertical space above and below the fraction bar.
+\item{\tt sfracscaling} controls the size of the figures in the fraction.
+\end{itemize}
+The last of these is just a number like .85 by which to scale the denominator figures used in the construction. The first three items may be specified in either {\tt em} units or in {\tt ex} units. If you use a number greater than 6, it is interpreted as a multiple of an {\tt em} (recall that for most fonts, and certainly for those supported by {\tt newtx}, 100{\tt em} is equal to 1{\tt pt} if you are processing at 10{\tt pt}. On the other hand, 1{\tt ex} is the height of the letter x in the current text font. If you specify a number less than 6, it is interpreted in {\tt ex} units.
+
\end{document} \ No newline at end of file