summaryrefslogtreecommitdiff
path: root/fonts/kpfonts-otf/doc/unimath-kpfonts.ltx
diff options
context:
space:
mode:
Diffstat (limited to 'fonts/kpfonts-otf/doc/unimath-kpfonts.ltx')
-rw-r--r--fonts/kpfonts-otf/doc/unimath-kpfonts.ltx68
1 files changed, 35 insertions, 33 deletions
diff --git a/fonts/kpfonts-otf/doc/unimath-kpfonts.ltx b/fonts/kpfonts-otf/doc/unimath-kpfonts.ltx
index 33761129b6..cc08939821 100644
--- a/fonts/kpfonts-otf/doc/unimath-kpfonts.ltx
+++ b/fonts/kpfonts-otf/doc/unimath-kpfonts.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 Kpfonts, Fira replaced by Libertinus,
+%% Palatino replaced by Termes, Erewhon and 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,35 +57,33 @@
}
\ExplSyntaxOff
-\defmathfont{lm}{latinmodern-math.otf}{CC6666}{LM}
-%\defmathfont{xits}{XITSMath-Regular.otf}{6666CC}{X}
-\defmathfont{stix}{STIXTwoMath-Regular.otf}{66CC66}{S}
-\defmathfont{erewhon}{Erewhon-Math.otf}{AA6666}{E}
-\defmathfont{kpfonts}{KpMath-Regular.otf}{AA66CC}{K}
-%\defmathfont{kpfonts}{KpMath-Light.otf}{AA66CC}{K}
-\defmathfont{termes}{texgyretermes-math.otf}{66CCCC}{T}
-%\defmathfont{dejavu}{texgyredejavu-math.otf}{AACC66}{D}
-\defmathfont{garamond}{Garamond-Math.otf}{AACC66}{G}
-%\defmathfont{fira}{FiraMath-Regular.otf}{AA66CC}{F}
-\defmathfont{libertinus}{LibertinusMath-Regular.otf}{AA66CC}{Li}
+\defmathfont{lm}{latinmodern-math.otf}{red5}{M}
+\defmathfont{stix}{STIXTwoMath-Regular.otf}{green5}{S}
+\defmathfont{erewhon}{Erewhon-Math.otf}{brown5}{E}
+\defmathfont{kpfonts}{KpMath-Regular.otf}{cyan5}{K}
+%\defmathfont{kpfonts}{KpMath-Light.otf}{cyan5}{K}
+\defmathfont{termes}{texgyretermes-math.otf}{violet5}{T}
+\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 & \Lkpfonts & \Ltermes & \Lgaramond & \Llibertinus
- & Macro & Description \\
+ \textsc{usv} & \Llm & \Lstix & \Lerewhon & \Lkpfonts & \Ltermes & \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}
@@ -103,8 +106,8 @@
\SYMB{#2}{erewhon}{#1} &
\SYMB{#2}{kpfonts}{#1} &
\SYMB{#2}{termes}{#1} &
- \SYMB{#2}{garamond}{#1} &
\SYMB{#2}{libertinus}{#1} &
+ \SYMB{#2}{garamond}{#1} &
\CMD{#2}
\tl_if_in:NnT \PLAIN {#2}
{
@@ -183,8 +186,8 @@ The following fonts are shown: (with approximate symbol counts)
\item[\Lerewhon] \mathversion{erewhon} $\mathup{Erewhon\ Math}$ (\ref{count:erewhon})
\item[\Lkpfonts] \mathversion{kpfonts} $\mathup{KpMath\ Regular}$ (\ref{count:kpfonts})
\item[\Ltermes] \mathversion{termes} $\mathup{TeX\ Gyre\ Termes\ Math}$ (\ref{count:termes})
-\item[\Lgaramond] \mathversion{garamond} $\mathup{Garamond\ Math}$ (\ref{count:garamond})
\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)}}.
@@ -255,19 +258,17 @@ Note that accents will only be properly placed if used with an OpenType font wit
\SHOW\mathaccent
\endgroup
-\section{Accents, \cmd\mathaccent}
-
-Note that accents will only be properly placed if used with an OpenType font with the necessary information.
-
+% Added (df)
+\section{Accents wide, \cmd\mathaccentwide}
\begingroup
\def\SYMB#1#2#3{%
\expandafter\iffontchar\csname#2\endcsname #3\relax
\refstepcounter{#2}%
\mathversion{#2}%
- $\displaystyle#1 \mitx$%
+ $\displaystyle#1 {\mitx+\mity}$%
\fi
}
-\SHOW\mathaccent
+\SHOW\mathaccentwide
\endgroup
\section{Bottom accents, \cmd\mathbotaccent}
@@ -295,6 +296,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.
@@ -310,7 +312,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
@@ -486,7 +488,7 @@ The limits behaviour as specified by \textsf{unicode-math} are shown with grey s
\TABLE
\FINISH
-
+\mbox{}
\end{document}
\endinput