texlive[60816] Master/texmf-dist: fontsetup (20oct21)

commits+karl at tug.org commits+karl at tug.org
Wed Oct 20 23:19:39 CEST 2021


Revision: 60816
          http://tug.org/svn/texlive?view=revision&revision=60816
Author:   karl
Date:     2021-10-20 23:19:39 +0200 (Wed, 20 Oct 2021)
Log Message:
-----------
fontsetup (20oct21)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/fontsetup/README
    trunk/Master/texmf-dist/doc/latex/fontsetup/fontsetup-doc.pdf
    trunk/Master/texmf-dist/doc/latex/fontsetup/fontsetup-doc.tex
    trunk/Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty
    trunk/Master/texmf-dist/tex/latex/fontsetup/fspdefault.sty
    trunk/Master/texmf-dist/tex/latex/fontsetup/fspolddefault.sty

Modified: trunk/Master/texmf-dist/doc/latex/fontsetup/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fontsetup/README	2021-10-20 21:19:17 UTC (rev 60815)
+++ trunk/Master/texmf-dist/doc/latex/fontsetup/README	2021-10-20 21:19:39 UTC (rev 60816)
@@ -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. 

Modified: trunk/Master/texmf-dist/doc/latex/fontsetup/fontsetup-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/fontsetup/fontsetup-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fontsetup/fontsetup-doc.tex	2021-10-20 21:19:17 UTC (rev 60815)
+++ trunk/Master/texmf-dist/doc/latex/fontsetup/fontsetup-doc.tex	2021-10-20 21:19:39 UTC (rev 60816)
@@ -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 @@
     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

Modified: trunk/Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty	2021-10-20 21:19:17 UTC (rev 60815)
+++ trunk/Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty	2021-10-20 21:19:39 UTC (rev 60816)
@@ -47,6 +47,9 @@
 \newif\if at upint
 \DeclareOption{upint}{\@upinttrue}
 %
+\newif\if at varnothing
+\DeclareOption{varnothing}{\@varnothingtrue}
+%
 \ProcessOptions
 
 %provide a test to know if a 16bits TeX is used.
@@ -68,9 +71,17 @@
   \RequirePackage{fspdefault}
 %
 \if at upint
-\setmathfont[StylisticSet=2]{NewCMMath-Book.otf}
+   \if at varnothing
+   \setmathfont[StylisticSet=2,CharacterVariant=1]{NewCMMath-Book.otf}
+   \else
+   \setmathfont[StylisticSet=2]{NewCMMath-Book.otf}
+   \fi
 \else
-\setmathfont{NewCMMath-Book.otf}
+   \if at 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 at upint
-\setmathfont[StylisticSet=2]{NewCMMath-Regular.otf}
+   \if at varnothing
+   \setmathfont[StylisticSet=2,CharacterVariant=1]{NewCMMath-Book.otf}
+   \else
+   \setmathfont[StylisticSet=2]{NewCMMath-Regular.otf}
+   \fi
 \else
-\setmathfont{NewCMMath-Regular.otf}
+   \if at varnothing
+   \setmathfont[CharacterVariant=1]{NewCMMath-Book.otf}
+   \else
+   \setmathfont{NewCMMath-Regular.otf}
+   \fi
 \fi
-%
   \fi
 }{%the user runs 8bit engine
 \relax}

Modified: trunk/Master/texmf-dist/tex/latex/fontsetup/fspdefault.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/fontsetup/fspdefault.sty	2021-10-20 21:19:17 UTC (rev 60815)
+++ trunk/Master/texmf-dist/tex/latex/fontsetup/fspdefault.sty	2021-10-20 21:19:39 UTC (rev 60816)
@@ -74,6 +74,8 @@
 SmallCapsFeatures={Numbers=OldStyle}]{NewCMMono10-Book.otf}
 
 \setmathfont{NewCMMath-Book.otf}
+\DeclareOption{varnothing}{\setmathfont[CharacterVariant=1]{NewCMMath-Book.otf}}
+\ProcessOptions
 
 \newcommand{\tttextsc}[1]{{\ttscshape#1}}
 %

Modified: trunk/Master/texmf-dist/tex/latex/fontsetup/fspolddefault.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/fontsetup/fspolddefault.sty	2021-10-20 21:19:17 UTC (rev 60815)
+++ trunk/Master/texmf-dist/tex/latex/fontsetup/fspolddefault.sty	2021-10-20 21:19:39 UTC (rev 60816)
@@ -64,6 +64,8 @@
 SmallCapsFeatures={Numbers=OldStyle}]{NewCMMono10-Regular.otf}
 
 \setmathfont{NewCMMath-Regular.otf}
+\DeclareOption{varnothing}{\setmathfont[CharacterVariant=1]{NewCMMath-Regular.otf}}
+\ProcessOptions
 
 \newcommand{\tttextsc}[1]{{\ttscshape#1}}
 %



More information about the tex-live-commits mailing list.