summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-02-25 21:05:46 +0000
committerKarl Berry <karl@freefriends.org>2024-02-25 21:05:46 +0000
commit9fcdb0b070c84e20f0c2c6e79a143ea87947b9c0 (patch)
tree6004797c53bbb6dc0a4904975ef5e7a55ab1dbb4 /Master/texmf-dist/tex
parenta78d3e40e621976102db477d0beba3c20ede3713 (diff)
newtx (25feb24)
git-svn-id: svn://tug.org/texlive/trunk@70153 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/newtx/newtx.sty6
-rw-r--r--Master/texmf-dist/tex/latex/newtx/newtxmath.sty59
2 files changed, 46 insertions, 19 deletions
diff --git a/Master/texmf-dist/tex/latex/newtx/newtx.sty b/Master/texmf-dist/tex/latex/newtx/newtx.sty
index ed91042f05c..e80baff17b6 100644
--- a/Master/texmf-dist/tex/latex/newtx/newtx.sty
+++ b/Master/texmf-dist/tex/latex/newtx/newtx.sty
@@ -2,8 +2,8 @@
%Package to simplify loading of newtxmath with a text font family such as newtxtext for all latex engines, or for newtxtext and an otf math package.
-\def\fileversion{1.738}
-\def\filedate{2024/02/08}
+\def\fileversion{1.739}
+\def\filedate{2024/02/24}
\ProvidesPackage{newtx}[%
\filedate\space v\fileversion (Michael Sharpe) latex and unicode latex support for newtxmath and a supported text font family, or for newtxtext and an otf math package]
@@ -54,7 +54,7 @@
% options for newtxmath as etoolbox internal list allowing \ifinlist
%\def\ntx@mathlstr{vecsep,amsthm,nosubscriptcorrection,subscriptcorrection,timesmathacc,varbb,vvarbb,nosymbolsc,noamssymbols,amssymbols,uprightscript,uprightGreek,slantedGreek,frenchmath,nonewtxmathopt,upint,smallerops,useBImacros,varg,varvw,noOT1}
-\forcsvlist{\listadd\ntx@mathlst}{vecsep,amsthm,nosubscriptcorrection,subscriptcorrection,timesmathacc,varbb,vvarbb,nosymbolsc,noamssymbols,amssymbols,uprightscript,uprightGreek,slantedGreek,frenchmath,nonewtxmathopt,upint,smallerops,useBImacros,varg,varvw,noOT1,propmathfigs,curlybraces}
+\forcsvlist{\listadd\ntx@mathlst}{vecsep,amsthm,nosubscriptcorrection,subscriptcorrection,timesmathacc,varbb,vvarbb,nosymbolsc,noamssymbols,amssymbols,uprightscript,uprightGreek,slantedGreek,frenchmath,nonewtxmathopt,upint,smallerops,useBImacros,varg,varvw,noOT1,propmathfigs,curlybraces,cochrho,cochf,alty,alth,liby,nochvw}
%\show\ntx@mathlst
% Note that subscriptcorrectionfile is not on the list---we process it in this sty file
diff --git a/Master/texmf-dist/tex/latex/newtx/newtxmath.sty b/Master/texmf-dist/tex/latex/newtx/newtxmath.sty
index 5b520f004af..e0ed34db326 100644
--- a/Master/texmf-dist/tex/latex/newtx/newtxmath.sty
+++ b/Master/texmf-dist/tex/latex/newtx/newtxmath.sty
@@ -11,8 +11,8 @@
% of glyph collisions.
% These modifications are by Michael Sharpe, msharpe at ucsd dot edu
-\def\fileversion{1.732}
-\def\filedate{2023/11/05}
+\def\fileversion{1.739}
+\def\filedate{2024/02/24}
\ProvidesPackage{newtxmath}[\filedate\space v\fileversion ]
\@ifundefined{newtxmathLoaded}{}{\endinput}
@@ -89,6 +89,7 @@
\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, minion and cochineal have been enhanced.
+\newif\iftx@ebgalth
\newif\iftx@cochf % switch to long f
\newif\iftx@cochrho % switch to long rho
\newif\iftx@fourier
@@ -256,15 +257,17 @@
\DeclareOption{notosans}{\tx@notosanstrue\tx@notofalse\tx@ntxmathfalse} % added in 1.629
\DeclareOption{cochf}{\tx@cochftrue} % added in 1.604
\DeclareOption{cochrho}{\tx@cochrhotrue} % added in 1.604
-\DeclareOption{alty}{\tx@XChaltytrue} % only in XCharter, added im 1.611
+\DeclareOption{alty}{\tx@XChaltytrue} % only in XCharter, added in 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}
\DeclareOption{amsthm}{\ntx@amsthmtrue}
\DeclareOption{propmathfigs}{\ntx@pfigstrue}
+\DeclareOption{alth}{\tx@ebgalthtrue} % for ebg only
\ExecuteOptions{%
amssymbols,uprightGreek,nosubscriptcorrection}
+
\ProcessOptions\relax
\newif\iftx@lbtn
@@ -393,14 +396,24 @@ amssymbols,uprightGreek,nosubscriptcorrection}
\def\operator@font{\mathgroup\symoperators}
\DeclareSymbolFontAlphabet{\mathrm}{operators}
-
-\DeclareMathAlphabet{\mathsf}{\encodingdefault}{\sfdefault}{m}{n}
+\iftx@slantedG
+ \DeclareMathAlphabet{\mathsf}{OT1}%{\encodingdefault}
+ {\sfdefault}{m}{it}
+ \SetMathAlphabet{\mathsf}{bold}{OT1}%{\encodingdefault}
+ {\sfdefault}{b}{it}
+\else
+ \DeclareMathAlphabet{\mathsfi}{OT1}%{\encodingdefault}
+ {\sfdefault}{m}{n}
+ \SetMathAlphabet{\mathsf}{bold}{OT1}%{\encodingdefault}
+ {\sfdefault}{b}{n}
+\fi
\DeclareMathAlphabet{\mathit}{\tx@enc}{\rmdefaultB}{m}{it}
\DeclareMathAlphabet{\mathtt}{\encodingdefault}{\ttdefault}{m}{n}
\DeclareSymbolFontAlphabet{\mathrm}{operators}
\DeclareMathAlphabet{\mathbf}{\tx@enc}{\rmdefaultB}{\bold@wt}{n}
\SetMathAlphabet{\mathit}{bold}{\tx@enc}{\rmdefaultB}{\bold@wt}{it}
-\SetMathAlphabet{\mathsf}{bold}{\encodingdefault}{\sfdefault}{b}{n}
+%\SetMathAlphabet{\mathsf}{bold}{OT1}%{\encodingdefault}
+%{\sfdefault}{b}{n}
\SetMathAlphabet{\mathtt}{bold}{\encodingdefault}{\ttdefault}{b}{n}
% change default def of \hbar in case noamssymbols
@@ -543,16 +556,6 @@ amssymbols,uprightGreek,nosubscriptcorrection}
% \DeclareMathSymbol{\imathscr}{\mathord}{letters}{194}
% \DeclareMathSymbol{\jmathscr}{\mathord}{letters}{195}
%\fi
-\iftx@coch
- \DeclareMathSymbol{\fAlt}{\mathord}{letters}{250}
- \DeclareMathSymbol{\rhoAlt}{\mathord}{letters}{251}
- \iftx@cochf
- \DeclareMathSymbol{f}{\mathord}{letters}{250}
- \fi
- \iftx@cochrho
- \let\rho\rhoAlt
- \fi
-\fi
%%%%%%%%%%%%%%%%%
% Math Italic A %
%%%%%%%%%%%%%%%%%
@@ -563,6 +566,7 @@ amssymbols,uprightGreek,nosubscriptcorrection}
\DeclareFontSubstitution{U}{ntxmia}{m}{it}
\DeclareSymbolFontAlphabet{\mathfrak}{lettersA}
+
%%%%%%%%%%%%%%%
% Math Symbol %
%%%%%%%%%%%%%%%
@@ -3230,6 +3234,28 @@ $\hfil\displaystyle{#1}\hfil$\crcr%
\fi
\endgroup
}
+\iftx@ebgm
+ \DeclareMathSymbol{\hAlt}{\mathord}{letters}{250}
+ \DeclareMathSymbol{\hslashAlt}{\mathord}{lettersA}{252}
+ \DeclareMathSymbol{\hbarAlt}{\mathord}{lettersA}{253}
+ \iftx@ebgalth
+ \DeclareMathSymbol{h}{\mathord}{letters}{250}
+ \RenewCommandCopy{\hslash}{\hslashAlt}
+ \RenewCommandCopy{\hbar}{\hbarAlt}
+ \fi
+\fi
+
+\iftx@coch
+ \DeclareMathSymbol{\fAlt}{\mathord}{letters}{250}
+ \DeclareMathSymbol{\rhoAlt}{\mathord}{letters}{251}
+ \iftx@cochf
+ \DeclareMathSymbol{f}{\mathord}{letters}{250}
+ \fi
+ \iftx@cochrho
+ \RenewCommandCopy{\rho}{\rhoAlt}
+ \fi
+\fi
+
% For users of older newtxmath
\AtBeginDocument{%
\providecommand*\Coloneqq{\Coloneq}
@@ -3237,6 +3263,7 @@ $\hfil\displaystyle{#1}\hfil$\crcr%
\providecommand*\Coloneq{\Colondash}
\providecommand*\Eqcolon{\Dashcolon}}
+
% Fix for garamondx with siunitx
\iftx@gm%
\AtEndPreamble{%