summaryrefslogtreecommitdiff
path: root/fonts/xcharter-math/XCharter-Math.ltx
diff options
context:
space:
mode:
Diffstat (limited to 'fonts/xcharter-math/XCharter-Math.ltx')
-rw-r--r--fonts/xcharter-math/XCharter-Math.ltx94
1 files changed, 48 insertions, 46 deletions
diff --git a/fonts/xcharter-math/XCharter-Math.ltx b/fonts/xcharter-math/XCharter-Math.ltx
index 601146389f..90965b770e 100644
--- a/fonts/xcharter-math/XCharter-Math.ltx
+++ b/fonts/xcharter-math/XCharter-Math.ltx
@@ -35,18 +35,18 @@
\title{\decofourleft\,\XCotf\,\decofourright}
\author{Daniel Flipo \\ \texttt{daniel.flipo@free.fr}}
-\newcommand*{\version}{0.32}
+\newcommand*{\version}{0.33}
\begin{document}
\maketitle
\section{What is \XCotf{}?}
-\XCotf{} is an Opentype mathematical font based on Bitstream Charter
+\XCotf{} is an OpenType maths font based on Bitstream Charter
meant to be used with XCharter text fonts.
-Latin and Greek letters and many Math symbols are borrowed or
-derived from Mickael Sharpe’s XCharter fonts. Other sources for Math glyphs
+Latin and Greek letters and many maths symbols are borrowed or
+derived from Michael Sharpe’s XCharter fonts. Other sources for maths glyphs
were found in MathDesign (by Paul Pichaureau) and \FGUT{} (by Michel Bovani).
It requires LuaTeX or XeTeX as engine and the \pkg{unicode-math} package%
@@ -66,14 +66,18 @@ A basic call for \XCotf{} would be:
\setmathfont{XCharter-Math.otf} % Call by file name or
\setmathfont{XCharter Math} % Call by font name
\end{verbatim}
-this loads \XCotf{} as math font with the default options, see
-subsections~\vref{ssection-um}, \vref{ssection-cv} and~\vref{ssection-ss}
-for customisation.
+this loads \XCotf{} 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{XCharter}+\\
+f.i.:%\\[.25\baselineskip]
+
+\pagebreak[4]
+\noindent
+\verb+\setmainfont{XCharter} % rm+\\
\verb+\setsansfont{Cabin}[Scale=MatchLowercase] % sf+\\
\verb+\setmonofont{Inconsolatazi4}[Scale=MatchLowercase] % tt+\\[.25\baselineskip]
otherwise you would get Latin Modern for text fonts.
@@ -87,7 +91,7 @@ As an alternative to load \XCotf{} you can type:\\[.5\baselineskip]
\ref{ssection-cv} and \ref{ssection-ss}.}%
\verb+ ]{xcharter-otf}+\\[.5\baselineskip]
it loads \pkg{unicode-math} with the default options, sets XCharter-Math
-as Math font and XCharter Text fonts as Roman fonts
+as maths font and XCharter 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} for better superscripts;
@@ -95,18 +99,18 @@ as Math font and XCharter 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
+\item it defines specific maths characters like
\showmchar{varemptyset},
\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} unless the \opt{loose} option is activated.
\end{enumerate}
-Apart from the \opt{loose} option mentionned above, \pkg{xcharter-otf.sty}
+Apart from the \opt{loose} option mentioned above, \pkg{xcharter-otf.sty}
provides two options \opt{no-text} and \opt{Scale=}\textsl{<decimal>} meant to
be used to load the \XCotf{} font together with roman text fonts other than
-XCharter, while keeping the advantages 1. to~5. pointed in the preceeding list,
+XCharter, while keeping the advantages 1. to~5. pointed in the preceding list,
f.i.\\ \verb+\usepackage[no-text,Scale=0.98]{xcharter-otf}+
Option \opt{no-text} can also be useful if XCharter is to be loaded with
@@ -122,7 +126,7 @@ two packages \emph{should not} be loaded as they might override \XCotf{} 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-xcharter.pdf}.
@@ -130,9 +134,9 @@ A full list of available glyphs is shown in file \file{unimath-xcharter.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
-Latin letters $a$…$z$ $A$…$Z$ and lowercase greek letters $\alpha$…$\omega$
-slanted (italic) while uppercase greek letters $\Alpha \Beta \Gamma$…$\Omega$
+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.
This can be changed by option \opt{math-style} as shown in
table~\vref{math-style}.
@@ -198,7 +202,7 @@ while the default settings would print
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},…).
@@ -268,12 +272,12 @@ variant \texttt{cv01} or with \cmd{mithbar} (replacement for AMS’ command
\label{ssection-ss}
\XCotf{} 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{xcharter-otf.sty}.}
\verb+Style=leqslant+, converts large
-inequalites into their slanted variants, see table~\vref{ss04}.
+inequalities into their slanted variants, see table~\vref{ss04}.
\verb+StylisticSet=5+, alias \verb+Style=smaller+, converts some symbols into
their smaller variants, see table~\vref{ss05}.
@@ -407,7 +411,7 @@ 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:
+To get oldstyle numbers in maths, the feature \texttt{+onum} is available:
\begin{verbatim}
\setmathfont{XCharter-Math.otf}[Numbers=OldStyle] or
\usepackage[Style={fulloldstyle]{xcharter-otf}
@@ -420,11 +424,11 @@ $0123456789, \symbf{0123456789}$
\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 \XCotf{}, for some of them loading
\pkg{xcharter-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}\;
@@ -519,7 +523,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]
@@ -533,7 +537,7 @@ $\symsfup{ABCDEFGHIJKLM abcdefghijklm}\quad
$\symtt{ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz}$
-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=tt,
Scale=MatchUppercase]
@@ -543,35 +547,33 @@ $\symtt{ABCDE...XYZ abcde...xyz}$
$\symtt{ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz}$
\end{itemize}
-%\item Sans serif and Typewriter alphabets are not implemented
-% but they can be borrowed from another Math font, i.e.
-%\begin{verbatim}
-%\setmathfont{STIXTwoMath-Regular.otf}[range={sfup,sfit,tt},
-% Scale=MatchUppercase]
-%$\symsfup{ABCD...klm}\quad\symsfit{NOPQ...xyz}$
-%$\symtt{ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz}$
-%\end{verbatim}
-%\setmathfont{STIXTwoMath-Regular.otf}[range={sfup,sfit,tt},Scale=MatchUppercase]
-%$\symsfup{ABCDEFGHIJKLM abcdefghijklm}\quad
-% \symsfit{NOPQRSTUVWXYZ nopqrstuvwxyz}$\\
-%$\symtt{ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz}$
-%\end{itemize}
-
-Like Latin Modern, XCharter Math provides only four lowercase latin letters in
-script (or calligraphic) shape: $\mscre$, $\mscrg$, $\ell$, $\mscro$
-(\verb+\mscre+, \verb+\mscrg+, \verb+\ell+, \verb+\mscro+).
+Like Latin Modern, \pkg{XCharter-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.33. Example of usage:\\
+\verb+\setmathfont{XCharter-Math-Bold.otf}[version=bold, +\textit{options}\verb+]+\\
+\verb+\section{\mathversion{bold} Einstein’s equation $E=mc^2$}+
+
+\begin{verbatim}
+\setmathfont{XCharter-Math-Bold.otf}[version=bold]
+\section{\mathversion{bold} Einstein’s equation $E=mc^2$}
+\end{verbatim}
+
\subsection{Missing symbols}
\XCotf{} 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: