summaryrefslogtreecommitdiff
path: root/fonts/erewhon-math/Erewhon-Math.ltx
diff options
context:
space:
mode:
Diffstat (limited to 'fonts/erewhon-math/Erewhon-Math.ltx')
-rw-r--r--fonts/erewhon-math/Erewhon-Math.ltx186
1 files changed, 120 insertions, 66 deletions
diff --git a/fonts/erewhon-math/Erewhon-Math.ltx b/fonts/erewhon-math/Erewhon-Math.ltx
index 805a4ad782..27ea2481ee 100644
--- a/fonts/erewhon-math/Erewhon-Math.ltx
+++ b/fonts/erewhon-math/Erewhon-Math.ltx
@@ -34,7 +34,7 @@
\title{\decofourleft\,\FOTF\,\decofourright}
\author{Daniel Flipo \\ \texttt{daniel.flipo@free.fr}}
-\newcommand*{\version}{0.47}
+\newcommand*{\version}{0.50}
\begin{document}
\maketitle
@@ -71,13 +71,15 @@ this loads \FOTF{} as math 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.:
-\begin{verbatim}
-\setmainfont{Erewhon} % rm
-\setsansfont{Cabin}[Scale=MatchLowercase] % sf
-\setmonofont{Inconsolatazi4}[Scale=MatchLowercase] % tt
-\end{verbatim}
+f.i.:\\[.25\baselineskip]
+\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}\\
+\verb+\setsansfont{Cabin}[Scale=MatchLowercase] % sf+\\
+\verb+\setmonofont{Inconsolatazi4}[Scale=MatchLowercase] % tt+\\[.25\baselineskip]
otherwise you would get Latin Modern for text fonts.
\subsection{Calling \pkg{fourier-otf.sty} (recommended)}
@@ -85,16 +87,18 @@ 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 below for \cmd{setmathfont}.}%
+ or any of the options described in sections \ref{ssection-um},
+ \ref{ssection-cv} and \ref{ssection-ss}.}%
\verb+ ]{fourier-otf}+\\[.5\baselineskip]
-it also loads \pkg{unicode-math} with the default options and and sets
-\file{Fourier Math} as Math font but does a bit more:
+it loads \pkg{unicode-math} with the default options, sets Erewhon-Math
+as Math 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{fourier-orns.sty}, providing many text ornaments;
\item it checks at \verb+\begin{document}+ if packages \pkg{amssymb} or
\pkg{latexsym} are loaded and issues warnings in case they are;
\item it provides aliases for glyphs named differently in Unicode, so that
- \pkg{latexsymb} or AMS names are also available;
+ \pkg{latexsym} or AMS names are also available;
\item it defines specific Math characters like \showmchar{Bbbbackslash},
\showmchar{varemptyset}, \linebreak[4]
\showmchar{parallelslant},
@@ -109,9 +113,14 @@ it also loads \pkg{unicode-math} with the default options and and sets
Apart from the \opt{loose} option mentionned 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 textfonts other than Erewhon,
-while keeping the advantages 2. to 5. pointed in the preceeding list, f.i.\quad
-\verb+\usepackage[no-text,Scale=0.98]{fourier-otf.sty}+
+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,
+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
+specific options, f.i. \\
+\verb+\usepackage[no-text]{fourier-otf}+\\
+\verb|\setmainfont{erewhon}[RawFeature=+onum;+ss01]|
\section{What is provided?}
@@ -205,33 +214,13 @@ $\symup{α}$, $\symup{β}$, $\symup{Γ}$,… for \cmd{alpha}, \cmd{beta},
\subsection{Character variants}
\label{ssection-cv}
-\FOTF{} provides eleven ``Character Variants’’ options to choose between
-different glyphs for Greek characters and some others, see table~\vref{cv}
-for the full list.
-
-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}]
-\end{verbatim}
-
-This works for all shapes and weights of these characters:
-\verb+$\symit{\epsilon}$+,\\
-\verb+$\symup{\epsilon}$+, \verb+$\symbf{\epsilon}$+,
-\verb+$\symbfit{\epsilon}$+ are output as
-\setmathfont{Erewhon Math}[CharacterVariant={3,6}]
-$\symit{\epsilon}$, $\symup{\epsilon}$, $\symbf{\epsilon}$, $\symbfit{\epsilon}$
-instead of
-\setmathfont{Erewhon Math}
-$\symit{\epsilon}, \symup{\epsilon}, \symbf{\epsilon}, \symbfit{\epsilon}$.
-
-The same is true for \verb+\phi+ of course. Please note that curly braces are
-mandatory whenever more than one ``Character Variant’’ is selected.
+\FOTF{} provides fourteen ``Character Variants’’ options, listed on
+table~\vref{cv}, to choose between different glyphs for Greek characters
+and some others. Alternative calligraphic capitals have been added for E, Q
+and T in version~0.50.
\begin{table}[ht]
- \centering
- \caption{Character variants.}
+ \centering \caption{Character variants.}
\hlabel{cv}
\begin{tabular}{@{}>{\ttfamily}lccl@{}}
\hline
@@ -240,22 +229,44 @@ mandatory whenever more than one ``Character Variant’’ is selected.
cv00 & $0$ & $\mupvarzero$ & 0 \\
cv01 & $\hslash$ & $\mithbar$ & \cmd{hslash} \\
cv02 & $\emptyset$ & $\varemptyset$ & \cmd{emptyset} \\
- cv03 & $\mitepsilon$ & $\mitvarepsilon$ & \cmd{epsilon} \\
- cv04 & $\mitkappa$ & $\mitvarkappa$ & \cmd{kappa} \\
- cv05 & $\mitpi$ & $\mitvarpi$ & \cmd{pi} \\
- cv06 & $\mitphi$ & $\mitvarphi$ & \cmd{phi} \\
- cv07 & $\mitrho$ & $\mitvarrho$ & \cmd{rho} \\
- cv08 & $\mitsigma$ & $\mitvarsigma$ & \cmd{sigma} \\
- cv09 & $\mittheta$ & $\mitvartheta$ & \cmd{theta} \\
- cv10 & $\mitTheta$ & $\mitvarTheta$ & \cmd{Theta} \\
+ cv03 & $\epsilon$ & $\varepsilon$ & \cmd{epsilon} \\
+ cv04 & $\kappa$ & $\varkappa$ & \cmd{kappa} \\
+ cv05 & $\pi$ & $\varpi$ & \cmd{pi} \\
+ cv06 & $\phi$ & $\varphi$ & \cmd{phi} \\
+ cv07 & $\rho$ & $\varrho$ & \cmd{rho} \\
+ cv08 & $\sigma$ & $\varsigma$ & \cmd{sigma} \\
+ cv09 & $\theta$ & $\vartheta$ & \cmd{theta} \\
+ cv10 & $\Theta$ & $\varTheta$ & \cmd{Theta}\\
+ cv20 & $\symscr{E}$ & $\varsymscrE$ & \cmd{symcal\{E\}}\\
+ cv21 & $\symscr{Q}$ & $\varsymscrQ$ & \cmd{symcal\{Q\}}\\
+ cv22 & $\symscr{T}$ & $\varsymscrT$ & \cmd{symcal\{T\}}\\
\hline
\end{tabular}
\end{table}
+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}]
+\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}$,
+$\symbf{\phi}$ instead of
+\setmathfont{Erewhon Math}$\symbf{\epsilon}$, $\symbf{\phi}$.
+
+Similarly with \opt{math-style=french}, \verb+\epsilon+ and \verb+\phi+
+are output as $\symup{\varepsilon}$ and $\symup{\varphi}$ (upright).
+
+Please note that curly braces are mandatory whenever more than one
+``Character Variant’’ is selected.
+
Note about \cmd{hbar} (v\,0.43): \pkg{unicode-math} defines \cmd{hbar} as
\cmd{hslash} (U+210F) while \pkg{amsmath} provides two different glyphs
(italic h with horizontal or diagonal stroke).\\
-\pkg{kpfonts-otf} now follows \pkg{unicode-math}; the italic h with horizontal
+\pkg{Erewhon Math} now follows \pkg{unicode-math}; the italic h with horizontal
stroke can be printed using \cmd{hslash} or \cmd{hbar} together with character
variant \texttt{cv01} or with \cmd{mithbar} (replacement for AMS’ command
\cmd{hbar}).
@@ -264,16 +275,16 @@ variant \texttt{cv01} or with \cmd{mithbar} (replacement for AMS’ command
\subsection{Stylistic sets}
\label{ssection-ss}
-\FOTF{} provides four ``Stylistic Sets’’ options to choose between different
+\FOTF{} provides five ``Stylistic Sets’’ options to choose between different
glyphs for families of mathematical 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
-variants as shown by table~\vref{ss04}.
+ \verb+Style=leqslant+, converts (large) inequalites into their slanted
+ variants, see table~\vref{ss04}.
\verb+StylisticSet=5+, alias \verb+Style=smaller+, converts some symbols into
-their smaller variants as shown by table~\vref{ss05}.
+their smaller variants, see table~\vref{ss05}.
\begin{table}[ht]
\centering
\caption{Stylistic Sets 4 and 5}
@@ -315,12 +326,12 @@ their smaller variants as shown by table~\vref{ss05}.
}% eof subfloat
\end{table}
+\pagebreak[4]
\verb+StylisticSet=6+, alias \verb+Style=subsetneq+, converts some inclusion
-symbols as shown by table~\vref{ss06}.
+symbols, see table~\vref{ss06}.
-\enlargethispage{-2\baselineskip}
\verb+StylisticSet=7+, alias \verb+Style=parallelslant+, converts
-``parallel’’ symbols into their slanted variants as shown by table~\vref{ss07}.
+``parallel’’ symbols into their slanted variants, see table~\vref{ss07}.
\begin{table}[ht]
\centering
\caption{Stylistic Sets 6 and 7}
@@ -363,6 +374,45 @@ instead of
\setmathfont{Erewhon Math}
\[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
+variants, see table~\vref{ss03}.
+\begin{table}[ht]
+ \let\DS\displaystyle
+ \centering
+ \caption{Style=upint\quad (+ss03)}\hlabel{ss03}
+ \begin{tabular}[t]{@{}l*{8}c@{}}
+ \hline
+ Command &\cmd{int} &\cmd{iint} &\cmd{iiint} &\cmd{iiiint}
+ &\cmd{oint} &\cmd{oiint} &\cmd{oiiint} \\
+ \hline
+ Default\rule[-15pt]{0pt}{35pt} &$\DS\int$ &$\DS\iint$ &$\DS\iiint$ &$\DS\iiiint$
+ &$\DS\oint$ &$\DS\oiint$ &$\DS\oiint$ &$\DS\oiiint$
+ \\[\baselineskip]
+ \setmathfont{Erewhon-Math.otf}[Style=upint]
+ Upright\rule[-15pt]{0pt}{30pt} &$\DS\int$ &$\DS\iint$ &$\DS\iiint$ &$\DS\iiiint$
+ &$\DS\oint$ &$\DS\oiint$ &$\DS\oiint$ &$\DS\oiiint$ \\
+ \hline
+ \end{tabular}\\[\baselineskip]
+ \setmathfont{Erewhon-Math.otf}
+ \begin{tabular}[t]{@{}l*{4}c@{}}
+ \hline
+ Command &\cmd{intclockwise} &\cmd{awint}
+ &\cmd{varointclockwise} &\cmd{ointctrclockwise} \\
+ \hline
+ Default\rule[-15pt]{0pt}{35pt} &$\DS\intclockwise$ &$\DS\awint$
+ &$\DS\varointclockwise$ &$\DS\ointctrclockwise$ \\
+ \setmathfont{Erewhon-Math.otf}[Style=upint]
+ Upright\rule[-15pt]{0pt}{30pt} &$\DS\intclockwise$ &$\DS\awint$
+ &$\DS\varointclockwise$ &$\DS\ointctrclockwise$ \\
+ \hline
+ \end{tabular}
+\end{table}
+\setmathfont{Erewhon-Math.otf}
+
+%\clearpage
\subsection{Standard \LaTeX{} math commands}
\label{ssec-math-commands}
@@ -370,7 +420,6 @@ All standard \LaTeX{} math 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.
-\pagebreak[4]
Various wide acccents are also supported:
\begin{itemize}
\item \cmd{widehat} and \cmd{widetilde}
@@ -458,10 +507,10 @@ Various wide acccents are also supported:
but this can overwritten, i.e.
\begin{verbatim}
-\setmathfont{STIXTwoMath-Regular.otf}[range=frak,Scale=MatchUppercase]
+\setmathfont{Asana-Math.otf}[range=frak,Scale=MatchUppercase]
$\symfrak{ABCDEFGHIJKL...XYZ abcdefghijkl...xyz}$
\end{verbatim}
-\setmathfont{STIXTwoMath-Regular.otf}[range=frak,Scale=MatchUppercase]
+\setmathfont{Asana-Math.otf}[range=frak,Scale=MatchUppercase]
$\symfrak{ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz}$
\item Sans serif alphabet is borrowed from Latin Modern,
@@ -513,26 +562,31 @@ in the \file{.log} file, for instance:
\texttt{Missing character: There is no }$⥤$%
\texttt{ (U+2964) in font ErewhonMath}
-Borrowing them from a more complete font, say \file{STIXTwoMath-Regular},
+Borrowing them from a more complete font, say \file{Asana-Math},
is a possible workaround:
-\verb+\setmathfont{STIXTwoMath-Regular.otf}[range={"2964},Scale=1.02]+\\
+\verb+\setmathfont{Asana-Math.otf}[range={"2964},Scale=1.02]+\\
scaling is possible, multiple character ranges are separated with commas:\\
-\verb+\setmathfont{STIXTwoMath-Regular.otf}[range={"294A-"2951,"2964,"2ABB-"2ABE}]+
+\verb+\setmathfont{Asana-Math.otf}[range={"294A-"2951,"2964,"2ABB-"2ABE}]+
+
+Let’s mention \pkg{albatross}, a useful tool to find out the list of fonts
+providing a given glyph: f.i. type in a terminal ``\texttt{albatross U+2964}’’,
+see the manpage or \file{albatross-manual.pdf}.
\subsection{Fourier ornaments}
-All logos and ornaments provided by \FGUT{} (\pkg{fourier-orns.sty}) are
-available with \FOTF{} when loaded by \verb+\usepackage{fourier-otf}+.
+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}
\begin{itemize}
-\item \showtchar{textpertenthousand}, \textit{\textpertenthousand},
- \textbf{\textpertenthousand}, \textbf{\textit{\textpertenthousand}}.
+%%%\item \showtchar{textpertenthousand}, \textit{\textpertenthousand},
+%%% \textbf{\textpertenthousand}, \textbf{\textit{\textpertenthousand}}.
\item A variant of the euro symbol: \showtchar{eurologo}, \textit{\eurologo},
\textbf{\eurologo}, \textbf{\textit{\eurologo}}.