Debian Codegraph @

texmf-dist/doc/fonts/lete-sans-math/LeteSansMath.ltx

raw
1 \DocumentMetadata{pdfstandard=A-2b, lang=en-GB}
2 \documentclass[a4paper,12pt]{scrartcl}
3
4 \usepackage{mathtools, array, varioref}
5 \usepackage[british]{babel}
6 %\usepackage[default,defaultsans]{lato}
7 \usepackage{fontspec}
8 \begin{filecontents}{Lato.fontspec}
9 \defaultfontfeatures[Lato]
10 {
11 UprightFont = Lato-Regular.ttf ,
12 BoldFont = Lato-Bold.ttf ,
13 ItalicFont = Lato-Italic.ttf ,
14 BoldItalicFont = Lato-BoldItalic.ttf ,
15 }
16 \end{filecontents}
17 \setmainfont{Lato}
18 \setsansfont{Lato}
19 \usepackage{realscripts}
20 \usepackage{fourier-orns}
21 \usepackage{lete-sans-math}
22 \setmonofont{Inconsolatazi4}[Scale=MatchLowercase, StylisticSet={2,3}]
23 \usepackage{subfig}
24 \captionsetup[subtable]{position=top}
25 \usepackage{microtype}
26 \usepackage{setspace}
27 \setstretch{1.10}
28 \usepackage{hyperref}
29 \hypersetup{pdftitle={Lete Sans Math User’s Guide},
30 pdfauthor={Chenjing Bu \& Daniel Flipo},
31 bookmarksopen,
32 colorlinks
33 }
34 \newcommand*{\hlabel}[1]{\phantomsection\label{#1}}
35
36 \newcommand*{\LAotf}{Lete~Sans~Math}
37 \newcommand*{\pkg}[1]{\texttt{#1}}
38 \newcommand*{\file}[1]{\texttt{#1}}
39 \newcommand*{\ttbold}[1]{\texttt{\textbf{#1}}}
40 \newcommand*{\opt}[1]{\texttt{#1}}
41 \newcommand*{\cmd}[1]{\texttt{\textbackslash #1}}
42 \newcommand*{\scmd}[1]{\texttt{\small\textbackslash #1}}
43 \newcommand*{\showtchar}[1]{\cmd{#1}~\csname #1\endcsname}
44 \newcommand*{\showmchar}[1]{\cmd{#1}~$(\csname #1\endcsname)$}
45 \newcommand*{\showmchardollar}[1]{\texttt{\$\cmd{#1}\$}~$(\csname #1\endcsname)$}
46
47 \renewcommand{\labelitemi}{\lefthand}
48
49 \title{\decofourleft\,\LAotf\,\decofourright}
50 \author{Chenjing Bu --- Daniel Flipo\\
51 \url{https://github.com/abccsss/LeteSansMath}}
52
53 \newcommand*{\version}{0.61}
54 \setlength{\parindent}{0pt}
55 \setlength{\parskip}{12pt plus 3pt minus 3pt}
56
57 \begin{document}
58 \maketitle
59
60 \section{What is \LAotf{}?}
61
62 \LAotf{} is an OpenType maths font
63 meant to be used with the Lato fonts, or other sans-serif text fonts.
64 It requires LuaTeX or XeTeX as engine and the \pkg{unicode-math}
65 package\footnote{Please read the documentation \file{unicode-math.pdf}.}.
66
67 Please note that the current version (\version) is \emph{experimental,
68 do expect metrics and glyphs to change} until version 1.0 is reached.
69 Comments, suggestions and bug reports are welcome!
70
71 Some examples%
72 \footnote{The second one is borrowed from the LaTeX Companion,
73 3\textsuperscript{rd} edition.}:
74 \[
75 \int_0^1 \frac{1}{x^x} \, \symup{d} x =
76 \sum_{n=1}^{\infty} \frac{1}{n^n}
77 \]
78
79 \begin{equation*} \begin{split}
80 \iiiint\limits_{\symbf{Q}} f(w,x,y,z)\,\symup{d}w\,\symup{d}x\,\symup{d}y
81 \,\symup{d}z
82 &\leq \oint_{\symbf{\partial Q}} f'
83 \left( \max \left\lbrace
84 \frac{\lVert w \rVert}{\lvert w^{2} + x^{2} \rvert} ;
85 \frac{\lVert z \rVert}{\lvert y^{2} + z^{2} \rvert} ;
86 \frac{\lVert w \oplus z \rVert}{\lvert x \oplus y \rvert}
87 \right\rbrace \right) \\
88 &\precapprox \biguplus_{\mathbb{Q} \Subset \bar{\symbf{Q}}}
89 \left[ f^{\ast}
90 \left(
91 \frac{\left\lmoustache\mathbb{Q}(t)\right\rmoustache}{\sqrt{1 - t^{2}}}
92 \right)
93 \right]_{t=\alpha}^{t=\vartheta} - ( \Delta + \nu -v )^{3}
94 \end{split} \end{equation*}
95
96 \section{Usage}
97
98 \subsection{Calling \cmd{setmathfont}}
99
100 A basic call for \LAotf{} would be:
101 \begin{verbatim}
102 \usepackage{unicode-math}
103 \setmathfont{LeteSansMath.otf} % Call by file name or
104 \setmathfont{Lete Sans Math} % Call by font name
105 \end{verbatim}
106 %
107 this loads \LAotf{} as maths font%
108 \footnote{Both calls work equally well with LuaTeX; with XeTeX a call by font
109 name will fail unless the font is declared as a \emph{system font}.}
110 with the default options, see subsections~\vref{ssection-um},
111 \vref{ssection-cv} and~\vref{ssection-ss} for customisation.
112
113 %\enlargethispage*{1.0\baselineskip}
114 Please note that the text fonts have to be chosen separately, f.i.:
115 \label{sec:setfont}
116 \begin{verbatim}
117 \setsansfont{Lato}[Extension = .ttf,
118 UprightFont = *-Regular,
119 BoldFont = *-Bold,
120 ItalicFont = *-Italic,
121 BoldItalicFont = *-BoldItalic]
122 \end{verbatim}
123 otherwise you would get Latin Modern for text fonts.
124
125 \subsection{Calling \pkg{lete-sans-math.sty} (recommended)}
126
127 As an alternative to load \LAotf{} you can type:\\[.5\baselineskip]
128 \verb+\usepackage[ +\textit{options}
129 \footnote{Possible \textit{options} are \opt{tight}, \opt{Scale=} or
130 any of the options described in sections~\ref{ssection-um},
131 \ref{ssection-cv} and \ref{ssection-ss}.}%
132 \verb+ ]{lete-sans-math}+\\[.5\baselineskip]
133 it loads \pkg{unicode-math} with the default options, sets \LAotf{}
134 as maths font and does a bit more:
135 \begin{enumerate}
136 \item it checks at \verb+\begin{document}+ if packages \pkg{amssymb} or
137 \pkg{latexsym} are loaded and issues warnings in case they are;
138 \item it provides aliases for glyphs named differently in Unicode, so that
139 all \pkg{latexsym} or AMS commands are also available;
140 \item it defines specific maths characters like \showmchar{BbbDelta},
141 \showmchar{parallelslant},
142 \showmchar{shortparallelslant}, etc.;
143 \item it provides an option \opt{tight} which reduces spacing
144 (\cmd{thinmuskip}, \cmd{medmuskip} and \cmd{thickmuskip}) in maths mode.
145 \end{enumerate}
146
147 Please note that the \pkg{lete-sans-math} package does not load any text fonts.
148 The Lato text fonts can be loaded directly (see section~\ref{sec:setfont}),
149 or via the \pkg{lato} package%
150 \footnote{The \pkg{lato} package loads all available weights,
151 \texttt{Hairline} to \texttt{Black}, hence loading takes significantly
152 longer…}
153 ---see this package’s documentation, file \file{lato.pdf}, for all the
154 available options: \\
155 \verb+\usepackage[default]{lato}+\\
156 will load the Lato text fonts as main (roman) font while \\
157 \verb+\usepackage[defaultsans]{lato}+\\
158 will load the Lato text fonts as sans font (use both options if necessary).
159 Consider loading \pkg{realscripts.sty} which
160 redefines \verb+\textsuperscript+ to output the \emph{real} superscripts
161 available with the Lato fonts: M\textsuperscript{r}, M\textsuperscript{lle},
162 N\textsuperscript{2} instead of \emph{faked} ones,
163 M\fakesuperscript{r}, M\fakesuperscript{lle}, N\fakesuperscript{2}.
164
165 The \pkg{lete-sans-math} also provides a \opt{Scale=}\textsl{<decimal>} option
166 meant to be used to load the \LAotf{} font together with text fonts other
167 than Lato, while keeping the advantages 1. to~4. pointed in the preceding
168 list, f.i.
169
170 \verb+\usepackage[Scale=0.98]{lete-sans-math}+
171
172
173 \section{What is provided?}
174
175 \LAotf{} provides all common \pkg{unicode-math} glyphs plus all glyphs
176 available in the \pkg{amssymb} and \pkg{latexsym} packages. Therefore,
177 the latter two packages \emph{should not} be loaded as they might override
178 \LAotf{} glyphs.
179
180 A full list of available glyphs is shown in file \file{unimath-lete.pdf} which
181 also shows the coverage of other sans-serif maths fonts compared to
182 the serif maths fonts NewComputerModern and Cambria.
183
184 \subsection{Upright or slanted?}
185 \label{ssection-um}
186
187 Package \pkg{unicode-math} follows \TeX{} conventions for Latin and Greek
188 letters: in maths mode, the default option (\opt{math-style=TeX}) prints
189 Latin letters $a$…$z$ $A$…$Z$ and lowercase Greek letters $\alpha$…$\omega$
190 slanted (italic) while uppercase Greek letters $\Alpha \Beta \Gamma$…$\Omega$
191 are printed upright.
192 This can be changed by option \opt{math-style} as shown in
193 table~\vref{math-style}.
194
195 \begin{table}[ht]
196 \centering
197 \caption{Effects of the \opt{math-style} package option.}
198 \hlabel{math-style}
199 \begin{tabular}{@{}>{\ttfamily}lcc@{}}
200 \hline
201 \rmfamily Package option & Latin & Greek \\
202 \hline
203 math-style=ISO & $(a,z,B,X)$ & $\symit{(\alpha,\beta,\Gamma,\Xi)}$ \\
204 math-style=TeX & $(a,z,B,X)$ & $(\symit\alpha,\symit\beta,\symup\Gamma,\symup\Xi)$ \\
205 math-style=french & $(a,z,\symup B,\symup X)$ & $(\symup\alpha,\symup\beta,\symup\Gamma,\symup\Xi)$ \\
206 math-style=upright & $(\symup a,\symup z,\symup B,\symup X)$ & $(\symup\alpha,\symup\beta,\symup\Gamma,\symup\Xi)$ \\
207 \hline
208 \end{tabular}
209 \end{table}
210
211 Bold letters are printed upright except lowercase Greek letters
212 which are slanted (the default option is \opt{bold-style=TeX}). This can be
213 changed by option \opt{bold-style} as shown in table~\vref{bold-style}.
214
215 \begin{table}[ht]
216 \centering
217 \caption{Effects of the \opt{bold-style} package option.}
218 \hlabel{bold-style}
219 \begin{tabular}{@{}>{\ttfamily}lcc@{}}
220 \hline
221 \rmfamily Package option & Latin & Greek \\
222 \hline
223 bold-style=ISO & $(\symbfit a, \symbfit z, \symbfit B, \symbfit X)$ & $(\symbfit\alpha, \symbfit\beta, \symbfit\Gamma, \symbfit\Xi)$ \\
224 bold-style=TeX & $(\symbfup a,\symbfup z,\symbfup B,\symbfup X)$ & $(\symbfit\alpha, \symbfit\beta,\symbfup \Gamma,\symbfup \Xi)$ \\
225 bold-style=upright & $(\symbfup a,\symbfup z,\symbfup B,\symbfup X)$ & $(\symbfup \alpha,\symbfup \beta,\symbfup \Gamma,\symbfup \Xi)$ \\
226 \hline
227 \end{tabular}
228 \end{table}
229
230 Other possible customisation: $\nabla$ is printed upright and $\partial$ is
231 printed slanted by default, but \opt{nabla=italic} and
232 \opt{partial=upright} can change this.
233
234 All these options are offered by the \pkg{unicode-math} package, they can
235 be added to the \cmd{setmathfont} call as well%
236 \footnote{IMHO it is easier to add \emph{all options} to the \cmd{setmathfont}
237 command.}, for example:
238
239 \verb+\setmathfont{LeteSansMath.otf}[math-style=french,partial=upright]+
240
241 will print for the code
242
243 \verb|\[ \frac{\partial f}{\partial x} = \alpha \symbf{V} + a\nabla\Gamma|\\
244 \verb| + \symbf{\beta}\symbf{M} \]|
245
246 \setmathfont{LeteSansMath.otf}[math-style=french,partial=upright]
247 \[\frac{\partial f}{\partial x} = \alpha \symbf{V} + a\nabla\Gamma +
248 \symbf{\beta}\symbf{M} \]
249 while the default settings would print
250 \setmathfont{LeteSansMath.otf}[math-style=TeX,partial=italic]
251 \[\frac{\partial f}{\partial x} = \alpha \symbf{V} + a\nabla\Gamma +
252 \symbf{\beta}\symbf{M} \]
253
254 Both shapes remain available anytime: \verb+$\uppi,\itpi$+
255 prints $\uppi, \itpi$.
256
257 If your text editor is able to handle Greek letters or maths symbols, they can
258 be entered in the code instead control sequences (i.e.
259 $\symup{α}$, $\symup{β}$, $\symup{Γ}$,… for \cmd{alpha}, \cmd{beta},
260 \cmd{Gamma},…).
261
262 \subsection{Character variants}
263 \label{ssection-cv}
264
265 \LAotf{} provides nine ``Character Variants'' options, listed on
266 table~\vref{cv}, to choose between different glyphs for Greek characters
267 and some others.
268
269 For instance, to get \cmd{epsilon} and \cmd{phi} typeset as $\varepsilon$
270 and $\varphi$ instead of $\epsilon$ and $\phi$, you can add option
271 \verb+CharacterVariant={3,6}+ to the \cmd{setmathfont} call:
272
273 \verb+\setmathfont{LeteSansMath.otf}[CharacterVariant={3,6}]+
274
275 \begin{table}[ht]
276 \centering \caption{Character variants.}
277 \hlabel{cv}
278 \begin{tabular}{@{}>{\ttfamily}lccl@{}}
279 \hline
280 & Default & Variant & Name\\
281 \hline
282 cv01 & $\hslash$ & $\mithbar$ & \cmd{hslash} \\
283 cv02 & $\emptyset$ & $\varemptyset$ & \cmd{emptyset} \\
284 cv03 & $\epsilon$ & $\varepsilon$ & \cmd{epsilon} \\
285 cv04 & $\kappa$ & $\varkappa$ & \cmd{kappa} \\
286 cv05 & $\pi$ & $\varpi$ & \cmd{pi} \\
287 cv06 & $\phi$ & $\varphi$ & \cmd{phi} \\
288 cv07 & $\rho$ & $\varrho$ & \cmd{rho} \\
289 cv08 & $\sigma$ & $\varsigma$ & \cmd{sigma} \\
290 cv09 & $\theta$ & $\vartheta$ & \cmd{theta} \\
291 cv10 & $\Theta$ & $\varTheta$ & \cmd{Theta}\\
292 cv11 & $g$ & $\mitvarg$ & g \\
293 \hline
294 \end{tabular}
295 \end{table}
296
297 This works for all shapes and weights of these characters: f.i.\ %
298 \verb+$\symbf{\epsilon}$+, \verb+$\symbf{\phi}$+ are output as
299 \setmathfont{LeteSansMath.otf}[CharacterVariant={3,6}]$\symbf{\epsilon}$,
300 $\symbf{\phi}$ instead of
301 \setmathfont{LeteSansMath.otf}$\symbf{\epsilon}$, $\symbf{\phi}$.
302 If \opt{math-style=french} has been chosen, \verb+\epsilon+ and \verb+\phi+
303 are output as $\symup{\varepsilon}$ and $\symup{\varphi}$ (upright).
304
305 Please note that curly braces are mandatory whenever more than one
306 ``Character Variant'' is selected.
307
308 Note about \cmd{hbar}: \pkg{amsmath} provides two different glyphs
309 (italic $h$ with horizontal or diagonal stroke) while \pkg{unicode-math}
310 defines \cmd{hbar} as \cmd{hslash} (U+210F).
311 \pkg{lete-sans-math} follows \pkg{unicode-math}; the italic $h$ with horizontal
312 stroke can be printed using \cmd{hslash} or \cmd{hbar} together with character
313 variant \texttt{cv01} or with \cmd{mithbar} (replacement for AMS’ command
314 \cmd{hbar}).
315
316
317 \subsection{Stylistic sets}
318 \label{ssection-ss}
319
320 \LAotf{} provides seven ``Stylistic Sets'' options to choose between different
321 glyphs for families of maths symbols.
322
323 \ttbold{StylisticSet=1}, alias%
324 \footnote{These \texttt{Style} aliases are provided by
325 \file{lete-sans-math.sty}.}
326 \setmathfont{LeteSansMath}[range={cal,bfcal},StylisticSet=1]
327 \ttbold{Style=mathcal} is new to version~0.60.
328 It forces commands \verb|\mathcal{}| and \verb|\mathscr{}|
329 to print $\mathcal{ABC}$ (former shape) instead of $\mathscr{ABC}$
330 (the new default in v.~0.60).
331 Please note that \pkg{unicode-math} recommends to use \cmd{symcal} and
332 \cmd{symscr} instead of \cmd{mathcal} and \cmd{mathscr}.
333
334 If you want to use both commands \verb|$\symcal{ABC}$| and
335 \verb|$\symscr{ABC}$| to print $\symcal{ABC}$ and $\symscr{ABC}$
336 respectively, you can use \pkg{unicode-math}’s option \verb|range| this way%
337 \footnote{The \pkg{unicode-math} package is not yet able to make use of Unicode
338 Variation Selectors U+FE00 and U+FE01 to switch between `cal’ and `scr’
339 variants but these selectors are already implemented in \LAotf.}%
340 :\\
341 \verb|\setmathfont{LeteSansMath}[|\textit{your options}\verb|]|\\
342 \verb|\setmathfont{LeteSansMath}[range={cal,bfcal},StylisticSet=1]|\\
343 Both lines are mandatory: the first one loads {\LAotf} while the
344 second one modifies \verb|\mathcal| and \verb|\symcal| commands’ output.
345
346 \addtocounter{footnote}{-2}
347 \ttbold{StylisticSet=4}, alias\footnotemark{}
348 \ttbold{Style=leqslant}, converts inequalities into their slanted variants,
349 see table~\vref{ss04}.
350 \begin{table}[ht]
351 \centering
352 \caption{Style=leqslant (+ss04)}
353 \hlabel{ss04}
354 \begin{tabular}[t]{@{}lcc@{}}
355 \hline
356 Command & Default & Variant \\
357 \hline
358 \cmd{leq} & $\leq$ & $\leqslant$ \\
359 \cmd{nleq} & $\nleq$ & $\nleqslant$ \\
360 \cmd{leqq} & $\leqq$ & $\leqqslant$ \\
361 \cmd{nleqq} & $\nleqq$ & $\nleqqslant$ \\
362 \cmd{lesssim} & $\lesssim$ & $\lesssimslant$ \\
363 \cmd{simless} & $\simless$ & $\simslantless$ \\
364 \cmd{smte} & $\smte$ & $\smteslant$ \\
365 \cmd{eqless} & $\eqless$ & $\eqslantless$ \\
366 \cmd{lesseqgtr} & $\lesseqgtr$ & $\lesseqslantgtr$ \\
367 \cmd{lesseqqgtr} & $\lesseqqgtr$ & $\lesseqqslantgtr$ \\
368 \hline
369 \end{tabular}
370 \hspace{1cm}
371 \begin{tabular}[t]{@{}lcc@{}}
372 \hline
373 Command & Default & Variant \\
374 \hline
375 \cmd{geq} & $\geq$ & $\geqslant$ \\
376 \cmd{ngeq} & $\ngeq$ & $\ngeqslant$ \\
377 \cmd{geqq} & $\geqq$ & $\geqqslant$ \\
378 \cmd{ngeqq} & $\ngeqq$ & $\ngeqqslant$ \\
379 \cmd{gtrsim} & $\gtrsim$ & $\gtrsimslant$ \\
380 \cmd{simgtr} & $\simgtr$ & $\simslantgtr$ \\
381 \cmd{late} & $\late$ & $\lateslant$ \\
382 \cmd{eqgtr} & $\eqgtr$ & $\eqslantgtr$ \\
383 \cmd{gtreqless} & $\gtreqless$ & $\gtreqslantless$ \\
384 \cmd{gtreqqless} & $\gtreqqless$ & $\gtreqqslantless$ \\
385 \hline
386 \end{tabular}
387 \end{table}
388
389 \addtocounter{footnote}{-1}
390 \ttbold{StylisticSet=5}, alias\footnotemark{}
391 \ttbold{Style=smaller}, converts some symbols
392 into their smaller variants, see table~\vref{ss05}.
393 \begin{table}[ht]
394 \centering
395 \caption{Style=smaller (+ss05)}
396 \hlabel{ss05}
397 \begin{tabular}[t]{@{}lcc@{}}
398 \hline
399 Command & Default & Variant \\
400 \hline
401 \cmd{in} & $\in$ & $\smallin$ \\
402 \cmd{ni} & $\ni$ & $\smallni$ \\
403 \cmd{mid} & $\mid$ & $\shortmid$ \\
404 \cmd{nmid} & $\nmid$ & $\nshortmid$ \\
405 \cmd{parallel} & $\parallel$ & $\shortparallel$ \\
406 \cmd{nparallel} & $\nparallel$ & $\nshortparallel$ \\
407 \cmd{parallelslant} & $\parallelslant$ & $\shortparallelslant$ \\
408 \cmd{nparallelslant} & $\nparallelslant$ & $\nshortparallelslant$ \\
409 \hline
410 \end{tabular}
411 \end{table}
412
413 \addtocounter{footnote}{-1}
414 \ttbold{StylisticSet=6}, alias\footnotemark{}
415 \ttbold{Style=subsetneq}, converts some
416 inclusion symbols, as shown in table~\vref{ss06}.
417
418 \addtocounter{footnote}{-1}
419 \ttbold{StylisticSet=7}, alias\footnotemark{}
420 \ttbold{Style=parallelslant}, converts
421 ``parallel'' symbols into their slanted variants, see table~\vref{ss07}.
422 \begin{table}[ht]
423 \centering
424 \caption{Stylistic Sets 6 and 7}
425 \addtocounter{table}{-1}% \subfloat steps counter table?
426 \subfloat[\texttt{Style=subsetneq\quad (+ss06)}]{\hlabel{ss06}%
427 \begin{tabular}[t]{@{}lcc@{}}
428 \hline
429 Command & Default & Variant \\
430 \hline
431 \cmd{subsetneq} & $\subsetneq$ & $\varsubsetneq$ \\
432 \cmd{supsetneq} & $\supsetneq$ & $\varsupsetneq$ \\
433 \cmd{subsetneqq} & $\subsetneqq$ & $\varsubsetneqq$ \\
434 \cmd{supsetneqq} & $\supsetneqq$ & $\varsupsetneqq$ \\
435 \hline
436 \end{tabular}
437 }\hspace{10mm} % eof subfloat
438 \subfloat[\texttt{Style=parallelslant\quad (+ss07)}]{\hlabel{ss07}%
439 \begin{tabular}[t]{@{}lcc@{}}
440 \hline
441 Command & Default & Variant \\
442 \hline
443 \cmd{parallel} & $\parallel$ & $\parallelslant$ \\
444 \cmd{nparallel} & $\nparallel$ & $\nparallelslant$ \\
445 \cmd{shortparallel} & $\shortparallel$ & $\shortparallelslant$ \\
446 \cmd{nshortparallel} & $\nshortparallel$ & $\nshortparallelslant$ \\
447 \hline
448 \end{tabular}
449 } % eof subfloat
450 \end{table}
451 \stepcounter{table}% \subfloat steps counter table?
452
453 \clearpage
454 \addtocounter{footnote}{1}
455 \ttbold{StylisticSet=8}, alias%
456 \footnote{These \texttt{Style} aliases are provided by
457 \file{lete-sans-math.sty}.}
458
459 \begin{table}[ht]
460 \let\DS\displaystyle
461 \centering
462 \caption{Style=upint\quad (+ss08)}\hlabel{ss08}
463 \begin{tabular}[t]{@{}l*{8}c@{}}
464 \hline
465 Command &\cmd{int} &\cmd{iint} &\cmd{iiint} &\cmd{iiiint}
466 &\cmd{oint} &\cmd{oiint} &\cmd{oiiint} \\
467 \hline
468 Default\rule[-15pt]{0pt}{35pt} &$\DS\int$ &$\DS\iint$ &$\DS\iiint$ &$\DS\iiiint$
469 &$\DS\oint$ &$\DS\oiint$ &$\DS\oiiint$
470 \\[\baselineskip]
471 \setmathfont{LeteSansMath.otf}[Style=upint]
472 Upright\rule[-15pt]{0pt}{30pt} &$\DS\int$ &$\DS\iint$ &$\DS\iiint$ &$\DS\iiiint$
473 &$\DS\oint$ &$\DS\oiint$ &$\DS\oiiint$ \\
474 \hline
475 \end{tabular}\\[\baselineskip]
476 \setmathfont{LeteSansMath.otf}
477 \begin{tabular}[t]{@{}l*{4}c@{}}
478 \hline
479 Command &\scmd{intclockwise} &\scmd{awint}
480 &\scmd{varointclockwise} &\scmd{ointctrclockwise} \\
481 \hline
482 Default\rule[-15pt]{0pt}{35pt} &$\DS\intclockwise$ &$\DS\awint$
483 &$\DS\varointclockwise$ &$\DS\ointctrclockwise$ \\
484 \setmathfont{LeteSansMath.otf}[Style=upint]
485 Upright\rule[-15pt]{0pt}{30pt} &$\DS\intclockwise$ &$\DS\awint$
486 &$\DS\varointclockwise$ &$\DS\ointctrclockwise$ \\
487 \hline
488 \end{tabular}
489 \end{table}
490 \setmathfont{LeteSansMath.otf}
491
492 \addtocounter{footnote}{-1}
493 \ttbold{StylisticSet=9}, alias\footnotemark{}
494 \ttbold{Style=upint}, converts integrals signs into their upright
495 variants, see table~\vref{ss08}.
496 \ttbold{Style=vertneg}, converts slanted negations into vertical ones.
497 see table~\vref{ss09}.
498
499 \begin{table}[ht]
500 \let\DS\displaystyle
501 \centering
502 \caption{Style=vertneg\quad (+ss09)}\hlabel{ss09}
503 \begin{tabular}[t]{@{}lcc@{}}
504 \hline
505 Command & Default & Variant \\
506 \hline
507 \cmd{notin} & $\notin$ & $\vertnotin$ \\
508 \cmd{nni} & $\nni$ & $\vertnni$ \\
509 \cmd{ne} & $\ne$ & $\vertne$ \\
510 \cmd{nequiv} & $\nequiv$ & $\vertnequiv$ \\
511 \cmd{nsim} & $\nsim$ & $\vertnsim$ \\
512 \cmd{nsimeq} & $\nsimeq$ & $\vertnsimeq$ \\
513 \cmd{ncong} & $\ncong$ & $\vertncong$ \\
514 \cmd{nasymp} & $\nasymp$ & $\vertnasymp$ \\
515 \cmd{ngtr} & $\ngtr$ & $\vertngtr$ \\
516 \cmd{nless} & $\nless$ & $\vertnless$ \\
517 \cmd{ngeq} & $\ngeq$ & $\vertngeq$ \\
518 \cmd{nleq} & $\nleq$ & $\vertnleq$ \\
519 \cmd{gneqq} & $\gneqq$ & $\gvertneqq$ \\
520 \cmd{lneqq} & $\lneqq$ & $\lvertneqq$ \\
521 \hline
522 \end{tabular}
523 \hfill
524 \begin{tabular}[t]{@{}lcc@{}}
525 \hline
526 Command & Default & Variant \\
527 \hline
528 \cmd{ngtrless} & $\ngtrless$ & $\vertngtrless$ \\
529 \cmd{nlessgtr} & $\nlessgtr$ & $\vertnlessgtr$ \\
530 \cmd{nlesssim} & $\nlesssim$ & $\vertnlesssim$ \\
531 \cmd{ngtrsim} & $\ngtrsim$ & $\vertngtrsim$ \\
532 \cmd{nprec} & $\nprec$ & $\vertnprec$ \\
533 \cmd{nsucc} & $\nsucc$ & $\vertnsucc$ \\
534 \cmd{npreccurlyeq} & $\npreccurlyeq$ & $\vertnpreccurlyeq$ \\
535 \cmd{nsucccurlyeq} & $\nsucccurlyeq$ & $\vertnsucccurlyeq$ \\
536 \cmd{nsubset} & $\nsubset$ & $\vertnsubset$ \\
537 \cmd{nsupset} & $\nsupset$ & $\vertnsupset$ \\
538 \cmd{nsubseteq} & $\nsubseteq$ & $\vertnsubseteq$ \\
539 \cmd{nsupseteq} & $\nsupseteq$ & $\vertnsupseteq$ \\
540 \cmd{ntrianglelefteq} & $\ntrianglelefteq$ & $\vertntrianglelefteq$ \\
541 \cmd{ntrianglerighteq} & $\ntrianglerighteq$ & $\vertntrianglerighteq$ \\
542 \hline
543 \end{tabular}
544 \end{table}
545
546 \clearpage
547 To enable Stylistic Sets 4 and 8 for \LAotf{}, you can enter\\
548 \verb+\setmathfont{LeteSansMath.otf}[StylisticSet={4,8}] or+\\
549 \verb+\usepackage[Style={leqslant,upint}]{lete-sans-math}+
550
551 then, \verb+\[x\leq y \quad \int_{a}^{b} f(x) \;\symup{d}x\]+
552 will print as
553 \setmathfont{LeteSansMath.otf}[StylisticSet={4,8}]
554 \[x\leq y \quad \int_{a}^{b} f(x) \;\symup{d}x\]
555 instead of
556 \setmathfont{LeteSansMath.otf}
557 \[x\leq y \quad \int_{a}^{b} f(x) \;\symup{d}x\]
558
559
560 \subsection{Other font features}
561 \label{ssec-other-features}
562
563 To get oldstyle numbers in maths, the feature \texttt{+onum} is available:
564
565 \verb+\setmathfont{LeteSansMath.otf}[Numbers=OldStyle] or+\\
566 \verb+\usepackage[Style=fulloldstyle]{lete-sans-math}+
567
568 \setmathfont{LeteSansMath.otf}[Numbers=OldStyle]
569 $0123456789, \symbf{0123456789}$
570 \setmathfont{LeteSansMath.otf}
571
572 \subsection{Standard LaTeX maths commands}
573 \label{ssec-math-commands}
574
575 All standard LaTeX maths commands, all \pkg{amssymb} commands and all
576 \pkg{latexsym} commands are supported, for some of them loading
577 \pkg{lete-sans-math.sty} is required.
578
579 Various wide accents and extensible arrows are also supported:
580 \begin{itemize}
581 \item \cmd{wideoverbar} and \cmd{mathunderbar}%
582 \footnote{\cmd{overline} and \cmd{underline} are not font related,
583 they are based on \cmd{rule}.}
584 \[\wideoverbar{x}\quad \wideoverbar{xy}\quad \wideoverbar{xyz}\quad
585 \wideoverbar{A\cup B}\quad \wideoverbar{A\cup (B\cap C)\cup D}\quad
586 \mathunderbar{m+n+p}\]
587
588 \item \cmd{widehat} and \cmd{widetilde}
589 \[\widehat{x}\; \widehat{xx} \;\widehat{xxx} \;\widehat{xxxx}\;
590 \widehat{xxxxx} \;\widehat{xxxxxx} \;\widetilde{x}\; \widetilde{xx}\;
591 \widetilde{xxx} \;\widetilde{xxxx} \;\widetilde{xxxxx}\;
592 \widetilde{xxxxxx}\]
593
594 \item \cmd{widecheck} and \cmd{widebreve}
595 \[\widecheck{x}\quad \widecheck{xxxx}\quad \widecheck{xxxxxx}\quad
596 \widebreve{x}\quad \widebreve{xxxx}\quad \widebreve{xxxxxx}\]
597
598 \item \cmd{overparen} and \cmd{underparen}
599 \[\overparen{x}\quad \overparen{xy}\quad \overparen{xyz}\quad
600 \mathring{\overparen{A\cup B}}\quad
601 \overparen{A\cup (B\cap C)\cup D}^{\smwhtcircle}\quad
602 \overparen{x+y}^{2}\quad \overparen{a+b+...+z}^{26}\]
603 \[\underparen{x}\quad \underparen{xz} \quad \underparen{xyz}
604 \quad \underparen{x+z}_{2}\quad \underparen{a+b+...+z}_{26}\]
605
606 \item \cmd{overbrace} and \cmd{underbrace}
607 \[\overbrace{a}\quad \overbrace{ab}\quad \overbrace{abc}\quad
608 \overbrace{abcd}\quad \overbrace{abcde}\quad
609 \overbrace{a+b+c}^{3}\quad \overbrace{ a+b+. . . +z }^{26}\]
610 \[\underbrace{a}\quad\underbrace{ab}\quad\underbrace{abc}\quad
611 \underbrace{abcd}\quad \underbrace{abcde}\quad
612 \underbrace{a+b+c}_{3} \quad \underbrace{ a+b+...+z }_{26}\]
613
614 \item \cmd{overbracket} and \cmd{underbracket}
615 \[\overbracket{a}\quad \overbracket{ab}\quad \overbracket{abc}\quad
616 \overbracket{abcd}\quad \overbracket{abcde}\quad
617 \overbracket{a+b+c}^{3}\quad \overbracket{ a+b+. . . +z }^{26}\]
618 \[\underbracket{a}\quad\underbracket{ab}\quad\underbracket{abc}\quad
619 \underbracket{abcd}\quad \underbracket{abcde}\quad
620 \underbracket{a+b+c}_{3} \quad \underbracket{ a+b+...+z }_{26}\]
621
622 \item \cmd{overrightarrow} and \cmd{overleftarrow}
623 \[\overrightarrow{v}\quad \overrightarrow{M}\quad \overrightarrow{vv}
624 \quad \overrightarrow{AB}\quad \overrightarrow{ABC}
625 \quad \overrightarrow{ABCD} \quad \overrightarrow{ABCDEFGH}.
626 \]
627 \[\overleftarrow{v}\quad \overleftarrow{M}\quad \overleftarrow{vv}
628 \quad \overleftarrow{AB}\quad \overleftarrow{ABC}
629 \quad \overleftarrow{ABCD} \quad \overleftarrow{ABCDEFGH}\]
630
631 \item \cmd{overrightharpoon} and \cmd{overleftharpoon}
632 \[\overrightharpoon{v}\quad \overrightharpoon{M}\quad \overrightharpoon{vv}
633 \quad \overrightharpoon{AB}\quad \overrightharpoon{ABC}
634 \quad \overrightharpoon{ABCD} \quad \overrightharpoon{ABCDEFGH}.
635 \]
636 \[\overleftharpoon{v}\quad \overleftharpoon{M}\quad \overleftharpoon{vv}
637 \quad \overleftharpoon{AB}\quad \overleftharpoon{ABC}
638 \quad \overleftharpoon{ABCD} \quad \overleftharpoon{ABCDEFGH}\]
639
640 \item \cmd{underrightarrow} and \cmd{underleftarrow}
641 \[\underrightarrow{v}\quad \underrightarrow{M}\quad \underrightarrow{vv}
642 \quad \underrightarrow{AB}\quad \underrightarrow{ABC}
643 \quad \underrightarrow{ABCD} \quad \underrightarrow{ABCDEFGH}.
644 \]
645 \[\underleftarrow{v}\quad \underleftarrow{M}\quad \underleftarrow{vv}
646 \quad \underleftarrow{AB}\quad \underleftarrow{ABC}
647 \quad \underleftarrow{ABCD} \quad \underleftarrow{ABCDEFGH}\]
648
649 \item \cmd{underrightharpoon} and \cmd{underleftharpoondown}
650 \[\underrightharpoondown{v}\quad \underrightharpoondown{M}\quad
651 \underrightharpoondown{vv}\quad \underrightharpoondown{AB}\quad
652 \underrightharpoondown{ABC}\quad \underrightharpoondown{ABCD}\quad
653 \underrightharpoondown{ABCDEFGH}.
654 \]
655 \[\underleftharpoondown{v}\quad \underleftharpoondown{M}\quad
656 \underleftharpoondown{vv}\quad \underleftharpoondown{AB}\quad
657 \underleftharpoondown{ABC}\quad \underleftharpoondown{ABCD}
658 \quad \underleftharpoondown{ABCDEFGH}.
659 \]
660 \end{itemize}
661
662 All extensible arrows provided by the \pkg{mathtools} package are
663 available in LeteSansMath (loading \pkg{lete-sans-math.sty} is required),
664 f.i.:
665 \[X \xLeftrightarrow{\text{above}} Y \xhookrightarrow[\text{under}]{}
666 Z\xmapsto{\text{above}} W\]
667
668 A wide range of extensible vertical delimiters is provided:
669 \[\left/
670 \begin{pmatrix} a_{1} \\ a_{2} \\ a_{3} \end{pmatrix}
671 \begin{bmatrix} a_{1} \\ a_{2} \\ a_{3} \end{bmatrix}
672 \begin{Bmatrix} a_{1} \\ a_{2} \\ a_{3} \end{Bmatrix}
673 \begin{vmatrix} a_{1} \\ a_{2} \\ a_{3} \end{vmatrix}
674 \begin{Vmatrix} a_{1} \\ a_{2} \\ a_{3} \end{Vmatrix}
675 \left\lVvert\begin{array}{c} a_{1} \\ a_{2} \\ a_{3} \end{array}\right\Vvert
676 \left\lceil \begin{array}{c} a_{1} \\ a_{2} \\ a_{3} \end{array}\right\rceil
677 \left\lfloor\begin{array}{c} a_{1} \\ a_{2} \\ a_{3} \end{array}\right\rfloor
678 \left\lBrack\begin{array}{c} a_{1} \\ a_{2} \\ a_{3} \end{array}\right\rBrack
679 \left\langle\begin{array}{c} a_{1} \\ a_{2} \\ a_{3} \end{array}\right\rangle
680 \left\lAngle\begin{array}{c} a_{1} \\ a_{2} \\ a_{3} \end{array}\right\rAngle
681 \right\backslash \]
682
683 \subsection{Mathematical alphabets}
684 \label{ssec-math-alphabets}
685
686 \setmathfont{LeteSansMath}
687 \setmathfont{LeteSansMath}[range={cal,bfcal},StylisticSet=1]
688 \begin{itemize}
689 \item All Latin and Greek characters are available in italic, upright, bold
690 and bold italic via the \verb+\symit{}+, \verb+\symup{}+, \verb+\symbf{}+
691 and \verb+\symbfit{}+ commands.
692
693 \item Calligraphic alphabet (\cmd{symscr} or \cmd{symcal} command)%
694 \footnote{See section~\ref{ssection-ss} for alternate shapes:
695 $\symcal{ABCDEF}$ and $\symbfcal{ABCDEF}$.},
696 uppercase only:
697
698 $\symscr{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
699
700 \addtocounter{footnote}{-1}
701 also in boldface (\cmd{symbfscr}, or \cmd{symbfcal} command)\footnotemark:
702
703 $\symbfscr{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
704
705 \item Blackboard-bold alphabet (\cmd{symbb} or \cmd{mathbb} command):
706
707 $\symbb{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$\\
708 $\symbb{abcdefghijklmnopqrstuvwxyz\quad 0123456789}$
709
710 \item Fraktur alphabet is borrowed from Latin Modern, medium and bold
711 (\cmd{symfrak}, or \cmd{symbffrak} commands):
712
713 $\symfrak{ABCDEFGHIJKLMNOPQRSTUVWXYZ\; abcdefghijklmnopqrstuvwxyz}$\\
714 $\symbffrak{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$\\
715 \hphantom{$\symfrak{ABCDEFGHIJKLMNOPQRSTUVWXYZ\;}$}%
716 $\symbffrak{abcdefghijklmnopqrstuvwxyz}$
717
718 but this can overwritten, i.e.
719
720 \verb+\setmathfont{Asana-Math.otf}[range=frak,Scale=MatchUppercase]+\\
721 \verb+$\symfrak{ABCDEFGHIJKL...XYZ abcdefghijkl...xyz}$+
722
723 %\verb+\setmathfont{Asana-Math.otf}[range=frak,Scale=MatchUppercase]+\\
724 %\verb+$\symfrak{ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz}$+
725
726 \item Typewriter alphabet is sans-serif: $\symtt{0123456789}$
727
728 $\symtt{ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz}$
729
730 but it can be borrowed from another maths font.
731
732 %\verb+\setmathfont{STIXTwoMath-Regular.otf}[range=tt,+\\
733 %\verb+ Scale=MatchUppercase]+\\
734 %\verb+$\symtt{ABCDE...XYZ abcde...xyz}$+
735
736 %\verb+\setmathfont{STIXTwoMath-Regular.otf}[range=tt,Scale=MatchUppercase]+\\
737 %\verb+$\symtt{ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz}$+
738 \end{itemize}
739
740 Like Latin Modern, \pkg{lete-sans-math} provides only four lowercase Latin
741 letters in script (or calligraphic) shape: $\mscre$, $\mscrg$, $\ell$,
742 $\mscro$ (\verb+\mscre+, \verb+\mscrg+, \verb+\ell+, \verb+\mscro+).
743
744 All others (range \verb+"1D4B6+ to \verb+"1D4CF+) have to be borrowed
745 from another maths font if needed, i.e.
746
747 \verb+\setmathfont{LibertinusMath-Regular.otf}%+\\
748 \verb+ [range="1D4B6-"1D4CF, Scale=MatchLowercase]+
749
750 \subsection{Bold variant}
751
752 \setmathfont{LeteSansMath.otf}[BoldFont=LeteSansMath-Bold.otf]
753 In case short maths formulas have to be printed in section titles,
754 a \emph{limited} bold variant is provided. Example of usage:\quad
755 \textbf{\boldmath Einstein’s equation $E=mc^2$}
756
757 \verb+\setmathfont{LeteSansMath-Bold.otf}[version=bold, +\textit{options}\verb+]+\\
758 \verb+\section{\mathversion{bold} Einstein’s equation $E=mc^2$}+
759
760 It is also possible to use the \verb+\boldmath+ command%
761 \footnote{The \cmd{boldmath} command works out of the box when
762 \pkg{lete-sans-math.sty} is loaded.}:
763
764 \verb+\setmathfont{LeteSansMath.otf}[BoldFont=LeteSansMath-Bold.otf]+\\
765 \verb+\section{\boldmath Einstein’s equation $E=mc^2$}+
766
767 \subsection{Missing symbols}
768
769 \LAotf{} is fairly complete (see file \file{unimath-lete.pdf}),
770 if you happen to need some of the few missing glyphs you can borrow them from
771 a more complete font, say \file{New Computer Modern}. For instance if you need
772 Italic Blackboard Bold (U+2145 to U+2149) you could try:
773
774 \verb+\setmathfont{NewCMMath-Book.otf}[range={"2145-"2149},Scale=1.05]+
775
776 Let’s mention \pkg{albatross}, a useful tool to find out the list of fonts
777 providing a given glyph: f.i. type in a terminal ``\texttt{albatross -t U+2145}'', see the manpage or \file{albatross-manual.pdf}.
778
779 \section{Acknowledgements}
780
781 Many thanks to \href{https:www.typoland.com}{Łukasz Dziedzic} for providing
782 the Lato text fonts in OpenType format.
783
784 We are grateful to George Williams and his co-workers for providing and
785 maintaining FontForge and to Ulrik Vieth for his illuminating paper published
786 in TUGboat~2009 Volume~30 about OpenType Maths.
787
788
789 \bigskip
790 \begin{center}\Huge
791 \decotwo
792 \end{center}
793
794 \end{document}
795
796 %%% Local Variables:
797 %%% mode: latex
798 %%% TeX-engine: luatex
799 %%% TeX-master: t
800 %%% coding: utf-8
801 %%% End: