| 1 |
\DocumentMetadata{pdfstandard={A-4f,UA-2}, lang=en-GB} |
| 2 |
\documentclass[a4paper,12pt,british]{scrartcl} |
| 3 |
|
| 4 |
\usepackage{mathtools, array, varioref} |
| 5 |
\usepackage{babel} |
| 6 |
\usepackage{varioref} |
| 7 |
\usepackage{fourier-orns} |
| 8 |
\usepackage{euler-math} |
| 9 |
\setmainfont{cmunorm.otf} |
| 10 |
[BoldFont = cmunobx.otf , |
| 11 |
ItalicFont = cmunoti.otf , |
| 12 |
BoldItalicFont = cmunobi.otf |
| 13 |
] |
| 14 |
\setsansfont{Cabin}[Scale=MatchLowercase] |
| 15 |
\setmonofont{Inconsolatazi4}[Scale=MatchLowercase,StylisticSet={2,3}] |
| 16 |
\usepackage{shortvrb} |
| 17 |
\MakeShortVerb{\|} |
| 18 |
\usepackage{subfig} |
| 19 |
\captionsetup[subtable]{position=top} |
| 20 |
\usepackage{realscripts} |
| 21 |
\usepackage{microtype} |
| 22 |
\usepackage{hyperref} |
| 23 |
\hypersetup{pdftitle={Euler-Math User’s Guide}, |
| 24 |
pdfauthor={Daniel FLIPO}, |
| 25 |
bookmarksopen, |
| 26 |
colorlinks |
| 27 |
} |
| 28 |
\newcommand*{\hlabel}[1]{\phantomsection\label{#1}} |
| 29 |
|
| 30 |
\newcommand*{\NEOTF}{Euler~Math} |
| 31 |
\newcommand*{\pkg}[1]{\texttt{#1}} |
| 32 |
\newcommand*{\file}[1]{\texttt{#1}} |
| 33 |
\newcommand*{\ttbold}[1]{\texttt{\textbf{#1}}} |
| 34 |
\newcommand*{\opt}[1]{\texttt{#1}} |
| 35 |
\newcommand*{\cmd}[1]{\texttt{\textbackslash #1}}\newcommand*{\showtchar}[1]{\cmd{#1}~\csname #1\endcsname} |
| 36 |
\newcommand*{\showmchar}[1]{\cmd{#1}~$(\csname #1\endcsname)$} |
| 37 |
\newcommand*{\showmchardollar}[1]{\texttt{\$\cmd{#1}\$}~$(\csname #1\endcsname)$} |
| 38 |
|
| 39 |
\renewcommand{\labelitemi}{\lefthand} |
| 40 |
|
| 41 |
\title{Euler Math font, OTF version} |
| 42 |
\author{Daniel Flipo \\ \texttt{[email protected]}} |
| 43 |
|
| 44 |
\newcommand*{\version}{0.75} |
| 45 |
|
| 46 |
\begin{document} |
| 47 |
\maketitle |
| 48 |
|
| 49 |
\section{What is \NEOTF{}?} |
| 50 |
|
| 51 |
\NEOTF{} is a fork of the Euler project initiated by Khaled Hosny in 2009 |
| 52 |
and abandoned in 2016% |
| 53 |
\footnote{See \url{https://github.com/aliftype/euler-otf}}. |
| 54 |
The original font name `Neo~Euler’, has been changed to `Euler~Math’, the file |
| 55 |
name is now \file{Euler-Math.otf}. |
| 56 |
|
| 57 |
\file{Euler-Math.otf} is an OpenType version of Hermann Zapf’s Euler maths |
| 58 |
font, as the original font it contains three alphabets $Euler Roman$, |
| 59 |
$\symscr{SCRIPT}$ and $\symfrak{Euler Fraktur}$ (none of them being suitable |
| 60 |
for typesetting text) and has some specificities: |
| 61 |
\begin{itemize} |
| 62 |
\item it is an \emph{upright} maths font, Latin and Greek letters are |
| 63 |
\emph{not available} in italic or bold italic shape (only upright and bold) ; |
| 64 |
\item integral symbols are upright too; |
| 65 |
\item all inequalities symbols are \emph{slanted}, so \cmd{leq} and geq are |
| 66 |
printed as $\leq$ and $\geq$ (same as \cmd{leqslant} and \cmd{geqslant}). |
| 67 |
\end{itemize} |
| 68 |
|
| 69 |
\NEOTF{} requires LuaTeX or XeTeX as engine and the \pkg{unicode-math} package% |
| 70 |
\footnote{Please read the documentation \file{unicode-math.pdf}.}. |
| 71 |
|
| 72 |
Coverage: currently, all Plain, LaTeX and AMS maths symbols are provided; |
| 73 |
sans-serif (Latin, Greek, digits) and typewriter (Latin, digits) defaults |
| 74 |
are included. |
| 75 |
|
| 76 |
Please note that the current version (\version) is \emph{experimental, |
| 77 |
do expect metrics and glyphs to change} until version 1.0 is reached. |
| 78 |
Comments, suggestions and bug reports are welcome! |
| 79 |
|
| 80 |
\pagebreak[4] |
| 81 |
\section{Usage} |
| 82 |
|
| 83 |
\subsection{Calling \cmd{setmathfont}} |
| 84 |
|
| 85 |
A basic call for \NEOTF{} would be: |
| 86 |
\begin{verbatim} |
| 87 |
\usepackage[math-style=upright]{unicode-math} |
| 88 |
\setmathfont{Euler-Math.otf} % Call by file name or |
| 89 |
\setmathfont{Euler Math} % Call by font name or |
| 90 |
\end{verbatim} |
| 91 |
this loads \NEOTF{} as maths font% |
| 92 |
\footnote{Both calls work equally well with LuaTeX; with XeTeX a call by font |
| 93 |
name will fail unless the font is declared as a \emph{system font}.} |
| 94 |
with the default options, see subsections~\ref{ssection-cv}, |
| 95 |
\ref{ssection-ss} and~\ref{ssec-other-features} for customisation. |
| 96 |
|
| 97 |
Please note that the three sets of text fonts have to be chosen separately. |
| 98 |
|
| 99 |
\subsection{Calling \pkg{euler-math.sty} (recommended)} |
| 100 |
|
| 101 |
As an alternative to load \NEOTF{} you can type:\\[.5\baselineskip] |
| 102 |
\verb+\usepackage{euler-math}+\\[.5\baselineskip] |
| 103 |
\verb+\usepackage[ +\textit{options} |
| 104 |
\footnote{Possible \textit{options} are \opt{Scale=} or any of the options |
| 105 |
described in sections \ref{ssection-cv}, \ref{ssection-ss} and |
| 106 |
\ref{ssec-other-features}.}% |
| 107 |
\verb+ ]{euler-math}+\\[.5\baselineskip] |
| 108 |
it loads \pkg{unicode-math} with the \opt{math-style=upright} option and |
| 109 |
sets \NEOTF{} as maths font and does a bit more: |
| 110 |
\begin{enumerate} |
| 111 |
\item it checks at \verb+\begin{document}+ if packages \pkg{amssymb} or |
| 112 |
\pkg{latexsym} are loaded and issues warnings in case they are; |
| 113 |
\item it provides aliases for glyphs named differently in Unicode, so that |
| 114 |
\pkg{latexsym} or AMS names are also available; |
| 115 |
\item it defines some specific maths characters \showmchar{varemptyset}, etc. |
| 116 |
\end{enumerate} |
| 117 |
|
| 118 |
The \pkg{euler-math.sty} package is meant to replace the \pkg{eulervm.sty} |
| 119 |
package for users switching from pdfLaTeX to LuaLaTeX or XeLaTeX. |
| 120 |
It does not interfere with text fonts which have to be chosen separately. |
| 121 |
|
| 122 |
\section{What is provided?} |
| 123 |
|
| 124 |
\NEOTF{} provides all glyphs available in the \pkg{amssymb} and \pkg{latexsym} |
| 125 |
packages and many more, f.i. lots of extensible accents and arrows. |
| 126 |
Therefore, the latter two packages \emph{should not} be loaded as they might |
| 127 |
override \NEOTF{} glyphs. |
| 128 |
|
| 129 |
As mentioned above, there is neither italic nor bold italic shapes; for user’s |
| 130 |
convenience, these slots are filled with their upright analogs. |
| 131 |
Sans-serif (Latin, Greek, digits) and typewriter (Latin, digits) alphabets, |
| 132 |
Fraktur and Blackboard Bold styles are included. |
| 133 |
|
| 134 |
A full list of available glyphs is shown in file \file{unimath-euler.pdf}. |
| 135 |
|
| 136 |
\subsection{Character variants} |
| 137 |
\label{ssection-cv} |
| 138 |
|
| 139 |
\NEOTF{} provides fourteen ``Character Variants'' options, listed on |
| 140 |
table~\vref{cv}, to choose between different glyphs for Greek characters |
| 141 |
and some others. |
| 142 |
\begin{table}[ht] |
| 143 |
\centering \caption{Character variants.} |
| 144 |
\hlabel{cv} |
| 145 |
\begin{tabular}{@{}>{\ttfamily}lccl@{}} |
| 146 |
\hline |
| 147 |
& Default & Variant & Name\\ |
| 148 |
\hline |
| 149 |
cv01 & $\hslash$ & $\hbar$ & \cmd{hslash} \\ |
| 150 |
cv02 & $\emptyset$ & $\varemptyset$ & \cmd{emptyset} \\ |
| 151 |
cv03 & $\epsilon$ & $\varepsilon$ & \cmd{epsilon} \\ |
| 152 |
cv04 & $\kappa$ & $\varkappa$ & \cmd{kappa} \\ |
| 153 |
cv05 & $\pi$ & $\varpi$ & \cmd{pi} \\ |
| 154 |
cv06 & $\phi$ & $\varphi$ & \cmd{phi} \\ |
| 155 |
cv09 & $\theta$ & $\vartheta$ & \cmd{theta} \\ |
| 156 |
cv10 & $\Theta$ & $\varTheta$ & \cmd{Theta}\\ |
| 157 |
cv11 & $\Phi$ & $\varPhi$ & \cmd{Phi}\\ |
| 158 |
\hline |
| 159 |
\end{tabular} |
| 160 |
\end{table} |
| 161 |
|
| 162 |
For instance, to get \cmd{epsilon} and \cmd{phi} typeset as $\varepsilon$ |
| 163 |
and $\varphi$ instead of $\epsilon$ and $\phi$ (with matching bold variants |
| 164 |
$\symbf{\varepsilon}$ and $\symbf{\varphi}$), you can |
| 165 |
add option \verb+CharacterVariant={3,6}+ to the \cmd{setmathfont} call: |
| 166 |
\begin{verbatim} |
| 167 |
\setmathfont{Euler-Math.otf}[CharacterVariant={3,6}] |
| 168 |
\end{verbatim} |
| 169 |
|
| 170 |
Please note that curly braces are mandatory whenever more than one |
| 171 |
``Character Variant'' is selected. |
| 172 |
|
| 173 |
Breaking change in version 0.75: in the previous versions of \pkg{euler-math} |
| 174 |
the glyphs provided for |\Theta| and |\Phi| were different from those included |
| 175 |
in v3.0 of the AMS Euler fonts. The former versions are kept back as |
| 176 |
|\varTheta| and |\varPhi|% |
| 177 |
\footnote{The latter command, not part of \pkg{unicode-math}, is defined in |
| 178 |
\pkg{euler-math.sty} only.} |
| 179 |
and also available through Character Variants~10 and 11 respectively, see |
| 180 |
Table~\vref{cv}. |
| 181 |
|
| 182 |
Note about \cmd{hbar}: \pkg{unicode-math} defines \cmd{hbar} as |
| 183 |
\cmd{hslash} (U+210F) while \pkg{amsmath} provides two different glyphs |
| 184 |
($h$ with horizontal or diagonal stroke).\\ |
| 185 |
\pkg{euler-math} follows \pkg{unicode-math}; the $h$ with horizontal stroke |
| 186 |
can be printed using \cmd{hslash} or \cmd{hbar} together with character |
| 187 |
variant \opt{cv01} or with \cmd{muphbar} (replacement for AMS’ command |
| 188 |
\cmd{hbar}). |
| 189 |
|
| 190 |
\subsection{Stylistic sets} |
| 191 |
\label{ssection-ss} |
| 192 |
|
| 193 |
\NEOTF{} provides two ``Stylistic Sets'' options to choose between different |
| 194 |
glyphs for families of maths symbols. |
| 195 |
|
| 196 |
\ttbold{StylisticSet=5}, alias% |
| 197 |
\footnote{These \texttt{Style} aliases are provided by \file{euler-math.sty}.} |
| 198 |
\ttbold{Style=smaller}, converts some symbols into their smaller variants, |
| 199 |
see table~\vref{ss05}. |
| 200 |
|
| 201 |
\ttbold{StylisticSet=6}, alias \ttbold{Style=subsetneq}, converts some |
| 202 |
inclusion symbols, see table~\vref{ss06}. |
| 203 |
\begin{table}[ht] |
| 204 |
\centering |
| 205 |
\caption{Stylistic Sets 5 and 6} |
| 206 |
\addtocounter{table}{-1}% \subfloat steps counter table? |
| 207 |
\subfloat[\opt{Style=smaller\quad (+ss05)}]{\hlabel{ss05}% |
| 208 |
\begin{tabular}[t]{@{}lcc@{}} |
| 209 |
\hline |
| 210 |
Command & Default & Variant \\ |
| 211 |
\hline |
| 212 |
\cmd{in} & $\in$ & $\smallin$ \\ |
| 213 |
\cmd{ni} & $\ni$ & $\smallni$ \\ |
| 214 |
\cmd{mid} & $\mid$ & $\shortmid$ \\ |
| 215 |
\cmd{nmid} & $\nmid$ & $\nshortmid$ \\ |
| 216 |
\cmd{parallel} & $\parallel$ & $\shortparallel$ \\ |
| 217 |
\cmd{nparallel} & $\nparallel$ & $\nshortparallel$ \\ |
| 218 |
\hline |
| 219 |
\end{tabular} |
| 220 |
}\hspace{10mm} % eof subfloat |
| 221 |
\subfloat[\opt{Style=subsetneq\quad (+ss06)}]{\hlabel{ss06}% |
| 222 |
\begin{tabular}[t]{@{}lcc@{}} |
| 223 |
\hline |
| 224 |
Command & Default & Variant \\ |
| 225 |
\hline |
| 226 |
\cmd{subsetneq} & $\subsetneq$ & $\varsubsetneq$ \\ |
| 227 |
\cmd{supsetneq} & $\supsetneq$ & $\varsupsetneq$ \\ |
| 228 |
\cmd{subsetneqq} & $\subsetneqq$ & $\varsubsetneqq$ \\ |
| 229 |
\cmd{supsetneqq} & $\supsetneqq$ & $\varsupsetneqq$ \\ |
| 230 |
\hline |
| 231 |
\end{tabular} |
| 232 |
}% eof subfloat |
| 233 |
\end{table} |
| 234 |
|
| 235 |
|
| 236 |
To enable Stylistic Sets 5 and 6 for \NEOTF{}, you should enter |
| 237 |
\begin{verbatim} |
| 238 |
\setmathfont{Euler-Math.otf}[StylisticSet={5,6}] or |
| 239 |
\usepackage[Style={smaller,subsetneq}]{Euler-Math.otf} |
| 240 |
\end{verbatim} |
| 241 |
{\samepage then, \verb+\[A \subsetneq B\quad x \in E \quad D \parallel D' \]+ |
| 242 |
will print as |
| 243 |
\setmathfont{Euler-Math.otf}[StylisticSet={5,6}] |
| 244 |
\[A \subsetneq B\quad x \in E \quad D \parallel D' \] |
| 245 |
instead of |
| 246 |
\setmathfont{Euler-Math.otf} |
| 247 |
\[A \subsetneq B\quad x \in E \quad D \parallel D' \] |
| 248 |
} |
| 249 |
|
| 250 |
\subsection{Other font features} |
| 251 |
\label{ssec-other-features} |
| 252 |
|
| 253 |
To get oldstyle numbers in maths, the feature \opt{+onum} is available: |
| 254 |
\begin{verbatim} |
| 255 |
\setmathfont{Euler-Math.otf}[Numbers=OldStyle] or |
| 256 |
\usepackage[Style={fulloldstyle}]{euler-math} |
| 257 |
\end{verbatim} |
| 258 |
|
| 259 |
\setmathfont{Euler-Math.otf}[Numbers=OldStyle] |
| 260 |
$0123456789, \symbf{0123456789}$ |
| 261 |
\setmathfont{Euler-Math.otf} |
| 262 |
|
| 263 |
\subsection{Standard LaTeX math commands} |
| 264 |
\label{ssec-math-commands} |
| 265 |
|
| 266 |
All standard LaTeX maths commands, all \pkg{amssymb} commands and all |
| 267 |
\pkg{latexsym} commands are supported by \NEOTF{}, for some of them loading |
| 268 |
\pkg{euler-math.sty} is required. |
| 269 |
|
| 270 |
Various wide accents are also supported: |
| 271 |
\begin{itemize} |
| 272 |
\item \cmd{wideoverbar} and \cmd{mathunderbar}% |
| 273 |
\footnote{\cmd{overline} and \cmd{underline} are not font related, |
| 274 |
they are based on \cmd{rule}.} |
| 275 |
\[\wideoverbar{x}\quad \wideoverbar{xy}\quad \wideoverbar{xyz}\quad |
| 276 |
\wideoverbar{A\cup B}\quad \wideoverbar{A\cup (B\cap C)\cup D}\quad |
| 277 |
\mathunderbar{m+n+p}\] |
| 278 |
|
| 279 |
\item \cmd{widehat} and \cmd{widetilde} |
| 280 |
\[\widehat{x}\; \widehat{xx} \;\widehat{xxx} \;\widehat{xxxx}\; |
| 281 |
\widehat{xxxxx} \;\widehat{xxxxxx} \;\widetilde{x}\; \widetilde{xx}\; |
| 282 |
\widetilde{xxx} \;\widetilde{xxxx} \;\widetilde{xxxxx}\; |
| 283 |
\widetilde{xxxxxx}\] |
| 284 |
|
| 285 |
\item \cmd{widecheck} and \cmd{widebreve} |
| 286 |
\[\widecheck{x}\quad \widecheck{xxxx}\quad \widecheck{xxxxxx}\quad |
| 287 |
\widebreve{x}\quad \widebreve{xxxx}\quad \widebreve{xxxxxx}\] |
| 288 |
|
| 289 |
\item \cmd{overparen} and \cmd{underparen} |
| 290 |
\[\overparen{x}\quad \overparen{xy}\quad \overparen{xyz}\quad |
| 291 |
\mathring{\overparen{A\cup B}}\quad |
| 292 |
\overparen{A\cup (B\cap C)\cup D}^{\smwhtcircle}\quad |
| 293 |
\overparen{x+y}^{2}\quad \overparen{a+b+...+z}^{26}\] |
| 294 |
\[\underparen{x}\quad \underparen{xz} \quad \underparen{xyz} |
| 295 |
\quad \underparen{x+z}_{2}\quad \underparen{a+b+...+z}_{26}\] |
| 296 |
|
| 297 |
\item \cmd{overbrace} and \cmd{underbrace} |
| 298 |
\[\overbrace{a}\quad \overbrace{ab}\quad \overbrace{abc}\quad |
| 299 |
\overbrace{abcd}\quad \overbrace{abcde}\quad |
| 300 |
\overbrace{a+b+c}^{3}\quad \overbrace{ a+b+. . . +z }^{26}\] |
| 301 |
\[\underbrace{a}\quad\underbrace{ab}\quad\underbrace{abc}\quad |
| 302 |
\underbrace{abcd}\quad \underbrace{abcde}\quad |
| 303 |
\underbrace{a+b+c}_{3} \quad \underbrace{ a+b+...+z }_{26}\] |
| 304 |
|
| 305 |
\item \cmd{overbracket} and \cmd{underbracket} |
| 306 |
\[\overbracket{a}\quad \overbracket{ab}\quad \overbracket{abc}\quad |
| 307 |
\overbracket{abcd}\quad \overbracket{abcde}\quad |
| 308 |
\overbracket{a+b+c}^{3}\quad \overbracket{ a+b+. . . +z }^{26}\] |
| 309 |
\[\underbracket{a}\quad\underbracket{ab}\quad\underbracket{abc}\quad |
| 310 |
\underbracket{abcd}\quad \underbracket{abcde}\quad |
| 311 |
\underbracket{a+b+c}_{3} \quad \underbracket{ a+b+...+z }_{26}\] |
| 312 |
|
| 313 |
\item \cmd{overrightarrow}, \cmd{overleftarrow} and \cmd{overleftrightarrow} |
| 314 |
\[\overrightarrow{v}\quad \overrightarrow{M}\quad \overrightarrow{vv} |
| 315 |
\quad \overrightarrow{AB}\quad \overrightarrow{ABC} |
| 316 |
\quad \overrightarrow{ABCD} \quad \overrightarrow{ABCDEFGH}. |
| 317 |
\] |
| 318 |
\[\overleftarrow{v}\quad \overleftarrow{M}\quad \overleftarrow{vv} |
| 319 |
\quad \overleftarrow{AB}\quad \overleftarrow{ABC} |
| 320 |
\quad \overleftarrow{ABCD} \quad \overleftarrow{ABCDEFGH}\] |
| 321 |
\[\overleftrightarrow{v}\quad \overleftrightarrow{M}\quad |
| 322 |
\overleftrightarrow{vv}\quad |
| 323 |
\overleftrightarrow{AB}\quad \overleftrightarrow{ABC}\quad |
| 324 |
\overleftrightarrow{ABCD} \quad \overleftrightarrow{ABCDEFGH}\] |
| 325 |
|
| 326 |
\item \cmd{overrightharpoon} and \cmd{overleftharpoon} |
| 327 |
\[\overrightharpoon{v}\quad \overrightharpoon{M}\quad \overrightharpoon{vv} |
| 328 |
\quad \overrightharpoon{AB}\quad \overrightharpoon{ABC} |
| 329 |
\quad \overrightharpoon{ABCD} \quad \overrightharpoon{ABCDEFGH}. |
| 330 |
\] |
| 331 |
\[\overleftharpoon{v}\quad \overleftharpoon{M}\quad \overleftharpoon{vv} |
| 332 |
\quad \overleftharpoon{AB}\quad \overleftharpoon{ABC} |
| 333 |
\quad \overleftharpoon{ABCD} \quad \overleftharpoon{ABCDEFGH}\] |
| 334 |
|
| 335 |
\item \cmd{underrightarrow}, \cmd{underleftarrow} and \cmd{underleftrightarrow} |
| 336 |
\[\underrightarrow{v}\quad \underrightarrow{M}\quad \underrightarrow{vv} |
| 337 |
\quad \underrightarrow{AB}\quad \underrightarrow{ABC} |
| 338 |
\quad \underrightarrow{ABCD} \quad \underrightarrow{ABCDEFGH}. |
| 339 |
\] |
| 340 |
\[\underleftarrow{v}\quad \underleftarrow{M}\quad \underleftarrow{vv} |
| 341 |
\quad \underleftarrow{AB}\quad \underleftarrow{ABC} |
| 342 |
\quad \underleftarrow{ABCD} \quad \underleftarrow{ABCDEFGH}\] |
| 343 |
\[\underleftrightarrow{v}\quad \underleftrightarrow{M}\quad |
| 344 |
\underleftrightarrow{vv}\quad |
| 345 |
\underleftrightarrow{AB}\quad \underleftrightarrow{ABC}\quad |
| 346 |
\underleftrightarrow{ABCD} \quad \underleftrightarrow{ABCDEFGH}\] |
| 347 |
|
| 348 |
\item \cmd{underrightharpoondown} and \cmd{underleftharpoondown} |
| 349 |
\[\underrightharpoondown{v} \quad \underrightharpoondown{M}\quad |
| 350 |
\underrightharpoondown{vv}\quad \underrightharpoondown{AB}\quad |
| 351 |
\underrightharpoondown{ABC}\quad \underrightharpoondown{ABCD} |
| 352 |
\quad \underrightharpoondown{ABCDEFGH}. |
| 353 |
\] |
| 354 |
\[\underleftharpoondown{v} \quad \underleftharpoondown{M}\quad |
| 355 |
\underleftharpoondown{vv}\quad \underleftharpoondown{AB}\quad |
| 356 |
\underleftharpoondown{ABC}\quad \underleftharpoondown{ABCD} |
| 357 |
\quad \underleftharpoondown{ABCDEFGH}. |
| 358 |
\] |
| 359 |
|
| 360 |
\item Finally \cmd{widearc} and \cmd{overrightarc} (loading |
| 361 |
\pkg{euler-math.sty} is required) |
| 362 |
\[\widearc{AMB}\quad \overrightarc{AMB}\] |
| 363 |
\end{itemize} |
| 364 |
|
| 365 |
All extensible arrows provided by the \pkg{mathtools} package are |
| 366 |
available in the \NEOTF{} font (loading \pkg{euler-math.sty} is required), |
| 367 |
f.i.: |
| 368 |
\[X \xLeftrightarrow{\text{above}} Y \xhookrightarrow[\text{under}]{} |
| 369 |
Z\xmapsto{\text{above}} W\] |
| 370 |
|
| 371 |
A wide range of extensible vertical delimiters is provided: |
| 372 |
\[ \left/ |
| 373 |
\begin{pmatrix} a_{1} \\ a_{2} \\ a_{3} \end{pmatrix} |
| 374 |
\begin{bmatrix} a_{1} \\ a_{2} \\ a_{3} \end{bmatrix} |
| 375 |
\begin{Bmatrix} a_{1} \\ a_{2} \\ a_{3} \end{Bmatrix} |
| 376 |
\begin{vmatrix} a_{1} \\ a_{2} \\ a_{3} \end{vmatrix} |
| 377 |
\begin{Vmatrix} a_{1} \\ a_{2} \\ a_{3} \end{Vmatrix} |
| 378 |
\left\lVvert\begin{array}{c} a_{1} \\ a_{2} \\ a_{3} \end{array}\right\Vvert |
| 379 |
\left\lceil \begin{array}{c} a_{1} \\ a_{2} \\ a_{3} \end{array}\right\rceil |
| 380 |
\left\lfloor\begin{array}{c} a_{1} \\ a_{2} \\ a_{3} \end{array}\right\rfloor |
| 381 |
\left\lBrack\begin{array}{c} a_{1} \\ a_{2} \\ a_{3} \end{array}\right\rBrack |
| 382 |
\left\langle\begin{array}{c} a_{1} \\ a_{2} \\ a_{3} \end{array}\right\rangle |
| 383 |
\left\lAngle\begin{array}{c} a_{1} \\ a_{2} \\ a_{3} \end{array}\right\rAngle |
| 384 |
\right\backslash \] |
| 385 |
|
| 386 |
\subsection{Mathematical alphabets} |
| 387 |
\label{ssec-math-alphabets} |
| 388 |
|
| 389 |
\begin{itemize} |
| 390 |
\item All Latin and Greek characters are available in upright |
| 391 |
and bold via the \verb+\symup{}+ and \verb+\symbf{}+ commands. |
| 392 |
|
| 393 |
\item Calligraphic alphabet (\cmd{symscr} or \cmd{symcal} command), |
| 394 |
uppercase only:\\ |
| 395 |
$\symscr{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$\\ |
| 396 |
also in boldface (\cmd{symbfscr},\cmd{symbfcal} or \cmd{mathbfcal} command):\\ |
| 397 |
$\symbfscr{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$ |
| 398 |
|
| 399 |
\item Blackboard-bold alphabet (\cmd{symbb} command), |
| 400 |
uppercase, lowercase and digits: |
| 401 |
|
| 402 |
$\symbb{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$ |
| 403 |
|
| 404 |
$\symbb{abcdefghijklmnopqrstuvwxyz\quad 0123456789}$ |
| 405 |
|
| 406 |
\item Fraktur alphabet medium and bold |
| 407 |
(\cmd{symfrak}, or \cmd{symbffrak} commands): |
| 408 |
|
| 409 |
$\symfrak{ABCDEFGHIJKLMNOPQRSTUVWXYZ\quad abcdefghijklmnopqrstuvwxyz}$\\ |
| 410 |
$\symbffrak{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$\\ |
| 411 |
\hphantom{$\symfrak{ABCDEFGHIJKLMNOPQRSTUVWXYZ\quad}$}% |
| 412 |
$\symbffrak{abcdefghijklmnopqrstuvwxyz}$ |
| 413 |
|
| 414 |
\item Sans-serif (Latin and Greek) and Typewriter (Latin) alphabets |
| 415 |
(commands \verb+\symsf{}+, \verb+\symbfsf{}+, \verb+\symtt{}+): |
| 416 |
|
| 417 |
$\symsf{ABCDEFGHIJKLMNOPQRSTUVWXYZ}\\ |
| 418 |
\symsfit{abcdefghijklmnopqrstuvwxyz\quad 0123456789}$ |
| 419 |
|
| 420 |
$\symbfsf{ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ}\\ |
| 421 |
\symbfsf{αβγδεζηθικλμνξοπρσςτυφχψω}$ |
| 422 |
|
| 423 |
$\symtt{ABCDEFGHIJKLMNOPQRSTUVWXYZ}\\ |
| 424 |
\symtt{abcdefghijklmnopqrstuvwxyz\quad 0123456789}$ |
| 425 |
|
| 426 |
\end{itemize} |
| 427 |
|
| 428 |
|
| 429 |
\subsection{Missing symbols} |
| 430 |
|
| 431 |
\NEOTF{} does not aim at being as complete as \file{STIXTwoMath-Regular} or |
| 432 |
\file{Cambria}, the current glyph coverage compares with TeXGyre math fonts. |
| 433 |
In case some symbols do not show up in the output file, you will see warnings |
| 434 |
in the \file{.log} file, for instance: |
| 435 |
|
| 436 |
\setmathfont{STIXTwoMath-Regular.otf}[range={"2964}] |
| 437 |
\texttt{Missing character: There is no }$⥤$% |
| 438 |
\texttt{ (U+2964) in font Euler Math} |
| 439 |
|
| 440 |
Borrowing them from a more complete font, say \file{Asana-Math}, |
| 441 |
is a possible workaround: |
| 442 |
\verb+\setmathfont{Asana-Math.otf}[range={"2964},Scale=1.02]+\\ |
| 443 |
scaling is possible, multiple character ranges are separated with commas:\\ |
| 444 |
\verb+\setmathfont{Asana-Math.otf}[range={"294A-"2951,"2964,"2ABB-"2ABE}]+ |
| 445 |
|
| 446 |
Let’s mention \pkg{albatross}, a useful tool to find out the list of fonts |
| 447 |
providing a given glyph: f.i. type in a terminal |
| 448 |
``\texttt{albatross -t U+2964}'', |
| 449 |
see the manpage or \file{albatross-manual.pdf}. |
| 450 |
|
| 451 |
\section{Acknowledgements} |
| 452 |
|
| 453 |
Khaled Hosni achieved most of the portage of Hermann Zapf’s Euler font to |
| 454 |
Unicode between 2009 and 2016. After Hermann’s death in 2015, he decided to |
| 455 |
stop the project but his \file{euler.otf} font, although not available on CTAN, |
| 456 |
continued to be used, see |
| 457 |
\href{https://tex.stackexchange.com/questions/425098/which-opentype-math-fonts-are-available}{https://tex.stackexchange.com/questions/425098/}. |
| 458 |
I offered Khaled my help to finalise the font, we agreed I would try to |
| 459 |
complete the font and maintain it on my own. |
| 460 |
|
| 461 |
\bigskip |
| 462 |
\begin{center}\Huge |
| 463 |
\decotwo |
| 464 |
\end{center} |
| 465 |
|
| 466 |
\end{document} |
| 467 |
|
| 468 |
%%% Local Variables: |
| 469 |
%%% mode: latex |
| 470 |
%%% TeX-engine: luatex |
| 471 |
%%% TeX-master: t |
| 472 |
%%% coding: utf-8 |
| 473 |
%%% End: |