diff options
Diffstat (limited to 'macros/unicodetex/latex/fontsetup')
42 files changed, 1407 insertions, 0 deletions
diff --git a/macros/unicodetex/latex/fontsetup/README b/macros/unicodetex/latex/fontsetup/README new file mode 100644 index 0000000000..377b78a5f5 --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/README @@ -0,0 +1,15 @@ + The fontsetup package + (Version 1.007, GPL3) + +This simple package makes it trivial to switch quickly between +different quality fonts supporting Mathematics. + +For more information read the file fontsetup-doc.pdf in +the doc subdirectory. + +Antonis Tsolomitis +Professor +University of the Aegean +Department of Mathematics +83200 Samos, Greece + diff --git a/macros/unicodetex/latex/fontsetup/doc/fontsetup-doc.pdf b/macros/unicodetex/latex/fontsetup/doc/fontsetup-doc.pdf Binary files differnew file mode 100644 index 0000000000..7bbc3d52ba --- /dev/null +++ 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 new file mode 100644 index 0000000000..b9ddc3ddcd --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/doc/fontsetup-doc.tex @@ -0,0 +1,339 @@ +\documentclass{book} +\usepackage[default]{fontsetup} +\usepackage{graphicx,fullpage,supertabular} +\begin{document} + + + \begin{center} + {\LARGE The \texttt{fontsetup} package}\\[1ex] + \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} + \end{center} + + This package is a simple wrapper-type package that makes the setup of fonts easy and + quick for XeLaTeX and LuaLaTeX. You just load the package using one of the supported + fonts as an option. + + The target is to provide easy access to fonts with a matching Mathematics font available in + TeX distributions plus a few commercial if available. + + The package will include more font combinations in the future, however there are + some restrictions. The fonts must have some commercial-level quality and must support + Mathematics. + + The options (in alphabetic order after the default option) are as follows: + + \begin{description} + \item[default] Loads the NewComputerModern fonts (in Book weight), + which is an assembly of cm fonts plus + more fonts to support Greek (cbgreek) and Cyrillic languages. It also provides + \begin{itemize} + \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 + \verb|\textivbce{<text>}| or \verb|{\ivbce <text>}| and + \verb|\textvibce{<text>}| or \verb|{\vibce <text>}|. For example, write + \verb|\textivbce{ΕΠΙΚΟΥΡΟΣ}| to get \textivbce{ΕΠΙΚΟΥΡΟΣ}. + \item commands to access Sans Greek (upright and oblique) in math mode although these are + not included in the unicode standard. The commands follow the unicode-math.sty notation, so + to get $\msansLambda$ and $\mitsanspi$ you write \verb|$\msansLambda$| and \verb|$\mitsanspi$|. + \item commands to access the Ancient Greek Numbers (Unicode u10140--u1018E) + documented in the Appendix + \item commands to access the negation of uniform convergence symbols \verb|\nrightrightarrows| + for $\nrightrightarrows$ and \verb|\nleftleftarrows| for $\nleftleftarrows$. + \item commands to access the IPA symbols. These are \verb|\ipatext| and \verb|\ipatextsans| + 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 ðŋβθχ. + \end{itemize} + \item[olddefault] Loads the NewComputerModern fonts (in Regular weight) + similarly to the default option. + \item[cambria] Loads the Cambria fonts of Microsoft. These must be already installed + as a system font (in \verb|C:\Windows\Fonts| in MS-Windows, in \verb|/home/user/.fonts/| in Linux + or elsewhere by the system administratior). + \item[ebgaramond] Loads the EB-Garamond fonts with Garamond-Math. + \item[fira] Loads the Fira family, a sans-serif font. + \item[gfsartemisia] Loads the GFSArtemisia, a font family designed to be used + as a Times replacement. The Mathematics is from stix2 but latin + and greek letters are substituted from GFSArtemisia to provide a better match. + \item[gfsdidotclassic] Uses the GFSDidotClassic for Greek with GFSPorson for italic. + The latin part is URW garamond. The Mathematics is from Garamond-Math but the greek + letters are substituted from GFSDidotClassic to provide a better match. Notice that + the Bold versions of the Greek fonts are faked using fontspec mechanism as + the Greek part does not have bold versions. + \item[gfsdidot] Loads the GFSDidot fonts. NewCMMath-Book is the Mathematics font, but latin + and greek letters are substituted from GFSdidot to provide a better match. + \item[gfsneohellenic] Loads the GFSNeohellenic family with GFSNeohellenic-Math. + \item[kerkis] Loads the kerkis font family and texgyrebonum-math. + \item[libertinus] Loads the Libertinus and LibertinusMath fonts. + \item[lucida] Loads the Lucida font family if available (a commercial font). + \item[minion] Loads the MinionPro family. To install it, find the fonts MinionPro and + MyriadPro from the installation of Adobe PDF Reader and install the fonts to your system + (in \verb|C:\Windows\Fonts| in MS-Windows, in \verb|/home/user/.fonts/| in Linux + or elsewhere by the system administratior). Moreover, install the supplied + fspmnscel.otf as a system font to have access to Greek small caps. + Mathematics is from stix2 + with letters replaced from MinionPro. Sans is MyriadPro. + \item[msgaramond] Loads the MS-Garamond fonts. These must be system installed + (in \verb|C:\Windows\Fonts| in MS-Windows, in \verb|/home/user/.fonts/| in Linux + or elsewhere by the system administratior). Mathematics is from + Garamond-Math with letters replaced + from MS-Garamond. + \item[neoeuler] Loads the Concrete fonts with the Euler for Mathematics. + Needs euler.otf to be instaled in the TeX installation. + \item[palatino] Loads the Linotype Palatino Fonts available from some versions of Windows. + Thefonts must be system installed (in \verb|C:\Windows\Fonts| in MS-Windows, + in \verb|/home/user/.fonts/| in Linux or elsewhere by the system administratior). The supplied + fsplpscel.otf must be also + system-installed to allow access to Greek small caps. + Mathematics font is texgyrepagella-math. + \item[stixtwo] Loads the stix2 fonts, a Times-type font. + \item[times] Loads the FreeSerifb fonts, a Times font and stix2 for Mathematics + with letters replaced from FreeSerifb. + \end{description} + + You do not need to load \verb|fontspec|. This, as well as \verb|unicode-math|, are + automatically loaded. A minimal file is +\begin{verbatim} + \documentclass{article} + \usepackage[default]{fontsetup} + \begin{document} + ... + \end{document} +\end{verbatim} + +The switch to another font is trivial. You just change the option of \verb|fontsetup| +to another among the supported ones. + + +\bigskip + +\textbf{Summary of installation steps to support all fonts} + +\medskip + +You do not have to do any of these steps if you rely on free fonts +(except step 6 if you want to use the \verb|neoeuler| option) and do not want +to use the commercial ones. + +\medskip + +\begin{enumerate} +\item Install as system fonts the supplied \verb|fspmnscel.otf| + and \verb|fsplpscel.otf| (in \verb|C:\Windows\Fonts\| on MS-Windows or in + \verb|/home/user/.fonts/| in Linux or system-wide install as administrator) +\item Repeat the previous step for all MinionPro and MyriadPro fonts from the + installation of the free Adobe Acrobat Reader. +\item Repeat the above for the MS-Garamond fonts (\verb|Gara.ttf|, \verb|Garabd.ttf| + and \verb|Garait.ttf|) as well as for the Linotype Palatino fonts + found in some versions of Microsoft Windows (\verb|palabi.ttf|, \verb|palab.ttf|, + \verb|palai.ttf|, and \verb|pala.ttf|). +\item Repeat the above for the Cambria fonts (\verb|cambria.ttc|, \verb|cambriab.ttf|, + \verb|cambriai.ttf|, \verb|cambriaz.ttf|). +\item Install the commercial Lucida fonts (if available) in your TeX tree. +\item Install \verb|euler.otf| in your TeX tree from + here: \verb|https://github.com/khaledhosny/euler-otf| +\end{enumerate} + +\bigskip + + + + +You can indeed suggest a new combination of fonts and I will add them. However, I do +reserve the right to reject them if the font quality is bad or if Mathematics is not supported +with a matching font. + +Samples follow. + +\newpage + +\begin{center} +{\Large Cambria and CambriaMath: option \verb|cambria|}\\ +Cambria Fonts must be installed as system fonts\\[1cm] +\includegraphics[scale=1.2]{fspsample-cambria.pdf} +\end{center} + +\newpage + +\begin{center} +{\Large ComputerModern fonts (Book weight): option \verb|default|}\\[1cm] +\includegraphics[scale=1.2]{fspsample-newdefault.pdf} +\end{center} +\newpage + +\begin{center} +{\Large ComputerModern fonts (old Regular weight): option \verb|olddefault|}\\[1cm] +\includegraphics[scale=1.2]{fspsample-cmr.pdf} +\end{center} + +\newpage + +\begin{center} +{\Large EB-Garamond and Garamond-Math fonts: option \verb|ebgaramond|}\\[1cm] +\includegraphics[scale=1.2]{fspsample-ebgaramond.pdf} +\end{center} + +\newpage + +\begin{center} +{\Large Fira fonts: option \verb|fira|}\\[1cm] +\includegraphics[scale=1.2]{fspsample-fira.pdf} +\end{center} + +\newpage + +\begin{center} +{\Large GFSArtemisia and Stix2Math fonts: option \verb|gfsartemisia|}\\[1cm] +\includegraphics[scale=1.2]{fspsample-gfsartemisia.pdf} +\end{center} + +\newpage + +\begin{center} +{\Large GFSDidotClassic, GFSPorson Italic, and Garamond-Math fonts: option \verb|gfsdidotclassic|}\\[1cm] +\includegraphics[scale=1.2]{fspsample-gfsdidotclassic.pdf} +\end{center} + +\newpage + +\begin{center} +{\Large GFSDidot and NewCMMath-Book: option \verb|gfsdidot|}\\[1cm] +\includegraphics[scale=1.2]{fspsample-gfsdidot.pdf} +\end{center} + +\newpage + +\begin{center} +{\Large GFSNeohellenic and GFSNeohellenic-Math: option \verb|gfsneohellenic|}\\[1cm] +\includegraphics[scale=1.2]{fspsample-gfsneohellenic.pdf} +\end{center} + +\newpage + +\begin{center} +{\Large Kerkis and texgyrebonum-math: option \verb|kerkis|}\\[1cm] +\includegraphics[scale=1.2]{fspsample-kerkis.pdf} +\end{center} + + + +\newpage + +\begin{center} +{\Large Libertinus and LibertinusMath: option \verb|libertinus|}\\[1cm] +\includegraphics[scale=1.2]{fspsample-libertinus.pdf} +\end{center} + + + +\newpage + +\begin{center} +{\Large Lucida and Lucida-Math (commercial): option \verb|lucida|}\\[1cm] +\includegraphics[scale=1.2]{fspsample-lucida.pdf} +\end{center} + +\newpage + +\begin{center} +{\Large MinionPro (commercial) and Stix2Math: option \verb|minion|}\\ +MinionPro Fonts and the supplied fspmnscel.otf must +be installed as system fonts\\[1cm] +\includegraphics[scale=1.2]{fspsample-minion.pdf} +\end{center} + +\newpage + +\begin{center} +{\Large MS-Garamond (commercial) and Garamond-Math: option \verb|msgaramond|}\\ +MS-Garamond Fonts must be installed as system fonts\\[1cm] +\includegraphics[scale=1.2]{fspsample-msgaramond.pdf} +\end{center} + +\newpage + +\begin{center} +{\Large Concrete fonts and NeoEuler Math: option \verb|neoeuler|}\\ +NeoEuler font must be installed in TeX tree\\[1cm] +\includegraphics[scale=1.2]{fspsample-neoeuler.pdf} +\end{center} + +\newpage + +\begin{center} +{\Large Linotype Palatino (commercial) and texgyrepagella-math: option \verb|palatino|}\\ +Linotype Palatino Fonts and the supplied fsplpscel.otf must be installed as system fonts\\[1cm] +\includegraphics[scale=1.2]{fspsample-palatino.pdf} +\end{center} + +\newpage + +\begin{center} +{\Large Stix2 and Stix2Math: option \verb|stixtwo|}\\[1cm] +\includegraphics[scale=1.2]{fspsample-stixtwo.pdf} +\end{center} + +\newpage + +\begin{center} +{\Large FreeSerifb and Stix2Math: option \verb|times|}\\[1cm] +\includegraphics[scale=1.2]{fspsample-times.pdf} +\end{center} + +\appendix + +\chapter{Ancient Greek Numbers} +The following table lists the commands and the symbol produced for the Unicode range +\texttt{u10140--u1018E}. +\begin{center}\enlargethispage{1cm} + \begin{supertabular}{|l|l||l|l|} + \hline +\verb|\atticonequarter| & \atticonequarter &\verb|\hermionianfifty| & \hermionianfifty \\ \hline +\verb|\atticonehalf| & \atticonehalf &\verb|\thespianfifty| & \thespianfifty \\ \hline +\verb|\atticonedrachma| & \atticonedrachma &\verb|\thespianonehundred| & \thespianonehundred \\ \hline +\verb|\atticfive| & \atticfive &\verb|\thespianthreehundred| & \thespianthreehundred \\ \hline +\verb|\atticfifty| & \atticfifty &\verb|\epidaurianfivehundred| & \epidaurianfivehundred \\ \hline +\verb|\atticfivehundred| & \atticfivehundred &\verb|\troezenianfivehundred| & \troezenianfivehundred \\ \hline +\verb|\atticfivethousand| & \atticfivethousand &\verb|\thespianfivehundred| & \thespianfivehundred \\ \hline +\verb|\atticfiftythousand| & \atticfiftythousand &\verb|\carystianfivehundred| & \carystianfivehundred \\ \hline +\verb|\atticfivetalents| & \atticfivetalents &\verb|\naxianfivehundred| & \naxianfivehundred \\ \hline +\verb|\attictentalents| & \attictentalents &\verb|\thespianonethousand| & \thespianonethousand \\ \hline +\verb|\atticfiftytalents| & \atticfiftytalents &\verb|\thespianfivethousand| & \thespianfivethousand \\ \hline +\verb|\atticonehundredtalents| & \atticonehundredtalents &\verb|\delphicfivemnas| & \delphicfivemnas \\ \hline +\verb|\atticfivehundredtalents| & \atticfivehundredtalents &\verb|\stratianfiftymnas| & \stratianfiftymnas \\ \hline +\verb|\atticonethousandtalents| & \atticonethousandtalents &\verb|\greekonehalfsign| & \greekonehalfsign \\ \hline +\verb|\atticfivethousandtalents| & \atticfivethousandtalents &\verb|\greekonehalfsignalt| & \greekonehalfsignalt \\ \hline +\verb|\atticfivestaters| & \atticfivestaters &\verb|\greektwothirdssign| & \greektwothirdssign \\ \hline +\verb|\attictenstaters| & \attictenstaters &\verb|\greekthreequarterssign| & \greekthreequarterssign \\ \hline +\verb|\atticfiftystaters| & \atticfiftystaters &\verb|\greekyearsign| & \greekyearsign \\ \hline +\verb|\atticonehundredstaters| & \atticonehundredstaters &\verb|\greektalentsign| & \greektalentsign \\ \hline +\verb|\atticfivehundredstaters| & \atticfivehundredstaters &\verb|\greekdrachmasign| & \greekdrachmasign \\ \hline +\verb|\atticonethousandstaters| & \atticonethousandstaters &\verb|\greekobolsign| & \greekobolsign \\ \hline +\verb|\attictenthousandstaters| & \attictenthousandstaters &\verb|\greektwoobolssign| & \greektwoobolssign \\ \hline +\verb|\atticfiftythousandstaters| & \atticfiftythousandstaters &\verb|\greekthreeobolssign| & \greekthreeobolssign \\ \hline +\verb|\attictenmnas| & \attictenmnas &\verb|\greekfourobolssign| & \greekfourobolssign \\ \hline +\verb|\heraleumoneplethron| & \heraleumoneplethron &\verb|\greekfiveobolssign| & \greekfiveobolssign \\ \hline +\verb|\thespianone| & \thespianone &\verb|\greekmetretessign| & \greekmetretessign \\ \hline +\verb|\ermionianone| & \ermionianone &\verb|\greekkyathosbasesign| & \greekkyathosbasesign \\ \hline +\verb|\epidauriantwo| & \epidauriantwo &\verb|\greeklytrasign| & \greeklytrasign \\ \hline +\verb|\thespiantwo| & \thespiantwo &\verb|\greekounkiasign| & \greekounkiasign \\ \hline +\verb|\cyrenaictwodrachmas| & \cyrenaictwodrachmas &\verb|\greekxestessign| & \greekxestessign \\ \hline +\verb|\epidauriantwodrachmas| & \epidauriantwodrachmas &\verb|\greekartabesign| & \greekartabesign \\ \hline +\verb|\troezenianfive| & \troezenianfive &\verb|\greekarourasign| & \greekarourasign \\ \hline +\verb|\troezenianten| & \troezenianten &\verb|\greekgrammasign| & \greekgrammasign \\ \hline +\verb|\troezeniantenalt| & \troezeniantenalt &\verb|\greektryblionbasesign| & \greektryblionbasesign \\ \hline +\verb|\hermionianten| & \hermionianten &\verb|\greekzerosign| & \greekzerosign \\ \hline +\verb|\messenianten| & \messenianten &\verb|\greekonequartersign| & \greekonequartersign \\ \hline +\verb|\thespianten| & \thespianten &\verb|\greeksinusoidsign| & \greeksinusoidsign \\ \hline +\verb|\thespianthirty| & \thespianthirty &\verb|\greekindictionsign| & \greekindictionsign \\ \hline +\verb|\troezenianfifty| & \troezenianfifty &\verb|\nomismasign| & \nomismasign \\ \hline +\verb|\troezenianfiftyalt| & \troezenianfiftyalt & & \\ \hline + \end{supertabular} +\end{center} + + +\end{document} diff --git a/macros/unicodetex/latex/fontsetup/doc/fspsample-cambria.pdf b/macros/unicodetex/latex/fontsetup/doc/fspsample-cambria.pdf Binary files differnew file mode 100644 index 0000000000..f003f22208 --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/doc/fspsample-cambria.pdf diff --git a/macros/unicodetex/latex/fontsetup/doc/fspsample-cmr.pdf b/macros/unicodetex/latex/fontsetup/doc/fspsample-cmr.pdf Binary files differnew file mode 100644 index 0000000000..8423318316 --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/doc/fspsample-cmr.pdf diff --git a/macros/unicodetex/latex/fontsetup/doc/fspsample-ebgaramond.pdf b/macros/unicodetex/latex/fontsetup/doc/fspsample-ebgaramond.pdf Binary files differnew file mode 100644 index 0000000000..6084e0e3bf --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/doc/fspsample-ebgaramond.pdf diff --git a/macros/unicodetex/latex/fontsetup/doc/fspsample-fira.pdf b/macros/unicodetex/latex/fontsetup/doc/fspsample-fira.pdf Binary files differnew file mode 100644 index 0000000000..479fecca54 --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/doc/fspsample-fira.pdf diff --git a/macros/unicodetex/latex/fontsetup/doc/fspsample-gfsartemisia.pdf b/macros/unicodetex/latex/fontsetup/doc/fspsample-gfsartemisia.pdf Binary files differnew file mode 100644 index 0000000000..1d1365d8ca --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/doc/fspsample-gfsartemisia.pdf diff --git a/macros/unicodetex/latex/fontsetup/doc/fspsample-gfsdidot.pdf b/macros/unicodetex/latex/fontsetup/doc/fspsample-gfsdidot.pdf Binary files differnew file mode 100644 index 0000000000..9e4ccd3545 --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/doc/fspsample-gfsdidot.pdf diff --git a/macros/unicodetex/latex/fontsetup/doc/fspsample-gfsdidotclassic.pdf b/macros/unicodetex/latex/fontsetup/doc/fspsample-gfsdidotclassic.pdf Binary files differnew file mode 100644 index 0000000000..873efb92dc --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/doc/fspsample-gfsdidotclassic.pdf diff --git a/macros/unicodetex/latex/fontsetup/doc/fspsample-gfsneohellenic.pdf b/macros/unicodetex/latex/fontsetup/doc/fspsample-gfsneohellenic.pdf Binary files differnew file mode 100644 index 0000000000..3f1817a12e --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/doc/fspsample-gfsneohellenic.pdf diff --git a/macros/unicodetex/latex/fontsetup/doc/fspsample-kerkis.pdf b/macros/unicodetex/latex/fontsetup/doc/fspsample-kerkis.pdf Binary files differnew file mode 100644 index 0000000000..5161451c9f --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/doc/fspsample-kerkis.pdf diff --git a/macros/unicodetex/latex/fontsetup/doc/fspsample-libertinus.pdf b/macros/unicodetex/latex/fontsetup/doc/fspsample-libertinus.pdf Binary files differnew file mode 100644 index 0000000000..845f5cf7be --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/doc/fspsample-libertinus.pdf diff --git a/macros/unicodetex/latex/fontsetup/doc/fspsample-lucida.pdf b/macros/unicodetex/latex/fontsetup/doc/fspsample-lucida.pdf Binary files differnew file mode 100644 index 0000000000..bebf3ceff9 --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/doc/fspsample-lucida.pdf diff --git a/macros/unicodetex/latex/fontsetup/doc/fspsample-minion.pdf b/macros/unicodetex/latex/fontsetup/doc/fspsample-minion.pdf Binary files differnew file mode 100644 index 0000000000..ef26ae6481 --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/doc/fspsample-minion.pdf diff --git a/macros/unicodetex/latex/fontsetup/doc/fspsample-msgaramond.pdf b/macros/unicodetex/latex/fontsetup/doc/fspsample-msgaramond.pdf Binary files differnew file mode 100644 index 0000000000..e411c077d6 --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/doc/fspsample-msgaramond.pdf diff --git a/macros/unicodetex/latex/fontsetup/doc/fspsample-neoeuler.pdf b/macros/unicodetex/latex/fontsetup/doc/fspsample-neoeuler.pdf Binary files differnew file mode 100644 index 0000000000..545c0d7ace --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/doc/fspsample-neoeuler.pdf diff --git a/macros/unicodetex/latex/fontsetup/doc/fspsample-newdefault.pdf b/macros/unicodetex/latex/fontsetup/doc/fspsample-newdefault.pdf Binary files differnew file mode 100644 index 0000000000..736690886c --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/doc/fspsample-newdefault.pdf diff --git a/macros/unicodetex/latex/fontsetup/doc/fspsample-palatino.pdf b/macros/unicodetex/latex/fontsetup/doc/fspsample-palatino.pdf Binary files differnew file mode 100644 index 0000000000..48644e576d --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/doc/fspsample-palatino.pdf diff --git a/macros/unicodetex/latex/fontsetup/doc/fspsample-stixtwo.pdf b/macros/unicodetex/latex/fontsetup/doc/fspsample-stixtwo.pdf Binary files differnew file mode 100644 index 0000000000..bcec3a110a --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/doc/fspsample-stixtwo.pdf diff --git a/macros/unicodetex/latex/fontsetup/doc/fspsample-times.pdf b/macros/unicodetex/latex/fontsetup/doc/fspsample-times.pdf Binary files differnew file mode 100644 index 0000000000..f1dea75182 --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/doc/fspsample-times.pdf diff --git a/macros/unicodetex/latex/fontsetup/doc/fspsample.tex b/macros/unicodetex/latex/fontsetup/doc/fspsample.tex new file mode 100644 index 0000000000..23ec736e02 --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/doc/fspsample.tex @@ -0,0 +1,75 @@ +%% after xelatex run +%% pdfcrop fspsample.pdf output.pdf +%% to crop it +\documentclass{article} +\pagestyle{empty} +\usepackage{xgreek,graphicx} +\pagestyle{empty} +%\usepackage[greek]{babel} +%\usepackage[utf8x]{inputenc} +%\usepackage{amsfonts} + +\usepackage[default]{fontsetup} +%\usepackage[gfsartemisia]{fontsetup} +%\usepackage[gfsdidot]{fontsetup} +%\usepackage[gfsdidotclassic]{fontsetup} +%\usepackage[gfsneohellenic]{fontsetup} +%\usepackage[cambria]{fontsetup} +%\usepackage[lucida]{fontsetup} +%\usepackage[kerkis]{fontsetup} +%\usepackage[fira]{fontsetup} +%\usepackage[times]{fontsetup} +%\usepackage[palatino]{fontsetup} +%\usepackage[stixtwo]{fontsetup} +%\usepackage[neokadmus]{fontsetup} +%\usepackage[msgaramond]{fontsetup} +%\usepackage[ebgaramond]{fontsetup} +%\usepackage[minion]{fontsetup} +%\usepackage[neoeuler]{fontsetup} +%\usepackage[libertinus]{fontsetup} +%\usepackage[olddefault]{fontsetup} + + + +\newtheorem{theorem}{Theorem} +\newtheorem{theoremg}[theorem]{Θεώρημα} + + +\begin{document} + +\begin{theorem}[Dominated convergence of Lebesgue] +%Let $g$ be an +Assume that $g$ is an +in\-te\-grable func\-tion defined on the measurable set $E$ and that + $(\,f_n)_{n\in\mathbb N}$ is a sequence of mea\-sur\-able functions so that + $|\,f_n|\leq g$. If $f$ is a function so that $f_n\to f$ almost everywhere + then $$\lim_{n\to\infty}\int f_n=\int f.$$ +\end{theorem} +\textit{Proof}: The function $g-f_n$ is non-negative and thus from Fatou lemma +we have that $\int(g-f\,)\leq\liminf\int(g-f_n)$. Since $|\,f\,|\leq g$ and +$|\,f_n|\leq g$ the functions $f$ and $f_n$ are integrable and we have +$$\int g-\int f\,\leq \int g-\limsup\int f_n,$$ so +$$\int f\,\geq \limsup \int f_n.$$ +\par +\begin{theoremg}[Κυριαρχημένης σύγκλισης του Lebesgue] + Έστω ότι +η $g$ είναι μια ολοκληρώσιμη συνάρτηση ορισμένη στο μετρήσιμο σύνολο +$E$ και η $(\,f_n)_{n\in\mathbb N}$ είναι μια ακολουθία μετρήσιμων συναρτήσεων ώστε +$|\,f_n| ≤ g$. Υποθέτουμε ότι υπάρχει μια συνάρτηση $f$ +ώστε η $(f_n)_{n\in\mathbb N}$ να +τείνει στην $f$ σχεδόν παντού. Τότε +$$\lim \int f_n =\int f.$$ +\end{theoremg} +\textit{Απόδειξη}: Η συνάρτηση $g − f_n$ είναι μη αρνητική και άρα από +το Λήμμα του Fatou ισχύει +$\int (f-g) ≤ \liminf \int (g-f_n)$. Επειδή +$|\,f\,| ≤ g$ και $|\,f_n| ≤g$ οι $f$ και $f_n$ είναι ολοκληρώσιμες, έχουμε +$$\int g −\int f\, ≤ \int g − \limsup\int f_n,$$ +άρα +$$\int f\,\geq \limsup \int f_n.$$ + + + + + +\end{document} diff --git a/macros/unicodetex/latex/fontsetup/fontsetup.sty b/macros/unicodetex/latex/fontsetup/fontsetup.sty new file mode 100644 index 0000000000..32ed9bc0d4 --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/fontsetup.sty @@ -0,0 +1,110 @@ +%\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{fontsetup}[2019/12/20 Easy font setup by Antonis Tsolomitis] +\typeout{fontsetup: Easy font setup by Antonis Tsolomitis} + +\chardef\fontsetupdefault=0 % +\chardef\fontsetupgfsartemisia=1 +\chardef\fontsetupgfsdidot=2 +\chardef\fontsetupgfsdidotclassic=3 +\chardef\fontsetupgfsneohellenic=4 +\chardef\fontsetupcambria=5 %install cambria as a system font. cambria.ttc, cambriai.ttf, cambriab.ttf, cambriaz.ttf +\chardef\fontsetuplucida=6 %install in TeX tree +\chardef\fontsetupkerkis=7 +\chardef\fontsetupfira=8 +\chardef\fontsetuptimes=9 +\chardef\fontsetuppalatino=10 %install Linotype Palatino as a System font. Files pala.ttf palai, palab, palabi. Install fspPalatinoGreekSmallCaps as a System font. +\chardef\fontsetupstixtwo=11 +\chardef\fontsetupneokadmus=12 +\chardef\fontsetupmsgaramond=13 %install Microsoft Garamond as a System font. Gara.TTF, Garai, Garabd +\chardef\fontsetupebgaramond=14 +\chardef\fontsetupminion=15 % Install MinionPro and provided fspMinionGreekSmallCaps as a system font. +\chardef\fontsetupneoeuler=16 +\chardef\fontsetuplibertinus=17 +\chardef\fontsetupolddefault=18 % old (thin) CMR + +\chardef\fontsetupfont\fontsetupdefault +\DeclareOption{default}{\chardef\fontsetupfont\fontsetupdefault} +\DeclareOption{gfsartemisia}{\chardef\fontsetupfont\fontsetupgfsartemisia} +\DeclareOption{gfsdidot}{\chardef\fontsetupfont\fontsetupgfsdidot} +\DeclareOption{gfsdidotclassic}{\chardef\fontsetupfont\fontsetupgfsdidotclassic} +\DeclareOption{gfsneohellenic}{\chardef\fontsetupfont\fontsetupgfsneohellenic} +\DeclareOption{cambria}{\chardef\fontsetupfont\fontsetupcambria} +\DeclareOption{lucida}{\chardef\fontsetupfont\fontsetuplucida} +\DeclareOption{kerkis}{\chardef\fontsetupfont\fontsetupkerkis} +\DeclareOption{fira}{\chardef\fontsetupfont\fontsetupfira} +\DeclareOption{times}{\chardef\fontsetupfont\fontsetuptimes} +\DeclareOption{palatino}{\chardef\fontsetupfont\fontsetuppalatino} +\DeclareOption{stixtwo}{\chardef\fontsetupfont\fontsetupstixtwo} +\DeclareOption{neokadmus}{\chardef\fontsetupfont\fontsetupneokadmus} +\DeclareOption{msgaramond}{\chardef\fontsetupfont\fontsetupmsgaramond} +\DeclareOption{ebgaramond}{\chardef\fontsetupfont\fontsetupebgaramond} +\DeclareOption{minion}{\chardef\fontsetupfont\fontsetupminion} +\DeclareOption{neoeuler}{\chardef\fontsetupfont\fontsetupneoeuler} +\DeclareOption{libertinus}{\chardef\fontsetupfont\fontsetuplibertinus} +\DeclareOption{olddefault}{\chardef\fontsetupfont\fontsetupolddefault} +\DeclareOption*{\PackageWarning{fontsetup}{Unknown ‘\CurrentOption’}} +\ProcessOptions + +%provide a test to know if a 16bits TeX is used. +\RequirePackage{ifthen} +\RequirePackage{iftex} +\newboolean{TeXUnicode} +\ifXeTeX + \setboolean{TeXUnicode}{true} +\fi +\ifLuaTeX + \setboolean{TeXUnicode}{true} +\fi + + + +\ifthenelse{\boolean{TeXUnicode}}{% + %The user runs unicode engine + \ifcase\fontsetupfont + \RequirePackage{fspdefault} +\or + \RequirePackage{fspgfsartemisiaot} +\or + \RequirePackage{fspgfsdidotot} +\or + \RequirePackage{fspgfsdidotclassicot} +\or + \RequirePackage{fspgfsneohellenicot} +\or + \RequirePackage{fspcambria} +\or + \RequirePackage{fsplucidaot} +% \RequirePackage[usefilenames]{lucida-otf} %for some reason it fails +\or + \RequirePackage{fspkerkisot} +\or + \RequirePackage{fspfiraot} +\or + \RequirePackage{fsptimesot} +\or + \RequirePackage{fsppalatinoot} +\or + \RequirePackage{fspstixtwoot} +\or + \RequirePackage{neokadmus} +\or + \RequirePackage{fspmsgaramondot} +\or + \RequirePackage{fspebgaramondot} +\or + \RequirePackage{fspminion} +\or + \RequirePackage{fspneoeulerot} +\or + \RequirePackage{libertinus-otf} +\or + \RequirePackage{fspolddefault} + \fi +}{%the user runs 8bit engine +\relax} + + + + +\endinput + diff --git a/macros/unicodetex/latex/fontsetup/fspcambria.sty b/macros/unicodetex/latex/fontsetup/fspcambria.sty new file mode 100644 index 0000000000..b2947bb3d6 --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/fspcambria.sty @@ -0,0 +1,9 @@ +%% +%% Load Cambria fonts (C) A. Tsolomitis +%% +\RequirePackage{fontspec} +\setmainfont[Contextuals=AlternateOff,BoldFont=Cambria-Bold,ItalicFont=Cambria-Italic,BoldItalicFont=Cambria-BoldItalic]{Cambria} +\RequirePackage{unicode-math} +\setmathfont{Cambria Math} + +\endinput diff --git a/macros/unicodetex/latex/fontsetup/fspdefault.sty b/macros/unicodetex/latex/fontsetup/fspdefault.sty new file mode 100644 index 0000000000..da0a494155 --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/fspdefault.sty @@ -0,0 +1,251 @@ +%% (C) Antonis Tsolomitis, GPL3. +\RequirePackage{fontspec} +\RequirePackage{unicode-math} +\setmainfont[% +ItalicFont=NewCM10-BookItalic.otf,% +BoldFont=NewCM10-Bold.otf,% +BoldItalicFont=NewCM10-BoldItalic.otf,% +SlantedFont=NewCM10-Book.otf,% +SlantedFeatures={FakeSlant=0.25}, +BoldSlantedFont=NewCM10-Bold.otf,% +BoldSlantedFeatures={FakeSlant=0.25}, +SmallCapsFeatures={Numbers=OldStyle}]{NewCM10-Book.otf} + +\setsansfont[% +ItalicFont=NewCMSans10-BookOblique.otf,% +BoldFont=NewCMSans10-Bold.otf,% +BoldItalicFont=NewCMSans10-BoldOblique.otf,% +SlantedFont=NewCMSans10-BookOblique.otf,% +BoldSlantedFont=NewCMSans10-BoldOblique.otf,% +SmallCapsFeatures={Numbers=OldStyle}]{NewCMSans10-Book.otf} + +\setmonofont[% +ItalicFont=NewCMMono10-BookItalic.otf,% +BoldFont=NewCMMono10-Bold.otf,% +BoldItalicFont=NewCMMono10-BoldOblique.otf,% +SlantedFont=NewCMMono10-Book.otf,% +SlantedFeatures={FakeSlant=0.25}, +BoldSlantedFont=NewCMMono10-Bold.otf,% +BoldSlantedFeatures={FakeSlant=0.25}, +SmallCapsFeatures={Numbers=OldStyle}]{NewCMMono10-Book.otf} + +\setmathfont{NewCMMath-Book.otf} + +\newcommand{\tttextsc}[1]{{\ttscshape#1}} +% +\newcommand{\prosgegrammeni}{\addfontfeature{StylisticSet=1}} +\newcommand{\textprosgegrammeni}[1]{{\prosgegrammeni#1}} +% +\newfontfamily{\ivbce}[StylisticSet=2]{NewCMSans10-Book.otf} +\newcommand{\textivbce}[1]{{\ivbce#1}} +% +\newfontfamily{\ivbcealt}[StylisticSet=3]{NewCMSans10-Book.otf} +\newcommand{\textivbcealt}[1]{{\ivbcealt#1}} +% +\newfontfamily{\vibce}[StylisticSet=4]{NewCMSans10-Book.otf} +\newcommand{\textvibce}[1]{{\vibce#1}} +% +%% math (upright) sans Greek +\newcommand{\msansAlpha}{\char"E000} +\newcommand{\msansBeta}{\char"E001} +\newcommand{\msansGamma}{\char"E002} +\newcommand{\msansDelta}{\char"E003} +\newcommand{\msansEpsilon}{\char"E004} +\newcommand{\msansZeta}{\char"E005} +\newcommand{\msansEta}{\char"E006} +\newcommand{\msansTheta}{\char"E007} +\newcommand{\msansIota}{\char"E008} +\newcommand{\msansKappa}{\char"E009} +\newcommand{\msansLambda}{\char"E00A} +\newcommand{\msansMu}{\char"E00B} +\newcommand{\msansNu}{\char"E00C} +\newcommand{\msansXi}{\char"E00D} +\newcommand{\msansOmicron}{\char"E00E} +\newcommand{\msansPi}{\char"E00F} +\newcommand{\msansRho}{\char"E010} +\newcommand{\msansSigma}{\char"E011} +\newcommand{\msansTau}{\char"E012} +\newcommand{\msansUpsilon}{\char"E013} +\newcommand{\msansPhi}{\char"E014} +\newcommand{\msansChi}{\char"E015} +\newcommand{\msansPsi}{\char"E016} +\newcommand{\msansOmega}{\char"E017} +\newcommand{\msansalpha}{\char"E018} +\newcommand{\msansbeta}{\char"E019} +\newcommand{\msansgamma}{\char"E01A} +\newcommand{\msansdelta}{\char"E01B} +\newcommand{\msansepsilon}{\char"E01C} +\newcommand{\msanszeta}{\char"E01D} +\newcommand{\msanseta}{\char"E01E} +\newcommand{\msanstheta}{\char"E01F} +\newcommand{\msansiota}{\char"E020} +\newcommand{\msanskappa}{\char"E021} +\newcommand{\msanslambda}{\char"E022} +\newcommand{\msansmu}{\char"E023} +\newcommand{\msansnu}{\char"E024} +\newcommand{\msansxi}{\char"E025} +\newcommand{\msansomicron}{\char"E026} +\newcommand{\msanspi}{\char"E027} +\newcommand{\msansrho}{\char"E028} +\newcommand{\msansvarsigma}{\char"E029} +\newcommand{\msanssigma}{\char"E02A} +\newcommand{\msanstau}{\char"E02B} +\newcommand{\msansupsilon}{\char"E02C} +\newcommand{\msansphi}{\char"E02D} +\newcommand{\msanschi}{\char"E02E} +\newcommand{\msanspsi}{\char"E02F} +\newcommand{\msansomega}{\char"E030} +\newcommand{\msansvarepsilon}{\char"E031} +% math italic sans Greek +\newcommand{\mitsansAlpha}{\char"E041} +\newcommand{\mitsansBeta}{\char"E042} +\newcommand{\mitsansGamma}{\char"E043} +\newcommand{\mitsansDelta}{\char"E044} +\newcommand{\mitsansEpsilon}{\char"E045} +\newcommand{\mitsansZeta}{\char"E046} +\newcommand{\mitsansEta}{\char"E047} +\newcommand{\mitsansTheta}{\char"E048} +\newcommand{\mitsansIota}{\char"E049} +\newcommand{\mitsansKappa}{\char"E04A} +\newcommand{\mitsansLambda}{\char"E04B} +\newcommand{\mitsansMu}{\char"E04C} +\newcommand{\mitsansNu}{\char"E04D} +\newcommand{\mitsansXi}{\char"E04E} +\newcommand{\mitsansOmicron}{\char"E04F} +\newcommand{\mitsansPi}{\char"E050} +\newcommand{\mitsansRho}{\char"E051} +\newcommand{\mitsansSigma}{\char"E052} +\newcommand{\mitsansTau}{\char"E053} +\newcommand{\mitsansUpsilon}{\char"E054} +\newcommand{\mitsansPhi}{\char"E055} +\newcommand{\mitsansChi}{\char"E056} +\newcommand{\mitsansPsi}{\char"E057} +\newcommand{\mitsansOmega}{\char"E058} +\newcommand{\mitsansalpha}{\char"E059} +\newcommand{\mitsansbeta}{\char"E05A} +\newcommand{\mitsansgamma}{\char"E05B} +\newcommand{\mitsansdelta}{\char"E05C} +\newcommand{\mitsansepsilon}{\char"E05D} +\newcommand{\mitsanszeta}{\char"E05E} +\newcommand{\mitsanseta}{\char"E05F} +\newcommand{\mitsanstheta}{\char"E060} +\newcommand{\mitsansiota}{\char"E061} +\newcommand{\mitsanskappa}{\char"E062} +\newcommand{\mitsanslambda}{\char"E063} +\newcommand{\mitsansmu}{\char"E064} +\newcommand{\mitsansnu}{\char"E065} +\newcommand{\mitsansxi}{\char"E066} +\newcommand{\mitsansomicron}{\char"E067} +\newcommand{\mitsanspi}{\char"E068} +\newcommand{\mitsansrho}{\char"E069} +\newcommand{\mitsansvarsigma}{\char"E06A} +\newcommand{\mitsanssigma}{\char"E06B} +\newcommand{\mitsanstau}{\char"E06C} +\newcommand{\mitsansupsilon}{\char"E06D} +\newcommand{\mitsansphi}{\char"E06E} +\newcommand{\mitsanschi}{\char"E06F} +\newcommand{\mitsanspsi}{\char"E070} +\newcommand{\mitsansomega}{\char"E071} +\newcommand{\mitsansvarepsilon}{\char"E072} +% Ancient Greek Numerals u10140-u1018E +\newcommand{\atticonequarter}{\char"10140} +\newcommand{\atticonehalf}{\char"10141} +\newcommand{\atticonedrachma}{\char"10142} +\newcommand{\atticfive}{\char"10143} +\newcommand{\atticfifty}{\char"10144} +\newcommand{\atticfivehundred}{\char"10145} +\newcommand{\atticfivethousand}{\char"10146} +\newcommand{\atticfiftythousand}{\char"10147} +\newcommand{\atticfivetalents}{\char"10148} +\newcommand{\attictentalents}{\char"10149} +\newcommand{\atticfiftytalents}{\char"1014A} +\newcommand{\atticonehundredtalents}{\char"1014B} +\newcommand{\atticfivehundredtalents}{\char"1014C} +\newcommand{\atticonethousandtalents}{\char"1014D} +\newcommand{\atticfivethousandtalents}{\char"1014E} +\newcommand{\atticfivestaters}{\char"1014F} +\newcommand{\attictenstaters}{\char"10150} +\newcommand{\atticfiftystaters}{\char"10151} +\newcommand{\atticonehundredstaters}{\char"10152} +\newcommand{\atticfivehundredstaters}{\char"10153} +\newcommand{\atticonethousandstaters}{\char"10154} +\newcommand{\attictenthousandstaters}{\char"10155} +\newcommand{\atticfiftythousandstaters}{\char"10156} +\newcommand{\attictenmnas}{\char"10157} +\newcommand{\heraleumoneplethron}{\char"10158} +\newcommand{\thespianone}{\char"10159} +\newcommand{\ermionianone}{\char"1015A} +\newcommand{\epidauriantwo}{\char"1015B} +\newcommand{\thespiantwo}{\char"1015C} +\newcommand{\cyrenaictwodrachmas}{\char"1015D} +\newcommand{\epidauriantwodrachmas}{\char"1015E} +\newcommand{\troezenianfive}{\char"1015F} +\newcommand{\troezenianten}{\char"10160} +\newcommand{\troezeniantenalt}{\char"10161} +\newcommand{\hermionianten}{\char"10162} +\newcommand{\messenianten}{\char"10163} +\newcommand{\thespianten}{\char"10164} +\newcommand{\thespianthirty}{\char"10165} +\newcommand{\troezenianfifty}{\char"10166} +\newcommand{\troezenianfiftyalt}{\char"10167} +\newcommand{\hermionianfifty}{\char"10168} +\newcommand{\thespianfifty}{\char"10169} +\newcommand{\thespianonehundred}{\char"1016A} +\newcommand{\thespianthreehundred}{\char"1016B} +\newcommand{\epidaurianfivehundred}{\char"1016C} +\newcommand{\troezenianfivehundred}{\char"1016D} +\newcommand{\thespianfivehundred}{\char"1016E} +\newcommand{\carystianfivehundred}{\char"1016F} +\newcommand{\naxianfivehundred}{\char"10170} +\newcommand{\thespianonethousand}{\char"10171} +\newcommand{\thespianfivethousand}{\char"10172} +\newcommand{\delphicfivemnas}{\char"10173} +\newcommand{\stratianfiftymnas}{\char"10174} +\newcommand{\greekonehalfsign}{\char"10175} +\newcommand{\greekonehalfsignalt}{\char"10176} +\newcommand{\greektwothirdssign}{\char"10177} +\newcommand{\greekthreequarterssign}{\char"10178} +\newcommand{\greekyearsign}{\char"10179} +\newcommand{\greektalentsign}{\char"1017A} +\newcommand{\greekdrachmasign}{\char"1017B} +\newcommand{\greekobolsign}{\char"1017C} +\newcommand{\greektwoobolssign}{\char"1017D} +\newcommand{\greekthreeobolssign}{\char"1017E} +\newcommand{\greekfourobolssign}{\char"1017F} +\newcommand{\greekfiveobolssign}{\char"10180} +\newcommand{\greekmetretessign}{\char"10181} +\newcommand{\greekkyathosbasesign}{\char"10182} +\newcommand{\greeklytrasign}{\char"10183} +\newcommand{\greekounkiasign}{\char"10184} +\newcommand{\greekxestessign}{\char"10185} +\newcommand{\greekartabesign}{\char"10186} +\newcommand{\greekarourasign}{\char"10187} +\newcommand{\greekgrammasign}{\char"10188} +\newcommand{\greektryblionbasesign}{\char"10189} +\newcommand{\greekzerosign}{\char"1018A} +\newcommand{\greekonequartersign}{\char"1018B} +\newcommand{\greeksinusoidsign}{\char"1018C} +\newcommand{\greekindictionsign}{\char"1018D} +\newcommand{\nomismasign}{\char"1018E} +% +% some math symbols +\DeclareRobustCommand\nrightrightarrows{\mathrel{\char"E033}} +\DeclareRobustCommand\nleftleftarrows{\mathrel{\char"E032}} +% +% select ss02 lookup table for IPA symbols +\newfontfamily{\ipatext}[StylisticSet=5,% +BoldFont=NewCM10-Bold.otf,% +SlantedFont=NewCM10-Regular.otf,% +SlantedFeatures={FakeSlant=0.25}, +BoldSlantedFont=NewCM10-Bold.otf,% +BoldSlantedFeatures={FakeSlant=0.25}, +SmallCapsFeatures={Numbers=OldStyle}]{NewCM10-Book.otf} +\newcommand{\textipa}[1]{{\ipatext#1}} +\newfontfamily{\ipatextsans}[StylisticSet=5,% +ItalicFont=NewCMSans10-BookOblique.otf,% +BoldFont=NewCMSans10-Bold.otf,% +BoldItalicFont=NewCMSans10-BoldOblique.otf,% +SlantedFont=NewCMSans10-Oblique.otf,% +BoldSlantedFont=NewCMSans10-BoldOblique.otf,% +SmallCapsFeatures={Numbers=OldStyle}]{NewCMSans10-Book.otf} +\newcommand{\textsansipa}[1]{{\ipatextsans#1}} diff --git a/macros/unicodetex/latex/fontsetup/fspebgaramondot.sty b/macros/unicodetex/latex/fontsetup/fspebgaramondot.sty new file mode 100644 index 0000000000..a819513535 --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/fspebgaramondot.sty @@ -0,0 +1,12 @@ +\RequirePackage{fontspec} +\defaultfontfeatures{Ligatures=TeX} + +\setmainfont[ItalicFont=EBGaramond-Italic.otf, +BoldFont=EBGaramond-Bold.otf, +BoldItalicFont=EBGaramond-BoldItalic.otf,SmallCapsFeatures={Numbers=OldStyle}]{EBGaramond-Regular.otf} + +\RequirePackage{unicode-math} +\setmathfont{Garamond-Math.otf} + + +\endinput diff --git a/macros/unicodetex/latex/fontsetup/fspfiraot.sty b/macros/unicodetex/latex/fontsetup/fspfiraot.sty new file mode 100644 index 0000000000..172bf45dab --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/fspfiraot.sty @@ -0,0 +1,26 @@ +\RequirePackage{fontspec} +\defaultfontfeatures{Ligatures=TeX} + +\setmainfont[% +ItalicFont=FiraSans-Italic.otf,% +BoldFont=FiraSans-Bold.otf, +BoldItalicFont=FiraSans-BookItalic.otf,% +SmallCapsFeatures={Numbers=OldStyle}% +]{FiraSans-Regular.otf} + +\setsansfont[% +ItalicFont=FiraSans-Italic.otf,% +BoldFont=FiraSans-Bold.otf,% +BoldItalicFont=FiraSans-BookItalic.otf,% +SmallCapsFeatures={Numbers=OldStyle}% +]{FiraSans-Regular.otf} + +\setmonofont[ItalicFont=FiraMono-Regular.otf,ItalicFeatures={FakeSlant=0.2},% +BoldFont=FiraMono-Bold.otf,% +BoldItalicFont=FiraMono-Bold.otf,BoldItalicFeatures={FakeSlant=0.2}% +]{FiraMono-Regular.otf} + +\RequirePackage{unicode-math} +\setmathfont{FiraMath-Regular.otf} + +\endinput
\ No newline at end of file diff --git a/macros/unicodetex/latex/fontsetup/fspgfsartemisiaot.sty b/macros/unicodetex/latex/fontsetup/fspgfsartemisiaot.sty new file mode 100644 index 0000000000..c4dc761f87 --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/fspgfsartemisiaot.sty @@ -0,0 +1,16 @@ +\RequirePackage{fontspec} +\defaultfontfeatures{Ligatures=TeX} + +\setmainfont[ItalicFont=GFSArtemisiaIt.otf, +BoldFont=GFSArtemisiaBold.otf, +BoldItalicFont=GFSArtemisiaBoldIt.otf,SmallCapsFeatures={Numbers=OldStyle}]{GFSArtemisia.otf} + +\RequirePackage{unicode-math} +%\setmathfont{XITSMath-Regular.otf} +\setmathfont{STIX2Math.otf} +\setmathfont[range=\mathup/{num,latin,Latin,greek,Greek}]{GFSArtemisia.otf} +\setmathfont[range=\mathbfup/{num,latin,Latin,greek,Greek}]{GFSArtemisiaBold.otf} +\setmathfont[range=\mathit/{num,latin,Latin,greek,Greek}]{GFSArtemisiaIt.otf} +\setmathfont[range=\mathbfit/{num,latin,Latin,greek,Greek}]{GFSArtemisiaBoldIt.otf} + +\endinput diff --git a/macros/unicodetex/latex/fontsetup/fspgfsdidotclassicot.sty b/macros/unicodetex/latex/fontsetup/fspgfsdidotclassicot.sty new file mode 100644 index 0000000000..d1f26d14c7 --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/fspgfsdidotclassicot.sty @@ -0,0 +1,24 @@ +%\RequirePackage[no-math]{fontspec} +\RequirePackage{fontspec} +\defaultfontfeatures{Ligatures=TeX} + +%\RequirePackage[garamond]{mathdesign} + + +%\newfontfamily{\defaultfont}[Scale=1.087,ItalicFont=GFSDidot_Classic,ItalicFeatures={FakeSlant=0.2},BoldFont=GFSDidot_Classic,BoldFeatures={FakeBold=2},BoldItalicFont=GFSDidot_Classic,BoldItalicFeatures={FakeSlant=0.2,FakeBold=2}]{GFSDidot_Classic.otf} + +\newfontfamily{\defaultfont}[Scale=1.05, + ItalicFont=GFSPorson,ItalicFeatures={FakeSlant=0.1,FakeStretch=.92},BoldFont=GFSDidot_Classic,BoldFeatures={FakeBold=1.4,LetterSpace=2},BoldItalicFont=GFSPorson,BoldItalicFeatures={FakeBold=1.4,FakeStretch=.92,FakeSlant=0.1,LetterSpace=2}]{GFSDidot_Classic.otf} + +\newfontfamily{\latinfont}[ItalicFont=ugmri8a,BoldFont=ugmm8a,BoldItalicFont=ugmmi8a]{ugmr8a.otf} +\RequirePackage[Latin, Greek]{ucharclasses} +\setDefaultTransitions{\defaultfont}{} + +\setTransitionsForLatin{\latinfont}{} +\setTransitionsForGreek{\defaultfont}{} + +\RequirePackage{unicode-math} +\setmathfont{Garamond-Math.otf} + + +\endinput diff --git a/macros/unicodetex/latex/fontsetup/fspgfsdidotot.sty b/macros/unicodetex/latex/fontsetup/fspgfsdidotot.sty new file mode 100644 index 0000000000..f8c312c02c --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/fspgfsdidotot.sty @@ -0,0 +1,49 @@ + +\RequirePackage{fontspec} + +\setmainfont[ItalicFont=GFSOlga, + BoldFont=GFSDidotBold, + BoldItalicFont=GFSDidotBoldItalic,SlantedFont=GFSDidotItalic, + SmallCapsFeatures={Numbers=OldStyle}]{GFSDidot.otf} +\newfontfamily{\GFSDidotoSubstFont}[% + ItalicFont=GFSDidotItalic, + BoldFont=GFSDidotBold, + BoldItalicFont=GFSDidotBoldItalic, + SmallCapsFeatures={Numbers=OldStyle}]{GFSDidot.otf} + + +\RequirePackage{unicode-math} +%\setmathfont{XITSMath-Regular.otf} +\setmathfont{NewCMMath-Book.otf} +\setmathfont[range=\mathup/{num,latin,Latin,greek,Greek}]{GFSDidot.otf} +\setmathfont[range=\mathbfup/{num,latin,Latin,greek,Greek}]{GFSDidotBold.otf} +\setmathfont[range=\mathit/{greek,Greek}]{GFSOlga.otf} +\setmathfont[range=\mathit/{num,latin,Latin}]{GFSDidotItalic.otf} +\setmathfont[range=\mathbfit/{num,latin,Latin,greek,Greek}]{GFSDidotBoldItalic.otf} + +%% the next code replaces non-existent Olga Latin with GFSDidotItalic Latin +\XeTeXinterchartokenstate=1% +\newXeTeXintercharclass\GFSDidotoSubst% +\count255="0021% +\loop\ifnum\count255<"0341% + \XeTeXcharclass\count255=\GFSDidotoSubst% + \advance\count255 by 1% +\repeat% +\XeTeXinterchartoks 0 \GFSDidotoSubst = {\begingroup\GFSDidotoSubstFont}% +\XeTeXinterchartoks 4095 \GFSDidotoSubst = {\begingroup\GFSDidotoSubstFont}% +\XeTeXinterchartoks \GFSDidotoSubst 0 = {\endgroup}% +\XeTeXinterchartoks \GFSDidotoSubst 4095 = {\endgroup}% +%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%% Fix epsilons %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\AtBeginDocument{\renewcommand{\epsilon}{\textit{ε}} +\renewcommand{\varepsilon}{\textsl{ε}}} +%%%%%%%%% Fix phi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\newfontfamily\phifix[Scale=1.2]{GFSDidotItalic.otf} +\AtBeginDocument{\renewcommand{\phi}{\textrm{\phifix\char"03D5}}} +%%%%%%%%% Fix theta %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\AtBeginDocument{\renewcommand{\theta}{\textsl{θ}} +\renewcommand{\vartheta}{\textit{θ}}} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\endinput diff --git a/macros/unicodetex/latex/fontsetup/fspgfsneohellenicot.sty b/macros/unicodetex/latex/fontsetup/fspgfsneohellenicot.sty new file mode 100644 index 0000000000..76e0d0a653 --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/fspgfsneohellenicot.sty @@ -0,0 +1,53 @@ +\RequirePackage{fontspec} +\defaultfontfeatures{Ligatures=TeX} +\RequirePackage{fontspec} + +\setmainfont[% main font + UprightFont=GFSNeohellenic, + ItalicFont=GFSNeohellenicIt, + BoldFont=GFSNeohellenicBold, + BoldItalicFont=GFSNeohellenicBoldIt, + RawFeature=+pnum,% variable width numbers + WordSpace={0.75,0.75,1},% + Scale=1.2,%use instead of 12pt +SmallCapsFeatures={Numbers=OldStyle,WordSpace={0.75,0.75,1},LetterSpace=0.06}]{GFSNeohellenic.otf} +%\renewfontfamily\scshape[% +% RawFeature=+smcp,RawFeature=+onum,WordSpace={0.75,0.75,1},LetterSpace=0.06,% +% Scale=1.2%use instead of 12pt +%]{GFSNeohellenic.otf} + + +\RequirePackage{unicode-math} +\setmathfont[% + Scale=1.2%use instead of 12pt +]{GFSNeohellenicMath.otf} + +\renewcommand{\baselinestretch}{1.086} %~1/0.92, use when at 10pt scaled by 1.2 + +%%%%%%%%% special symbols %%%%%%%%%%%%%%%%%%%%% +%fixes the delimiters so that all big sizes appear. TeX default is 5pt. +% run texdoc mathmode and check the "problems with parentheses" section +%\delimitershortfall=1pt +%\newcommand{\myvarnothing}{\symbol{"E000}} +\let\varnothing\undefined +\let\emptyset\undefined +\AtBeginDocument{ +\def\varnothing{\symbol{"E000}}% +\def\emptyset{\symbol{"2205}}} +\DeclareRobustCommand\nrightrightarrows{\mathrel{\char"2B5A}} +\DeclareRobustCommand\nleftleftarrows{\mathrel{\char"2B5B}} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%\let\bigint\undefined +\DeclareRobustCommand\smallprod{\mathop{\char"2B5E}\nolimits} +\DeclareRobustCommand\smallcoprod{\mathop{\char"2B5F}\nolimits} +\DeclareRobustCommand\smallsum{\mathop{\char"2B60}\nolimits} +\DeclareRobustCommand\smallint{\mathop{\char"2B61}\nolimits} +\DeclareRobustCommand\Bigint{\mathop{\char"2B62}\nolimits} +\DeclareRobustCommand\biggint{\mathop{\char"2B63}\nolimits} +\DeclareRobustCommand\Biggint{\mathop{\char"2B64}\nolimits} +\DeclareRobustCommand\bigggint{\mathop{\char"2B65}\nolimits} + + +\renewcommand{\LaTeX}{L\kern-.75ex\raisebox{.7ex}{\textsc{a}}\kern-.1ex\hbox{T}\kern-.4ex\raisebox{-.5ex}{E}\kern-.3exX} + +\endinput
\ No newline at end of file diff --git a/macros/unicodetex/latex/fontsetup/fspkerkisot.sty b/macros/unicodetex/latex/fontsetup/fspkerkisot.sty new file mode 100644 index 0000000000..8315fa6f9e --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/fspkerkisot.sty @@ -0,0 +1,15 @@ +\RequirePackage{fontspec} +\defaultfontfeatures{Ligatures=TeX} + +\setmainfont[ItalicFont=Kerkis-Italic.otf, +BoldFont=Kerkis-Bold.otf, +BoldItalicFont=Kerkis-BoldItalic.otf,SmallCapsFont=Kerkis-SmallCaps.otf]{Kerkis.otf} + +\setsansfont[ItalicFont=KerkisSans-Italic.otf, +BoldFont=KerkisSans-Bold.otf, +BoldItalicFont=KerkisSans-BoldItalic.otf,SmallCapsFont=KerkisSans-SmallCaps.otf]{KerkisSans.otf} + +\RequirePackage{unicode-math} +\setmathfont{texgyrebonum-math.otf} + +\endinput
\ No newline at end of file diff --git a/macros/unicodetex/latex/fontsetup/fsplucidaot.sty b/macros/unicodetex/latex/fontsetup/fsplucidaot.sty new file mode 100644 index 0000000000..2287f48685 --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/fsplucidaot.sty @@ -0,0 +1,28 @@ +\RequirePackage{fontspec} +\setmainfont[% main font + UprightFont=LucidaBrightOT, + ItalicFont=LucidaBrightOT-Italic, + BoldFont=LucidaBrightOT-Demi, + BoldItalicFont=LucidaBrightOT-DemiItalic, + SmallCapsFeatures={Numbers=OldStyle}, + ]{LucidaBrightOT.otf} +\setsansfont[% + UprightFont=LucidaSansOT, + ItalicFont=LucidaSansOT-Italic, + BoldFont=LucidaSansOT-Demi, + BoldItalicFont=LucidaSansOT-DemiItalic, + SmallCapsFeatures={Numbers=OldStyle}, +]{LucidaSansOT.otf} +% +\setmonofont[% + UprightFont=LucidaSansTypewriterOT, + ItalicFont=LucidaSansTypewriterOT-Oblique, + BoldFont=LucidaSansTypewriterOT-Bold, + BoldItalicFont=LucidaSansTypewriterOT-BoldOblique, + SmallCapsFeatures={Numbers=OldStyle}, + ]{LucidaSansTypewriterOT.otf} +% support for OpenType math fonts: +\RequirePackage{unicode-math} +\setmathfont{LucidaBrightMathOT.otf} +\setmathfont[version=bold]{LucidaBrightMathOT-Demi.otf} + diff --git a/macros/unicodetex/latex/fontsetup/fspminion.sty b/macros/unicodetex/latex/fontsetup/fspminion.sty new file mode 100644 index 0000000000..f39448227f --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/fspminion.sty @@ -0,0 +1,20 @@ + + + +\RequirePackage{fontspec} +\defaultfontfeatures{Ligatures=TeX} +\setmainfont[SmallCapsFeatures={Numbers=OldStyle}]{Minion Pro} +\setsansfont[SmallCapsFeatures={Numbers=OldStyle}]{Myriad Pro} +\newfontfamily{\defaultfont}[SmallCapsFeatures={Numbers=OldStyle}]{Minion Pro} +\newfontfamily{\greekfont}[SmallCapsFont=fspmnscel]{Minion Pro} +\RequirePackage[Latin, Greek]{ucharclasses} +\setDefaultTransitions{\defaultfont}{} +\setTransitionsForLatin{\defaultfont}{} +\setTransitionsForGreek{\greekfont}{} + +\RequirePackage{unicode-math} +\setmathfont{STIX2Math.otf} +\setmathfont[range=\mathup/{num,latin,Latin,greek,Greek}]{Minion Pro} +\setmathfont[range=\mathbfup/{num,latin,Latin,greek,Greek}]{Minion Pro Bold} +\setmathfont[range=\mathit/{num,latin,Latin,greek,Greek}]{Minion Pro Italic} +\setmathfont[range=\mathbfit/{num,latin,Latin,greek,Greek}]{Minion Pro Bold Italic} diff --git a/macros/unicodetex/latex/fontsetup/fspmsgaramondot.sty b/macros/unicodetex/latex/fontsetup/fspmsgaramondot.sty new file mode 100644 index 0000000000..3d3907cb8b --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/fspmsgaramondot.sty @@ -0,0 +1,23 @@ +%\RequirePackage[no-math]{fontspec} +\RequirePackage{fontspec} +\defaultfontfeatures{Ligatures=TeX} +%\RequirePackage[garamond]{mathdesign} + + +\newfontfamily{\defaultfont}{Garamond} +\newfontfamily{\greekfont}{Garamond} + +\RequirePackage[Latin, Greek]{ucharclasses} +\setDefaultTransitions{\defaultfont}{} +\setTransitionsForLatin{\defaultfont}{} +\setTransitionsForGreek{\greekfont}{} + +\RequirePackage{unicode-math} +\setmathfont{Garamond-Math.otf} +\setmathfont[range=\mathup/{num,latin,Latin,greek,Greek}]{Garamond} +\setmathfont[range=\mathbfup/{num,latin,Latin,greek,Greek}]{Garamond Bold} +\setmathfont[range=\mathit/{num,latin,Latin,greek,Greek}]{Garamond Italic} +\setmathfont[range=\mathbfit/{num,latin,Latin,greek,Greek}]{Garamond Bold} + + +\endinput diff --git a/macros/unicodetex/latex/fontsetup/fspneoeulerot.sty b/macros/unicodetex/latex/fontsetup/fspneoeulerot.sty new file mode 100644 index 0000000000..725686c3a8 --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/fspneoeulerot.sty @@ -0,0 +1,41 @@ +\RequirePackage{fontspec} +\RequirePackage{unicode-math} +%\unimathsetup{math-style=upright} +\setmainfont[ItalicFont=cmunoti.otf, + BoldFont=cmunobx.otf, + BoldItalicFont=cmunobi.otf, + % RawFeature=+pnum,% variable width numbers +SmallCapsFeatures={Numbers=OldStyle}]{cmunorm.otf} +\defaultfontfeatures{Scale=MatchLowercase} +\setmathfont{LibertinusMath-Regular.otf} +\setmathfont[range={"0000-"0001,"0020-"007E, + "00A0,"00A7-"00A8,"00AC,"00AF,"00B1,"00B4-"00B5,"00B7, + "00D7,"00F7, + "0131, + "0237,"02C6-"02C7,"02D8-"02DA,"02DC, + "0300-"030C,"030F,"0311,"0323-"0325,"032E-"0332,"0338, + "0391-"0393,"0395-"03A1,"03A3-"03A8,"03B1-"03BB, + "03BD-"03C1,"03C3-"03C9,"03D1,"03D5-"03D6,"03F5, + "2016,"2018-"2019,"2021,"2026-"202C,"2032-"2037,"2044, + "2057,"20D6-"20D7,"20DB-"20DD,"20E1,"20EE-"20EF, + "210B-"210C,"210E-"2113,"2118,"211B-"211C,"2126-"2128, + "212C-"212D,"2130-"2131,"2133,"2135,"2190-"2199, + "21A4,"21A6,"21A9-"21AA,"21BC-"21CC,"21D0-"21D5, + "2200,"2202-"2209,"220B-"220C,"220F-"2213,"2215-"221E, + "2223,"2225,"2227-"222E,"2234-"2235,"2237-"223D, + "2240-"224C,"2260-"2269,"226E-"2279,"2282-"228B,"228E, + "2291-"2292,"2295-"2299,"22A2-"22A5,"22C0-"22C5, + "22DC-"22DD,"22EF,"22F0-"22F1, + "2308-"230B,"2320-"2321,"2329-"232A,"239B-"23AE, + "23DC-"23DF, + "27E8-"27E9,"27F5-"27FE,"2A0C,"2B1A, + "1D400-"1D433,"1D49C,"1D49E-"1D49F,"1D4A2,"1D4A5-"1D4A6, + "1D4A9-"1D4AC,"1D4AE-"1D4B5,"1D4D0-"1D4E9,"1D504-"1D505, + "1D507-"1D50A,"1D50D-"1D514,"1D516-"1D51C,"1D51E-"1D537, + "1D56C-"1D59F,"1D6A8-"1D6B8,"1D6BA-"1D6D2,"1D6D4-"1D6DD, + "1D6DF,"1D6E1,"1D7CE-"1D7D7 + }]{euler.otf} +\setmathfont[range=up/{greek,Greek}, script-features={}, sscript-features={} + ]{euler.otf} +\setmathfont[range=up/{latin,Latin,num}, script-features={}, sscript-features={} + ]{euler.otf} diff --git a/macros/unicodetex/latex/fontsetup/fspolddefault.sty b/macros/unicodetex/latex/fontsetup/fspolddefault.sty new file mode 100644 index 0000000000..1c52a8ff0c --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/fspolddefault.sty @@ -0,0 +1,251 @@ +%% (C) Antonis Tsolomitis, GPL3. +\RequirePackage{fontspec} +\RequirePackage{unicode-math} +\setmainfont[% +ItalicFont=NewCM10-Italic.otf,% +BoldFont=NewCM10-Bold.otf,% +BoldItalicFont=NewCM10-BoldItalic.otf,% +SlantedFont=NewCM10-Regular.otf,% +SlantedFeatures={FakeSlant=0.25}, +BoldSlantedFont=NewCM10-Bold.otf,% +BoldSlantedFeatures={FakeSlant=0.25}, +SmallCapsFeatures={Numbers=OldStyle}]{NewCM10-Regular.otf} + +\setsansfont[% +ItalicFont=NewCMSans10-Oblique.otf,% +BoldFont=NewCMSans10-Bold.otf,% +BoldItalicFont=NewCMSans10-BoldOblique.otf,% +SlantedFont=NewCMSans10-Oblique.otf,% +BoldSlantedFont=NewCMSans10-BoldOblique.otf,% +SmallCapsFeatures={Numbers=OldStyle}]{NewCMSans10-Regular.otf} + +\setmonofont[% +ItalicFont=NewCMMono10-Italic.otf,% +BoldFont=NewCMMono10-Bold.otf,% +BoldItalicFont=NewCMMono10-BoldOblique.otf,% +SlantedFont=NewCMMono10-Regular.otf,% +SlantedFeatures={FakeSlant=0.25}, +BoldSlantedFont=NewCMMono10-Bold.otf,% +BoldSlantedFeatures={FakeSlant=0.25}, +SmallCapsFeatures={Numbers=OldStyle}]{NewCMMono10-Regular.otf} + +\setmathfont{NewCMMath-Regular.otf} + +\newcommand{\tttextsc}[1]{{\ttscshape#1}} +% +\newcommand{\prosgegrammeni}{\addfontfeature{StylisticSet=1}} +\newcommand{\textprosgegrammeni}[1]{{\prosgegrammeni#1}} +% +\newfontfamily{\ivbce}[StylisticSet=2]{NewCMSans10-Regular.otf} +\newcommand{\textivbce}[1]{{\ivbce#1}} +% +\newfontfamily{\ivbcealt}[StylisticSet=3]{NewCMSans10-Regular.otf} +\newcommand{\textivbcealt}[1]{{\ivbcealt#1}} +% +\newfontfamily{\vibce}[StylisticSet=4]{NewCMSans10-Regular.otf} +\newcommand{\textvibce}[1]{{\vibce#1}} +% +%% math (upright) sans Greek +\newcommand{\msansAlpha}{\char"E000} +\newcommand{\msansBeta}{\char"E001} +\newcommand{\msansGamma}{\char"E002} +\newcommand{\msansDelta}{\char"E003} +\newcommand{\msansEpsilon}{\char"E004} +\newcommand{\msansZeta}{\char"E005} +\newcommand{\msansEta}{\char"E006} +\newcommand{\msansTheta}{\char"E007} +\newcommand{\msansIota}{\char"E008} +\newcommand{\msansKappa}{\char"E009} +\newcommand{\msansLambda}{\char"E00A} +\newcommand{\msansMu}{\char"E00B} +\newcommand{\msansNu}{\char"E00C} +\newcommand{\msansXi}{\char"E00D} +\newcommand{\msansOmicron}{\char"E00E} +\newcommand{\msansPi}{\char"E00F} +\newcommand{\msansRho}{\char"E010} +\newcommand{\msansSigma}{\char"E011} +\newcommand{\msansTau}{\char"E012} +\newcommand{\msansUpsilon}{\char"E013} +\newcommand{\msansPhi}{\char"E014} +\newcommand{\msansChi}{\char"E015} +\newcommand{\msansPsi}{\char"E016} +\newcommand{\msansOmega}{\char"E017} +\newcommand{\msansalpha}{\char"E018} +\newcommand{\msansbeta}{\char"E019} +\newcommand{\msansgamma}{\char"E01A} +\newcommand{\msansdelta}{\char"E01B} +\newcommand{\msansepsilon}{\char"E01C} +\newcommand{\msanszeta}{\char"E01D} +\newcommand{\msanseta}{\char"E01E} +\newcommand{\msanstheta}{\char"E01F} +\newcommand{\msansiota}{\char"E020} +\newcommand{\msanskappa}{\char"E021} +\newcommand{\msanslambda}{\char"E022} +\newcommand{\msansmu}{\char"E023} +\newcommand{\msansnu}{\char"E024} +\newcommand{\msansxi}{\char"E025} +\newcommand{\msansomicron}{\char"E026} +\newcommand{\msanspi}{\char"E027} +\newcommand{\msansrho}{\char"E028} +\newcommand{\msansvarsigma}{\char"E029} +\newcommand{\msanssigma}{\char"E02A} +\newcommand{\msanstau}{\char"E02B} +\newcommand{\msansupsilon}{\char"E02C} +\newcommand{\msansphi}{\char"E02D} +\newcommand{\msanschi}{\char"E02E} +\newcommand{\msanspsi}{\char"E02F} +\newcommand{\msansomega}{\char"E030} +\newcommand{\msansvarepsilon}{\char"E031} +% math italic sans Greek +\newcommand{\mitsansAlpha}{\char"E041} +\newcommand{\mitsansBeta}{\char"E042} +\newcommand{\mitsansGamma}{\char"E043} +\newcommand{\mitsansDelta}{\char"E044} +\newcommand{\mitsansEpsilon}{\char"E045} +\newcommand{\mitsansZeta}{\char"E046} +\newcommand{\mitsansEta}{\char"E047} +\newcommand{\mitsansTheta}{\char"E048} +\newcommand{\mitsansIota}{\char"E049} +\newcommand{\mitsansKappa}{\char"E04A} +\newcommand{\mitsansLambda}{\char"E04B} +\newcommand{\mitsansMu}{\char"E04C} +\newcommand{\mitsansNu}{\char"E04D} +\newcommand{\mitsansXi}{\char"E04E} +\newcommand{\mitsansOmicron}{\char"E04F} +\newcommand{\mitsansPi}{\char"E050} +\newcommand{\mitsansRho}{\char"E051} +\newcommand{\mitsansSigma}{\char"E052} +\newcommand{\mitsansTau}{\char"E053} +\newcommand{\mitsansUpsilon}{\char"E054} +\newcommand{\mitsansPhi}{\char"E055} +\newcommand{\mitsansChi}{\char"E056} +\newcommand{\mitsansPsi}{\char"E057} +\newcommand{\mitsansOmega}{\char"E058} +\newcommand{\mitsansalpha}{\char"E059} +\newcommand{\mitsansbeta}{\char"E05A} +\newcommand{\mitsansgamma}{\char"E05B} +\newcommand{\mitsansdelta}{\char"E05C} +\newcommand{\mitsansepsilon}{\char"E05D} +\newcommand{\mitsanszeta}{\char"E05E} +\newcommand{\mitsanseta}{\char"E05F} +\newcommand{\mitsanstheta}{\char"E060} +\newcommand{\mitsansiota}{\char"E061} +\newcommand{\mitsanskappa}{\char"E062} +\newcommand{\mitsanslambda}{\char"E063} +\newcommand{\mitsansmu}{\char"E064} +\newcommand{\mitsansnu}{\char"E065} +\newcommand{\mitsansxi}{\char"E066} +\newcommand{\mitsansomicron}{\char"E067} +\newcommand{\mitsanspi}{\char"E068} +\newcommand{\mitsansrho}{\char"E069} +\newcommand{\mitsansvarsigma}{\char"E06A} +\newcommand{\mitsanssigma}{\char"E06B} +\newcommand{\mitsanstau}{\char"E06C} +\newcommand{\mitsansupsilon}{\char"E06D} +\newcommand{\mitsansphi}{\char"E06E} +\newcommand{\mitsanschi}{\char"E06F} +\newcommand{\mitsanspsi}{\char"E070} +\newcommand{\mitsansomega}{\char"E071} +\newcommand{\mitsansvarepsilon}{\char"E072} +% Ancient Greek Numerals u10140-u1018E +\newcommand{\atticonequarter}{\char"10140} +\newcommand{\atticonehalf}{\char"10141} +\newcommand{\atticonedrachma}{\char"10142} +\newcommand{\atticfive}{\char"10143} +\newcommand{\atticfifty}{\char"10144} +\newcommand{\atticfivehundred}{\char"10145} +\newcommand{\atticfivethousand}{\char"10146} +\newcommand{\atticfiftythousand}{\char"10147} +\newcommand{\atticfivetalents}{\char"10148} +\newcommand{\attictentalents}{\char"10149} +\newcommand{\atticfiftytalents}{\char"1014A} +\newcommand{\atticonehundredtalents}{\char"1014B} +\newcommand{\atticfivehundredtalents}{\char"1014C} +\newcommand{\atticonethousandtalents}{\char"1014D} +\newcommand{\atticfivethousandtalents}{\char"1014E} +\newcommand{\atticfivestaters}{\char"1014F} +\newcommand{\attictenstaters}{\char"10150} +\newcommand{\atticfiftystaters}{\char"10151} +\newcommand{\atticonehundredstaters}{\char"10152} +\newcommand{\atticfivehundredstaters}{\char"10153} +\newcommand{\atticonethousandstaters}{\char"10154} +\newcommand{\attictenthousandstaters}{\char"10155} +\newcommand{\atticfiftythousandstaters}{\char"10156} +\newcommand{\attictenmnas}{\char"10157} +\newcommand{\heraleumoneplethron}{\char"10158} +\newcommand{\thespianone}{\char"10159} +\newcommand{\ermionianone}{\char"1015A} +\newcommand{\epidauriantwo}{\char"1015B} +\newcommand{\thespiantwo}{\char"1015C} +\newcommand{\cyrenaictwodrachmas}{\char"1015D} +\newcommand{\epidauriantwodrachmas}{\char"1015E} +\newcommand{\troezenianfive}{\char"1015F} +\newcommand{\troezenianten}{\char"10160} +\newcommand{\troezeniantenalt}{\char"10161} +\newcommand{\hermionianten}{\char"10162} +\newcommand{\messenianten}{\char"10163} +\newcommand{\thespianten}{\char"10164} +\newcommand{\thespianthirty}{\char"10165} +\newcommand{\troezenianfifty}{\char"10166} +\newcommand{\troezenianfiftyalt}{\char"10167} +\newcommand{\hermionianfifty}{\char"10168} +\newcommand{\thespianfifty}{\char"10169} +\newcommand{\thespianonehundred}{\char"1016A} +\newcommand{\thespianthreehundred}{\char"1016B} +\newcommand{\epidaurianfivehundred}{\char"1016C} +\newcommand{\troezenianfivehundred}{\char"1016D} +\newcommand{\thespianfivehundred}{\char"1016E} +\newcommand{\carystianfivehundred}{\char"1016F} +\newcommand{\naxianfivehundred}{\char"10170} +\newcommand{\thespianonethousand}{\char"10171} +\newcommand{\thespianfivethousand}{\char"10172} +\newcommand{\delphicfivemnas}{\char"10173} +\newcommand{\stratianfiftymnas}{\char"10174} +\newcommand{\greekonehalfsign}{\char"10175} +\newcommand{\greekonehalfsignalt}{\char"10176} +\newcommand{\greektwothirdssign}{\char"10177} +\newcommand{\greekthreequarterssign}{\char"10178} +\newcommand{\greekyearsign}{\char"10179} +\newcommand{\greektalentsign}{\char"1017A} +\newcommand{\greekdrachmasign}{\char"1017B} +\newcommand{\greekobolsign}{\char"1017C} +\newcommand{\greektwoobolssign}{\char"1017D} +\newcommand{\greekthreeobolssign}{\char"1017E} +\newcommand{\greekfourobolssign}{\char"1017F} +\newcommand{\greekfiveobolssign}{\char"10180} +\newcommand{\greekmetretessign}{\char"10181} +\newcommand{\greekkyathosbasesign}{\char"10182} +\newcommand{\greeklytrasign}{\char"10183} +\newcommand{\greekounkiasign}{\char"10184} +\newcommand{\greekxestessign}{\char"10185} +\newcommand{\greekartabesign}{\char"10186} +\newcommand{\greekarourasign}{\char"10187} +\newcommand{\greekgrammasign}{\char"10188} +\newcommand{\greektryblionbasesign}{\char"10189} +\newcommand{\greekzerosign}{\char"1018A} +\newcommand{\greekonequartersign}{\char"1018B} +\newcommand{\greeksinusoidsign}{\char"1018C} +\newcommand{\greekindictionsign}{\char"1018D} +\newcommand{\nomismasign}{\char"1018E} +% +% some math symbols +\DeclareRobustCommand\nrightrightarrows{\mathrel{\char"E033}} +\DeclareRobustCommand\nleftleftarrows{\mathrel{\char"E032}} +% +% select ss02 lookup table for IPA symbols +\newfontfamily{\ipatext}[StylisticSet=5,% +BoldFont=NewCM10-Bold.otf,% +SlantedFont=NewCM10-Regular.otf,% +SlantedFeatures={FakeSlant=0.25}, +BoldSlantedFont=NewCM10-Bold.otf,% +BoldSlantedFeatures={FakeSlant=0.25}, +SmallCapsFeatures={Numbers=OldStyle}]{NewCM10-Regular.otf} +\newcommand{\textipa}[1]{{\ipatext#1}} +\newfontfamily{\ipatextsans}[StylisticSet=5,% +ItalicFont=NewCMSans10-Oblique.otf,% +BoldFont=NewCMSans10-Bold.otf,% +BoldItalicFont=NewCMSans10-BoldOblique.otf,% +SlantedFont=NewCMSans10-Oblique.otf,% +BoldSlantedFont=NewCMSans10-BoldOblique.otf,% +SmallCapsFeatures={Numbers=OldStyle}]{NewCMSans10-Regular.otf} +\newcommand{\textsansipa}[1]{{\ipatextsans#1}} diff --git a/macros/unicodetex/latex/fontsetup/fsppalatinoot.sty b/macros/unicodetex/latex/fontsetup/fsppalatinoot.sty new file mode 100644 index 0000000000..3487754dde --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/fsppalatinoot.sty @@ -0,0 +1,17 @@ +\RequirePackage{fontspec} +\defaultfontfeatures{Ligatures=TeX} + +\newfontfamily{\defaultfont}[SmallCapsFeatures={Numbers=OldStyle}]{Palatino Linotype} + +\newfontfamily{\greekfont}[SmallCapsFont=fsplpscel]{Palatino Linotype} + +\RequirePackage[Latin, Greek]{ucharclasses} +\setDefaultTransitions{\defaultfont}{} +\setTransitionsForLatin{\defaultfont}{} +\setTransitionsForGreek{\greekfont}{} + +\RequirePackage{unicode-math} +\setmathfont{texgyrepagella-math.otf} + + +\endinput diff --git a/macros/unicodetex/latex/fontsetup/fspstixtwoot.sty b/macros/unicodetex/latex/fontsetup/fspstixtwoot.sty new file mode 100644 index 0000000000..f38c44654d --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/fspstixtwoot.sty @@ -0,0 +1,17 @@ +\RequirePackage{fontspec} +\defaultfontfeatures{Ligatures=TeX} + + +\setmainfont[% + Script=Default,% make small caps work for both latn and grek + ItalicFont=STIX2Text-Italic.otf, + BoldFont=STIX2Text-Bold.otf, + BoldItalicFont=STIX2Text-BoldItalic.otf, + % RawFeature=+pnum,% variable width numbers +SmallCapsFeatures={Numbers=OldStyle}]{STIX2Text-Regular.otf} + +\RequirePackage{unicode-math} +\setmathfont{STIX2Math.otf} + + +\endinput diff --git a/macros/unicodetex/latex/fontsetup/fsptimesot.sty b/macros/unicodetex/latex/fontsetup/fsptimesot.sty new file mode 100644 index 0000000000..772be2b633 --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/fsptimesot.sty @@ -0,0 +1,16 @@ +\RequirePackage{fontspec} +\defaultfontfeatures{Ligatures=TeX} + +\setmainfont[ItalicFont=FreeSerifbItalic.otf, +BoldFont=FreeSerifbBold.otf, +BoldItalicFont=FreeSerifbBoldItalic.otf,SmallCapsFont=FreeSerifb-SmallCapsAlt.otf]{FreeSerifb.otf} + +\RequirePackage{unicode-math} +%\setmathfont{XITSMath-Regular.otf} +\setmathfont{STIX2Math.otf} +\setmathfont[range=\mathup/{num,latin,Latin,greek,Greek}]{FreeSerifb.otf} +\setmathfont[range=\mathbfup/{num,latin,Latin,greek,Greek}]{FreeSerifbBold.otf} +\setmathfont[range=\mathit/{num,latin,Latin,greek,Greek}]{FreeSerifbItalic.otf} +\setmathfont[range=\mathbfit/{num,latin,Latin,greek,Greek}]{FreeSerifbBoldItalic.otf} + +\endinput diff --git a/macros/unicodetex/latex/fontsetup/system-install-fonts/fsplpscel.otf b/macros/unicodetex/latex/fontsetup/system-install-fonts/fsplpscel.otf Binary files differnew file mode 100644 index 0000000000..b505b6b96f --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/system-install-fonts/fsplpscel.otf diff --git a/macros/unicodetex/latex/fontsetup/system-install-fonts/fspmnscel.otf b/macros/unicodetex/latex/fontsetup/system-install-fonts/fspmnscel.otf Binary files differnew file mode 100644 index 0000000000..c0e233f43c --- /dev/null +++ b/macros/unicodetex/latex/fontsetup/system-install-fonts/fspmnscel.otf |