summaryrefslogtreecommitdiff
path: root/fonts/erewhon-math/unimath-erewhon.ltx
diff options
context:
space:
mode:
Diffstat (limited to 'fonts/erewhon-math/unimath-erewhon.ltx')
-rw-r--r--fonts/erewhon-math/unimath-erewhon.ltx66
1 files changed, 38 insertions, 28 deletions
diff --git a/fonts/erewhon-math/unimath-erewhon.ltx b/fonts/erewhon-math/unimath-erewhon.ltx
index 048a79a593..8708359552 100644
--- a/fonts/erewhon-math/unimath-erewhon.ltx
+++ b/fonts/erewhon-math/unimath-erewhon.ltx
@@ -1,20 +1,25 @@
%%^^A%% unimath-symbols.ltx -- part of UNICODE-MATH <wspr.io/unicode-math>
%%^^A%% Listing of Unicode mathematics symbols using a variety of fonts.
-%% Changes (df): XITS replaced by Erewhon.
+% !TEX TS-program = LuaLaTeX
-%!TEX TS-program = LuaLaTeX
+%% Changes (df): XITS replaced by Erewhon, Fira replaced by Libertinus,
+%% Garamond added.
+%% Changes by David Carlisle: https://github.com/wspr/unicode-math/issues/570
-%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% SYMBOLS DEFINED BY UNICODE-MATH
-%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[final]{article}
\makeatletter
-\usepackage{ragged2e,setspace,booktabs,catchfile,shortvrb,geometry,metalogo,textcomp,longtable,tabu,hyperref}
+\usepackage{ragged2e,setspace,booktabs,catchfile,shortvrb,geometry,metalogo,textcomp,longtable,array,hyperref}
-\geometry{margin=3cm}
+\usepackage{ninecolors}
+\NineColors{saturation=high}
+
+\geometry{margin=24mm}
\hypersetup{colorlinks,linkcolor=black}
\def\cmd#1{\texttt{\textbackslash\expandafter\@gobble\string#1}}
@@ -22,7 +27,7 @@
\usepackage{fontspec}
\setmainfont{texgyrepagella}%
[
- Extension = .otf,
+ Extension = .otf ,
UprightFont = *-regular,
ItalicFont = *-italic,
BoldFont = *-bold,
@@ -52,31 +57,32 @@
}
\ExplSyntaxOff
-\defmathfont{lm}{latinmodern-math.otf}{CC6666}{L}
-%\defmathfont{xits}{XITSMath-Regular.otf}{6666CC}{X}
-\defmathfont{stix}{STIXTwoMath-Regular.otf}{66CC66}{S}
-\defmathfont{erewhon}{Erewhon-Math.otf}{AA6666}{E}
-\defmathfont{pagella}{texgyrepagella-math.otf}{66CCCC}{P}
-\defmathfont{dejavu}{texgyredejavu-math.otf}{AACC66}{D}
-%\defmathfont{fira}{FiraMath-Regular.otf}{AA66CC}{F}
+\defmathfont{lm}{latinmodern-math.otf}{red5}{M}
+\defmathfont{stix}{STIXTwoMath-Regular.otf}{green5}{S}
+\defmathfont{erewhon}{Erewhon-Math.otf}{brown5}{E}
+\defmathfont{pagella}{texgyrepagella-math.otf}{cyan5}{P}
+\defmathfont{dejavu}{texgyredejavu-math.otf}{violet5}{D}
+\defmathfont{libertinus}{LibertinusMath-Regular.otf}{yellow5}{L}
+\defmathfont{garamond}{Garamond-Math.otf}{magenta5}{G}
\def\INPUT{\input{unicode-math-table.tex}}
\def\TABLE{%
\par\noindent
-\begin{longtabu}[l]{@{}l *{\Nfonts}{c} lX[l]@{}}
+\setlength\tabcolsep{5pt}%
+\begin{longtable}[l]{@{}l *{\Nfonts}{c} lp{100pt}@{}}
\toprule
- \textsc{usv} & \Llm & \Lstix & \Lerewhon & \Lpagella & \Ldejavu %& \Lfira
- & Macro & Description \\
+ \textsc{usv} & \Llm & \Lstix & \Lerewhon & \Lpagella & \Ldejavu & \Llibertinus
+ & \Lgaramond & Macro & Description \\
\midrule \endhead
\INPUT\\
\bottomrule
-\end{longtabu}
+\end{longtable}
}
\makeatletter
\def\USV#1{\footnotesize\scshape\MakeLowercase{u+\@gobble#1}}
\makeatother
\def\CMD#1{\footnotesize\cmd#1}
-\def\DESC#1{%
+\def\DESC#1{\vspace{-6pt}%
\begin{spacing}{0.5}
\RaggedRight\scriptsize #1%
\end{spacing}
@@ -99,7 +105,8 @@
\SYMB{#2}{erewhon}{#1} &
\SYMB{#2}{pagella}{#1} &
\SYMB{#2}{dejavu}{#1} &
-% \SYMB{#2}{fira}{#1} &
+ \SYMB{#2}{libertinus}{#1} &
+ \SYMB{#2}{garamond}{#1} &
\CMD{#2}
\tl_if_in:NnT \PLAIN {#2}
{
@@ -171,15 +178,19 @@ to print every symbol defined by the \textsf{unicode-math}
package.
Use this document to find the command name or the Unicode glyph slot for
a symbol that you wish to use.
-The following fonts are shown: (with approximate symbol counts)
+The following fonts are shown: (with approximate symbol counts)%
+\footnote{Be aware that 48 lowercase latin letters are missing in
+ \textit{Script} and \textit{BoldScript} shapes for both Latin Modern Math
+ and Erewhon Math, compared to the other four fonts.}
\begin{itemize}
\item[\Llm] \mathversion{lm} $\mathup{Latin\ Modern\ Math}$ (\ref{count:lm})
%\item[\Lxits] \mathversion{xits} $\mathup{XITS\ Math}$ (\ref{count:xits})
-\item[\Lstix] \mathversion{stix} $\mathup{STIX\ Math\ Two}$ (\ref{count:stix})
+\item[\Lstix] \mathversion{stix} $\mathup{STIX\ Two\ Math}$ (\ref{count:stix})
\item[\Lerewhon] \mathversion{erewhon} $\mathup{Erewhon\ Math}$ (\ref{count:erewhon})
\item[\Lpagella] \mathversion{pagella} $\mathup{TeX\ Gyre\ Pagella\ Math}$ (\ref{count:pagella})
\item[\Ldejavu] \mathversion{dejavu} $\mathup{DejaVu\ Math\ TeX\ Gyre}$ (\ref{count:dejavu})
-%\item[\Lfira] \mathversion{fira} $\mathup{Fira\ Math}$ (\ref{count:fira})
+\item[\Llibertinus] \mathversion{libertinus} $\mathup{Libertinus\ Math}$ (\ref{count:libertinus})
+\item[\Lgaramond] \mathversion{garamond} $\mathup{Garamond\ Math}$ (\ref{count:garamond})
\end{itemize}
Symbols defined in Plain \TeX\ are indicated with {\color[gray]{0.6} \textsuperscript{\sffamily (p)}} after their macro name.
\LaTeX\ follows Plain \TeX, but defines a handful more, indicated with {\color[gray]{0.6} \textsuperscript{\sffamily (l)}}.
@@ -275,9 +286,7 @@ Note that accents will only be properly placed if used with an OpenType font wit
\SHOW\mathbotaccent
\endgroup
-
-%Added (df)
-\newpage
+% Added (df)
\section{Bottom accents wide, \cmd\mathbotaccentwide}
\begingroup
\def\SYMB#1#2#3{%
@@ -290,6 +299,7 @@ Note that accents will only be properly placed if used with an OpenType font wit
\SHOW\mathbotaccentwide
\endgroup
+\clearpage
\section{Big operators, \cmd\mathop}
Of the operators shown below, a subset need to be flagged by \textsf{unicode-math} for \cmd\nolimits\ adjustments.
@@ -305,7 +315,7 @@ The limits behaviour as specified by \textsf{unicode-math} are shown with grey s
\SHOW\mathop
\endgroup
-\clearpage
+%\clearpage
\section{Binary relations, \cmd\mathbin}
\SHOW\mathbin
@@ -481,7 +491,7 @@ The limits behaviour as specified by \textsf{unicode-math} are shown with grey s
\TABLE
\FINISH
-
+\mbox{}
\end{document}
\endinput