texlive[61261] Master/texmf-dist: fontsetup (9dec21)

commits+karl at tug.org commits+karl at tug.org
Thu Dec 9 22:05:33 CET 2021


Revision: 61261
          http://tug.org/svn/texlive?view=revision&revision=61261
Author:   karl
Date:     2021-12-09 22:05:32 +0100 (Thu, 09 Dec 2021)
Log Message:
-----------
fontsetup (9dec21)

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-12-09 21:05:14 UTC (rev 61260)
+++ trunk/Master/texmf-dist/doc/latex/fontsetup/README	2021-12-09 21:05:32 UTC (rev 61261)
@@ -1,5 +1,5 @@
                The fontsetup package
-               (Version 1.03, GPL3)
+               (Version 1.1, 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-12-09 21:05:14 UTC (rev 61260)
+++ trunk/Master/texmf-dist/doc/latex/fontsetup/fontsetup-doc.tex	2021-12-09 21:05:32 UTC (rev 61261)
@@ -1,5 +1,9 @@
 \documentclass{book}
+\synctex=1
 \usepackage[default]{fontsetup}
+\newfontfamily\newcmgreekguillemots[CharacterVariant=4]{NewCM10-Book.otf}
+\newcommand\quoteleft{\char"201C}
+\newcommand\quoteright{\char"201E}
 \usepackage{graphicx,fullpage,supertabular}
 \AtBeginDocument{\def\varnothing{\char"2300}\def\emptyset{\char"2205}}
 \begin{document}
@@ -10,8 +14,8 @@
     \textit{by}\\[1ex]
     {\large Antonis Tsolomitis}\\
 University of the Aegean\\ Department of Mathematics\\[1ex]
-	  \textsc{19} Oct \textsc{2021}\\[1ex]
-	  Version 1.03, \textsc{gpl3}
+	  \textsc{9} Dec \textsc{2021}\\[1ex]
+	  Version 1.1, \textsc{gpl3}
   \end{center}
 
   This package is a simple wrapper-type package that makes the setup of fonts easy and
@@ -65,6 +69,26 @@
         to select the fonts properly or \verb|\textipa{...}| and \verb|\textsansipa{...}| to select the fonts
         for IPA symbols locally. Compare \textipa{ðŋβθχ}
         (produced with \verb|\textipa{ðŋβθχ}|) with ðŋβθχ.
+      \item If the xgreek package is loaded before fontsetup this will be detected and the package
+        will load the fonts with correct anoteleia, greek guillemots and proper apostrophe for
+        Greek. It will also enable the commands \verb|\quoteleft| and \verb|\quoteright| for proper
+        quotes inside quotes. For an example, writing
+
+        \verb|«φώναζε: \quoteleft απ' έξω την προπαίδεια\quoteright»· σαν εκδίκηση ακουγόταν\ldots|
+
+        will give
+        
+\begin{center}
+{\newcmgreekguillemots  «φώναζε: \quoteleft απ' έξω την προπαίδεια\quoteright»· σαν εκδίκηση ακουγόταν\ldots}
+\end{center}
+For more information and references see the documentation of the
+NewComputerModern font family.
+      \item commands to access ``up'' versions of Greek letters for Chemistry: Use \verb|chemalpha|,
+        \verb|\chembeta|, \verb|\chemgamma| etc and similarly for uppercase (\verb|\chemAlpha| etc).
+        For example, \verb|\chembeta-gucan| gives ``\chembeta-gucan'' and \verb|\chemkappa-component|
+        gives ``\chemkappa-component''.
+      \item commands for Medieval Latin and Uncial Greek:
+        use \verb|{\uncial text}| or \verb|\textuncial{text}|.
     \end{itemize}
   \item[olddefault] Loads the NewComputerModern fonts (in Regular weight)
     similarly to the default option.
@@ -309,4 +333,7 @@
 \end{center}
 
 
+
+
+
 \end{document}

Modified: trunk/Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty	2021-12-09 21:05:14 UTC (rev 61260)
+++ trunk/Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty	2021-12-09 21:05:32 UTC (rev 61261)
@@ -2,6 +2,15 @@
 \ProvidesPackage{fontsetup}[Easy font setup by Antonis Tsolomitis]
 \typeout{fontsetup: Easy font setup by Antonis Tsolomitis}
 
+\RequirePackage{fontspec}
+
+\@ifpackageloaded{xgreek}{%
+\newcommand\quoteleft{\char"201C}%
+\newcommand\quoteright{\char"201E}%
+\defaultfontfeatures+{CharacterVariant=4}%
+}{}
+
+
 \chardef\fontsetupdefault=0 %
 \chardef\fontsetupgfsartemisia=1
 \chardef\fontsetupgfsdidot=2
@@ -140,6 +149,5 @@
 
 
 
-
 \endinput
 

Modified: trunk/Master/texmf-dist/tex/latex/fontsetup/fspdefault.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/fontsetup/fspdefault.sty	2021-12-09 21:05:14 UTC (rev 61260)
+++ trunk/Master/texmf-dist/tex/latex/fontsetup/fspdefault.sty	2021-12-09 21:05:32 UTC (rev 61261)
@@ -73,6 +73,33 @@
 BoldSlantedFeatures={FakeSlant=0.25},
 SmallCapsFeatures={Numbers=OldStyle}]{NewCMMono10-Book.otf}
 
+\newfontfamily\uncial[%
+  SizeFeatures={%
+{Size=-8, Font=NewCMUncial08-Book.otf,
+      BoldFont=NewCMUncial10-Bold.otf,%
+      SlantedFont=NewCMUncial08-Book.otf,%
+      BoldSlantedFont=NewCMUncial10-Bold.otf,%
+      },
+{Size=8, Font=NewCMUncial08-Book.otf,
+      BoldFont=NewCMUncial08-Bold.otf,%
+      SlantedFont=NewCMUncial08-Book.otf,%
+      BoldSlantedFont=NewCMUncial10-Bold.otf,%
+      },
+{Size= 9-, Font = NewCMUncial10-Book.otf,
+      BoldFont=NewCMUncial10-Bold.otf,%
+      SlantedFont=NewCMUncial10-Book.otf,%
+      BoldSlantedFont=NewCMUncial10-Bold.otf,%
+      }%
+  },%
+  BoldSlantedFont=NewCMUncial10-Bold.otf,%
+  SlantedFont=NewCMUncial10-Book.otf,%
+  BoldFont=NewCMUncial10-Bold.otf,%
+  SlantedFeatures={FakeSlant=0.25},%
+  BoldSlantedFeatures={FakeSlant=0.25},%
+  ]{NewCMUncial10-Book.otf}
+
+\newcommand{\textuncial}[1]{{\uncial #1}}
+
 \setmathfont{NewCMMath-Book.otf}
 \DeclareOption{varnothing}{\setmathfont[CharacterVariant=1]{NewCMMath-Book.otf}}
 \ProcessOptions
@@ -300,3 +327,57 @@
 %SmallCapsFeatures={Numbers=OldStyle}]{NewCMSans10-Book.otf}
 \newcommand{\ipatextsans}{\sffamily\addfontfeature{StylisticSet=5}}
 \newcommand{\textsansipa}[1]{{\ipatextsans#1}}
+%
+% Up versions for chemistry
+\newcommand{\chemalpha}{\textrm{α}}
+\newcommand{\chembeta}{\textrm{β}}
+\newcommand{\chemgamma}{\textrm{γ}}
+\newcommand{\chemdelta}{\textrm{δ}}
+\newcommand{\chemepsilon}{\textrm{ε}}
+\newcommand{\chemzeta}{\textrm{ζ}}
+\newcommand{\chemeta}{\textrm{η}}
+\newcommand{\chemtheta}{\textrm{θ}}
+\newcommand{\chemiota}{\textrm{ι}}
+\newcommand{\chemkappa}{\textrm{\char"03F0}}
+\newcommand{\chemlambda}{\textrm{λ}}
+\newcommand{\chemmu}{\textrm{μ}}
+\newcommand{\chemnu}{\textrm{ν}}
+\newcommand{\chemxi}{\textrm{ξ}}
+\newcommand{\chemomicron}{\textrm{ο}}
+\newcommand{\chempi}{\textrm{π}}
+\newcommand{\chemrho}{\textrm{ρ}}
+\newcommand{\chemrhoalt}{\textrm{\char"03F1}}
+\newcommand{\chemsigma}{\textrm{σ}}
+\newcommand{\chemsigmaalt}{\textrm{ς}}
+\newcommand{\chemtau}{\textrm{τ}}
+\newcommand{\chemupsilon}{\textrm{υ}}
+\newcommand{\chemphi}{\textrm{φ}}
+\newcommand{\chemchi}{\textrm{χ}}
+\newcommand{\chempsi}{\textrm{ψ}}
+\newcommand{\chemomega}{\textrm{ω}}
+%
+\newcommand{\chemAlpha}{\textrm{Α}}
+\newcommand{\chemBeta}{\textrm{Β}}
+\newcommand{\chemGamma}{\textrm{Γ}}
+\newcommand{\chemDelta}{\textrm{Δ}}
+\newcommand{\chemEpsilon}{\textrm{Ε}}
+\newcommand{\chemZeta}{\textrm{Ζ}}
+\newcommand{\chemEta}{\textrm{Η}}
+\newcommand{\chemTheta}{\textrm{Θ}}
+\newcommand{\chemIota}{\textrm{Ι}}
+\newcommand{\chemKappa}{\textrm{Κ}}
+\newcommand{\chemLambda}{\textrm{Λ}}
+\newcommand{\chemMu}{\textrm{Μ}}
+\newcommand{\chemNu}{\textrm{Ν}}
+\newcommand{\chemXi}{\textrm{Ξ}}
+\newcommand{\chemOmicron}{\textrm{Ο}}
+\newcommand{\chemPi}{\textrm{Π}}
+\newcommand{\chemRho}{\textrm{Ρ}}
+\newcommand{\chemSigma}{\textrm{Σ}}
+\newcommand{\chemTau}{\textrm{Τ}}
+\newcommand{\chemUpsilon}{\textrm{Υ}}
+\newcommand{\chemPhi}{\textrm{Φ}}
+\newcommand{\chemChi}{\textrm{Χ}}
+\newcommand{\chemPsi}{\textrm{Ψ}}
+\newcommand{\chemOmega}{\textrm{Ω}}
+%

Modified: trunk/Master/texmf-dist/tex/latex/fontsetup/fspolddefault.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/fontsetup/fspolddefault.sty	2021-12-09 21:05:14 UTC (rev 61260)
+++ trunk/Master/texmf-dist/tex/latex/fontsetup/fspolddefault.sty	2021-12-09 21:05:32 UTC (rev 61261)
@@ -25,6 +25,12 @@
       BoldSlantedFont=NewCM10-Bold.otf,%
       SmallCapsFeatures={Numbers=OldStyle}}%
   },%
+  SmallCapsFeatures={Numbers=OldStyle},%
+  BoldSlantedFont=NewCM10-Bold.otf,%
+  SlantedFont=NewCM10-Regular.otf,%
+  BoldItalicFont=NewCM10-BoldItalic.otf,%
+  BoldFont=NewCM10-Bold.otf,%
+  ItalicFont=NewCM10-Italic.otf,%
   SlantedFeatures={FakeSlant=0.25},%
   BoldSlantedFeatures={FakeSlant=0.25},%
 ]{NewCM10-Regular.otf}
@@ -49,8 +55,12 @@
            BoldItalicFont=NewCMSans10-BoldOblique.otf,%
            SmallCapsFeatures={Numbers=OldStyle},%
 }},
-SlantedFont=NewCMSans10-Oblique.otf,%
-BoldSlantedFont=NewCMSans10-BoldOblique.otf,%
+           ItalicFont=NewCMSans10-Oblique.otf,%
+           BoldFont=NewCMSans10-Bold.otf,%
+           BoldItalicFont=NewCMSans10-BoldOblique.otf,%
+           SmallCapsFeatures={Numbers=OldStyle},%
+           SlantedFont=NewCMSans10-Oblique.otf,%
+           BoldSlantedFont=NewCMSans10-BoldOblique.otf,%
 ]{NewCMSans10-Regular.otf}
 
 \setmonofont[%
@@ -63,6 +73,35 @@
 BoldSlantedFeatures={FakeSlant=0.25},
 SmallCapsFeatures={Numbers=OldStyle}]{NewCMMono10-Regular.otf}
 
+\newfontfamily\uncial[%
+  SizeFeatures={%
+{Size=-8, Font=NewCMUncial08-Regular.otf,
+      BoldFont=NewCMUncial10-Bold.otf,%
+      SlantedFont=NewCMUncial08-Regular.otf,%
+      BoldSlantedFont=NewCMUncial10-Bold.otf,%
+      },
+{Size=8, Font=NewCMUncial08-Regular.otf,
+      BoldFont=NewCMUncial08-Bold.otf,%
+      SlantedFont=NewCMUncial08-regular.otf,%
+      BoldSlantedFont=NewCMUncial10-Bold.otf,%
+      },
+{Size= 9-, Font = NewCMUncial10-Regular.otf,
+      BoldFont=NewCMUncial10-Bold.otf,%
+      SlantedFont=NewCMUncial10-Regular.otf,%
+      BoldSlantedFont=NewCMUncial10-Bold.otf,%
+      }%
+  },%
+  BoldSlantedFont=NewCMUncial10-Bold.otf,%
+  SlantedFont=NewCMUncial10-Regular.otf,%
+  BoldFont=NewCMUncial10-Bold.otf,%
+  SlantedFeatures={FakeSlant=0.25},%
+  BoldSlantedFeatures={FakeSlant=0.25},%
+  ]{NewCMUncial10-Regular.otf}
+
+\newcommand{\textuncial}[1]{{\uncial #1}}
+
+
+
 \setmathfont{NewCMMath-Regular.otf}
 \DeclareOption{varnothing}{\setmathfont[CharacterVariant=1]{NewCMMath-Regular.otf}}
 \ProcessOptions
@@ -290,3 +329,57 @@
 %SmallCapsFeatures={Numbers=OldStyle}]{NewCMSans10-Regular.otf}
 \newcommand{\ipatextsans}{\sffamily\addfontfeature{StylisticSet=5}}
 \newcommand{\textsansipa}[1]{{\ipatextsans#1}}
+%
+% Up versions for chemistry
+\newcommand{\chemalpha}{\textrm{α}}
+\newcommand{\chembeta}{\textrm{β}}
+\newcommand{\chemgamma}{\textrm{γ}}
+\newcommand{\chemdelta}{\textrm{δ}}
+\newcommand{\chemepsilon}{\textrm{ε}}
+\newcommand{\chemzeta}{\textrm{ζ}}
+\newcommand{\chemeta}{\textrm{η}}
+\newcommand{\chemtheta}{\textrm{θ}}
+\newcommand{\chemiota}{\textrm{ι}}
+\newcommand{\chemkappa}{\textrm{\char"03F0}}
+\newcommand{\chemlambda}{\textrm{λ}}
+\newcommand{\chemmu}{\textrm{μ}}
+\newcommand{\chemnu}{\textrm{ν}}
+\newcommand{\chemxi}{\textrm{ξ}}
+\newcommand{\chemomicron}{\textrm{ο}}
+\newcommand{\chempi}{\textrm{π}}
+\newcommand{\chemrho}{\textrm{ρ}}
+\newcommand{\chemrhoalt}{\textrm{\char"03F1}}
+\newcommand{\chemsigma}{\textrm{σ}}
+\newcommand{\chemsigmaalt}{\textrm{ς}}
+\newcommand{\chemtau}{\textrm{τ}}
+\newcommand{\chemupsilon}{\textrm{υ}}
+\newcommand{\chemphi}{\textrm{φ}}
+\newcommand{\chemchi}{\textrm{χ}}
+\newcommand{\chempsi}{\textrm{ψ}}
+\newcommand{\chemomega}{\textrm{ω}}
+%
+\newcommand{\chemAlpha}{\textrm{Α}}
+\newcommand{\chemBeta}{\textrm{Β}}
+\newcommand{\chemGamma}{\textrm{Γ}}
+\newcommand{\chemDelta}{\textrm{Δ}}
+\newcommand{\chemEpsilon}{\textrm{Ε}}
+\newcommand{\chemZeta}{\textrm{Ζ}}
+\newcommand{\chemEta}{\textrm{Η}}
+\newcommand{\chemTheta}{\textrm{Θ}}
+\newcommand{\chemIota}{\textrm{Ι}}
+\newcommand{\chemKappa}{\textrm{Κ}}
+\newcommand{\chemLambda}{\textrm{Λ}}
+\newcommand{\chemMu}{\textrm{Μ}}
+\newcommand{\chemNu}{\textrm{Ν}}
+\newcommand{\chemXi}{\textrm{Ξ}}
+\newcommand{\chemOmicron}{\textrm{Ο}}
+\newcommand{\chemPi}{\textrm{Π}}
+\newcommand{\chemRho}{\textrm{Ρ}}
+\newcommand{\chemSigma}{\textrm{Σ}}
+\newcommand{\chemTau}{\textrm{Τ}}
+\newcommand{\chemUpsilon}{\textrm{Υ}}
+\newcommand{\chemPhi}{\textrm{Φ}}
+\newcommand{\chemChi}{\textrm{Χ}}
+\newcommand{\chemPsi}{\textrm{Ψ}}
+\newcommand{\chemOmega}{\textrm{Ω}}
+%



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