diff options
Diffstat (limited to 'fonts/erewhon-math/Erewhon-Math.ltx')
-rw-r--r-- | fonts/erewhon-math/Erewhon-Math.ltx | 113 |
1 files changed, 68 insertions, 45 deletions
diff --git a/fonts/erewhon-math/Erewhon-Math.ltx b/fonts/erewhon-math/Erewhon-Math.ltx index b7af84f9b7..805a4ad782 100644 --- a/fonts/erewhon-math/Erewhon-Math.ltx +++ b/fonts/erewhon-math/Erewhon-Math.ltx @@ -8,6 +8,9 @@ \setsansfont{Cabin}[Scale=MatchLowercase] \setmonofont{Inconsolatazi4}[Scale=MatchLowercase, HyphenChar=None,StylisticSet={2,3}] +\usepackage{subfig} +\captionsetup[subtable]{position=top} +\usepackage{realscripts} \usepackage{microtype} \usepackage{hyperref} \hypersetup{pdftitle={Erewhon-Math User’s Guide}, @@ -22,8 +25,7 @@ \newcommand*{\pkg}[1]{\texttt{#1}} \newcommand*{\file}[1]{\texttt{#1}} \newcommand*{\opt}[1]{\texttt{#1}} -\newcommand*{\cmd}[1]{\texttt{\textbackslash #1}} -\newcommand*{\showtchar}[1]{\cmd{#1}~\csname #1\endcsname} +\newcommand*{\cmd}[1]{\texttt{\textbackslash #1}}\newcommand*{\showtchar}[1]{\cmd{#1}~\csname #1\endcsname} \newcommand*{\showmchar}[1]{\cmd{#1}~$(\csname #1\endcsname)$} \newcommand*{\showmchardollar}[1]{\texttt{\$\cmd{#1}\$}~$(\csname #1\endcsname)$} @@ -32,7 +34,7 @@ \title{\decofourleft\,\FOTF\,\decofourright} \author{Daniel Flipo \\ \texttt{daniel.flipo@free.fr}} -\newcommand*{\version}{0.46} +\newcommand*{\version}{0.47} \begin{document} \maketitle @@ -78,22 +80,21 @@ f.i.: \end{verbatim} otherwise you would get Latin Modern for text fonts. -\subsection{Calling \pkg{fourier-otf.sty}} +\subsection{Calling \pkg{fourier-otf.sty} (recommended)} -As an alternative to load \FOTF{} --\emph{this is the recommended way}-- -you can type:\\[.5\baselineskip] +As an alternative to load \FOTF{} you can type:\\[.5\baselineskip] \verb+\usepackage[ +\textit{options} -\footnote{Possible \textit{options} are \opt{loose} or any of the options - described below for \cmd{setmathfont}.}% +\footnote{Possible \textit{options} are \opt{loose}, \opt{no-text}, \opt{Scale=} + or any of the options described below for \cmd{setmathfont}.}% \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: \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; -\item it loads \pkg{fourier-orns.sty}, providing many text ornaments; \item it defines specific Math characters like \showmchar{Bbbbackslash}, \showmchar{varemptyset}, \linebreak[4] \showmchar{parallelslant}, @@ -106,6 +107,11 @@ it also loads \pkg{unicode-math} with the default options and and sets The option \opt{loose} disables these settings. \end{enumerate} +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}+ \section{What is provided?} @@ -188,6 +194,9 @@ while the default settings would print \[\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 be entered in the code instead control sequences (i.e. $\symup{α}$, $\symup{β}$, $\symup{Γ}$,… for \cmd{alpha}, \cmd{beta}, @@ -262,11 +271,14 @@ glyphs for families of mathematical symbols. \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+StylisticSet=5+, alias \verb+Style=smaller+, converts some symbols into +their smaller variants as shown by table~\vref{ss05}. \begin{table}[ht] \centering - \caption{Stylistic Set 4 -- \texttt{leqslant} (slanted inequalities)} - \hlabel{ss04} - \begin{tabular}{@{}lcc@{}} + \caption{Stylistic Sets 4 and 5} + \subfloat[\texttt{Style=leqslant\quad (+ss04)}]{\hlabel{ss04}% + \begin{tabular}[t]{@{}lcc@{}} \hline Command & Default & Variant \\ \hline @@ -284,15 +296,9 @@ variants as shown by table~\vref{ss04}. \cmd{gtreqqless} & $\gtreqqless$ & $\gtreqqslantless$ \\ \hline \end{tabular} -\end{table} - -\verb+StylisticSet=5+, alias \verb+Style=smaller+, converts some symbols into -their smaller variants as shown by table~\vref{ss05}. -\begin{table}[ht] - \centering - \caption{Stylistic Set 5 -- \texttt{smaller} (smaller variants)} - \hlabel{ss05} - \begin{tabular}{@{}lcc@{}} + }\hspace{10mm} % eof subfloat + \subfloat[\texttt{Style=smaller\quad (+ss05)}]{\hlabel{ss05}% + \begin{tabular}[t]{@{}lcc@{}} \hline Command & Default & Variant \\ \hline @@ -306,15 +312,20 @@ their smaller variants as shown by table~\vref{ss05}. \cmd{nparallelslant} & $\nparallelslant$ & $\nshortparallelslant$ \\ \hline \end{tabular} + }% eof subfloat \end{table} \verb+StylisticSet=6+, alias \verb+Style=subsetneq+, converts some inclusion symbols as shown by 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}. \begin{table}[ht] \centering - \caption{Stylistic Set 6 -- \texttt{subsetneq} (inclusion variants)} - \hlabel{ss06} - \begin{tabular}{@{}lcc@{}} + \caption{Stylistic Sets 6 and 7} + \subfloat[\texttt{Style=subsetneq\quad (+ss06)}]{\hlabel{ss06}% + \begin{tabular}[t]{@{}lcc@{}} \hline Command & Default & Variant \\ \hline @@ -324,15 +335,9 @@ symbols as shown by table~\vref{ss06}. \cmd{supsetneqq} & $\supsetneqq$ & $\varsupsetneqq$ \\ \hline \end{tabular} -\end{table} - -\verb+StylisticSet=7+, alias \verb+Style=parallelslant+, converts -``parallel’’ symbols into their slanted variants as shown by table~\vref{ss07}. -\begin{table}[ht] - \centering - \caption{Stylistic Set 7 -- \texttt{parallelslant} (slanted variants)} - \hlabel{ss07} - \begin{tabular}{@{}lcc@{}} + }\hspace{10mm} % eof subfloat + \subfloat[\texttt{Style=parallelslant\quad (+ss07)}]{\hlabel{ss07}% + \begin{tabular}[t]{@{}lcc@{}} \hline Command & Default & Variant \\ \hline @@ -342,6 +347,7 @@ symbols as shown by table~\vref{ss06}. \cmd{nshortparallel} & $\nshortparallel$ & $\nshortparallelslant$ \\ \hline \end{tabular} + } % eof subfloat \end{table} To enable Stylistic Sets 4, 6 and 7 for \FOTF{}, you should enter @@ -357,7 +363,6 @@ instead of \setmathfont{Erewhon Math} \[x\leq y \quad A \subsetneq B\quad D \parallel D' \] -\clearpage \subsection{Standard \LaTeX{} math commands} \label{ssec-math-commands} @@ -365,6 +370,7 @@ 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} @@ -435,7 +441,7 @@ Various wide acccents are also supported: and \verb+\symbfit{}+ commands. \item Calligraphic alphabet (\cmd{symscr} or \cmd{symcal} or - \cmd{mathcal} command), uppercase only: + \cmd{mathcal} command), uppercase: $\symscr{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$ @@ -472,7 +478,7 @@ $\symsfup{ABCD...klm}\quad\symsfit{NOPQ...xyz}$ $\symsfup{ABCDEFGHIJKLM abcdefghijklm}\quad \symsfit{NOPQRSTUVWXYZ nopqrstuvwxyz}$ -\item Typewriter alphabet is borrowed from Latin Modern, +\item Typewriter alphabet is borrowed from Latin Modern, $\symtt{ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz}$ @@ -485,6 +491,17 @@ $\symtt{ABCDE...XYZ abcde...xyz}$ $\symtt{ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz}$ \end{itemize} +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. +\begin{verbatim} +\setmathfont{LibertinusMath-Regular.otf}% + [range="1D4B6-"1D4CF, Scale=MatchLowercase] +\end{verbatim} + \subsection{Missing symbols} \FOTF{} does not aim at being as complete as \file{STIXTwoMath-Regular} or @@ -507,7 +524,7 @@ scaling is possible, multiple character ranges are separated with commas:\\ All logos and ornaments provided by \FGUT{} (\pkg{fourier-orns.sty}) are available with \FOTF{} when loaded by \verb+\usepackage{fourier-otf}+. -\pkg{fourier-orns.sty} as of v2.0 automatically fetches its glyphs in +\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 Type\,1 font otherwise (pdfTeX). @@ -515,20 +532,21 @@ a Type\,1 font otherwise (pdfTeX). \begin{itemize} \item \showtchar{textpertenthousand}, \textit{\textpertenthousand}, - \textbf{\textpertenthousand}, \textbf{\textit{\textpertenthousand}}, + \textbf{\textpertenthousand}, \textbf{\textit{\textpertenthousand}}. \item A variant of the euro symbol: \showtchar{eurologo}, \textit{\eurologo}, - \textbf{\eurologo}, \textbf{\textit{\eurologo}}, + \textbf{\eurologo}, \textbf{\textit{\eurologo}}. -\item A ``starred'' bullet: \showtchar{starredbullet}, +\item Two ``starred'' bullets: \showtchar{starredbullet}, \showtchar{decosix}. \item Decos and logos: \showtchar{warning}, \showtchar{noway}, - \showtchar{textxswup}, \showtchar{textxswdown}, \showtchar{bomb}, + \showtchar{caution}, \showtchar{bomb},\\ \showtchar{decoone}, \showtchar{decotwo}, \showtchar{decothreeleft}, \showtchar{decothreeright}, - \showtchar{decofourleft}, \showtchar{decofourright}, \showtchar{decosix}, - \showtchar{floweroneleft}, \showtchar{floweroneright}, \showtchar{lefthand}, - \showtchar{righthand}. + \showtchar{decofourleft}, \showtchar{decofourright}, + \showtchar{floweroneleft}, \showtchar{floweroneright},\\ + \showtchar{lefthand}, \showtchar{righthand}, + \showtchar{textxswup}, \showtchar{textxswdown}. \item Smileys: \showtchar{grimace}, \showtchar{textthing}. @@ -545,6 +563,11 @@ a Type\,1 font otherwise (pdfTeX). \end{itemize} \end{raggedright} +All these logos and ornaments are also available as described in the +\pkg{fournier-orns} documentation: for instance, you could type +\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: \begin{itemize} \item \showmchardollar{forbidden}, \showmchardollar{beware}, @@ -552,7 +575,7 @@ Finally, some symbols are also provided in math mode, with other names: \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. $\xswordsdown$ + as tags for a debatted statement, or for anything else. \end{itemize} \section{Acknowledgements} |