diff options
author | Norbert Preining <norbert@preining.info> | 2021-10-21 03:01:19 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-10-21 03:01:19 +0000 |
commit | a94181338fbbc4c93ae38719f727b05d3e5be421 (patch) | |
tree | af6f6809e189b9ac1c11f1b6c9d54f7b0e54cd84 /macros/unicodetex/latex | |
parent | 97a50891a87d07d3cc327188a2b00b5c11e3c309 (diff) |
CTAN sync 202110210301
Diffstat (limited to 'macros/unicodetex/latex')
-rw-r--r-- | macros/unicodetex/latex/fontsetup/README | 2 | ||||
-rw-r--r-- | macros/unicodetex/latex/fontsetup/doc/fontsetup-doc.pdf | bin | 445344 -> 446355 bytes | |||
-rw-r--r-- | macros/unicodetex/latex/fontsetup/doc/fontsetup-doc.tex | 9 | ||||
-rw-r--r-- | macros/unicodetex/latex/fontsetup/fontsetup.sty | 31 | ||||
-rw-r--r-- | macros/unicodetex/latex/fontsetup/fspdefault.sty | 2 | ||||
-rw-r--r-- | macros/unicodetex/latex/fontsetup/fspolddefault.sty | 2 |
6 files changed, 35 insertions, 11 deletions
diff --git a/macros/unicodetex/latex/fontsetup/README b/macros/unicodetex/latex/fontsetup/README index d6b9fbda54..e2666d576f 100644 --- a/macros/unicodetex/latex/fontsetup/README +++ b/macros/unicodetex/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/macros/unicodetex/latex/fontsetup/doc/fontsetup-doc.pdf b/macros/unicodetex/latex/fontsetup/doc/fontsetup-doc.pdf Binary files differindex 720e85cb92..bfc3fb5ec3 100644 --- a/macros/unicodetex/latex/fontsetup/doc/fontsetup-doc.pdf +++ b/macros/unicodetex/latex/fontsetup/doc/fontsetup-doc.pdf diff --git a/macros/unicodetex/latex/fontsetup/doc/fontsetup-doc.tex b/macros/unicodetex/latex/fontsetup/doc/fontsetup-doc.tex index 3618ae8d75..a473973606 100644 --- a/macros/unicodetex/latex/fontsetup/doc/fontsetup-doc.tex +++ b/macros/unicodetex/latex/fontsetup/doc/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{<text>}| or \verb|{\prosgegrammeni <text>}|. \item commands to access 4th and 6th century bce Greek by writing diff --git a/macros/unicodetex/latex/fontsetup/fontsetup.sty b/macros/unicodetex/latex/fontsetup/fontsetup.sty index 5a0bb2b50b..fd33a3ec47 100644 --- a/macros/unicodetex/latex/fontsetup/fontsetup.sty +++ b/macros/unicodetex/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/macros/unicodetex/latex/fontsetup/fspdefault.sty b/macros/unicodetex/latex/fontsetup/fspdefault.sty index 686a045394..77148fe43a 100644 --- a/macros/unicodetex/latex/fontsetup/fspdefault.sty +++ b/macros/unicodetex/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/macros/unicodetex/latex/fontsetup/fspolddefault.sty b/macros/unicodetex/latex/fontsetup/fspolddefault.sty index 3660ec706e..ecea2a5026 100644 --- a/macros/unicodetex/latex/fontsetup/fspolddefault.sty +++ b/macros/unicodetex/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}} % |