summaryrefslogtreecommitdiff
path: root/macros/unicodetex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-12-15 03:01:41 +0000
committerNorbert Preining <norbert@preining.info>2020-12-15 03:01:41 +0000
commit2e0b1124510825b03d99a6bfbf50dc2a8391a635 (patch)
tree6ebb25de75664b553d91d7335dec42590ba22002 /macros/unicodetex
parent5fc9e4626c1b64fd01838f967954fc43a268398e (diff)
CTAN sync 202012150301
Diffstat (limited to 'macros/unicodetex')
-rw-r--r--macros/unicodetex/latex/fontsetup/README2
-rw-r--r--macros/unicodetex/latex/fontsetup/doc/fontsetup-doc.pdfbin710593 -> 708902 bytes
-rw-r--r--macros/unicodetex/latex/fontsetup/doc/fontsetup-doc.tex5
-rw-r--r--macros/unicodetex/latex/fontsetup/fontsetup.sty26
4 files changed, 26 insertions, 7 deletions
diff --git a/macros/unicodetex/latex/fontsetup/README b/macros/unicodetex/latex/fontsetup/README
index 377b78a5f5..f433502f27 100644
--- a/macros/unicodetex/latex/fontsetup/README
+++ b/macros/unicodetex/latex/fontsetup/README
@@ -1,5 +1,5 @@
The fontsetup package
- (Version 1.007, GPL3)
+ (Version 1.008, 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
index 7bbc3d52ba..cbd4adde42 100644
--- a/macros/unicodetex/latex/fontsetup/doc/fontsetup-doc.pdf
+++ b/macros/unicodetex/latex/fontsetup/doc/fontsetup-doc.pdf
Binary files differ
diff --git a/macros/unicodetex/latex/fontsetup/doc/fontsetup-doc.tex b/macros/unicodetex/latex/fontsetup/doc/fontsetup-doc.tex
index b9ddc3ddcd..3dad6488b7 100644
--- a/macros/unicodetex/latex/fontsetup/doc/fontsetup-doc.tex
+++ b/macros/unicodetex/latex/fontsetup/doc/fontsetup-doc.tex
@@ -9,8 +9,8 @@
\textit{by}\\[1ex]
{\large Antonis Tsolomitis}\\
University of the Aegean\\ Department of Mathematics\\[1ex]
- \textsc{24} August \textsc{2020}\\[1ex]
- Version 1.007, \textsc{gpl3}
+ \textsc{14} December \textsc{2020}\\[1ex]
+ Version 1.008, \textsc{gpl3}
\end{center}
This package is a simple wrapper-type package that makes the setup of fonts easy and
@@ -31,6 +31,7 @@ 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 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 32ed9bc0d4..4d5dfb5822 100644
--- a/macros/unicodetex/latex/fontsetup/fontsetup.sty
+++ b/macros/unicodetex/latex/fontsetup/fontsetup.sty
@@ -1,6 +1,6 @@
%\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{fontsetup}[2019/12/20 Easy font setup by Antonis Tsolomitis]
-\typeout{fontsetup: Easy font setup by Antonis Tsolomitis}
+\ProvidesPackage{fontsetup}[2020/12/14 Easy font setup by Antonis Tsolomitis]
+\typeout{fontsetup: Easy font setup by Antonis Tsolomitis}
\chardef\fontsetupdefault=0 %
\chardef\fontsetupgfsartemisia=1
@@ -43,6 +43,10 @@
\DeclareOption{libertinus}{\chardef\fontsetupfont\fontsetuplibertinus}
\DeclareOption{olddefault}{\chardef\fontsetupfont\fontsetupolddefault}
\DeclareOption*{\PackageWarning{fontsetup}{Unknown ‘\CurrentOption’}}
+%
+\newif\if@upint
+\DeclareOption{upint}{\@upinttrue}
+%
\ProcessOptions
%provide a test to know if a 16bits TeX is used.
@@ -62,7 +66,14 @@
%The user runs unicode engine
\ifcase\fontsetupfont
\RequirePackage{fspdefault}
-\or
+%
+\if@upint
+\setmathfont[StylisticSet=2]{NewCMMath-Book.otf}
+\else
+\setmathfont{NewCMMath-Book.otf}
+\fi
+%
+ \or
\RequirePackage{fspgfsartemisiaot}
\or
\RequirePackage{fspgfsdidotot}
@@ -98,7 +109,14 @@
\or
\RequirePackage{libertinus-otf}
\or
- \RequirePackage{fspolddefault}
+\RequirePackage{fspolddefault}
+%
+\if@upint
+\setmathfont[StylisticSet=2]{NewCMMath-Regular.otf}
+\else
+\setmathfont{NewCMMath-Regular.otf}
+\fi
+%
\fi
}{%the user runs 8bit engine
\relax}