summaryrefslogtreecommitdiff
path: root/fonts/newtx/tex/newtxmath.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-10-25 03:00:46 +0000
committerNorbert Preining <norbert@preining.info>2019-10-25 03:00:46 +0000
commitc2d1af7de907333dbb44f6687de92751dce79ff8 (patch)
treefc47e6bcc85210b51f74828ba5f7e531ba4c546c /fonts/newtx/tex/newtxmath.sty
parent33b877a6413cc7b93c7a2c17e6df36c03f55481d (diff)
CTAN sync 201910250300
Diffstat (limited to 'fonts/newtx/tex/newtxmath.sty')
-rw-r--r--fonts/newtx/tex/newtxmath.sty26
1 files changed, 23 insertions, 3 deletions
diff --git a/fonts/newtx/tex/newtxmath.sty b/fonts/newtx/tex/newtxmath.sty
index ce72d71b6c..d03ae102a4 100644
--- a/fonts/newtx/tex/newtxmath.sty
+++ b/fonts/newtx/tex/newtxmath.sty
@@ -1,5 +1,6 @@
\NeedsTeXFormat{LaTeX2e}[1997/06/01]
%
+%:
% Based on Young Ryu's txfonts.sty, v.3.2.1
% Text and math are now loaded in separate sty files---the text
% font family need not be txtext. The text font loaded when this package
@@ -10,8 +11,8 @@
% of glyph collisions.
% These modifications are by Michael Sharpe, msharpe at ucsd dot edu
-\def\fileversion{1.602}
-\def\filedate{2019/10/09}
+\def\fileversion{1.605}
+\def\filedate{2019/10/23}
\ProvidesPackage{newtxmath}[\filedate\space v\fileversion ]
\@ifundefined{newtxmathLoaded}{}{\endinput}
@@ -83,7 +84,9 @@
\newif\iftx@sbc
%\newif\iftx@spc
\newif\iftx@isenh % the math style is enhanced and can make use of new macros
-% Currently (2019-0921) only txmath, libertine and XCharter have been enhanced.
+% Currently (2019-10-15) only txmath, libertine, XCharter, ebgaramond, stickstoo and cochineal have been enhanced.
+\newif\iftx@cochf % switch to long f
+\newif\iftx@cochrho % switch to long rho
%\show\rmdefault
\edef\tx@rmdefault{\rmdefault}
\edef\tx@encdefault{\encodingdefault}
@@ -227,6 +230,9 @@
\DeclareOption{noXchvw}{\tx@nozchvwtrue}
\DeclareOption{stix2}{\tx@stxtwotrue\tx@ntxmathfalse} % added in 1.55
\DeclareOption{stickstoo}{\tx@stxtwotrue\tx@ntxmathfalse} % added in 1.55
+\DeclareOption{cochf}{\tx@cochftrue} % added in 1.604
+\DeclareOption{cochrho}{\tx@cochrhotrue} % added in 1.604
+
\ExecuteOptions{%
amssymbols,uprightGreek,nosubscriptcorrection}
\ProcessOptions*
@@ -236,6 +242,10 @@ amssymbols,uprightGreek,nosubscriptcorrection}
\iftx@ch\tx@isenhtrue\else
\iftx@ebgm\tx@isenhtrue\else
\iftx@stxtwo\tx@isenhtrue\else
+ \iftx@coch\tx@isenhtrue\else
+ \iftx@ut\tx@isenhtrue\else
+ \fi
+ \fi
\fi
\fi
\fi
@@ -419,6 +429,16 @@ amssymbols,uprightGreek,nosubscriptcorrection}
\DeclareMathSymbol{\jmathscr}{\mathord}{letters}{195}
\fi
\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 %
%%%%%%%%%%%%%%%%%