| 1 |
%\DocumentMetadata{pdfstandard={A-4,UA-2}, tagging=on, lang=en-GB} |
| 2 |
\documentclass[a4paper,12pt]{scrartcl} |
| 3 |
|
| 4 |
\usepackage{mathtools, array, varioref} |
| 5 |
\usepackage[british]{babel} |
| 6 |
\usepackage{fourier-otf} |
| 7 |
\setsansfont{Cabin}[Scale=MatchLowercase] |
| 8 |
\setmonofont{Inconsolatazi4}[Scale=MatchLowercase, |
| 9 |
HyphenChar=None,StylisticSet={2,3}] |
| 10 |
\usepackage{subfig} |
| 11 |
\captionsetup[subtable]{position=top} |
| 12 |
\usepackage{realscripts} |
| 13 |
\usepackage{microtype} |
| 14 |
\usepackage{hyperref} |
| 15 |
\hypersetup{pdftitle={Erewhon-Math User’s Guide}, |
| 16 |
pdfauthor={Daniel FLIPO}, |
| 17 |
bookmarksopen, |
| 18 |
colorlinks |
| 19 |
} |
| 20 |
\newcommand*{\hlabel}[1]{\phantomsection\label{#1}} |
| 21 |
|
| 22 |
\newcommand*{\FGUT}{Fourier-GUT\textit{enberg}} |
| 23 |
\newcommand*{\FOTF}{Erewhon-Math} |
| 24 |
\newcommand*{\pkg}[1]{\texttt{#1}} |
| 25 |
\newcommand*{\file}[1]{\texttt{#1}} |
| 26 |
\newcommand*{\ttbold}[1]{\texttt{\textbf{#1}}} |
| 27 |
\newcommand*{\opt}[1]{\texttt{#1}} |
| 28 |
\newcommand*{\cmd}[1]{\texttt{\textbackslash #1}} |
| 29 |
\newcommand*{\showtchar}[1]{\cmd{#1}~\csname #1\endcsname} |
| 30 |
\newcommand*{\showmchar}[1]{\cmd{#1}~$(\csname #1\endcsname)$} |
| 31 |
\newcommand*{\showmchardollar}[1]{\texttt{\$\cmd{#1}\$}~$(\csname #1\endcsname)$} |
| 32 |
|
| 33 |
\renewcommand{\labelitemi}{\lefthand} |
| 34 |
|
| 35 |
\title{\decofourleft\,\FOTF\,\decofourright} |
| 36 |
\author{Daniel Flipo \\ \texttt{[email protected]}} |
| 37 |
|
| 38 |
\newcommand*{\version}{0.74} |
| 39 |
|
| 40 |
\begin{document} |
| 41 |
\maketitle |
| 42 |
|
| 43 |
\section{What is \FOTF{}?} |
| 44 |
|
| 45 |
\FOTF{} is an Utopia based OpenType maths font. |
| 46 |
The maths symbols and Greek letters are borrowed or derived from |
| 47 |
Michel Bovani’s \FGUT, Latin letters and digits are borrowed from |
| 48 |
Michael Shape’s Erewhon font. |
| 49 |
|
| 50 |
It requires LuaTeX or XeTeX as engine and the \pkg{unicode-math} package% |
| 51 |
\footnote{Please read the documentation \file{unicode-math.pdf}.}. |
| 52 |
|
| 53 |
It is meant to be used with Utopia based OpenType text fonts like {Erewhon}. |
| 54 |
For \FGUT{} users who want to switch to LuaLaTeX or XeLaTeX, the |
| 55 |
file \file{fourier-otf.sty} can be used as a replacement of \file{fourier.sty}. |
| 56 |
|
| 57 |
Please note that the current version (\version) is \emph{experimental, |
| 58 |
do expect metrics and glyphs to change} until version 1.0 is reached. |
| 59 |
Comments, suggestions and bug reports are welcome! |
| 60 |
|
| 61 |
\section{Usage} |
| 62 |
|
| 63 |
\subsection{Calling \cmd{setmathfont}} |
| 64 |
|
| 65 |
A basic call for \FOTF{} would be: |
| 66 |
\begin{verbatim} |
| 67 |
\usepackage{unicode-math} |
| 68 |
\setmathfont{Erewhon-Math.otf} % Call by file name or |
| 69 |
\setmathfont{Erewhon Math} % Call by font name |
| 70 |
\end{verbatim} |
| 71 |
this loads \FOTF{} as maths font% |
| 72 |
\footnote{Both calls work equally well with LuaTeX; with XeTeX a call by font |
| 73 |
name will fail unless the font is declared as a \emph{system font}.} |
| 74 |
with the default options, see subsections~\vref{ssection-um}, |
| 75 |
\vref{ssection-cv} and~\vref{ssection-ss} for customisation. |
| 76 |
|
| 77 |
Please note that the three sets of text fonts have to be chosen separately, |
| 78 |
f.i.:%\\[.25\baselineskip] |
| 79 |
|
| 80 |
\pagebreak[4] |
| 81 |
\noindent\verb+\setmainfont{erewhon}+% |
| 82 |
\footnote{\texttt{Erewhon} (with capital E) is fine with LuaTeX but |
| 83 |
would fail with XeTeX (\file{erewhon.fontspec} not found).}% |
| 84 |
\hspace{62mm}\texttt{\% rm}\\ |
| 85 |
\verb+\setsansfont{Cabin}[Scale=MatchLowercase] % sf+\\ |
| 86 |
\verb+\setmonofont{Inconsolatazi4}[Scale=MatchLowercase] % tt+\\[.25\baselineskip] |
| 87 |
otherwise you would get Latin Modern for text fonts. |
| 88 |
|
| 89 |
\subsection{Calling \pkg{fourier-otf.sty} (recommended)} |
| 90 |
|
| 91 |
As an alternative to load \FOTF{} you can type:\\[.5\baselineskip] |
| 92 |
\verb+\usepackage[ +\textit{options} |
| 93 |
\footnote{Possible \textit{options} are \opt{loose}, \opt{no-text}, |
| 94 |
\opt{fakedscripts}, \opt{Scale=} or any of the options described in |
| 95 |
sections~\ref{ssection-um} to \ref{ssec-other-features}.}% |
| 96 |
\verb+ ]{fourier-otf}+\\[.5\baselineskip] |
| 97 |
it loads \pkg{unicode-math} with the default options, sets \FOTF{} |
| 98 |
as maths font and Erewhon Text fonts as Roman fonts |
| 99 |
(families \textit{sf} and \textit{tt} left unchanged) and does a bit more: |
| 100 |
\begin{enumerate} |
| 101 |
\item it loads \pkg{realscripts.sty} for better superscripts and footnote |
| 102 |
calls unless option \opt{fakedscripts} has been activated; |
| 103 |
\item it redefines the \cmd{TeX}, \cmd{LaTeX} and \cmd{LaTeXe} logos to fit |
| 104 |
the Erewhon fonts unless option \opt{no-logos} has been activated; |
| 105 |
\item it loads \pkg{fourier-orns.sty}, providing many text ornaments; |
| 106 |
\item it checks at \verb+\begin{document}+ if packages \pkg{amssymb} or |
| 107 |
\pkg{latexsym} are loaded and issues warnings in case they are; |
| 108 |
\item it provides aliases for glyphs named differently in Unicode, so that |
| 109 |
\pkg{latexsym} or AMS names are also available; |
| 110 |
\item it defines specific maths characters like \showmchar{Bbbbackslash}, |
| 111 |
\showmchar{varemptyset}, \linebreak[4] |
| 112 |
\showmchar{parallelslant}, |
| 113 |
\showmchar{shortparallelslant}, etc.; |
| 114 |
\item it reduces spacing in maths mode: \cmd{thinmuskip}, \cmd{medmuskip} |
| 115 |
and \cmd{thickmuskip} are reduced as in \file{fourier.sty}. |
| 116 |
% \verb+\thinmuskip=2mu+,\\ |
| 117 |
% \verb+\medmuskip=2.5mu plus 1mu minus 2.5mu+,\\ |
| 118 |
% \verb+\thickmuskip=3.5mu plus 2.5mu+.\\ |
| 119 |
The option \opt{loose} disables these settings. |
| 120 |
\end{enumerate} |
| 121 |
|
| 122 |
Apart from the \opt{loose} option mentioned above, \pkg{fourier-otf.sty} |
| 123 |
provides two options \opt{no-text} and \opt{Scale=}\textsl{<decimal>} meant to |
| 124 |
be used to load the \FOTF{} font together with roman text fonts other than |
| 125 |
Erewhon, while keeping the advantages 1. to 5. pointed in the preceding list, |
| 126 |
f.i.\quad \verb+\usepackage[no-text,Scale=0.98]{fourier-otf}+ |
| 127 |
|
| 128 |
Please note that the fonts loaded by \pkg{fourier-otf.sty} are about 2\% |
| 129 |
larger than those loaded by \pkg{fourier.sty}: the Erewhon text fonts are |
| 130 |
based on Utopia reduced à 94\%, while the fourier fonts are based on |
| 131 |
Utopia reduced à 92\%. Option \verb+Scale=0.98+ can be used to mimic the |
| 132 |
output produced by the \pkg{fourier.sty} package. |
| 133 |
|
| 134 |
Option \opt{no-text} can also be useful if Erewhon is to be loaded with |
| 135 |
specific options, f.i. \\ |
| 136 |
\verb+\usepackage[no-text]{fourier-otf}+\\ |
| 137 |
\verb|\setmainfont{erewhon}[RawFeature=+onum;+ss01]| |
| 138 |
|
| 139 |
\section{What is provided?} |
| 140 |
|
| 141 |
\FOTF{} provides all glyphs supplied by \FGUT{} plus all glyphs available in |
| 142 |
the \pkg{amssymb} and \pkg{latexsym} packages and many more. Therefore, |
| 143 |
the latter two packages \emph{should not} be loaded as they might override |
| 144 |
\FOTF{} glyphs. |
| 145 |
|
| 146 |
Sans-serif, typewriter and fraktur styles are borrowed from Latin Modern fonts. |
| 147 |
See in section~\vref{ssec-math-alphabets} how to choose |
| 148 |
from other maths fonts for these styles. |
| 149 |
|
| 150 |
A full list of available glyphs is shown in file \file{unimath-erewhon.pdf}. |
| 151 |
|
| 152 |
\subsection{Upright or slanted?} |
| 153 |
\label{ssection-um} |
| 154 |
|
| 155 |
Package \pkg{unicode-math} follows \TeX{} conventions for Latin and Greek |
| 156 |
letters: in maths mode, the default option (\opt{math-style=TeX}) prints |
| 157 |
Latin letters $a$…$z$ $A$…$Z$ and lowercase greek letters $\alpha$…$\omega$ |
| 158 |
slanted (italic) while uppercase greek letters $\Alpha \Beta \Gamma$…$\Omega$ |
| 159 |
are printed upright. |
| 160 |
This can be changed by option \opt{math-style} as shown in |
| 161 |
table~\vref{math-style}. |
| 162 |
|
| 163 |
\begin{table}[ht] |
| 164 |
\centering |
| 165 |
\caption{Effects of the \opt{math-style} package option.} |
| 166 |
\hlabel{math-style} |
| 167 |
\begin{tabular}{@{}>{\ttfamily}lcc@{}} |
| 168 |
\hline |
| 169 |
\rmfamily Package option & Latin & Greek \\ |
| 170 |
\hline |
| 171 |
math-style=ISO & $(a,z,B,X)$ & $\symit{(\alpha,\beta,\Gamma,\Xi)}$ \\ |
| 172 |
math-style=TeX & $(a,z,B,X)$ & $(\symit\alpha,\symit\beta,\symup\Gamma,\symup\Xi)$ \\ |
| 173 |
math-style=french & $(a,z,\symup B,\symup X)$ & $(\symup\alpha,\symup\beta,\symup\Gamma,\symup\Xi)$ \\ |
| 174 |
math-style=upright & $(\symup a,\symup z,\symup B,\symup X)$ & $(\symup\alpha,\symup\beta,\symup\Gamma,\symup\Xi)$ \\ |
| 175 |
\hline |
| 176 |
\end{tabular} |
| 177 |
\end{table} |
| 178 |
|
| 179 |
Bold letters are printed upright except lowercase Greek letters |
| 180 |
which are slanted (the default option is \opt{bold-style=TeX}). This can be |
| 181 |
changed by option \opt{bold-style} as shown in table~\vref{bold-style}. |
| 182 |
|
| 183 |
\begin{table}[ht] |
| 184 |
\centering |
| 185 |
\caption{Effects of the \opt{bold-style} package option.} |
| 186 |
\hlabel{bold-style} |
| 187 |
\begin{tabular}{@{}>{\ttfamily}lcc@{}} |
| 188 |
\hline |
| 189 |
\rmfamily Package option & Latin & Greek \\ |
| 190 |
\hline |
| 191 |
bold-style=ISO & $(\symbfit a, \symbfit z, \symbfit B, \symbfit X)$ & $(\symbfit\alpha, \symbfit\beta, \symbfit\Gamma, \symbfit\Xi)$ \\ |
| 192 |
bold-style=TeX & $(\symbfup a,\symbfup z,\symbfup B,\symbfup X)$ & $(\symbfit\alpha, \symbfit\beta,\symbfup \Gamma,\symbfup \Xi)$ \\ |
| 193 |
bold-style=upright & $(\symbfup a,\symbfup z,\symbfup B,\symbfup X)$ & $(\symbfup \alpha,\symbfup \beta,\symbfup \Gamma,\symbfup \Xi)$ \\ |
| 194 |
\hline |
| 195 |
\end{tabular} |
| 196 |
\end{table} |
| 197 |
|
| 198 |
Other possible customisation: $\nabla$ is printed upright and $\partial$ is |
| 199 |
printed slanted by default, but \opt{nabla=italic} and |
| 200 |
\opt{partial=upright} can change this. |
| 201 |
|
| 202 |
All these options are offered by the \pkg{unicode-math} package, they can |
| 203 |
be added to the \cmd{setmathfont} call as well% |
| 204 |
\footnote{IMHO it is easier to add \emph{all options} to the \cmd{setmathfont} |
| 205 |
command.}, for example: |
| 206 |
|
| 207 |
\verb+\setmathfont{Erewhon-Math.otf}[math-style=french,partial=upright]+\\ |
| 208 |
will print for the code |
| 209 |
\begin{verbatim} |
| 210 |
\[ \frac{\partial f}{\partial x} = \alpha \symbf{V} + a\nabla\Gamma |
| 211 |
+ \symbf{\beta}\symbf{M} \] |
| 212 |
\end{verbatim} |
| 213 |
\setmathfont{Erewhon-Math.otf}[math-style=french,partial=upright] |
| 214 |
\[\frac{\partial f}{\partial x} = \alpha \symbf{V} + a\nabla\Gamma + |
| 215 |
\symbf{\beta}\symbf{M} \] |
| 216 |
while the default settings would print |
| 217 |
\setmathfont{Erewhon-Math.otf}[math-style=TeX,partial=italic] |
| 218 |
\[\frac{\partial f}{\partial x} = \alpha \symbf{V} + a\nabla\Gamma + |
| 219 |
\symbf{\beta}\symbf{M} \] |
| 220 |
|
| 221 |
Both shapes remain available anytime: \verb+$\uppi,\itpi$+ |
| 222 |
prints $\uppi, \itpi$. |
| 223 |
|
| 224 |
If your text editor is able to handle Greek letters or maths symbols, they can |
| 225 |
be entered in the code instead control sequences (i.e. |
| 226 |
$\symup{α}$, $\symup{β}$, $\symup{Γ}$,… for \cmd{alpha}, \cmd{beta}, |
| 227 |
\cmd{Gamma},…). |
| 228 |
|
| 229 |
\subsection{Character variants} |
| 230 |
\label{ssection-cv} |
| 231 |
|
| 232 |
\FOTF{} provides fourteen ``Character Variants'' options, listed on |
| 233 |
table~\vref{cv}, to choose between different glyphs for Greek characters |
| 234 |
and some others. Alternative calligraphic capitals have been added for E, Q |
| 235 |
and T in version~0.50. |
| 236 |
|
| 237 |
\begin{table}[ht] |
| 238 |
\centering \caption{Character variants.} |
| 239 |
\hlabel{cv} |
| 240 |
\begin{tabular}{@{}>{\ttfamily}lccl@{}} |
| 241 |
\hline |
| 242 |
& Default & Variant & Name\\ |
| 243 |
\hline |
| 244 |
cv00 & $0$ & $\mupvarzero$ & 0 \\ |
| 245 |
cv01 & $\hslash$ & $\mithbar$ & \cmd{hslash} \\ |
| 246 |
cv02 & $\emptyset$ & $\varemptyset$ & \cmd{emptyset} \\ |
| 247 |
cv03 & $\epsilon$ & $\varepsilon$ & \cmd{epsilon} \\ |
| 248 |
cv04 & $\kappa$ & $\varkappa$ & \cmd{kappa} \\ |
| 249 |
cv05 & $\pi$ & $\varpi$ & \cmd{pi} \\ |
| 250 |
cv06 & $\phi$ & $\varphi$ & \cmd{phi} \\ |
| 251 |
cv07 & $\rho$ & $\varrho$ & \cmd{rho} \\ |
| 252 |
cv08 & $\sigma$ & $\varsigma$ & \cmd{sigma} \\ |
| 253 |
cv09 & $\theta$ & $\vartheta$ & \cmd{theta} \\ |
| 254 |
cv10 & $\Theta$ & $\varTheta$ & \cmd{Theta}\\ |
| 255 |
cv11 & $\mitpartial$ & $\mitvarpartial$ & \cmd{partial}\\ |
| 256 |
cv20 & $\symscr{E}$ & $\varsymscrE$ & \cmd{symcal\{E\}}\\ |
| 257 |
cv21 & $\symscr{Q}$ & $\varsymscrQ$ & \cmd{symcal\{Q\}}\\ |
| 258 |
cv22 & $\symscr{T}$ & $\varsymscrT$ & \cmd{symcal\{T\}}\\ |
| 259 |
\hline |
| 260 |
\end{tabular} |
| 261 |
\end{table} |
| 262 |
|
| 263 |
For instance, to get \cmd{epsilon} and \cmd{phi} typeset as $\varepsilon$ |
| 264 |
and $\varphi$ instead of $\epsilon$ and $\phi$, you can add option |
| 265 |
\verb+CharacterVariant={3,6}+ to the \cmd{setmathfont} call: |
| 266 |
\begin{verbatim} |
| 267 |
\setmathfont{Erewhon-Math.otf}[CharacterVariant={3,6}] |
| 268 |
\end{verbatim} |
| 269 |
|
| 270 |
This works for all shapes and weights of these characters: f.i.\ % |
| 271 |
\verb+$\symbf{\epsilon}$+, \verb+$\symbf{\phi}$+ are output as |
| 272 |
\setmathfont{Erewhon-Math.otf}[CharacterVariant={3,6}]$\symbf{\epsilon}$, |
| 273 |
$\symbf{\phi}$ instead of |
| 274 |
\setmathfont{Erewhon-Math.otf}$\symbf{\epsilon}$, $\symbf{\phi}$. |
| 275 |
|
| 276 |
Similarly with \opt{math-style=french}, \verb+\epsilon+ and \verb+\phi+ |
| 277 |
are output as $\symup{\varepsilon}$ and $\symup{\varphi}$ (upright). |
| 278 |
|
| 279 |
Please note that curly braces are mandatory whenever more than one |
| 280 |
``Character Variant'' is selected. |
| 281 |
|
| 282 |
Note about \cmd{hbar} (v\,0.43): \pkg{unicode-math} defines \cmd{hbar} as |
| 283 |
\cmd{hslash} (U+210F) while \pkg{amsmath} provides two different glyphs |
| 284 |
(italic $h$ with horizontal or diagonal stroke).\\ |
| 285 |
\pkg{erewhon-math} now follows \pkg{unicode-math}; the italic $h$ with |
| 286 |
horizontal stroke can be printed using \cmd{hslash} or \cmd{hbar} together |
| 287 |
with character variant \texttt{cv01} or with \cmd{mithbar} (replacement for |
| 288 |
AMS’ command \cmd{hbar}). |
| 289 |
|
| 290 |
|
| 291 |
\subsection{Stylistic sets} |
| 292 |
\label{ssection-ss} |
| 293 |
|
| 294 |
\FOTF{} provides six ``Stylistic Sets'' options to choose between different |
| 295 |
glyphs for families of maths symbols. |
| 296 |
|
| 297 |
\ttbold{StylisticSet=1}, alias% |
| 298 |
\footnote{These \texttt{Style} aliases are provided by \file{fourier-otf.sty}.} |
| 299 |
\setmathfont{Erewhon-Math}[range={cal,bfcal},StylisticSet=1] |
| 300 |
\ttbold{Style=mathcal}, forces commands \verb|\mathcal{}| and \verb|\mathscr{}| |
| 301 |
to print $\mathcal{ABC}$ instead of $\mathscr{ABC}$ (the default). |
| 302 |
Please note that \pkg{unicode-math} recommends to use \cmd{symcal} and |
| 303 |
\cmd{symscr} instead of \cmd{mathcal} and \cmd{mathscr}. |
| 304 |
|
| 305 |
If you want to use both commands \verb|$\mathcal{ABC}$| and |
| 306 |
\verb|$\mathscr{ABC}$| to print $\mathcal{ABC}$ and $\mathscr{ABC}$ |
| 307 |
respectively, you can use \pkg{unicode-math}’s option \verb|range| this way% |
| 308 |
\footnote{The \pkg{unicode-math} package is not yet able to make use of Unicode |
| 309 |
Variation Selectors U+FE00 and U+FE01 to switch between `cal’ and `scr’ |
| 310 |
variants but these selectors are already implemented in \FOTF.}% |
| 311 |
:\\ |
| 312 |
\verb|\setmathfont{Erewhon-Math}[|\textit{your options}\verb|]|\\ |
| 313 |
\verb|\setmathfont{Erewhon-Math}[range={cal,bfcal},StylisticSet=1]|\\ |
| 314 |
Both lines are mandatory: the first one loads {\FOTF} |
| 315 |
while the second one modifies \verb|\mathcal{}| command’s output. |
| 316 |
|
| 317 |
\addtocounter{footnote}{-2} |
| 318 |
\ttbold{StylisticSet=3}, alias\footnotemark{} |
| 319 |
\ttbold{Style=upint}, converts integrals signs into their upright |
| 320 |
variants, see table~\vref{ss03}. |
| 321 |
\begin{table}[ht] |
| 322 |
\let\DS\displaystyle |
| 323 |
\centering |
| 324 |
\caption{Style=upint\quad (+ss03)}\hlabel{ss03} |
| 325 |
\begin{tabular}[t]{@{}l*{8}c@{}} |
| 326 |
\hline |
| 327 |
Command &\cmd{int} &\cmd{iint} &\cmd{iiint} &\cmd{iiiint} |
| 328 |
&\cmd{oint} &\cmd{oiint} &\cmd{oiiint} \\ |
| 329 |
\hline |
| 330 |
Default\rule[-15pt]{0pt}{35pt} &$\DS\int$ &$\DS\iint$ &$\DS\iiint$ &$\DS\iiiint$ |
| 331 |
&$\DS\oint$ &$\DS\oiint$ &$\DS\oiint$ &$\DS\oiiint$ |
| 332 |
\\[\baselineskip] |
| 333 |
\setmathfont{Erewhon-Math.otf}[Style=upint] |
| 334 |
Upright\rule[-15pt]{0pt}{30pt} &$\DS\int$ &$\DS\iint$ &$\DS\iiint$ &$\DS\iiiint$ |
| 335 |
&$\DS\oint$ &$\DS\oiint$ &$\DS\oiint$ &$\DS\oiiint$ \\ |
| 336 |
\hline |
| 337 |
\end{tabular}\\[\baselineskip] |
| 338 |
\setmathfont{Erewhon-Math.otf} |
| 339 |
\begin{tabular}[t]{@{}l*{4}c@{}} |
| 340 |
\hline |
| 341 |
Command &\cmd{intclockwise} &\cmd{awint} |
| 342 |
&\cmd{varointclockwise} &\cmd{ointctrclockwise} \\ |
| 343 |
\hline |
| 344 |
Default\rule[-15pt]{0pt}{35pt} &$\DS\intclockwise$ &$\DS\awint$ |
| 345 |
&$\DS\varointclockwise$ &$\DS\ointctrclockwise$ \\ |
| 346 |
\setmathfont{Erewhon-Math.otf}[Style=upint] |
| 347 |
Upright\rule[-15pt]{0pt}{30pt} &$\DS\intclockwise$ &$\DS\awint$ |
| 348 |
&$\DS\varointclockwise$ &$\DS\ointctrclockwise$ \\ |
| 349 |
\hline |
| 350 |
\end{tabular} |
| 351 |
\end{table} |
| 352 |
\setmathfont{Erewhon-Math.otf} |
| 353 |
|
| 354 |
\addtocounter{footnote}{-1} |
| 355 |
\ttbold{StylisticSet=4}, alias\footnotemark{} |
| 356 |
\ttbold{Style=leqslant}, converts (large) inequalities into their slanted |
| 357 |
variants, see table~\vref{ss04}. |
| 358 |
|
| 359 |
\pagebreak[4] |
| 360 |
\addtocounter{footnote}{1} |
| 361 |
\ttbold{StylisticSet=5}, alias% |
| 362 |
\footnote{These \texttt{Style} aliases are provided by \file{fourier-otf.sty}.} |
| 363 |
\ttbold{Style=smaller}, converts some symbols into |
| 364 |
their smaller variants, see table~\vref{ss05}. |
| 365 |
\begin{table}[ht] |
| 366 |
\centering |
| 367 |
\caption{Stylistic Sets 4 and 5} |
| 368 |
\addtocounter{table}{-1}% \subfloat steps counter table? |
| 369 |
\subfloat[\texttt{Style=leqslant\quad (+ss04)}]{\hlabel{ss04}% |
| 370 |
\begin{tabular}[t]{@{}lcc@{}} |
| 371 |
\hline |
| 372 |
Command & Default & Variant \\ |
| 373 |
\hline |
| 374 |
\cmd{leq} & $\leq$ & $\leqslant$ \\ |
| 375 |
\cmd{geq} & $\geq$ & $\geqslant$ \\ |
| 376 |
\cmd{nleq} & $\nleq$ & $\nleqslant$ \\ |
| 377 |
\cmd{ngeq} & $\ngeq$ & $\ngeqslant$ \\ |
| 378 |
\cmd{leqq} & $\leqq$ & $\leqqslant$ \\ |
| 379 |
\cmd{geqq} & $\geqq$ & $\geqqslant$ \\ |
| 380 |
\cmd{eqless} & $\eqless$ & $\eqslantless$ \\ |
| 381 |
\cmd{eqgtr} & $\eqgtr$ & $\eqslantgtr$ \\ |
| 382 |
\cmd{lesseqgtr} & $\lesseqgtr$ & $\lesseqslantgtr$ \\ |
| 383 |
\cmd{gtreqless} & $\gtreqless$ & $\gtreqslantless$ \\ |
| 384 |
\cmd{lesseqqgtr} & $\lesseqqgtr$ & $\lesseqqslantgtr$ \\ |
| 385 |
\cmd{gtreqqless} & $\gtreqqless$ & $\gtreqqslantless$ \\ |
| 386 |
\cmd{lesssim} & $\lesssim$ & $\lesssimslant$ \\ |
| 387 |
\cmd{gtrsim} & $\gtrsim$ & $\gtrsimslant$ \\ |
| 388 |
\cmd{simless} & $\simless$ & $\simlessslant$ \\ |
| 389 |
\cmd{simgtr} & $\simgtr$ & $\simgtrslant$ \\ |
| 390 |
\cmd{smte} & $\smte$ & $\smteslant$ \\ |
| 391 |
\cmd{late} & $\late$ & $\lateslant$ \\ |
| 392 |
\hline |
| 393 |
\end{tabular} |
| 394 |
}\hspace{10mm} % eof subfloat |
| 395 |
\subfloat[\texttt{Style=smaller\quad (+ss05)}]{\hlabel{ss05}% |
| 396 |
\begin{tabular}[t]{@{}lcc@{}} |
| 397 |
\hline |
| 398 |
Command & Default & Variant \\ |
| 399 |
\hline |
| 400 |
\cmd{in} & $\in$ & $\smallin$ \\ |
| 401 |
\cmd{ni} & $\ni$ & $\smallni$ \\ |
| 402 |
\cmd{mid} & $\mid$ & $\shortmid$ \\ |
| 403 |
\cmd{nmid} & $\nmid$ & $\nshortmid$ \\ |
| 404 |
\cmd{parallel} & $\parallel$ & $\shortparallel$ \\ |
| 405 |
\cmd{nparallel} & $\nparallel$ & $\nshortparallel$ \\ |
| 406 |
\cmd{parallelslant} & $\parallelslant$ & $\shortparallelslant$ \\ |
| 407 |
\cmd{nparallelslant} & $\nparallelslant$ & $\nshortparallelslant$ \\ |
| 408 |
\hline |
| 409 |
\end{tabular} |
| 410 |
}% eof subfloat |
| 411 |
\end{table} |
| 412 |
\stepcounter{table}% \subfloat steps counter table? |
| 413 |
|
| 414 |
\addtocounter{footnote}{-1} |
| 415 |
\ttbold{StylisticSet=6}, alias\footnotemark{} |
| 416 |
\ttbold{Style=subsetneq}, converts some inclusion |
| 417 |
symbols, see table~\vref{ss06}. |
| 418 |
|
| 419 |
\addtocounter{footnote}{-1} |
| 420 |
\ttbold{StylisticSet=7}, alias\footnotemark{} |
| 421 |
\ttbold{Style=parallelslant}, converts |
| 422 |
``parallel'' symbols into their slanted variants, see table~\vref{ss07}. |
| 423 |
\begin{table}[ht] |
| 424 |
\centering |
| 425 |
\caption{Stylistic Sets 6 and 7} |
| 426 |
\addtocounter{table}{-1}% \subfloat steps counter table? |
| 427 |
\subfloat[\texttt{Style=subsetneq\quad (+ss06)}]{\hlabel{ss06}% |
| 428 |
\begin{tabular}[t]{@{}lcc@{}} |
| 429 |
\hline |
| 430 |
Command & Default & Variant \\ |
| 431 |
\hline |
| 432 |
\cmd{subsetneq} & $\subsetneq$ & $\varsubsetneq$ \\ |
| 433 |
\cmd{supsetneq} & $\supsetneq$ & $\varsupsetneq$ \\ |
| 434 |
\cmd{subsetneqq} & $\subsetneqq$ & $\varsubsetneqq$ \\ |
| 435 |
\cmd{supsetneqq} & $\supsetneqq$ & $\varsupsetneqq$ \\ |
| 436 |
\hline |
| 437 |
\end{tabular} |
| 438 |
}\hspace{10mm} % eof subfloat |
| 439 |
\subfloat[\texttt{Style=parallelslant\quad (+ss07)}]{\hlabel{ss07}% |
| 440 |
\begin{tabular}[t]{@{}lcc@{}} |
| 441 |
\hline |
| 442 |
Command & Default & Variant \\ |
| 443 |
\hline |
| 444 |
\cmd{parallel} & $\parallel$ & $\parallelslant$ \\ |
| 445 |
\cmd{nparallel} & $\nparallel$ & $\nparallelslant$ \\ |
| 446 |
\cmd{shortparallel} & $\shortparallel$ & $\shortparallelslant$ \\ |
| 447 |
\cmd{nshortparallel} & $\nshortparallel$ & $\nshortparallelslant$ \\ |
| 448 |
\hline |
| 449 |
\end{tabular} |
| 450 |
} % eof subfloat |
| 451 |
\end{table} |
| 452 |
\stepcounter{table}% \subfloat steps counter table? |
| 453 |
|
| 454 |
\pagebreak[4] |
| 455 |
To enable Stylistic Sets 4, 6 and 7 for \FOTF{}, you should enter |
| 456 |
\begin{verbatim} |
| 457 |
\setmathfont{Erewhon-Math.otf}[StylisticSet={4,6,7}] or |
| 458 |
\usepackage[Style={leqslant,subsetneq,parallelslant}]{fourier-otf} |
| 459 |
\end{verbatim} |
| 460 |
then, \verb+\[x\leq y \quad A \subsetneq B\quad D \parallel D' \]+ |
| 461 |
will print as |
| 462 |
\setmathfont{Erewhon-Math.otf}[StylisticSet={4,6,7}] |
| 463 |
\[x\leq y \quad A \subsetneq B\quad D \parallel D' \] |
| 464 |
instead of |
| 465 |
\setmathfont{Erewhon-Math.otf} |
| 466 |
\[x\leq y \quad A \subsetneq B\quad D \parallel D' \] |
| 467 |
|
| 468 |
|
| 469 |
\subsection{Other font features} |
| 470 |
\label{ssec-other-features} |
| 471 |
|
| 472 |
\subsubsection{Oldstyle numbers} |
| 473 |
|
| 474 |
To get oldstyle numbers in maths, the feature \texttt{+onum} is available: |
| 475 |
\begin{verbatim} |
| 476 |
\setmathfont{Erewhon-Math.otf}[Numbers=OldStyle] or |
| 477 |
\usepackage[Style=fulloldstyle]{fourier-otf} |
| 478 |
\end{verbatim} |
| 479 |
|
| 480 |
\setmathfont{Erewhon-Math.otf}[Numbers=OldStyle] |
| 481 |
$0123456789, \symbf{0123456789}$ |
| 482 |
\setmathfont{Erewhon-Math.otf} |
| 483 |
|
| 484 |
\subsubsection{Delimiters’ size} |
| 485 |
|
| 486 |
When switching from Type\,1 to OpenType, Adobe has significantly increased% |
| 487 |
\footnote{Actually +21\% both in height and thickness!} |
| 488 |
the sizes of Utopia’s delimiters `()’, `[]’ and `\{\}’. Erewhon-Math has been |
| 489 |
built from Fourier (Utopia’s Type\,1 type faces% |
| 490 |
\footnote{Scaled at 94\% instead of 92\% to match Erewhon text fonts.}), |
| 491 |
while the Erewhon text fonts have been built from the OpenType version; |
| 492 |
the difference was visible on examples like \verb|($P(n)$)| which has been |
| 493 |
typeset as% |
| 494 |
\setmathfont{Erewhon-Math.otf}[Style=smalldelim] ($P(n)$) |
| 495 |
by versions up to~0.53.% |
| 496 |
\setmathfont{Erewhon-Math.otf} |
| 497 |
|
| 498 |
This glitch is now fixed, you get now ($P(n)$), [$P[n]$], \{$P\{n\}$\}. |
| 499 |
An option \opt{Style=smalldelim} (\opt{+ss09}), |
| 500 |
which can be passed either to the \pkg{fourier-otf} package or to the |
| 501 |
\verb|\setmathfont| command, has been added in version~0.54 for backward |
| 502 |
compatibility: it reverts to the former behaviour. |
| 503 |
|
| 504 |
\subsection{Standard LaTeX math commands} |
| 505 |
\label{ssec-math-commands} |
| 506 |
|
| 507 |
All standard LaTeX maths commands, all \pkg{amssymb} commands and all |
| 508 |
\pkg{latexsym} commands are supported by \FOTF{}, for some of them loading |
| 509 |
\pkg{fourier-otf.sty} is required. |
| 510 |
|
| 511 |
Various wide accents are also supported: |
| 512 |
\begin{itemize} |
| 513 |
\item \cmd{wideoverbar} and \cmd{mathunderbar}% |
| 514 |
\footnote{\cmd{overline} and \cmd{underline} are not font related, |
| 515 |
they are based on \cmd{rule}.} |
| 516 |
\[\wideoverbar{x}\quad \wideoverbar{xy}\quad \wideoverbar{xyz}\quad |
| 517 |
\wideoverbar{A\cup B}\quad \wideoverbar{A\cup (B\cap C)\cup D}\quad |
| 518 |
\mathunderbar{m+n+p}\] |
| 519 |
|
| 520 |
\item \cmd{widehat} and \cmd{widetilde} |
| 521 |
\[\widehat{x}\; \widehat{xx} \;\widehat{xxx} \;\widehat{xxxx}\; |
| 522 |
\widehat{xxxxx} \;\widehat{xxxxxx} \;\widetilde{x}\; \widetilde{xx}\; |
| 523 |
\widetilde{xxx} \;\widetilde{xxxx} \;\widetilde{xxxxx}\; |
| 524 |
\widetilde{xxxxxx}\] |
| 525 |
|
| 526 |
\item \cmd{widecheck} and \cmd{widebreve} |
| 527 |
\[\widecheck{x}\quad \widecheck{xxxx}\quad \widecheck{xxxxxx}\quad |
| 528 |
\widebreve{x}\quad \widebreve{xxxx}\quad \widebreve{xxxxxx}\] |
| 529 |
|
| 530 |
\item \cmd{overparen} and \cmd{underparen} |
| 531 |
\[\overparen{x}\quad \overparen{xy}\quad \overparen{xyz}\quad |
| 532 |
\mathring{\overparen{A\cup B}}\quad |
| 533 |
\overparen{A\cup (B\cap C)\cup D}^{\smwhtcircle}\quad |
| 534 |
\overparen{x+y}^{2}\quad \overparen{a+b+...+z}^{26}\] |
| 535 |
\[\underparen{x}\quad \underparen{xz} \quad \underparen{xyz} |
| 536 |
\quad \underparen{x+z}_{2}\quad \underparen{a+b+...+z}_{26}\] |
| 537 |
|
| 538 |
\item \cmd{overbrace} and \cmd{underbrace} |
| 539 |
\[\overbrace{a}\quad \overbrace{ab}\quad \overbrace{abc}\quad |
| 540 |
\overbrace{abcd}\quad \overbrace{abcde}\quad |
| 541 |
\overbrace{a+b+c}^{3}\quad \overbrace{ a+b+. . . +z }^{26}\] |
| 542 |
\[\underbrace{a}\quad\underbrace{ab}\quad\underbrace{abc}\quad |
| 543 |
\underbrace{abcd}\quad \underbrace{abcde}\quad |
| 544 |
\underbrace{a+b+c}_{3} \quad \underbrace{ a+b+...+z }_{26}\] |
| 545 |
|
| 546 |
\item \cmd{overbracket} and \cmd{underbracket} |
| 547 |
\[\overbracket{a}\quad \overbracket{ab}\quad \overbracket{abc}\quad |
| 548 |
\overbracket{abcd}\quad \overbracket{abcde}\quad |
| 549 |
\overbracket{a+b+c}^{3}\quad \overbracket{ a+b+. . . +z }^{26}\] |
| 550 |
\[\underbracket{a}\quad\underbracket{ab}\quad\underbracket{abc}\quad |
| 551 |
\underbracket{abcd}\quad \underbracket{abcde}\quad |
| 552 |
\underbracket{a+b+c}_{3} \quad \underbracket{ a+b+...+z }_{26}\] |
| 553 |
|
| 554 |
\item \cmd{overrightarrow} and \cmd{overleftarrow} |
| 555 |
\[\overrightarrow{v}\quad \overrightarrow{M}\quad \overrightarrow{vv} |
| 556 |
\quad \overrightarrow{AB}\quad \overrightarrow{ABC} |
| 557 |
\quad \overrightarrow{ABCD} \quad \overrightarrow{ABCDEFGH}. |
| 558 |
\] |
| 559 |
\[\overleftarrow{v}\quad \overleftarrow{M}\quad \overleftarrow{vv} |
| 560 |
\quad \overleftarrow{AB}\quad \overleftarrow{ABC} |
| 561 |
\quad \overleftarrow{ABCD} \quad \overleftarrow{ABCDEFGH}\] |
| 562 |
|
| 563 |
\item \cmd{overrightharpoon} and \cmd{overleftharpoon} |
| 564 |
\[\overrightharpoon{v}\quad \overrightharpoon{M}\quad \overrightharpoon{vv} |
| 565 |
\quad \overrightharpoon{AB}\quad \overrightharpoon{ABC} |
| 566 |
\quad \overrightharpoon{ABCD} \quad \overrightharpoon{ABCDEFGH}. |
| 567 |
\] |
| 568 |
\[\overleftharpoon{v}\quad \overleftharpoon{M}\quad \overleftharpoon{vv} |
| 569 |
\quad \overleftharpoon{AB}\quad \overleftharpoon{ABC} |
| 570 |
\quad \overleftharpoon{ABCD} \quad \overleftharpoon{ABCDEFGH}\] |
| 571 |
|
| 572 |
\item \cmd{underrightarrow} and \cmd{underleftarrow} |
| 573 |
\[\underrightarrow{v}\quad \underrightarrow{M}\quad \underrightarrow{vv} |
| 574 |
\quad \underrightarrow{AB}\quad \underrightarrow{ABC} |
| 575 |
\quad \underrightarrow{ABCD} \quad \underrightarrow{ABCDEFGH}. |
| 576 |
\] |
| 577 |
\[\underleftarrow{v}\quad \underleftarrow{M}\quad \underleftarrow{vv} |
| 578 |
\quad \underleftarrow{AB}\quad \underleftarrow{ABC} |
| 579 |
\quad \underleftarrow{ABCD} \quad \underleftarrow{ABCDEFGH}\] |
| 580 |
|
| 581 |
\item \cmd{underrightharpoon} and \cmd{underleftharpoondown} |
| 582 |
\[\underrightharpoondown{v}\quad \underrightharpoondown{M}\quad |
| 583 |
\underrightharpoondown{vv}\quad \underrightharpoondown{AB}\quad |
| 584 |
\underrightharpoondown{ABC}\quad \underrightharpoondown{ABCD}\quad |
| 585 |
\underrightharpoondown{ABCDEFGH}. |
| 586 |
\] |
| 587 |
\[\underleftharpoondown{v}\quad \underleftharpoondown{M}\quad |
| 588 |
\underleftharpoondown{vv}\quad \underleftharpoondown{AB}\quad |
| 589 |
\underleftharpoondown{ABC}\quad \underleftharpoondown{ABCD} |
| 590 |
\quad \underleftharpoondown{ABCDEFGH}. |
| 591 |
\] |
| 592 |
|
| 593 |
\item Finally \cmd{widearc} and \cmd{overrightarc} |
| 594 |
(loading \pkg{fourier-otf.sty} is required) |
| 595 |
\[\widearc{AMB}\quad \overrightarc{AMB}\] |
| 596 |
\end{itemize} |
| 597 |
|
| 598 |
All extensible arrows provided by the \pkg{mathtools} package are |
| 599 |
available in the \FOTF{} font (loading \pkg{fourier-otf.sty} is required), |
| 600 |
f.i.: |
| 601 |
\[X \xLeftrightarrow{\text{above}} Y \xhookrightarrow[\text{under}]{} |
| 602 |
Z\xmapsto{\text{above}} W\] |
| 603 |
|
| 604 |
A wide range of extensible vertical delimiters is provided: |
| 605 |
\[ \left/ |
| 606 |
\begin{pmatrix} a_{1} \\ a_{2} \\ a_{3} \end{pmatrix} |
| 607 |
\begin{bmatrix} a_{1} \\ a_{2} \\ a_{3} \end{bmatrix} |
| 608 |
\begin{Bmatrix} a_{1} \\ a_{2} \\ a_{3} \end{Bmatrix} |
| 609 |
\begin{vmatrix} a_{1} \\ a_{2} \\ a_{3} \end{vmatrix} |
| 610 |
\begin{Vmatrix} a_{1} \\ a_{2} \\ a_{3} \end{Vmatrix} |
| 611 |
\left\lVvert\begin{array}{c} a_{1} \\ a_{2} \\ a_{3} \end{array}\right\Vvert |
| 612 |
\left\lceil \begin{array}{c} a_{1} \\ a_{2} \\ a_{3} \end{array}\right\rceil |
| 613 |
\left\lfloor\begin{array}{c} a_{1} \\ a_{2} \\ a_{3} \end{array}\right\rfloor |
| 614 |
\left\lBrack\begin{array}{c} a_{1} \\ a_{2} \\ a_{3} \end{array}\right\rBrack |
| 615 |
\left\langle\begin{array}{c} a_{1} \\ a_{2} \\ a_{3} \end{array}\right\rangle |
| 616 |
\left\lAngle\begin{array}{c} a_{1} \\ a_{2} \\ a_{3} \end{array}\right\rAngle |
| 617 |
\right\backslash \] |
| 618 |
|
| 619 |
|
| 620 |
\subsection{Mathematical alphabets} |
| 621 |
\label{ssec-math-alphabets} |
| 622 |
|
| 623 |
\setmathfont{Erewhon-Math} |
| 624 |
\setmathfont{Erewhon-Math}[range={cal,bfcal},StylisticSet=1] |
| 625 |
\begin{itemize} |
| 626 |
\item All Latin and Greek characters are available in italic, upright, bold |
| 627 |
and bold italic via the \verb+\symit{}+, \verb+\symup{}+, \verb+\symbf{}+ |
| 628 |
and \verb+\symbfit{}+ commands. |
| 629 |
|
| 630 |
\item Calligraphic alphabet (\cmd{symscr} or \cmd{symcal} command)% |
| 631 |
\footnote{See section~\ref{ssection-ss} for alternate shapes: |
| 632 |
$\symcal{ABCDEF}$ and $\symbfcal{ABCDEF}$.}, |
| 633 |
uppercase only:\\ |
| 634 |
$\symscr{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$\\ |
| 635 |
\addtocounter{footnote}{-1} |
| 636 |
also in boldface (\cmd{symbfscr} or \cmd{symbfcal} command)\footnotemark:\\ |
| 637 |
$\symbfscr{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$ |
| 638 |
|
| 639 |
\item Blackboard-bold alphabet (\cmd{symbb} command): |
| 640 |
|
| 641 |
$\symbb{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$\\ |
| 642 |
$\symbb{abcdefghijklmnopqrstuvwxyz\quad 0123456789}$ |
| 643 |
|
| 644 |
\item Fraktur alphabet is borrowed from Latin Modern (\cmd{symfrak} command): |
| 645 |
|
| 646 |
$\symfrak{ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz}$ |
| 647 |
|
| 648 |
but this can overwritten, i.e.\\ |
| 649 |
\verb+\setmathfont{Asana-Math.otf}[range=frak,Scale=MatchUppercase]+\\ |
| 650 |
\verb+$\symfrak{ABCDEFGHIJKL...XYZ abcdefghijkl...xyz}$+\\ |
| 651 |
\setmathfont{Asana-Math.otf}[range=frak,Scale=MatchUppercase] |
| 652 |
$\symfrak{ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz}$ |
| 653 |
|
| 654 |
\item Sans serif alphabet is borrowed from Latin Modern (\cmd{symsfup} or |
| 655 |
\cmd{symsfit} command): |
| 656 |
|
| 657 |
$\symsfup{ABCDEFGHIJKLM abcdefghijk}\quad\symsfit{NOPQRSTUVWXYZ mnopqrstuvwxyz}$ |
| 658 |
|
| 659 |
but it can be borrowed from another maths font, i.e.\\ |
| 660 |
\verb+\setmathfont{STIXTwoMath-Regular.otf}[range={sfup,sfit},+\\ |
| 661 |
\verb+ Scale=MatchUppercase]+\\ |
| 662 |
\verb+$\symsfup{ABCD...klm}\quad\symsfit{NOPQ...xyz}$+\\ |
| 663 |
\setmathfont{STIXTwoMath-Regular.otf}[range={sfup,sfit},Scale=MatchUppercase] |
| 664 |
$\symsfup{ABCDEFGHIJKLM abcdefghijklm}\quad |
| 665 |
\symsfit{NOPQRSTUVWXYZ nopqrstuvwxyz}$ |
| 666 |
|
| 667 |
\item Typewriter alphabet is borrowed from Latin Modern (\cmd{symtt} command):\\ |
| 668 |
$\symtt{ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz}$ |
| 669 |
|
| 670 |
but it can be borrowed from another Math font, i.e.\\ |
| 671 |
\verb+\setmathfont{STIXTwoMath-Regular.otf}[range=tt,Scale=MatchUppercase]+\\ |
| 672 |
\verb+$\symtt{ABCDE...XYZ abcde...xyz}$+\\ |
| 673 |
\setmathfont{STIXTwoMath-Regular.otf}[range=tt,Scale=MatchUppercase] |
| 674 |
$\symtt{ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz}$ |
| 675 |
\end{itemize} |
| 676 |
|
| 677 |
Like Latin Modern, Erewhon-Math provides only four lowercase Latin letters in |
| 678 |
script (or calligraphic) shape: $\mscre$, $\mscrg$, $\ell$, $\mscro$ |
| 679 |
(\verb+\mscre+, \verb+\mscrg+, \verb+\ell+, \verb+\mscro+). |
| 680 |
|
| 681 |
All others have to be borrowed from another maths font if needed, i.e.\\ |
| 682 |
\verb+\setmathfont{Garamond-Math.otf}[range=\symscr/latin,+% |
| 683 |
\footnote{\texttt{/latin}: lowercase (latin) only; |
| 684 |
\texttt{/Latin}: uppercase (latin) only.}\\ |
| 685 |
\verb+ Scale=MatchLowercase]+\\ |
| 686 |
\verb+$\symscr{a}\symscr{b}\symscr{c} ... \symscr{z}$+\\ |
| 687 |
\setmathfont{Erewhon-Math.otf} |
| 688 |
\setmathfont{Garamond-Math.otf}[range=\symscr/latin, Scale=MatchLowercase] |
| 689 |
$\symscr{a}\symscr{b}\symscr{c}\symscr{d}\symscr{e}\symscr{f}\symscr{g} |
| 690 |
\symscr{h}\symscr{i}\symscr{j}\symscr{k}\symscr{l}\symscr{m}\symscr{n} |
| 691 |
\symscr{o}\symscr{p}\symscr{q}\symscr{r}\symscr{s}\symscr{t}\symscr{u} |
| 692 |
\symscr{v}\symscr{w}\symscr{x}\symscr{y}\symscr{z}$ |
| 693 |
|
| 694 |
\subsection{Bold variant} |
| 695 |
|
| 696 |
\setmathfont{Erewhon-Math.otf}[BoldFont=Erewhon-Math-Bold.otf] |
| 697 |
In case short maths formulas have to be printed in section titles, |
| 698 |
a \emph{limited} bold variant has been added in version~0.54. |
| 699 |
Example of usage: \quad\textbf{\boldmath Einstein’s equation $E=mc^2$}\\ |
| 700 |
\verb+\setmathfont{Erewhon-Math-Bold.otf}[version=bold, +\textit{options}\verb+]+ |
| 701 |
\\ |
| 702 |
\verb+\section{\mathversion{bold} Einstein’s equation $E=mc^2$}+ |
| 703 |
|
| 704 |
It is also possible to use the \verb+\boldmath+ command:\\ |
| 705 |
\verb+\setmathfont{Erewhon-Math-Regular.otf}[BoldFont=Erewhon-Math-Bold.otf]+\\ |
| 706 |
\verb+\section{\boldmath Einstein’s equation $E=mc^2$}+ |
| 707 |
|
| 708 |
\subsection{Missing symbols} |
| 709 |
|
| 710 |
\FOTF{} does not aim at being as complete as \file{STIXTwoMath-Regular} or |
| 711 |
\file{Cambria}, the current glyph coverage compares with TeXGyre maths fonts. |
| 712 |
In case some symbols do not show up in the output file, you will see warnings |
| 713 |
in the \file{.log} file, for instance: |
| 714 |
|
| 715 |
\setmathfont{STIXTwoMath-Regular.otf}[range={"2964}] |
| 716 |
\texttt{Missing character: There is no }$⥤$% |
| 717 |
\texttt{ (U+2964) in font ErewhonMath} |
| 718 |
|
| 719 |
Borrowing them from a more complete font, say \file{Asana-Math}, |
| 720 |
is a possible workaround: |
| 721 |
\verb+\setmathfont{Asana-Math.otf}[range={"2964},Scale=1.02]+\\ |
| 722 |
scaling is possible, multiple character ranges are separated with commas:\\ |
| 723 |
\verb+\setmathfont{Asana-Math.otf}[range={"294A-"2951,"2964,"2ABB-"2ABE}]+ |
| 724 |
|
| 725 |
Let’s mention \pkg{albatross}, a useful tool to find out the list of fonts |
| 726 |
providing a given glyph: f.i. type in a terminal |
| 727 |
``\texttt{albatross -t U+2964}'', see the manpage or |
| 728 |
\file{albatross-manual.pdf}. |
| 729 |
|
| 730 |
\subsection{Fourier ornaments} |
| 731 |
|
| 732 |
When loaded by \verb+\usepackage{fourier-otf}+, Erewhon-Math loads |
| 733 |
\pkg{fourier-orns.sty} which provides all logos and ornaments available |
| 734 |
in \FGUT. |
| 735 |
|
| 736 |
\pkg{fourier-orns.sty} as of v2.x automatically fetches its glyphs in |
| 737 |
a specific OpenType font with LuaTeX or XeTeX engines and from |
| 738 |
a Type\,1 font otherwise (pdfTeX). |
| 739 |
|
| 740 |
\begin{raggedright} |
| 741 |
\begin{itemize} |
| 742 |
|
| 743 |
%%%\item \showtchar{textpertenthousand}, \textit{\textpertenthousand}, |
| 744 |
%%% \textbf{\textpertenthousand}, \textbf{\textit{\textpertenthousand}}. |
| 745 |
|
| 746 |
\item A variant of the euro symbol: \showtchar{eurologo}, \textit{\eurologo}, |
| 747 |
\textbf{\eurologo}, \textbf{\textit{\eurologo}}. |
| 748 |
|
| 749 |
\item Two ``starred'' bullets: \showtchar{starredbullet}, \showtchar{decosix}. |
| 750 |
|
| 751 |
\item Decos and logos: \showtchar{warning}, \showtchar{noway}, |
| 752 |
\showtchar{caution}, \showtchar{bomb},\\ |
| 753 |
\showtchar{decoone}, \showtchar{decotwo}, \showtchar{decothreeleft}, |
| 754 |
\showtchar{decothreeright}, |
| 755 |
\showtchar{decofourleft}, \showtchar{decofourright}, |
| 756 |
\showtchar{floweroneleft}, \showtchar{floweroneright},\\ |
| 757 |
\showtchar{lefthand}, \showtchar{righthand}, |
| 758 |
\showtchar{textxswup}, \showtchar{textxswdown}. |
| 759 |
|
| 760 |
\item Smileys: \showtchar{grimace}, \showtchar{textthing}. |
| 761 |
|
| 762 |
\item Leaves: \showtchar{aldineleft}, \showtchar{aldineright}, |
| 763 |
\showtchar{aldine}, \showtchar{aldinesmall}, %\\ |
| 764 |
\showtchar{leafleft}, \showtchar{leafright}, \showtchar{leafNE}, |
| 765 |
\showtchar{leafNW}, \showtchar{leafSE}, \showtchar{leafSW}. |
| 766 |
|
| 767 |
\item Pilcrows: \showtchar{oldpilcrowone}, \showtchar{oldpilcrowtwo}, |
| 768 |
\showtchar{oldpilcrowthree}, %\\ |
| 769 |
\showtchar{oldpilcrowfour}, |
| 770 |
\showtchar{oldpilcrowfive} aaaa, %\\ |
| 771 |
\showtchar{oldpilcrowsix} aaaaaaaaaaa. |
| 772 |
\end{itemize} |
| 773 |
\end{raggedright} |
| 774 |
|
| 775 |
All these logos and ornaments are also available as described in the |
| 776 |
\pkg{fournier-orns} documentation: for instance, you could type |
| 777 |
\verb+{\FourierOrns E 2 F}+ to get {\FourierOrns E 2 F}. |
| 778 |
|
| 779 |
\vspace{\baselineskip} |
| 780 |
Finally, some symbols are also provided in maths mode, with other names: |
| 781 |
\begin{itemize} |
| 782 |
\item \showmchardollar{forbidden}, \showmchardollar{beware}, |
| 783 |
\showmchardollar{boom}, |
| 784 |
\item \showmchardollar{thething} is a \emph{QED symbol} |
| 785 |
for a false proof. Of course, you don't need it! |
| 786 |
\item \showmchardollar{xswordsup} and \showmchardollar{xswordsdown} may be used |
| 787 |
as tags for a debated statement, or for anything else. |
| 788 |
\end{itemize} |
| 789 |
|
| 790 |
\section{Acknowledgements} |
| 791 |
|
| 792 |
All glyphs in \FOTF{} are borrowed or derived either from Erewhon fonts or |
| 793 |
\FGUT{} package. Many thanks to Michael Sharpe and Michel Bovani for |
| 794 |
providing these. |
| 795 |
|
| 796 |
I am grateful to George Williams and his co-workers for providing and |
| 797 |
maintaining FontForge and to Ulrik Vieth for his illuminating paper published |
| 798 |
in TUGboat~2009 Volume~30 about OpenType Math. |
| 799 |
|
| 800 |
Thanks to Oliver Natt for providing valuable feedback! |
| 801 |
|
| 802 |
\bigskip |
| 803 |
\begin{center}\Huge |
| 804 |
\decotwo |
| 805 |
\end{center} |
| 806 |
|
| 807 |
\end{document} |
| 808 |
|
| 809 |
%%% Local Variables: |
| 810 |
%%% mode: latex |
| 811 |
%%% TeX-engine: luatex |
| 812 |
%%% TeX-master: t |
| 813 |
%%% coding: utf-8 |
| 814 |
%%% End: |