summaryrefslogtreecommitdiff
path: root/fonts/newtxsf
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-05-09 03:00:46 +0000
committerNorbert Preining <norbert@preining.info>2023-05-09 03:00:46 +0000
commit901b036639a3dca060ae150087e7fc5f9fbb5cba (patch)
tree2a21b9c12fb51b20b4dfb564e2f686bb19337104 /fonts/newtxsf
parent5a7a91f039bd6de20d95df710fc788298813679e (diff)
CTAN sync 202305090300
Diffstat (limited to 'fonts/newtxsf')
-rw-r--r--fonts/newtxsf/README8
-rw-r--r--fonts/newtxsf/doc/newtxsf-doc.pdfbin312975 -> 245268 bytes
-rw-r--r--fonts/newtxsf/doc/newtxsf-doc.tex15
-rw-r--r--fonts/newtxsf/tex/newtxsf.sty31
4 files changed, 38 insertions, 16 deletions
diff --git a/fonts/newtxsf/README b/fonts/newtxsf/README
index 3c5571beae..92a41e214f 100644
--- a/fonts/newtxsf/README
+++ b/fonts/newtxsf/README
@@ -2,10 +2,14 @@ This small package provides a math package that amounts to modifications of the
http://www.ctan.org/license/lppl1.3
for the details of that license.
-Current version: 1.054 2020-05-16
+Current version: 1.055 2023-05-07
+
+Changes in version 1.055
+1. Added option noSTIXops to newtxsf to allow forcing figures in math mode to be chosen from the text font rather than STIX sans serif.
+2. Modified the documentation to add important information about usage with fontspec. (Thanks Alexander Adolf.)
Changes in version 1.054
-Modified the metric setting affexting \Big, \bigg and \Bigg so that they work as expected.
+Modified the metric setting affecting \Big, \bigg and \Bigg so that they work as expected.
(Thanks Yaosheng Chen for catching this problem.)
diff --git a/fonts/newtxsf/doc/newtxsf-doc.pdf b/fonts/newtxsf/doc/newtxsf-doc.pdf
index a21296c514..bc3fcbe0a6 100644
--- a/fonts/newtxsf/doc/newtxsf-doc.pdf
+++ b/fonts/newtxsf/doc/newtxsf-doc.pdf
Binary files differ
diff --git a/fonts/newtxsf/doc/newtxsf-doc.tex b/fonts/newtxsf/doc/newtxsf-doc.tex
index 7ffd7f1271..f2fc1b0aa5 100644
--- a/fonts/newtxsf/doc/newtxsf-doc.tex
+++ b/fonts/newtxsf/doc/newtxsf-doc.tex
@@ -36,6 +36,8 @@ The options are much simpler than in {\tt newtxmath}, as I have ruled out a numb
\item {\tt uprightGreek} specifies the use of upright rather than slanted Greek symbols for uppercase only.
\item {\tt slantedGreek} does the opposite.
\item {\tt frenchmath} forces uppercase and lowercase Greek to upright shape and makes uppercase math Roman letters render in upright rather than slanted shape.
+\item {\tt noSTIXops} (added in version 1.055) prevents the package from defaulting to STIX sans serif for math figures, leading instead to use of the figures in the Roman text font.
+
\end{itemize}
\section{Package features}
There is little difference between the symbols available using this package and those available in {\tt newtxmath}, taking into account the reduced set of options, and the latter are adequately described in the documentation for {\tt newtx}. The differences are as follows.
@@ -50,6 +52,7 @@ Unlike {\tt newtxmath}, {\tt newtxsf} defines its own figures and makes no use o
\end{itemize}
\section{Package examples}
+\subsection{}
In this documentation, the text font is \emph{FiraSans} scaled down to more closely match \emph{newtxsf}. (As \emph{FiraSans} has an xheight about 17\% greater than \emph{newtxsf}, some scaling is important.)
It uses the following preamble.
\begin{verbatim}
@@ -58,7 +61,7 @@ It uses the following preamble.
\usepackage{textcomp}
\usepackage[varqu,varl]{zi4}% inconsolata typewriter
\usepackage{amsmath,amsthm}
-\usepackage[cmintegrals]{newtxsf}
+\usepackage{newtxsf}
\end{verbatim}
Here's a piece math to illustrate mathematical text---note the use of upright forms of $\uppi$ and $\mathrm{d}$, following the ISO rules.
@@ -74,5 +77,15 @@ and variance $1$ on a probability space $(\Omega,\mathcal{F},\mathbb{P})$. Then}
\frac{\mathrm{e}^{-t^2/2}}{\sqrt{2\uppi}}\,\mathrm{d}t
\quad\mbox{as $n\to\infty$, for every $f\in\mathrm{b}
\mathcal{C}(\mathbb{R})$.}\]
+\subsection{}
+For use with fontspec, it is important to load fontspec with option {\tt no-math} so that fontspec does not override some of the non-unicode settings in {\tt newtxsf}.
+\begin{verbatim}
+\usepackage[no-math]{fontspec}
+\setmainfont{Helvetica Neue Light}
+[BoldFont={Helvetica Neue Bold}, ItalicFont={* Italic}]
+\setmonofont{Inconsolatazi4-Regular.otf}[Scale=MatchLowercase]
+\usepackage{amsmath,amsthm}
+\usepackage[noSTIXops,scaled=1.06]{newtxsf}
+\end{verbatim}
\end{document}
diff --git a/fonts/newtxsf/tex/newtxsf.sty b/fonts/newtxsf/tex/newtxsf.sty
index 3652556712..4105ce2702 100644
--- a/fonts/newtxsf/tex/newtxsf.sty
+++ b/fonts/newtxsf/tex/newtxsf.sty
@@ -2,8 +2,8 @@
%
% Michael Sharpe, msharpe at ucsd dot edu
-\def\fileversion{1.054}
-\def\filedate{2021/05/16}
+\def\fileversion{1.055}
+\def\filedate{2023/05/07}
\ProvidesPackage{newtxsf}
[\filedate\space v\fileversion]
@@ -29,6 +29,7 @@
\newif\iftx@symbolsC
\newif\iftx@upint %default is sloped
\newif\iftx@smops %default is large binary operators
+\newif\iftx@noSTIXops % default is to use STIX upright figures in math
\tx@symbolsCtrue
\newif\iftx@frenchm % french math
\DeclareOption{nosymbolsc}{\tx@symbolsCfalse}
@@ -40,6 +41,7 @@
\DeclareOption{frenchmath}{\tx@frenchmtrue}
\DeclareOption{upint}{\tx@upinttrue}
\DeclareOption{smallerops}{\tx@smopstrue}
+\DeclareOption{noSTIXops}{\tx@noSTIXopstrue}
\ExecuteOptions{%
amssymbols,uprightGreek}
\ProcessOptions*
@@ -253,7 +255,7 @@ amssymbols,uprightGreek}
%\DeclareMathDelimiter{>}{\mathclose}{letters}{62}{largesymbols}{141}
\re@DeclareMathSymbol{\mid}{\mathrel}{symbols}{106}
\DeclareMathDelimiter{|}{\mathord}{symbols}{106}{largesymbols}{12}
- \DeclareMathDelimiter{\arrowvert}{\mathord}{symbols}{106}{largesymbols}{60}% 60
+ \re@DeclareMathDelimiter{\arrowvert}{\mathord}{symbols}{106}{largesymbols}{60}% 60
\DeclareMathDelimiter{\vert}{\mathord}{symbols}{106}{largesymbols}{12}
\re@DeclareMathSymbol{\parallel}{\mathrel}{symbols}{107}
\re@DeclareMathDelimiter{\Arrowvert}{\mathord}{symbols}{107}{largesymbols}{61}%61
@@ -330,16 +332,19 @@ amssymbols,uprightGreek}
\re@DeclareMathSymbol{\Psi}{\mathalpha}{lettersA}{9}
\re@DeclareMathSymbol{\Omega}{\mathalpha}{lettersA}{10}
\fi
-\DeclareMathSymbol{0}{\mathord}{lettersA}{129}
-\DeclareMathSymbol{1}{\mathord}{lettersA}{130}
-\DeclareMathSymbol{2}{\mathord}{lettersA}{131}
-\DeclareMathSymbol{3}{\mathord}{lettersA}{132}
-\DeclareMathSymbol{4}{\mathord}{lettersA}{133}
-\DeclareMathSymbol{5}{\mathord}{lettersA}{134}
-\DeclareMathSymbol{6}{\mathord}{lettersA}{135}
-\DeclareMathSymbol{7}{\mathord}{lettersA}{136}
-\DeclareMathSymbol{8}{\mathord}{lettersA}{137}
-\DeclareMathSymbol{9}{\mathord}{lettersA}{138}
+\iftx@noSTIXops % use figures from declared Roman font
+\else
+ \DeclareMathSymbol{0}{\mathord}{lettersA}{129}
+ \DeclareMathSymbol{1}{\mathord}{lettersA}{130}
+ \DeclareMathSymbol{2}{\mathord}{lettersA}{131}
+ \DeclareMathSymbol{3}{\mathord}{lettersA}{132}
+ \DeclareMathSymbol{4}{\mathord}{lettersA}{133}
+ \re@DeclareMathSymbol{5}{\mathord}{lettersA}{134}
+ \DeclareMathSymbol{6}{\mathord}{lettersA}{135}
+ \DeclareMathSymbol{7}{\mathord}{lettersA}{136}
+ \DeclareMathSymbol{8}{\mathord}{lettersA}{137}
+ \DeclareMathSymbol{9}{\mathord}{lettersA}{138}
+\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Math Symbol (txsy) Definition % symbols