summaryrefslogtreecommitdiff
path: root/fonts/erewhon-math/Erewhon-Math.ltx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-10-20 03:04:26 +0000
committerNorbert Preining <norbert@preining.info>2022-10-20 03:04:26 +0000
commit3b961a61ef9fb89adf20a89550d5de0bfe135448 (patch)
treee36f997e624c704dbb4ed2b5fdbd02835ea3c133 /fonts/erewhon-math/Erewhon-Math.ltx
parent7b6cdf4c23e6ed232601dabc70f5553a8dee9c9b (diff)
CTAN sync 202210200304
Diffstat (limited to 'fonts/erewhon-math/Erewhon-Math.ltx')
-rw-r--r--fonts/erewhon-math/Erewhon-Math.ltx178
1 files changed, 120 insertions, 58 deletions
diff --git a/fonts/erewhon-math/Erewhon-Math.ltx b/fonts/erewhon-math/Erewhon-Math.ltx
index 4ca380b126..408aa56d4c 100644
--- a/fonts/erewhon-math/Erewhon-Math.ltx
+++ b/fonts/erewhon-math/Erewhon-Math.ltx
@@ -34,22 +34,22 @@
\title{\decofourleft\,\FOTF\,\decofourright}
\author{Daniel Flipo \\ \texttt{daniel.flipo@free.fr}}
-\newcommand*{\version}{0.53}
+\newcommand*{\version}{0.54}
\begin{document}
\maketitle
\section{What is \FOTF{}?}
-\FOTF{} is an Utopia based Opentype mathematical font.
-The mathematical symbols and Greek letters are borrowed or derived from
+\FOTF{} is an Utopia based OpenType maths font.
+The maths symbols and Greek letters are borrowed or derived from
Michel Bovani’s \FGUT, Latin letters and digits are borrowed from
Michael Shape’s Erewhon font.
It requires LuaTeX or XeTeX as engine and the \pkg{unicode-math} package%
\footnote{Please read the documentation \file{unicode-math.pdf}.}.
-It is meant to be used with Utopia based Opentype text fonts like {Erewhon}.
+It is meant to be used with Utopia based OpenType text fonts like {Erewhon}.
For \FGUT{} users who want to switch to LuaLaTeX or XeLaTeX, the
file \file{fourier-otf.sty} can be used as a replacement of \file{fourier.sty}.
@@ -67,14 +67,17 @@ A basic call for \FOTF{} would be:
\setmathfont{Erewhon-Math.otf} % Call by file name or
\setmathfont{Erewhon Math} % Call by font name
\end{verbatim}
-this loads \FOTF{} as math font with the default options, see
-subsections~\vref{ssection-um}, \vref{ssection-cv} and~\vref{ssection-ss}
-for customisation.
+this loads \FOTF{} as maths font%
+\footnote{Both calls work equally well with LuaTeX; with XeTeX a call by font
+ name will fail unless the font is declared as a \emph{system font}.}
+with the default options, see subsections~\vref{ssection-um},
+\vref{ssection-cv} and~\vref{ssection-ss} for customisation.
-\enlargethispage*{\baselineskip}
Please note that the three sets of text fonts have to be chosen separately,
-f.i.:\\[.25\baselineskip]
-\verb+\setmainfont{erewhon}+%
+f.i.:%\\[.25\baselineskip]
+
+\pagebreak[4]
+\noindent\verb+\setmainfont{erewhon}+%
\footnote{\texttt{Erewhon} (with capital E) is fine with LuaTeX but
would fail with XeTeX (\file{erewhon.fontspec} not found).}%
\hspace{62mm}\texttt{\% rm}\\
@@ -87,11 +90,11 @@ otherwise you would get Latin Modern for text fonts.
As an alternative to load \FOTF{} you can type:\\[.5\baselineskip]
\verb+\usepackage[ +\textit{options}
\footnote{Possible \textit{options} are \opt{loose}, \opt{no-text}, \opt{Scale=}
- or any of the options described in sections \ref{ssection-um},
- \ref{ssection-cv} and \ref{ssection-ss}.}%
+ or any of the options described in sections \ref{ssection-um} to
+ \ref{ssec-other-features}.}%
\verb+ ]{fourier-otf}+\\[.5\baselineskip]
it loads \pkg{unicode-math} with the default options, sets Erewhon-Math
-as Math font and Erewhon Text fonts as Roman fonts
+as maths font and Erewhon Text fonts as Roman fonts
(families \textit{sf} and \textit{tt} left unchanged) but does a bit more:
\begin{enumerate}
\item it loads \pkg{realscripts.sty} for better superscripts and footnote calls;
@@ -100,11 +103,11 @@ as Math font and Erewhon Text fonts as Roman fonts
\pkg{latexsym} are loaded and issues warnings in case they are;
\item it provides aliases for glyphs named differently in Unicode, so that
\pkg{latexsym} or AMS names are also available;
-\item it defines specific Math characters like \showmchar{Bbbbackslash},
+\item it defines specific maths characters like \showmchar{Bbbbackslash},
\showmchar{varemptyset}, \linebreak[4]
\showmchar{parallelslant},
\showmchar{shortparallelslant}, etc.;
-\item it reduces spacing in math mode: \cmd{thinmuskip}, \cmd{medmuskip}
+\item it reduces spacing in maths mode: \cmd{thinmuskip}, \cmd{medmuskip}
and \cmd{thickmuskip} are reduced as in \file{fourier.sty}.
% \verb+\thinmuskip=2mu+,\\
% \verb+\medmuskip=2.5mu plus 1mu minus 2.5mu+,\\
@@ -112,10 +115,10 @@ as Math font and Erewhon Text fonts as Roman fonts
The option \opt{loose} disables these settings.
\end{enumerate}
-Apart from the \opt{loose} option mentionned above, \pkg{fourier-otf.sty}
+Apart from the \opt{loose} option mentioned above, \pkg{fourier-otf.sty}
provides two options \opt{no-text} and \opt{Scale=}\textsl{<decimal>} meant to
be used to load the \FOTF{} font together with roman text fonts other than
-Erewhon, while keeping the advantages 1. to 5. pointed in the preceeding list,
+Erewhon, while keeping the advantages 1. to 5. pointed in the preceding list,
f.i.\quad \verb+\usepackage[no-text,Scale=0.98]{fourier-otf}+
Option \opt{no-text} can also be useful if Erewhon is to be loaded with
@@ -131,7 +134,7 @@ two packages \emph{should not} be loaded as they might override \FOTF{} glyphs.
Sans-serif, typewriter and fraktur styles are borrowed from Latin Modern fonts.
See in section~\vref{ssec-math-alphabets} how to choose
-from other Math fonts for these styles.
+from other maths fonts for these styles.
A full list of available glyphs is shown in file \file{unimath-erewhon.pdf}.
@@ -139,7 +142,7 @@ A full list of available glyphs is shown in file \file{unimath-erewhon.pdf}.
\label{ssection-um}
Package \pkg{unicode-math} follows \TeX{} conventions for Latin and Greek
-letters: in math mode, the default option (\opt{math-style=TeX}) prints
+letters: in maths mode, the default option (\opt{math-style=TeX}) prints
Latin letters $a$…$z$ $A$…$Z$ and lowercase greek letters $\alpha$…$\omega$
slanted (italic) while uppercase greek letters $\Alpha \Beta \Gamma$…$\Omega$
are printed upright.
@@ -190,24 +193,24 @@ be added to the \cmd{setmathfont} call%
\footnote{IMHO it is easier to add \emph{all options} to the \cmd{setmathfont}
command.}, for example:
-\verb+\setmathfont{Erewhon Math}[math-style=french,partial=upright]+\\
+\verb+\setmathfont{Erewhon-Math.otf}[math-style=french,partial=upright]+\\
will print for the code
\begin{verbatim}
\[ \frac{\partial f}{\partial x} = \alpha \symbf{V} + a\nabla\Gamma
+ \symbf{\beta}\symbf{M} \]
\end{verbatim}
-\setmathfont{Erewhon Math}[math-style=french,partial=upright]
+\setmathfont{Erewhon-Math.otf}[math-style=french,partial=upright]
\[\frac{\partial f}{\partial x} = \alpha \symbf{V} + a\nabla\Gamma +
\symbf{\beta}\symbf{M} \]
while the default settings would print
-\setmathfont{Erewhon Math}[math-style=TeX,partial=italic]
+\setmathfont{Erewhon-Math.otf}[math-style=TeX,partial=italic]
\[\frac{\partial f}{\partial x} = \alpha \symbf{V} + a\nabla\Gamma +
\symbf{\beta}\symbf{M} \]
Both shapes remain available anytime: \verb+$\uppi,\itpi$+
prints $\uppi, \itpi$.
-If your text editor is able to handle greek letters or math symbols, they can
+If your text editor is able to handle Greek letters or maths symbols, they can
be entered in the code instead control sequences (i.e.
$\symup{α}$, $\symup{β}$, $\symup{Γ}$,… for \cmd{alpha}, \cmd{beta},
\cmd{Gamma},…).
@@ -250,14 +253,14 @@ For instance, to get \cmd{epsilon} and \cmd{phi} typeset as $\varepsilon$
and $\varphi$ instead of $\epsilon$ and $\phi$, you can add option
\verb+CharacterVariant={3,6}+ to the \cmd{setmathfont} call:
\begin{verbatim}
-\setmathfont{Erewhon Math}[CharacterVariant={3,6}]
+\setmathfont{Erewhon-Math.otf}[CharacterVariant={3,6}]
\end{verbatim}
This works for all shapes and weights of these characters: f.i.\ %
\verb+$\symbf{\epsilon}$+, \verb+$\symbf{\phi}$+ are output as
-\setmathfont{Erewhon Math}[CharacterVariant={3,6}]$\symbf{\epsilon}$,
+\setmathfont{Erewhon-Math.otf}[CharacterVariant={3,6}]$\symbf{\epsilon}$,
$\symbf{\phi}$ instead of
-\setmathfont{Erewhon Math}$\symbf{\epsilon}$, $\symbf{\phi}$.
+\setmathfont{Erewhon-Math.otf}$\symbf{\epsilon}$, $\symbf{\phi}$.
Similarly with \opt{math-style=french}, \verb+\epsilon+ and \verb+\phi+
are output as $\symup{\varepsilon}$ and $\symup{\varphi}$ (upright).
@@ -278,11 +281,11 @@ variant \texttt{cv01} or with \cmd{mithbar} (replacement for AMS’ command
\label{ssection-ss}
\FOTF{} provides five ``Stylistic Sets’’ options to choose between different
-glyphs for families of mathematical symbols.
+glyphs for families of maths symbols.
\verb+StylisticSet=4+, alias%
\footnote{These \texttt{Style} aliases are provided by \file{fourier-otf.sty}.}
- \verb+Style=leqslant+, converts (large) inequalites into their slanted
+ \verb+Style=leqslant+, converts (large) inequalities into their slanted
variants, see table~\vref{ss04}.
\verb+StylisticSet=5+, alias \verb+Style=smaller+, converts some symbols into
@@ -328,7 +331,6 @@ their smaller variants, see table~\vref{ss05}.
}% eof subfloat
\end{table}
-\pagebreak[4]
\verb+StylisticSet=6+, alias \verb+Style=subsetneq+, converts some inclusion
symbols, see table~\vref{ss06}.
@@ -365,18 +367,17 @@ symbols, see table~\vref{ss06}.
To enable Stylistic Sets 4, 6 and 7 for \FOTF{}, you should enter
\begin{verbatim}
-\setmathfont{Erewhon Math}[StylisticSet={4,6,7}] or
+\setmathfont{Erewhon-Math.otf}[StylisticSet={4,6,7}] or
\usepackage[Style={leqslant,subsetneq,parallelslant}]{fourier-otf}
\end{verbatim}
then, \verb+\[x\leq y \quad A \subsetneq B\quad D \parallel D' \]+
will print as
-\setmathfont{Erewhon Math}[StylisticSet={4,6,7}]
+\setmathfont{Erewhon-Math.otf}[StylisticSet={4,6,7}]
\[x\leq y \quad A \subsetneq B\quad D \parallel D' \]
instead of
-\setmathfont{Erewhon Math}
+\setmathfont{Erewhon-Math.otf}
\[x\leq y \quad A \subsetneq B\quad D \parallel D' \]
-\pagebreak[4]
\verb+StylisticSet=3+, alias%
\footnote{These \texttt{Style} aliases are provided by \file{fourier-otf.sty}.}
\verb+Style=upint+, converts integrals signs into their upright
@@ -417,24 +418,44 @@ variants, see table~\vref{ss03}.
\subsection{Other font features}
\label{ssec-other-features}
-To get oldstyle numbers in Maths, the feature \texttt{+onum} is available:
+\subsubsection{Oldstyle numbers}
+
+To get oldstyle numbers in maths, the feature \texttt{+onum} is available:
\begin{verbatim}
-\setmathfont{Erewhon Math}[Numbers=OldStyle] or
-\usepackage[Style={fulloldstyle]{fourier-otf}
+\setmathfont{Erewhon-Math.otf}[Numbers=OldStyle] or
+\usepackage[Style=fulloldstyle]{fourier-otf}
\end{verbatim}
-\setmathfont{Erewhon Math}[Numbers=OldStyle]
+\setmathfont{Erewhon-Math.otf}[Numbers=OldStyle]
$0123456789, \symbf{0123456789}$
\setmathfont{Erewhon-Math.otf}
+\subsubsection{Delimiters’ size}
+
+When switching from Type\,1 to OpenType, Adobe has significantly increased%
+\footnote{Actually +21\% both in height and thickness!}
+the sizes of Utopia’s delimiters `()’, `[]’ and `\{\}’. Erewhon-Math has been
+built from Fourier (Utopia’s Type\,1 type faces), while the Erewhon text fonts
+have been built from the OpenType version; the difference was visible on
+examples like \verb|($P(n)$)| which has been typeset as%
+\setmathfont{Erewhon-Math.otf}[Style=smalldelim] ($P(n)$)
+by versions up to~0.53.%
+\setmathfont{Erewhon-Math.otf}
+
+This glitch is now fixed, you get now ($P(n)$), [$P[n]$], \{$P\{n\}$\}.
+An option \opt{Style=smalldelim} (\opt{+ss09}),
+which can be passed either to the \pkg{fourier-otf} package or to the
+\verb|\setmathfont| command, has been added in version~0.54 for backward
+compatibility: it reverts to the former behaviour.
+
\subsection{Standard \LaTeX{} math commands}
\label{ssec-math-commands}
-All standard \LaTeX{} math commands, all \pkg{amssymb} commands and all
+All standard \LaTeX{} maths commands, all \pkg{amssymb} commands and all
\pkg{latexsym} commands are supported by \FOTF{}, for some of them loading
\pkg{fourier-otf.sty} is required.
-Various wide acccents are also supported:
+Various wide accents are also supported:
\begin{itemize}
\item \cmd{widehat} and \cmd{widetilde}
\[\widehat{x}\; \widehat{xx} \;\widehat{xxx} \;\widehat{xxxx}\;
@@ -458,7 +479,7 @@ Various wide acccents are also supported:
\mathring{\overparen{A\cup B}}\quad
\overparen{A\cup (B\cap C)\cup D}^{\smwhtcircle}\quad
\overparen{x+y}^{2}\quad \overparen{a+b+...+z}^{26}\]
-
+\vspace{-\baselineskip}
\[\underparen{x}\quad \underparen{xz} \quad \underparen{xyz}
\quad \underparen{x+z}_{2}\quad \underparen{a+b+...+z}_{26}\]
@@ -466,8 +487,8 @@ Various wide acccents are also supported:
\[\overbrace{a}\quad \overbrace{ab}\quad \overbrace{abc}\quad
\overbrace{abcd}\quad \overbrace{abcde}\quad
\overbrace{a+b+c}^{3}\quad \overbrace{ a+b+. . . +z }^{26}\]
-
-\[\underbrace{a}\quad\underbrace{ab}\quad\underbrace{abc}\quad
+ \vspace{-\baselineskip}
+ \[\underbrace{a}\quad\underbrace{ab}\quad\underbrace{abc}\quad
\underbrace{abcd}\quad \underbrace{abcde}\quad
\underbrace{a+b+c}_{3} \quad \underbrace{ a+b+...+z }_{26}\]
@@ -475,8 +496,8 @@ Various wide acccents are also supported:
\[\overbracket{a}\quad \overbracket{ab}\quad \overbracket{abc}\quad
\overbracket{abcd}\quad \overbracket{abcde}\quad
\overbracket{a+b+c}^{3}\quad \overbracket{ a+b+. . . +z }^{26}\]
-
-\[\underbracket{a}\quad\underbracket{ab}\quad\underbracket{abc}\quad
+ \vspace{-\baselineskip}
+ \[\underbracket{a}\quad\underbracket{ab}\quad\underbracket{abc}\quad
\underbracket{abcd}\quad \underbracket{abcde}\quad
\underbracket{a+b+c}_{3} \quad \underbracket{ a+b+...+z }_{26}\]
@@ -484,15 +505,48 @@ Various wide acccents are also supported:
\[\overrightarrow{v}\quad \overrightarrow{M}\quad \overrightarrow{vv}
\quad \overrightarrow{AB}\quad \overrightarrow{ABC}
\quad \overrightarrow{ABCD} \quad \overrightarrow{ABCDEFGH}.
-\]
-
-\[\overleftarrow{v}\quad \overleftarrow{M}\quad \overleftarrow{vv}
+ \]
+ \vspace{-\baselineskip}
+ \[\overleftarrow{v}\quad \overleftarrow{M}\quad \overleftarrow{vv}
\quad \overleftarrow{AB}\quad \overleftarrow{ABC}
\quad \overleftarrow{ABCD} \quad \overleftarrow{ABCDEFGH}\]
-\item Finally \cmd{widearc} and \cmd{overrightarc} (loading
- \pkg{fourier-otf.sty} is required)
-\[\widearc{AMB}\quad \overrightarc{AMB}\]
+\item \cmd{overrightharpoon} and \cmd{overleftharpoon}
+ \[\overrightharpoon{v}\quad \overrightharpoon{M}\quad \overrightharpoon{vv}
+ \quad \overrightharpoon{AB}\quad \overrightharpoon{ABC}
+ \quad \overrightharpoon{ABCD} \quad \overrightharpoon{ABCDEFGH}.
+ \]
+ \vspace{-\baselineskip}
+ \[\overleftharpoon{v}\quad \overleftharpoon{M}\quad \overleftharpoon{vv}
+ \quad \overleftharpoon{AB}\quad \overleftharpoon{ABC}
+ \quad \overleftharpoon{ABCD} \quad \overleftharpoon{ABCDEFGH}\]
+
+\item \cmd{underrightarrow} and \cmd{underleftarrow}
+ \[\underrightarrow{v}\quad \underrightarrow{M}\quad \underrightarrow{vv}
+ \quad \underrightarrow{AB}\quad \underrightarrow{ABC}
+ \quad \underrightarrow{ABCD} \quad \underrightarrow{ABCDEFGH}.
+ \]
+ \vspace{-\baselineskip}
+ \[\underleftarrow{v}\quad \underleftarrow{M}\quad \underleftarrow{vv}
+ \quad \underleftarrow{AB}\quad \underleftarrow{ABC}
+ \quad \underleftarrow{ABCD} \quad \underleftarrow{ABCDEFGH}\]
+
+\item \cmd{underrightharpoon} and \cmd{underleftharpoondown}
+ \[\underrightharpoondown{v}\quad \underrightharpoondown{M}\quad
+ \underrightharpoondown{vv}\quad \underrightharpoondown{AB}\quad
+ \underrightharpoondown{ABC}\quad \underrightharpoondown{ABCD}\quad
+ \underrightharpoondown{ABCDEFGH}.
+ \]
+ \vspace{-\baselineskip}
+ \[\underleftharpoondown{v}\quad \underleftharpoondown{M}\quad
+ \underleftharpoondown{vv}\quad \underleftharpoondown{AB}\quad
+ \underleftharpoondown{ABC}\quad \underleftharpoondown{ABCD}
+ \quad \underleftharpoondown{ABCDEFGH}.
+ \]
+
+\item Finally \cmd{widearc} and \cmd{overrightarc}
+ (loading \pkg{fourier-otf.sty} is required)
+ \[\widearc{AMB}\quad \overrightarc{AMB}\]
\end{itemize}
\subsection{Mathematical alphabets}
@@ -532,7 +586,7 @@ $\symfrak{ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz}$
$\symsfup{ABCDEFGHIJKLM abcdefghijk}\quad\symsfit{NOPQRSTUVWXYZ mnopqrstuvwxyz}$
- but it can be borrowed from another Math font, i.e.
+ but it can be borrowed from another maths font, i.e.
\begin{verbatim}
\setmathfont{STIXTwoMath-Regular.otf}[range={sfup,sfit},
Scale=MatchUppercase]
@@ -555,21 +609,29 @@ $\symtt{ABCDE...XYZ abcde...xyz}$
$\symtt{ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz}$
\end{itemize}
-Like Latin Modern, Erewhon Math provides only four lowercase latin letters in
+Like Latin Modern, Erewhon-Math provides only four lowercase Latin letters in
script (or calligraphic) shape: $\mscre$, $\mscrg$, $\ell$, $\mscro$
(\verb+\mscre+, \verb+\mscrg+, \verb+\ell+, \verb+\mscro+).
All others (range \verb+"1D4B6+ to \verb+"1D4CF+) have to be borrowed
-from another Math font if needed, i.e.
+from another maths font if needed, i.e.
\begin{verbatim}
\setmathfont{LibertinusMath-Regular.otf}%
[range="1D4B6-"1D4CF, Scale=MatchLowercase]
\end{verbatim}
+\subsection{Bold variant}
+
+In case short maths formulas have to be printed in section titles,
+a \emph{limited} bold variant has been added in version~0.54. Example of usage:\\
+\verb+\setmathfont{Erewhon-Math-Bold.otf}[version=bold, +\textit{options}\verb+]+
+\\
+\verb+\section{\mathversion{bold} Einstein’s equation $E=mc^2$}+
+
\subsection{Missing symbols}
\FOTF{} does not aim at being as complete as \file{STIXTwoMath-Regular} or
-\file{Cambria}, the current glyph coverage compares with TeXGyre Math fonts.
+\file{Cambria}, the current glyph coverage compares with TeXGyre maths fonts.
In case some symbols do not show up in the output file, you will see warnings
in the \file{.log} file, for instance:
@@ -589,12 +651,12 @@ see the manpage or \file{albatross-manual.pdf}.
\subsection{Fourier ornaments}
-When loaded by \verb+\usepackage{fourier-otf}+, Erewhon Math loads
+When loaded by \verb+\usepackage{fourier-otf}+, Erewhon-Math loads
\pkg{fourier-orns.sty} which provides all logos and ornaments available
in \FGUT.
\pkg{fourier-orns.sty} as of v2.x automatically fetches its glyphs in
-a specific Opentype font with LuaTeX or XeTeX engines and from
+a specific OpenType font with LuaTeX or XeTeX engines and from
a Type\,1 font otherwise (pdfTeX).
\begin{raggedright}
@@ -637,14 +699,14 @@ All these logos and ornaments are also available as described in the
\verb+{\FourierOrns E 2 F}+ to get {\FourierOrns E 2 F}.
\vspace{\baselineskip}
-Finally, some symbols are also provided in math mode, with other names:
+Finally, some symbols are also provided in maths mode, with other names:
\begin{itemize}
\item \showmchardollar{forbidden}, \showmchardollar{beware},
\showmchardollar{boom},
\item \showmchardollar{thething} is a \emph{QED symbol}
for a false proof. Of course, you don't need it!
\item \showmchardollar{xswordsup} and \showmchardollar{xswordsdown} may be used
- as tags for a debatted statement, or for anything else.
+ as tags for a debated statement, or for anything else.
\end{itemize}
\section{Acknowledgements}