summaryrefslogtreecommitdiff
path: root/fonts/newtx
diff options
context:
space:
mode:
Diffstat (limited to 'fonts/newtx')
-rw-r--r--fonts/newtx/README12
-rw-r--r--fonts/newtx/doc/newtxdoc.pdfbin1173119 -> 1176270 bytes
-rw-r--r--fonts/newtx/doc/newtxdoc.tex3
-rw-r--r--fonts/newtx/tex/newtx-subs.tex17
-rw-r--r--fonts/newtx/tex/newtxmath.sty57
-rw-r--r--fonts/newtx/tex/newtxtext.sty26
6 files changed, 80 insertions, 35 deletions
diff --git a/fonts/newtx/README b/fonts/newtx/README
index 4774efa482..1ac1f62feb 100644
--- a/fonts/newtx/README
+++ b/fonts/newtx/README
@@ -1,11 +1,17 @@
This package, initially based on txfonts, provides many fixes and enhancements to the txfonts package, splitting it into two separate packages---newtxtext and newtxmath, which may be run independently of one another. It provides scaling, improved metrics, and other options. In particular, newtxmath offers a libertine option which substitutes Linux Libertine (provided with TeXLive and MikTeX) italic and Greek letters for the default Times letters, providing a good match for the Libertine text font, which is heavier than Computer Modern but lighter than Times, and in my experience, looks very sharp and clear on the screen.
-Current version: 1.627 2020-05-17
+Current version: 1.628 2020-07-22
This material is subject to the LaTeX Project Public License. See http://www.ctan.org/license/lppl1.3
for the details of that license.
-Changes in version 1.626
+Changes in version 1.628
+1. Removed no longer neede \k macro from newtxtext.sty.
+2. Added a number of \pdfglyphtounicode entries to newtxmath.sty
+3. Added code to \ntx@alfa macro in newtxmath.sty in order to extend its ability to pass unprocessed item through to LaTeX.
+4. Added option noOT1 to newtxmath to allow the user to specify whether using OT1 for operators, with UC Greek, is less important than using T1 for operators, so that accented characters may be used in operator names.
+
+Changes in version 1.627
Corrected some fontdimen settings in ntx[b]exa, ntx[b]sym and ntx[b]syc.
Changes in version 1.626
@@ -78,7 +84,7 @@ Changes in version 1.602
3. Added the changes needed for stix2 option to work as an enhanced option, able to generate conformant PDF/A-1b pdf output.
Changes in version 1.601
-1. 1. Changed name of file newtx.subs to newtx-subs.tex, with similar changes for other such files.
+1. Changed name of file newtx.subs to newtx-subs.tex, with similar changes for other such files.
2. Placed the \pdfglyphtounicode lines in a conditional block in newpxmath.sty so it could continue to be used with other engines. (Thanks Hironobu Yamashita.)
3. Added option ebgaramond to substitute ebgaramond Roman and Greek Letters for Times in math.
diff --git a/fonts/newtx/doc/newtxdoc.pdf b/fonts/newtx/doc/newtxdoc.pdf
index 47b404d23b..b7e351b51a 100644
--- a/fonts/newtx/doc/newtxdoc.pdf
+++ b/fonts/newtx/doc/newtxdoc.pdf
Binary files differ
diff --git a/fonts/newtx/doc/newtxdoc.tex b/fonts/newtx/doc/newtxdoc.tex
index 00a09e4681..c35a35c8db 100644
--- a/fonts/newtx/doc/newtxdoc.tex
+++ b/fonts/newtx/doc/newtxdoc.tex
@@ -73,7 +73,7 @@ the new package is split into separate text and math packages that do not need t
\item macros have been added to bring the calls to Greek symbols more into conformity with \textsc{psnfss} and Mathtime Pro~2;
\item problems using \textsc{ams} macro packages before \textsf{txfonts} are settled;
\item \verb|\coloneq| and \verb|\eqcolon| now point to the correct glyphs;
-\item The problem with the {\tt ogonek} accent and tabular environments (bad definition of \verb|\k|) is fixed;
+\item The problem with the {\tt ogonek} accent and tabular environments (bad definition of \verb|\k|) is fixed: (the definition of \verb|\k| is removed as of version 1.628, being no longer of use);
\item The default encoding for \textsf{newtxtext} is now T$1$, but support is offered also for OT$1$ and LY$1$. As some add-on packages are available only in T$1$, that seems the best current choice.
\item Sans serif is by default taken from TeXGyreHeros, and by default at 90\% of the scale factor (set by {\tt scaled}, default value {\tt1}). The option {\tt helvratio=.98} will change that to 98\%.
\item \verb|\varkappa| $\varkappa$ has been moved from {\tt AMSb} to {\tt lettersA}, and is now accompanied by an upright form \verb|\upvarkappa| $\upvarkappa$ which behaves as it should when using the {\tt frenchmath} option.
@@ -273,6 +273,7 @@ causes no error, unlike the same combination with {\tt txfonts}, but does nothin
\item Option {\tt nonewtxmathopt} (or {\tt scale}, a mistake I cannot now erase) causes newtxmath to not make use of the optical math sizes (7{\tt pt}, 5{\tt pt}), as preferred by some.
\item Option {\tt subscriptcorrection} enables the special spacing of some subscripts. (The default is {\tt nosubscriptcorrection}.)
\item The \textsf{newtxmath} package contains three different Blackboard Bold alphabets, where original \textsf{txfonts} contained two. The default, triggered by \verb|\mathbb{}|, takes its glyphs from the font which replaces {\tt msbm} and has the same overall appearance of a hollowed-out text font, which I find neither bold nor blackboard-like. The second option, taken from \textsf{txfonts}, is triggered by \verb|\varmathbb{}|, is more geometric and, in my opinion, preferable but not optimal. The option {\tt varbb} makes \verb|\mathbb{}| synonymous with \verb|\varmathbb{}|. The third option is the double-struck glyphs from the STIX collection. See the expanded discussion below.
+\item {\tt noOT1} affects only those text-math combinations where {\tt operators} is defined by default to OT1 with Greek uppercase letters. It causes {\tt operators} to keep the same encoding as in tex, allowing operatornames to use accented charaters, but losing Greek uppercase.
\item {\tt nosymbolsc} causes the package to not load the {\tt symbolsC} fonts, saving a math family. (This font contains mostly exotic symbols, along with some very useful, commonly used symbols like \verb|\coloneq| $\coloneq$, \verb|\eqcolon| $\eqcolon$, \verb|\notin| $\notin$, \verb|\notni| $\notni$, \verb|\neq| $\neq$, \verb|\nsubset| $\nsubset$ and \verb|\nsupset| $\nsupset$, but these have been moved (virtually) to {\tt lettersA} so they may continue to be used even if you use the option {\tt nosymbolsc}.) If this option is selected, then, as of version 1.53, new definitions are made for the missing negated symbols. The package {\tt centernot} is now required.
\item {\tt amssymbols} (the default) and {\tt noamssymbols} determine whether the {\tt txfonts} versions of the \textsc{ams} symbols ({\tt AMSm}) are loaded---if so, they override previous settings in {\tt amsmath}. If you use the option {\tt noamssymbols}, then \verb|\mathbb{}| is set to mean the same as \verb|\varmathbb{}|. (One advantage of {\tt noamssymbols} is that you save two of your precious math families for other purposes, such as setting a couple of external math alphabets by means of the \textsf{mathalfa} package.) \textbf{Important note:} if you load an AMS class, like {\tt amsart}, then some trickery will be involved. The AMS classes have an option, {\tt noamsfonts} which currently (2017) does not work as advertised, but is fixed in \TeX Live 2018. It is supposed to prevent the loading of {\tt AMSa} and {\tt AMSb}, which waste two slots. The following workaround seems like a reasonable stopgap until then.
\begin{verbatim}
diff --git a/fonts/newtx/tex/newtx-subs.tex b/fonts/newtx/tex/newtx-subs.tex
new file mode 100644
index 0000000000..9e22663573
--- /dev/null
+++ b/fonts/newtx/tex/newtx-subs.tex
@@ -0,0 +1,17 @@
+{f}{-3}
+{j}{-3}
+{p}{-}
+{y}{-}
+{A}{-2}
+{B}{-}
+{D}{-}
+{H}{-}
+{I}{-}
+{K}{-}
+{L}{-}
+{M}{-}
+{N}{-0.5}
+{P}{-}
+{X}{-}
+{\rho}{-1.5}
+{\mu}{-1} \ No newline at end of file
diff --git a/fonts/newtx/tex/newtxmath.sty b/fonts/newtx/tex/newtxmath.sty
index 88b2b1180c..500ae8e321 100644
--- a/fonts/newtx/tex/newtxmath.sty
+++ b/fonts/newtx/tex/newtxmath.sty
@@ -11,8 +11,8 @@
% of glyph collisions.
% These modifications are by Michael Sharpe, msharpe at ucsd dot edu
-\def\fileversion{1.626}
-\def\filedate{2020/05/02}
+\def\fileversion{1.628}
+\def\filedate{2020/07/22}
\ProvidesPackage{newtxmath}[\filedate\space v\fileversion ]
\@ifundefined{newtxmathLoaded}{}{\endinput}
@@ -21,6 +21,7 @@
\csname newtxmathLoaded\endcsname
\let\newtxmathLoaded\endinput
\RequirePackage{amsmath} % improves extendable delimiter handling
+\RequirePackage{ifthen}
\RequirePackage{etoolbox}
%\RequirePackage{trimspaces} % for trim@pre@space
@@ -82,8 +83,10 @@
\newif\iftx@stxtwo
\newif\iftx@sbc
%\newif\iftx@spc
+\newif\iftx@nootone % do not switch to OT1 for operators
+\newif\iftx@digits % use digits from letters
\newif\iftx@isenh % the math style is enhanced and can make use of new macros
-% Currently (2019-12-11) only txmath, libertine, XCharter, ebgaramond, stickstoo, utopia, nc and cochineal have been enhanced.
+% Currently (2019-12-11) only txmath, libertine, XCharter, ebgaramond, stickstoo, utopia, nc, minion and cochineal have been enhanced.
\newif\iftx@cochf % switch to long f
\newif\iftx@cochrho % switch to long rho
\newif\iftx@fourier
@@ -96,7 +99,8 @@
\ifx\tx@rmdefault\@tx@ptm \tx@hastmtrue\fi\@ifundefined{ver@newtxtext.sty}{}{\tx@hastmtrue}
\@ifundefined{ver@tgtermes.sty}{}{\tx@hastmtrue}
\iftx@hastm\def\rmdefaultB{ntxtlf}\fi
-
+% test if tm is loaded minimally as with XeLaTeX newtxmath
+\ifthenelse{\equal{\rmdefault}{ntxtlf}}{\tx@hastmtrue\def\rmdefaultB{ntxtlf}}{}
%\expandafter\ifx\csname qnc@scale\endcsname\relax
%\else
% \let\znc@scale=\qnc@scale % scale set by tgschola.sty
@@ -243,6 +247,8 @@
\DeclareOption{alty}{\tx@XChaltytrue} % only in XCharter, added im 1.611
\DeclareOption{varg}{\def\X@s@v@rg{1}}
\DeclareOption{varvw}{\def\X@s@v@rg{0}}
+\DeclareOption{internaldigits}{\tx@digitstrue}
+\DeclareOption{noOT1}{\tx@nootonetrue}
\ExecuteOptions{%
amssymbols,uprightGreek,nosubscriptcorrection}
@@ -316,6 +322,8 @@ amssymbols,uprightGreek,nosubscriptcorrection}
\iftx@minion\edef\rmdefaultB{MinionPro-TLF}\fi
\edef\bold@wt{\ifx\iflibertine@otf\undefined b\else sb\fi}
\let\tx@enc\encodingdefault
+%:
+\iftx@nootone\tx@otfalse\fi
\iftx@ot\let\tx@enc\ot@one\fi
\DeclareSymbolFont{operators}{\tx@enc}{\rmdefaultB}{m}{n}
\SetSymbolFont{operators}{bold}{\tx@enc}{\rmdefaultB}{\bold@wt}{n}
@@ -439,17 +447,18 @@ amssymbols,uprightGreek,nosubscriptcorrection}
%\show\tx@subs
\iftx@isenh
-% \DeclareMathSymbol{0}{\mathord}{letters}{132}
-% \DeclareMathSymbol{1}{\mathord}{letters}{133}
-% \DeclareMathSymbol{2}{\mathord}{letters}{134}
-% \DeclareMathSymbol{3}{\mathord}{letters}{135}
-% \DeclareMathSymbol{4}{\mathord}{letters}{136}
-% \DeclareMathSymbol{5}{\mathord}{letters}{137}
-% \DeclareMathSymbol{6}{\mathord}{letters}{138}
-% \DeclareMathSymbol{7}{\mathord}{letters}{139}
-% \DeclareMathSymbol{8}{\mathord}{letters}{140}
-% \DeclareMathSymbol{9}{\mathord}{letters}{141}
-
+\iftx@digits
+ \DeclareMathSymbol{0}{\mathord}{letters}{132}
+ \DeclareMathSymbol{1}{\mathord}{letters}{133}
+ \DeclareMathSymbol{2}{\mathord}{letters}{134}
+ \DeclareMathSymbol{3}{\mathord}{letters}{135}
+ \DeclareMathSymbol{4}{\mathord}{letters}{136}
+ \DeclareMathSymbol{5}{\mathord}{letters}{137}
+ \DeclareMathSymbol{6}{\mathord}{letters}{138}
+ \DeclareMathSymbol{7}{\mathord}{letters}{139}
+ \DeclareMathSymbol{8}{\mathord}{letters}{140}
+ \DeclareMathSymbol{9}{\mathord}{letters}{141}
+\fi
\iftx@upscr
\DeclareRobustCommand{\mathscr}[1]{\ntx@alfa{#1}{196}{222}{248}{249}{}{letters}}
\DeclareMathSymbol{\imathscr}{\mathord}{letters}{248}
@@ -2359,7 +2368,7 @@ $\hfil\displaystyle{#1}\hfil$\crcr%
\ifnum\ntx@jmath>255\relax #1\ntx@tmpc=256 \message{^^JNo jmath in this alphabet^^J}\fi
\else % neither \imath nor \jmath
\ifiscseq{#1}{#1\ntx@tmpc=256 }{% not a cs
- \ntx@tmpc=\number\@xp`#1}
+ \ntx@tmpc=\number\@xp`#1}
\fi
\fi
%\message{^^JCharacter index = \the\ntx@tmpc^^J}
@@ -2400,11 +2409,13 @@ $\hfil\displaystyle{#1}\hfil$\crcr%
\fi
\fi
\fi
- \ifnum\ntx@tmpc<256\relax
+ \ifnum\tx@IsAlNum>\z@
+ \ifnum\ntx@tmpc<256\relax
\edef\ntx@char{"\@xp\hexnumber@\csname sym\ntx@fam\endcsname\nhex{2}{\the\ntx@tmpc}}
%\message{^^Joutput char = \ntx@char^^J}
\@xp\mathchar\ntx@char%\traceoff
- \fi %end of ifnum <256
+ \fi %end of ifnum <256
+ \fi %end of ifnum >0
}
% This really needs to be reorganized
\iftx@stxtwo
@@ -2758,6 +2769,7 @@ $\hfil\displaystyle{#1}\hfil$\crcr%
%%%%%%% Additional pdf to unicode values not in Ross Moore's collection
% Conditional needed for engines other than pdflatex
\ifx\pdfglyphtounicode\@undefined \else
+\pdfgentounicode=1
\pdfglyphtounicode{nPerp}{2AEB 2215}% .. ..
\pdfglyphtounicode{periodcentered.B}{00B7}
\pdfglyphtounicode{periodcentered.BB}{22C5}
@@ -2769,5 +2781,14 @@ $\hfil\displaystyle{#1}\hfil$\crcr%
\pdfglyphtounicode{emptyset.alt2}{2205}
\pdfglyphtounicode{transpose}{1D40}
\pdfglyphtounicode{hermitconj}{22B9}
+\pdfglyphtounicode{EM}{0058 0058 0058 0058 0058 0058 0058 0058}%
+\pdfglyphtounicode{NUL}{0060 0060 0060 0060 0060 0060 0060 0060}%
+\pdfglyphtounicode{uni222B.dsp}{222B FE01}%
+\pdfglyphtounicode{summationdisplay.1}{2211 FE01}%
+\pdfglyphtounicode{summationdisplay}{2211 FE01}%
+\pdfglyphtounicode{radicalbig}{221A FE01}%
+\pdfglyphtounicode{radicalbigg}{221A FE02}%
+\pdfglyphtounicode{radicalBig}{221A FE03}%
+\pdfglyphtounicode{radicalBigg}{221A FE04}%
\fi
\endinput
diff --git a/fonts/newtx/tex/newtxtext.sty b/fonts/newtx/tex/newtxtext.sty
index bc8191c238..81fb18ee86 100644
--- a/fonts/newtx/tex/newtxtext.sty
+++ b/fonts/newtx/tex/newtxtext.sty
@@ -1,7 +1,7 @@
\NeedsTeXFormat{LaTeX2e}
-\def\fileversion{1.625}
-\def\filedate{2020/03/02}
+\def\fileversion{1.628}
+\def\filedate{2020/07/22}
\ProvidesPackage{newtxtext}[\filedate\space v\fileversion]
\message{`newtxtext' v\fileversion, \filedate\space Text macros taking advantage of TeX-Gyre Termes fonts (msharpe)}
@@ -272,19 +272,19 @@
%%%
\def\T@n@@nc@d@ng{T1}
-\def\T@n@@nc@d@ngM@cr@M@d{%
-\DeclareTextCommand{\k}{T1}[1]{{\ooalign{\hidewidth\char12\crcr##1}}}%
-}
+%\def\T@n@@nc@d@ngM@cr@M@d{%
+%\DeclareTextCommand{\k}{T1}[1]{{\ooalign{\hidewidth\char12\crcr##1}}}%
+%}
\def\LY@n@@nc@d@ng{LY1}
-\def\LY@n@@nc@d@ngM@cr@M@d{%
-\DeclareTextCommand{\k}{LY1}[1]{{\ooalign{\hidewidth\char7\crcr##1}}}%
-}
-
-\AtBeginDocument{%
-\ifx\encodingdefault\T@n@@nc@d@ng\T@n@@nc@d@ngM@cr@M@d\fi%
-\ifx\encodingdefault\LY@n@@nc@d@ng\LY@n@@nc@d@ngM@cr@M@d\fi%
-}
+%\def\LY@n@@nc@d@ngM@cr@M@d{%
+%\DeclareTextCommand{\k}{LY1}[1]{{\ooalign{\hidewidth\char7\crcr##1}}}%
+%}
+
+%\AtBeginDocument{%
+%\ifx\encodingdefault\T@n@@nc@d@ng\T@n@@nc@d@ngM@cr@M@d\fi%
+%\ifx\encodingdefault\LY@n@@nc@d@ng\LY@n@@nc@d@ngM@cr@M@d\fi%
+%}
%\ifntx@babel
% \renewcommand*{\rmdefault}{ntx\ntx@figurealign%