From c853ff9c658499b16db581bcdbb2c5fa5ce9d0f4 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 20 Oct 2021 21:19:39 +0000 Subject: fontsetup (20oct21) git-svn-id: svn://tug.org/texlive/trunk@60816 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/fontsetup/README | 2 +- .../doc/latex/fontsetup/fontsetup-doc.pdf | Bin 445344 -> 446355 bytes .../doc/latex/fontsetup/fontsetup-doc.tex | 9 ++++-- .../texmf-dist/tex/latex/fontsetup/fontsetup.sty | 31 ++++++++++++++++----- .../texmf-dist/tex/latex/fontsetup/fspdefault.sty | 2 ++ .../tex/latex/fontsetup/fspolddefault.sty | 2 ++ 6 files changed, 35 insertions(+), 11 deletions(-) (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/latex/fontsetup/README b/Master/texmf-dist/doc/latex/fontsetup/README index d6b9fbda54a..e2666d576f0 100644 --- a/Master/texmf-dist/doc/latex/fontsetup/README +++ b/Master/texmf-dist/doc/latex/fontsetup/README @@ -1,5 +1,5 @@ The fontsetup package - (Version 1.02, GPL3) + (Version 1.03, GPL3) This simple package makes it trivial to switch quickly between different quality fonts supporting Mathematics. diff --git a/Master/texmf-dist/doc/latex/fontsetup/fontsetup-doc.pdf b/Master/texmf-dist/doc/latex/fontsetup/fontsetup-doc.pdf index 720e85cb929..bfc3fb5ec3e 100644 Binary files a/Master/texmf-dist/doc/latex/fontsetup/fontsetup-doc.pdf and b/Master/texmf-dist/doc/latex/fontsetup/fontsetup-doc.pdf differ diff --git a/Master/texmf-dist/doc/latex/fontsetup/fontsetup-doc.tex b/Master/texmf-dist/doc/latex/fontsetup/fontsetup-doc.tex index 3618ae8d75a..a473973606b 100644 --- a/Master/texmf-dist/doc/latex/fontsetup/fontsetup-doc.tex +++ b/Master/texmf-dist/doc/latex/fontsetup/fontsetup-doc.tex @@ -1,6 +1,7 @@ \documentclass{book} \usepackage[default]{fontsetup} \usepackage{graphicx,fullpage,supertabular} +\AtBeginDocument{\def\varnothing{\char"2300}\def\emptyset{\char"2205}} \begin{document} @@ -9,8 +10,8 @@ \textit{by}\\[1ex] {\large Antonis Tsolomitis}\\ University of the Aegean\\ Department of Mathematics\\[1ex] - \textsc{3} May \textsc{2021}\\[1ex] - Version 1.02, \textsc{gpl3} + \textsc{19} Oct \textsc{2021}\\[1ex] + Version 1.03, \textsc{gpl3} \end{center} This package is a simple wrapper-type package that makes the setup of fonts easy and @@ -44,7 +45,9 @@ University of the Aegean\\ Department of Mathematics\\[1ex] which is an assembly of cm fonts plus more fonts to support Greek (cbgreek) and Cyrillic languages. It also provides \begin{itemize} - \item the option ``upint'' for switching to upright integrals in mathmode. + \item the option ``upint'' for switching to upright integrals in mathmode. + \item the option ``varnothing'' for changing the default symbol for + the empty set ($\emptyset$) to the \verb|\varnothing| symbol ($\varnothing$) in mathmode. \item commands to access prosgegrammeni instead of ypogegrammeni for capitals and small capitals, by writing \verb|\textprosgegrammeni{}| or \verb|{\prosgegrammeni }|. \item commands to access 4th and 6th century bce Greek by writing diff --git a/Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty b/Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty index 5a0bb2b50b8..fd33a3ec47a 100644 --- a/Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty +++ b/Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty @@ -47,6 +47,9 @@ \newif\if@upint \DeclareOption{upint}{\@upinttrue} % +\newif\if@varnothing +\DeclareOption{varnothing}{\@varnothingtrue} +% \ProcessOptions %provide a test to know if a 16bits TeX is used. @@ -68,9 +71,17 @@ \RequirePackage{fspdefault} % \if@upint -\setmathfont[StylisticSet=2]{NewCMMath-Book.otf} + \if@varnothing + \setmathfont[StylisticSet=2,CharacterVariant=1]{NewCMMath-Book.otf} + \else + \setmathfont[StylisticSet=2]{NewCMMath-Book.otf} + \fi \else -\setmathfont{NewCMMath-Book.otf} + \if@varnothing + \setmathfont[CharacterVariant=1]{NewCMMath-Book.otf} + \else + \setmathfont{NewCMMath-Book.otf} + \fi \fi % \or @@ -109,14 +120,20 @@ \or \RequirePackage{libertinus-otf} \or -\RequirePackage{fspolddefault} -% + \RequirePackage{fspolddefault} \if@upint -\setmathfont[StylisticSet=2]{NewCMMath-Regular.otf} + \if@varnothing + \setmathfont[StylisticSet=2,CharacterVariant=1]{NewCMMath-Book.otf} + \else + \setmathfont[StylisticSet=2]{NewCMMath-Regular.otf} + \fi \else -\setmathfont{NewCMMath-Regular.otf} + \if@varnothing + \setmathfont[CharacterVariant=1]{NewCMMath-Book.otf} + \else + \setmathfont{NewCMMath-Regular.otf} + \fi \fi -% \fi }{%the user runs 8bit engine \relax} diff --git a/Master/texmf-dist/tex/latex/fontsetup/fspdefault.sty b/Master/texmf-dist/tex/latex/fontsetup/fspdefault.sty index 686a0453947..77148fe43a3 100644 --- a/Master/texmf-dist/tex/latex/fontsetup/fspdefault.sty +++ b/Master/texmf-dist/tex/latex/fontsetup/fspdefault.sty @@ -74,6 +74,8 @@ BoldSlantedFeatures={FakeSlant=0.25}, SmallCapsFeatures={Numbers=OldStyle}]{NewCMMono10-Book.otf} \setmathfont{NewCMMath-Book.otf} +\DeclareOption{varnothing}{\setmathfont[CharacterVariant=1]{NewCMMath-Book.otf}} +\ProcessOptions \newcommand{\tttextsc}[1]{{\ttscshape#1}} % diff --git a/Master/texmf-dist/tex/latex/fontsetup/fspolddefault.sty b/Master/texmf-dist/tex/latex/fontsetup/fspolddefault.sty index 3660ec706e1..ecea2a5026a 100644 --- a/Master/texmf-dist/tex/latex/fontsetup/fspolddefault.sty +++ b/Master/texmf-dist/tex/latex/fontsetup/fspolddefault.sty @@ -64,6 +64,8 @@ BoldSlantedFeatures={FakeSlant=0.25}, SmallCapsFeatures={Numbers=OldStyle}]{NewCMMono10-Regular.otf} \setmathfont{NewCMMath-Regular.otf} +\DeclareOption{varnothing}{\setmathfont[CharacterVariant=1]{NewCMMath-Regular.otf}} +\ProcessOptions \newcommand{\tttextsc}[1]{{\ttscshape#1}} % -- cgit v1.2.3