| 1 |
\DocumentMetadata{pdfstandard=A-2b, lang=en-GB} |
| 2 |
\documentclass[a4paper,12pt]{scrartcl} |
| 3 |
|
| 4 |
\usepackage{mathtools, array, varioref} |
| 5 |
\renewcommand{\arraystretch}{1.2} |
| 6 |
\usepackage[british]{babel} |
| 7 |
\usepackage{luciole-math} |
| 8 |
\usepackage{realscripts} |
| 9 |
\setmainfont{Luciole} |
| 10 |
\renewcommand{\sffamily}{\rmfamily} |
| 11 |
\setmonofont{Inconsolatazi4-Bold.otf}[Scale=MatchLowercase, |
| 12 |
HyphenChar=None,StylisticSet={2,3}] |
| 13 |
\usepackage{subfig} |
| 14 |
\captionsetup[subtable]{position=top} |
| 15 |
\usepackage{fourier-orns} |
| 16 |
\usepackage{realscripts} |
| 17 |
\usepackage{microtype} |
| 18 |
|
| 19 |
\newcommand*{\pkg}[1]{\texttt{#1}} |
| 20 |
\newcommand*{\file}[1]{\texttt{#1}} |
| 21 |
\newcommand*{\ttbold}[1]{\texttt{\textbf{#1}}} |
| 22 |
\newcommand*{\opt}[1]{\texttt{#1}} |
| 23 |
\newcommand*{\cmd}[1]{\texttt{\textbackslash #1}}\newcommand*{\showtchar}[1]{\cmd{#1}~\csname #1\endcsname} |
| 24 |
\newcommand*{\showmchar}[1]{\cmd{#1}~$(\csname #1\endcsname)$} |
| 25 |
\newcommand*{\showmchardollar}[1]{\texttt{\$\cmd{#1}\$}~$(\csname #1\endcsname)$} |
| 26 |
|
| 27 |
\renewcommand{\labelitemi}{\lefthand} |
| 28 |
|
| 29 |
\usepackage{setspace} |
| 30 |
\setstretch{1.20} |
| 31 |
\setlength{\parindent}{0pt} |
| 32 |
%\setlength{\parskip}{12pt plus 3pt minus 3pt} |
| 33 |
\setlength{\parskip}{6pt plus 2pt minus 2pt} |
| 34 |
|
| 35 |
\usepackage{hyperref} |
| 36 |
\hypersetup{pdftitle={Luciole User’s Guide for LaTeX}, |
| 37 |
pdfauthor={Daniel FLIPO}, |
| 38 |
bookmarksopen, |
| 39 |
colorlinks |
| 40 |
} |
| 41 |
\newcommand*{\hlabel}[1]{\phantomsection\label{#1}} |
| 42 |
|
| 43 |
\title{Luciole fonts \\User’s Guide for LaTeX} |
| 44 |
\author{Daniel Flipo \\ \texttt{[email protected]}} |
| 45 |
|
| 46 |
\date{\today} |
| 47 |
\newcommand*{\version}{0.60} |
| 48 |
\newif\ifCTAN \CTANtrue %%% décommenter pour CTAN |
| 49 |
|
| 50 |
\begin{document} |
| 51 |
\maketitle |
| 52 |
|
| 53 |
\section{What is Luciole ?} |
| 54 |
|
| 55 |
Luciole is a set of OpenType text and math fonts developed explicitly for |
| 56 |
visually impaired people, see \url{https://luciole-vision.com} |
| 57 |
for more information. The text fonts are licensed under Creative-Common |
| 58 |
CC-by-4.0 and the math font is licensed under Open Font License (OFL), |
| 59 |
which cover use (including commercial use) and distribution of the fonts |
| 60 |
for free. |
| 61 |
|
| 62 |
They require LuaTeX or XeTeX as engine and the \pkg{unicode-math} package% |
| 63 |
\footnote{Please read the documentation \file{unicode-math.pdf}.}, |
| 64 |
if math fonts are required or just the \pkg{fontspec} package% |
| 65 |
\footnote{Please read the documentation \file{fontspec.pdf}.} |
| 66 |
otherwise. |
| 67 |
|
| 68 |
\section{Usage} |
| 69 |
|
| 70 |
The Luciole fonts can be used in normal sizes (10 to 12pt) but visually impaired |
| 71 |
people will probably need to scale them (option \texttt{Scale=2} f.i.), |
| 72 |
adjusting the baseline skip is recommended, see below. |
| 73 |
|
| 74 |
\subsection{Loading text fonts} |
| 75 |
|
| 76 |
A file \file{Luciole.fontspec} is provided to ensure that Italic, Bold and |
| 77 |
BoldItalic variants are properly loaded. |
| 78 |
A basic call for Luciole text fonts with scaling could be: |
| 79 |
\begin{verbatim} |
| 80 |
\usepackage{fontspec} |
| 81 |
\setmainfont{Luciole}[Scale=2] |
| 82 |
\renewcommand{\sffamily}{\rmfamily} |
| 83 |
\usepackage{realscripts} |
| 84 |
\usepackage{setspace} |
| 85 |
\setstretch{2.0} |
| 86 |
\end{verbatim} |
| 87 |
This document is composed in \opt{12pt} with |
| 88 |
\verb+\setstretch{1.2}+ and no scaling. |
| 89 |
|
| 90 |
Other options can be added to the \verb|\setmainfont| command, f.i.:\\ |
| 91 |
\verb|\setmainfont{Luciole}[Scale=2, Numbers=Lowercase]| |
| 92 |
|
| 93 |
The four text fonts provide proportional, tabular and oldstyle numbers |
| 94 |
(features \opt{lnum}, \opt{pnum}, \opt{tnum}, \opt{onum}), small caps |
| 95 |
(features \opt{smcp}, \opt{c2sc)}, superscripts and scientific inferiors |
| 96 |
(digits and lowercase \textsc{ascii} letters, features \opt{sups}, \opt{sinf}) |
| 97 |
and the long-s (feature \opt{hist}). |
| 98 |
|
| 99 |
\subsection{Loading math fonts with \pkg{luciole-math.sty} } |
| 100 |
|
| 101 |
Using the \pkg{luciole-math} package is the easiest way to load the Luciole |
| 102 |
math fonts, you can type:\\[.5\baselineskip] |
| 103 |
\verb+\usepackage[ +\textit{options} |
| 104 |
\footnote{Possible \textit{options} are \opt{Scale=} |
| 105 |
or any of the options described in sections \ref{ssection-um} to |
| 106 |
\ref{ssec-other-features}.}% |
| 107 |
\verb+ ]{luciole-math}+\\[.5\baselineskip] |
| 108 |
it loads \pkg{unicode-math} with the default options, sets |
| 109 |
\file{Luciole-Math.otf} as math font and does a bit more: |
| 110 |
\begin{enumerate} |
| 111 |
\item it checks at \verb+\begin{document}+ if packages \pkg{amssymb} or |
| 112 |
\pkg{latexsym} are loaded and issues warnings in case they are; |
| 113 |
\item it provides aliases for glyphs named differently in Unicode, so that |
| 114 |
\pkg{latexsym} or AMS names are also available; |
| 115 |
\item it defines specific math characters like \showmchar{varemptyset}, |
| 116 |
\showmchar{nleqq}, |
| 117 |
\showmchar{parallelslant}, \showmchar{shortparallelslant}, etc.; |
| 118 |
\item it redefines the \cmd{TeX}, \cmd{LaTeX} and \cmd{LaTeXe} logos to fit |
| 119 |
the Luciole fonts unless option \opt{no-logos} has been activated. |
| 120 |
\end{enumerate} |
| 121 |
|
| 122 |
The Luciole text fonts have to be loaded as in the previous section. |
| 123 |
|
| 124 |
\section{What is provided by Luciole-Math?} |
| 125 |
|
| 126 |
Luciole-Math provides a wide range of glyphs including all those available in |
| 127 |
the \pkg{amssymb} and \pkg{latexsym} packages. Therefore, |
| 128 |
the latter two packages \emph{should not} be loaded as they might override |
| 129 |
Luciole-Math glyphs. |
| 130 |
|
| 131 |
A full list of available glyphs is shown in file \file{unimath-luciole.pdf}. |
| 132 |
|
| 133 |
\subsection{Upright or slanted?} |
| 134 |
\label{ssection-um} |
| 135 |
|
| 136 |
Package \pkg{unicode-math} follows \TeX{} conventions for Latin and Greek |
| 137 |
letters: in math mode, the default option (\opt{math-style=TeX}) prints |
| 138 |
Latin letters $a$…$z$ $A$…$Z$ and lowercase Greek letters $\alpha$…$\omega$ |
| 139 |
slanted (italic) while uppercase Greek letters $\Alpha \Beta \Gamma$…$\Omega$ |
| 140 |
are printed upright. |
| 141 |
This can be changed by option \opt{math-style} as shown in |
| 142 |
table~\vref{math-style}. |
| 143 |
|
| 144 |
\begin{table}[ht] |
| 145 |
\centering |
| 146 |
\caption{Effects of the \opt{math-style} package option.} |
| 147 |
\hlabel{math-style} |
| 148 |
\begin{tabular}{@{}>{\ttfamily}lcc@{}} |
| 149 |
\hline |
| 150 |
\rmfamily Package option & Latin & Greek \\ |
| 151 |
\hline |
| 152 |
math-style=ISO & $(a,z,B,X)$ & $\symit{(\alpha,\beta,\Gamma,\Xi)}$ \\ |
| 153 |
math-style=TeX & $(a,z,B,X)$ & $(\symit\alpha,\symit\beta,\symup\Gamma,\symup\Xi)$ \\ |
| 154 |
math-style=french & $(a,z,\symup B,\symup X)$ & $(\symup\alpha,\symup\beta,\symup\Gamma,\symup\Xi)$ \\ |
| 155 |
math-style=upright & $(\symup a,\symup z,\symup B,\symup X)$ & $(\symup\alpha,\symup\beta,\symup\Gamma,\symup\Xi)$ \\ |
| 156 |
\hline |
| 157 |
\end{tabular} |
| 158 |
\end{table} |
| 159 |
|
| 160 |
Bold letters are printed upright except lowercase Greek letters |
| 161 |
which are slanted (the default option is \opt{bold-style=TeX}). This can be |
| 162 |
changed by option \opt{bold-style} as shown in table~\vref{bold-style}. |
| 163 |
|
| 164 |
\begin{table}[ht] |
| 165 |
\centering |
| 166 |
\caption{Effects of the \opt{bold-style} package option.} |
| 167 |
\hlabel{bold-style} |
| 168 |
\begin{tabular}{@{}>{\ttfamily}lcc@{}} |
| 169 |
\hline |
| 170 |
\rmfamily Package option & Latin & Greek \\ |
| 171 |
\hline |
| 172 |
bold-style=ISO & $(\symbfit a, \symbfit z, \symbfit B, \symbfit X)$ & $(\symbfit\alpha, \symbfit\beta, \symbfit\Gamma, \symbfit\Xi)$ \\ |
| 173 |
bold-style=TeX & $(\symbfup a,\symbfup z,\symbfup B,\symbfup X)$ & $(\symbfit\alpha, \symbfit\beta,\symbfup \Gamma,\symbfup \Xi)$ \\ |
| 174 |
bold-style=upright & $(\symbfup a,\symbfup z,\symbfup B,\symbfup X)$ & $(\symbfup \alpha,\symbfup \beta,\symbfup \Gamma,\symbfup \Xi)$ \\ |
| 175 |
\hline |
| 176 |
\end{tabular} |
| 177 |
\end{table} |
| 178 |
|
| 179 |
Other possible customisation: $\nabla$ is printed upright and $\partial$ is |
| 180 |
printed slanted by default, but \opt{nabla=italic} and |
| 181 |
\opt{partial=upright} can change this. |
| 182 |
|
| 183 |
All these options are offered by the \pkg{unicode-math} package, they can |
| 184 |
be added to the \cmd{setmathfont} call as well% |
| 185 |
\footnote{IMHO it is easier to add \emph{all options} to the \cmd{setmathfont} |
| 186 |
command.}, for example: |
| 187 |
|
| 188 |
\verb+\setmathfont{Luciole-Math.otf}[math-style=french,partial=upright]+\\ |
| 189 |
will print for the code |
| 190 |
\begin{verbatim} |
| 191 |
\[ \frac{\partial f}{\partial x} = \alpha \symbf{V} |
| 192 |
+ a\nabla\Gamma + \symbf{\beta}\symbf{M} \] |
| 193 |
\end{verbatim} |
| 194 |
\setmathfont{Luciole-Math.otf}[math-style=french,partial=upright] |
| 195 |
\[\frac{\partial f}{\partial x} = \alpha \symbf{V} + a\nabla\Gamma + |
| 196 |
\symbf{\beta}\symbf{M} \] |
| 197 |
while the default settings would print |
| 198 |
\setmathfont{Luciole-Math.otf}[math-style=TeX,partial=italic] |
| 199 |
\[\frac{\partial f}{\partial x} = \alpha \symbf{V} + a\nabla\Gamma + |
| 200 |
\symbf{\beta}\symbf{M} \] |
| 201 |
|
| 202 |
Both shapes remain available anytime: \verb+$\uppi,\itpi$+ |
| 203 |
prints $\uppi, \itpi$. |
| 204 |
|
| 205 |
If your text editor is able to handle Greek letters or math symbols, they can |
| 206 |
be entered in the code instead control sequences (i.e. |
| 207 |
$\symup{α}$, $\symup{β}$, $\symup{Γ}$,… for \cmd{alpha}, \cmd{beta}, |
| 208 |
\cmd{Gamma},…). |
| 209 |
|
| 210 |
\subsection{Character variants} |
| 211 |
\label{ssection-cv} |
| 212 |
|
| 213 |
Luciole-Math provides eleven ``Character Variants'' options, listed on |
| 214 |
table~\vref{cv}. |
| 215 |
|
| 216 |
\begin{table}[ht] |
| 217 |
\centering \caption{Character variants.} |
| 218 |
\hlabel{cv} |
| 219 |
\begin{tabular}{@{}>{\ttfamily}lccl@{}} |
| 220 |
\hline |
| 221 |
& Default & Variant & Name\\ |
| 222 |
\hline |
| 223 |
cv01 & $\hslash$ & $\mithbar$ & \cmd{hslash} \\ |
| 224 |
cv02 & $\emptyset$ & $\varemptyset$ & \cmd{emptyset} \\ |
| 225 |
cv03 & $\epsilon$ & $\varepsilon$ & \cmd{epsilon} \\ |
| 226 |
cv04 & $\kappa$ & $\varkappa$ & \cmd{kappa} \\ |
| 227 |
cv05 & $\pi$ & $\varpi$ & \cmd{pi} \\ |
| 228 |
cv06 & $\phi$ & $\varphi$ & \cmd{phi} \\ |
| 229 |
cv07 & $\rho$ & $\varrho$ & \cmd{rho} \\ |
| 230 |
cv08 & $\sigma$ & $\varsigma$ & \cmd{sigma} \\ |
| 231 |
cv09 & $\theta$ & $\vartheta$ & \cmd{theta} \\ |
| 232 |
cv10 & $\Theta$ & $\varTheta$ & \cmd{Theta}\\ |
| 233 |
cv11 & $0$ & $\mupvarzero$ & 0 \\ |
| 234 |
\hline |
| 235 |
\end{tabular} |
| 236 |
\end{table} |
| 237 |
|
| 238 |
To get {0}, \cmd{hslash} and \cmd{emptyset} typeset as $\mupvarzero$, |
| 239 |
$\mithbar$ and $\varemptyset$ instead of $0$, $\hslash$ and $\emptyset$, |
| 240 |
you can add option |
| 241 |
\verb+CharacterVariant={0,1,2}+ to the \pkg{luciole-math} call: |
| 242 |
\begin{verbatim} |
| 243 |
\usepackage[CharacterVariant={0,1,2}]{luciole-math} |
| 244 |
\end{verbatim} |
| 245 |
|
| 246 |
Please note that curly braces are mandatory whenever more than one |
| 247 |
``Character Variant'' is selected. |
| 248 |
|
| 249 |
Note about \cmd{hbar}: \pkg{unicode-math} defines \cmd{hbar} as |
| 250 |
\cmd{hslash} (U+210F) while \pkg{amsmath} provides two different glyphs |
| 251 |
(italic $h$ with horizontal or diagonal stroke). |
| 252 |
\pkg{luciole-math} follows \pkg{unicode-math}; the italic $h$ with |
| 253 |
horizontal stroke can be printed using \cmd{hslash} or \cmd{hbar} together |
| 254 |
with character variant \texttt{cv01} or with \cmd{mithbar} (replacement for |
| 255 |
AMS’ command \cmd{hbar}). |
| 256 |
|
| 257 |
|
| 258 |
\subsection{Stylistic sets} |
| 259 |
\label{ssection-ss} |
| 260 |
|
| 261 |
Luciole-Math provides four ``Stylistic Sets'' options to choose between |
| 262 |
different glyphs for families of math symbols. |
| 263 |
|
| 264 |
\ttbold{StylisticSet=4}, alias% |
| 265 |
\footnote{These \texttt{Style} aliases are provided by \file{luciole-math.sty}.} |
| 266 |
\ttbold{Style=leqslant}, converts (large) inequalities into their slanted |
| 267 |
variants, see table~\vref{ss04}. |
| 268 |
|
| 269 |
\ttbold{StylisticSet=5}, alias \ttbold{Style=smaller}, converts some symbols |
| 270 |
into their smaller variants, see table~\vref{ss05}. |
| 271 |
\begin{table}[ht] |
| 272 |
\centering |
| 273 |
\caption{Stylistic Sets 4 and 5} |
| 274 |
\addtocounter{table}{-1}% \subfloat steps counter table? |
| 275 |
\subfloat[\texttt{Style=leqslant\quad (+ss04)}]{\hlabel{ss04}% |
| 276 |
\begin{tabular}[t]{@{}lcc@{}} |
| 277 |
\hline |
| 278 |
Command & Default & Variant \\ |
| 279 |
\hline |
| 280 |
\cmd{leq} & $\leq$ & $\leqslant$ \\ |
| 281 |
\cmd{geq} & $\geq$ & $\geqslant$ \\ |
| 282 |
\cmd{nleq} & $\nleq$ & $\nleqslant$ \\ |
| 283 |
\cmd{ngeq} & $\ngeq$ & $\ngeqslant$ \\ |
| 284 |
\cmd{leqq} & $\leqq$ & $\leqqslant$ \\ |
| 285 |
\cmd{geqq} & $\geqq$ & $\geqqslant$ \\ |
| 286 |
\cmd{eqless} & $\eqless$ & $\eqslantless$ \\ |
| 287 |
\cmd{eqgtr} & $\eqgtr$ & $\eqslantgtr$ \\ |
| 288 |
\cmd{lesseqgtr} & $\lesseqgtr$ & $\lesseqslantgtr$ \\ |
| 289 |
\cmd{gtreqless} & $\gtreqless$ & $\gtreqslantless$ \\ |
| 290 |
\cmd{lesseqqgtr} & $\lesseqqgtr$ & $\lesseqqslantgtr$ \\ |
| 291 |
\cmd{gtreqqless} & $\gtreqqless$ & $\gtreqqslantless$ \\ |
| 292 |
\hline |
| 293 |
\end{tabular} |
| 294 |
}\hspace{10mm} % eof subfloat |
| 295 |
\subfloat[\texttt{Style=smaller\quad (+ss05)}]{\hlabel{ss05}% |
| 296 |
\begin{tabular}[t]{@{}lcc@{}} |
| 297 |
\hline |
| 298 |
Command & Default & Variant \\ |
| 299 |
\hline |
| 300 |
\cmd{in} & $\in$ & $\smallin$ \\ |
| 301 |
\cmd{ni} & $\ni$ & $\smallni$ \\ |
| 302 |
\cmd{mid} & $\mid$ & $\shortmid$ \\ |
| 303 |
\cmd{nmid} & $\nmid$ & $\nshortmid$ \\ |
| 304 |
\cmd{parallel} & $\parallel$ & $\shortparallel$ \\ |
| 305 |
\cmd{nparallel} & $\nparallel$ & $\nshortparallel$ \\ |
| 306 |
\cmd{parallelslant} & $\parallelslant$ & $\shortparallelslant$ \\ |
| 307 |
\cmd{nparallelslant} & $\nparallelslant$ & $\nshortparallelslant$ \\ |
| 308 |
\hline |
| 309 |
\end{tabular} |
| 310 |
}% eof subfloat |
| 311 |
\end{table} |
| 312 |
|
| 313 |
\ttbold{StylisticSet=6}, alias \ttbold{Style=subsetneq}, converts some |
| 314 |
inclusion symbols, see table~\vref{ss06}. |
| 315 |
|
| 316 |
\stepcounter{table} |
| 317 |
\begin{table}[ht] |
| 318 |
\centering |
| 319 |
\caption{Stylistic Sets 6 and 7} |
| 320 |
\addtocounter{table}{-1}% \subfloat steps counter table? |
| 321 |
\subfloat[\texttt{Style=subsetneq\quad (+ss06)}]{\hlabel{ss06}% |
| 322 |
\begin{tabular}[t]{@{}lcc@{}} |
| 323 |
\hline |
| 324 |
Command & Default & Variant \\ |
| 325 |
\hline |
| 326 |
\cmd{subsetneq} & $\subsetneq$ & $\varsubsetneq$ \\ |
| 327 |
\cmd{supsetneq} & $\supsetneq$ & $\varsupsetneq$ \\ |
| 328 |
\cmd{subsetneqq} & $\subsetneqq$ & $\varsubsetneqq$ \\ |
| 329 |
\cmd{supsetneqq} & $\supsetneqq$ & $\varsupsetneqq$ \\ |
| 330 |
\hline |
| 331 |
\end{tabular} |
| 332 |
}\hspace{10mm} % eof subfloat |
| 333 |
\subfloat[\texttt{Style=parallelslant\quad (+ss07)}]{\hlabel{ss07}% |
| 334 |
\begin{tabular}[t]{@{}lcc@{}} |
| 335 |
\hline |
| 336 |
Command & Default & Variant \\ |
| 337 |
\hline |
| 338 |
\cmd{parallel} & $\parallel$ & $\parallelslant$ \\ |
| 339 |
\cmd{nparallel} & $\nparallel$ & $\nparallelslant$ \\ |
| 340 |
\cmd{shortparallel} & $\shortparallel$ & $\shortparallelslant$ \\ |
| 341 |
\cmd{nshortparallel} & $\nshortparallel$ & $\nshortparallelslant$ \\ |
| 342 |
\hline |
| 343 |
\end{tabular} |
| 344 |
} % eof subfloat |
| 345 |
\end{table} |
| 346 |
|
| 347 |
\ttbold{StylisticSet=7}, alias \ttbold{Style=parallelslant}, converts |
| 348 |
``parallel'' symbols into their slanted variants, see table~\vref{ss07}. |
| 349 |
|
| 350 |
To enable Stylistic Sets 4, 6 and 7 for Luciole-Math, you should enter |
| 351 |
\begin{verbatim} |
| 352 |
\setmathfont{Luciole-Math.otf}[StylisticSet={4,6,7}] or |
| 353 |
\usepackage[Style={leqslant,subsetneq,parallelslant}]{luciole-math} |
| 354 |
\end{verbatim} |
| 355 |
\setmathfont{Luciole-Math.otf}[StylisticSet={4,6,7}] |
| 356 |
then, \verb+\[x\leq y \quad A \subsetneq B\quad D \parallel D'\]+ |
| 357 |
will print |
| 358 |
\[x\leq y \quad A \subsetneq B\quad D \parallel D'\] |
| 359 |
instead of |
| 360 |
\setmathfont{Luciole-Math.otf} |
| 361 |
\[x\leq y \quad A \subsetneq B\quad D \parallel D'\] |
| 362 |
|
| 363 |
|
| 364 |
\subsection{Other font features} |
| 365 |
\label{ssec-other-features} |
| 366 |
|
| 367 |
\subsubsection{Oldstyle numbers} |
| 368 |
|
| 369 |
To get oldstyle numbers in math, the feature \texttt{+onum} is available: |
| 370 |
\begin{verbatim} |
| 371 |
\usepackage[Numbers=OldStyle]{luciole-math} |
| 372 |
\end{verbatim} |
| 373 |
|
| 374 |
\setmathfont{Luciole-Math.otf}[Numbers=OldStyle] |
| 375 |
$0123456789, \symbf{0123456789}$ |
| 376 |
\setmathfont{Luciole-Math.otf} |
| 377 |
|
| 378 |
\subsection{Standard LaTeX math commands} |
| 379 |
\label{ssec-math-commands} |
| 380 |
|
| 381 |
All standard LaTeX math commands, all \pkg{amssymb} commands and all |
| 382 |
\pkg{latexsym} commands are supported by Luciole-Math, loading the |
| 383 |
\pkg{luciole-math} package is required for some of them. |
| 384 |
|
| 385 |
Various wide accents are also supported: |
| 386 |
\begin{itemize} |
| 387 |
\item \cmd{wideoverbar} and \cmd{mathunderbar}% |
| 388 |
\footnote{\cmd{overline} and \cmd{underline} are not font related, |
| 389 |
they are based on \cmd{rule}.} |
| 390 |
\[\wideoverbar{x}\quad \wideoverbar{xy}\quad \wideoverbar{xyz}\quad |
| 391 |
\wideoverbar{A\cup B}\quad \wideoverbar{A\cup (B\cap C)\cup D}\quad |
| 392 |
\mathunderbar{m+n+p}\] |
| 393 |
|
| 394 |
\item \cmd{widehat} and \cmd{widetilde} |
| 395 |
\[\widehat{x}\; \widehat{xx} \;\widehat{xxx} \;\widehat{xxxx}\; |
| 396 |
\widehat{xxxxx} \quad \widetilde{x}\; \widetilde{xx}\; |
| 397 |
\widetilde{xxx} \;\widetilde{xxxx} \;\widetilde{xxxxx}\] |
| 398 |
|
| 399 |
\item \cmd{widecheck} and \cmd{widebreve} |
| 400 |
\[\widecheck{x}\; \widecheck{xx}\; \widecheck{xxx}\; |
| 401 |
\widecheck{xxxx}\; \widecheck{xxxxx}\quad |
| 402 |
\widebreve{x}\;\widebreve{xx}\;\widebreve{xxx}\;\widebreve{xxxx} |
| 403 |
\; \widebreve{xxxx}\; \widebreve{xxxxx}\] |
| 404 |
|
| 405 |
\item \cmd{overparen} and \cmd{underparen} |
| 406 |
\[\overparen{x}\quad \overparen{xy}\quad \overparen{xyz}\quad |
| 407 |
\mathring{\overparen{A\cup B}}\quad |
| 408 |
\overparen{A\cup (B\cap C)\cup D}^{\smwhtcircle}\quad |
| 409 |
\overparen{x+y}^{2}\quad \overparen{a+b+...+z}^{26}\] |
| 410 |
\[\underparen{x}\quad \underparen{xz} \quad \underparen{xyz} |
| 411 |
\quad \underparen{x+z}_{2}\quad \underparen{a+b+...+z}_{26}\] |
| 412 |
|
| 413 |
\item \cmd{overbrace} and \cmd{underbrace} |
| 414 |
\[\overbrace{a}\quad \overbrace{ab}\quad \overbrace{abc}\quad |
| 415 |
\overbrace{abcd}\quad \overbrace{abcde}\quad |
| 416 |
\overbrace{a+b+c}^{3}\quad \overbrace{ a+b+. . . +z }^{26}\] |
| 417 |
\[\underbrace{a}\quad\underbrace{ab}\quad\underbrace{abc}\quad |
| 418 |
\underbrace{abcd}\quad \underbrace{abcde}\quad |
| 419 |
\underbrace{a+b+c}_{3} \quad \underbrace{ a+b+...+z }_{26}\] |
| 420 |
|
| 421 |
\item \cmd{overbracket} and \cmd{underbracket} |
| 422 |
\[\overbracket{a}\quad \overbracket{ab}\quad \overbracket{abc}\quad |
| 423 |
\overbracket{abcd}\quad \overbracket{abcde}\quad |
| 424 |
\overbracket{a+b+c}^{3}\quad \overbracket{ a+b+. . . +z }^{26}\] |
| 425 |
\[\underbracket{a}\quad\underbracket{ab}\quad\underbracket{abc}\quad |
| 426 |
\underbracket{abcd}\quad \underbracket{abcde}\quad |
| 427 |
\underbracket{a+b+c}_{3} \quad \underbracket{ a+b+...+z }_{26}\] |
| 428 |
|
| 429 |
\item \cmd{overrightarrow} and \cmd{overleftarrow} |
| 430 |
\[\overrightarrow{v}\quad \overrightarrow{M}\quad \overrightarrow{vv} |
| 431 |
\quad \overrightarrow{AB}\quad \overrightarrow{ABC} |
| 432 |
\quad \overrightarrow{ABCD} \quad \overrightarrow{ABCDEFGH}. |
| 433 |
\] |
| 434 |
\[\overleftarrow{v}\quad \overleftarrow{M}\quad \overleftarrow{vv} |
| 435 |
\quad \overleftarrow{AB}\quad \overleftarrow{ABC} |
| 436 |
\quad \overleftarrow{ABCD} \quad \overleftarrow{ABCDEFGH}\] |
| 437 |
|
| 438 |
\item \cmd{overrightharpoon} and \cmd{overleftharpoon} |
| 439 |
\[\overrightharpoon{v}\quad \overrightharpoon{M}\quad \overrightharpoon{vv} |
| 440 |
\quad \overrightharpoon{AB}\quad \overrightharpoon{ABC} |
| 441 |
\quad \overrightharpoon{ABCD} \quad \overrightharpoon{ABCDEFGH}. |
| 442 |
\] |
| 443 |
\[\overleftharpoon{v}\quad \overleftharpoon{M}\quad \overleftharpoon{vv} |
| 444 |
\quad \overleftharpoon{AB}\quad \overleftharpoon{ABC} |
| 445 |
\quad \overleftharpoon{ABCD} \quad \overleftharpoon{ABCDEFGH}\] |
| 446 |
|
| 447 |
\item \cmd{underrightarrow} and \cmd{underleftarrow} |
| 448 |
\[\underrightarrow{v}\quad \underrightarrow{M}\quad \underrightarrow{vv} |
| 449 |
\quad \underrightarrow{AB}\quad \underrightarrow{ABC} |
| 450 |
\quad \underrightarrow{ABCD} \quad \underrightarrow{ABCDEFGH}. |
| 451 |
\] |
| 452 |
\[\underleftarrow{v}\quad \underleftarrow{M}\quad \underleftarrow{vv} |
| 453 |
\quad \underleftarrow{AB}\quad \underleftarrow{ABC} |
| 454 |
\quad \underleftarrow{ABCD} \quad \underleftarrow{ABCDEFGH}\] |
| 455 |
|
| 456 |
\item \cmd{underrightharpoon} and \cmd{underleftharpoondown} |
| 457 |
\[\underrightharpoondown{v}\quad \underrightharpoondown{M}\quad |
| 458 |
\underrightharpoondown{vv}\quad \underrightharpoondown{AB}\quad |
| 459 |
\underrightharpoondown{ABC}\quad \underrightharpoondown{ABCD}\quad |
| 460 |
\underrightharpoondown{ABCDEFGH}. |
| 461 |
\] |
| 462 |
\[\underleftharpoondown{v}\quad \underleftharpoondown{M}\quad |
| 463 |
\underleftharpoondown{vv}\quad \underleftharpoondown{AB}\quad |
| 464 |
\underleftharpoondown{ABC}\quad \underleftharpoondown{ABCD} |
| 465 |
\quad \underleftharpoondown{ABCDEFGH}. |
| 466 |
\] |
| 467 |
|
| 468 |
\item Finally \cmd{widearc} and \cmd{overrightarc} |
| 469 |
(loading \pkg{luciole-math.sty} is required) |
| 470 |
\[\widearc{AMB}\quad \overrightarc{AMB}\] |
| 471 |
\end{itemize} |
| 472 |
|
| 473 |
All extensible arrows provided by the \pkg{mathtools} package are |
| 474 |
available in the Luciole-Math font (loading \pkg{luciole-math.sty} is |
| 475 |
required), f.i.: |
| 476 |
\[X \xLeftrightarrow{\text{above}} Y \xhookrightarrow[\text{under}]{} |
| 477 |
Z\xmapsto{\text{above}} W\] |
| 478 |
|
| 479 |
A wide range of extensible vertical delimiters is provided: |
| 480 |
\[ \left/ |
| 481 |
\begin{pmatrix} a_{1} \\ a_{2} \\ a_{3} \end{pmatrix} |
| 482 |
\begin{bmatrix} a_{1} \\ a_{2} \\ a_{3} \end{bmatrix} |
| 483 |
\begin{Bmatrix} a_{1} \\ a_{2} \\ a_{3} \end{Bmatrix} |
| 484 |
\begin{vmatrix} a_{1} \\ a_{2} \\ a_{3} \end{vmatrix} |
| 485 |
\begin{Vmatrix} a_{1} \\ a_{2} \\ a_{3} \end{Vmatrix} |
| 486 |
\left\lVvert\begin{array}{c} a_{1} \\ a_{2} \\ a_{3} \end{array}\right\Vvert |
| 487 |
\left\lceil \begin{array}{c} a_{1} \\ a_{2} \\ a_{3} \end{array}\right\rceil |
| 488 |
\left\lfloor\begin{array}{c} a_{1} \\ a_{2} \\ a_{3} \end{array}\right\rfloor |
| 489 |
\left\lBrack\begin{array}{c} a_{1} \\ a_{2} \\ a_{3} \end{array}\right\rBrack |
| 490 |
\left\langle\begin{array}{c} a_{1} \\ a_{2} \\ a_{3} \end{array}\right\rangle |
| 491 |
\left\lAngle\begin{array}{c} a_{1} \\ a_{2} \\ a_{3} \end{array}\right\rAngle |
| 492 |
\right\backslash \] |
| 493 |
|
| 494 |
\subsection{Mathematical alphabets} |
| 495 |
\label{ssec-math-alphabets} |
| 496 |
|
| 497 |
\begin{itemize} |
| 498 |
\item All Latin and Greek characters are available in italic, upright, bold |
| 499 |
and bold italic via the \verb+\symit{}+, \verb+\symup{}+, \verb+\symbf{}+ |
| 500 |
and \verb+\symbfit{}+ commands. |
| 501 |
|
| 502 |
\item Calligraphic alphabet (\cmd{symscr} or \cmd{symcal} command), uppercase:\\ |
| 503 |
$\symscr{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$\\ |
| 504 |
also in boldface (\cmd{symbfscr},\cmd{symbfcal} or \cmd{mathbfcal} command):\\ |
| 505 |
$\symbfscr{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$ |
| 506 |
|
| 507 |
\item Blackboard-bold alphabet uppercase (\cmd{symbb} command) and |
| 508 |
\verb+\Bbbk+: |
| 509 |
|
| 510 |
$\symbb{ABCDEFGHIJKLMNOPQRSTUVWXYZ}\Bbbk$ |
| 511 |
|
| 512 |
\item Fraktur alphabet : |
| 513 |
|
| 514 |
$\symfrak{ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz}$ |
| 515 |
|
| 516 |
|
| 517 |
\item Typewriter alphabet: |
| 518 |
|
| 519 |
$\symtt{ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz}$ |
| 520 |
\end{itemize} |
| 521 |
|
| 522 |
Like Latin Modern, Luciole-Math provides only four lowercase Latin letters in |
| 523 |
script (or calligraphic) shape: $\mscre$, $\mscrg$, $\ell$, $\mscro$ |
| 524 |
(\verb+\mscre+, \verb+\mscrg+, \verb+\ell+, \verb+\mscro+). |
| 525 |
|
| 526 |
All others (range \verb+"1D4B6+ to \verb+"1D4CF+) have to be borrowed |
| 527 |
from another math font if needed, i.e.\\ |
| 528 |
\verb+\setmathfont{NotoSansMath-Regular.otf}%+\\ |
| 529 |
\verb+ [range="1D4B6-"1D4CF, Scale=MatchLowercase]+\\ |
| 530 |
Please remember that the \emph{last loaded} font sets the \textsc{math~table}, |
| 531 |
so it is recommended to reload the base font with an empty \opt{range} |
| 532 |
argument:\\ |
| 533 |
\verb+\setmathfont{Luciole-Math.otf}[range={}]+ |
| 534 |
|
| 535 |
\subsection{Bold variant} |
| 536 |
|
| 537 |
\setmathfont{Luciole-Math.otf}[BoldFont=Luciole-Math-Bold.otf] |
| 538 |
In case short math formulas have to be printed in section titles, |
| 539 |
a \emph{limited} bold variant is |
| 540 |
\ifCTAN provided\else available on request\fi. |
| 541 |
|
| 542 |
Example of usage: \quad\textbf{\boldmath Einstein’s equation $E=mc^2$}\\ |
| 543 |
\verb+\setmathfont{Luciole-Math-Bold.otf}[version=bold, +\textit{options}\verb+]+\\ |
| 544 |
\verb+\section{\mathversion{bold} Einstein’s equation $E=mc^2$}+ |
| 545 |
|
| 546 |
It is also possible to use the \verb+\boldmath+ command, this way:\\ |
| 547 |
\verb+\setmathfont{Luciole-Math-Regular.otf}%+\\ |
| 548 |
\verb+ [BoldFont = Luciole-Math-Bold.otf]+\\ |
| 549 |
\verb+\section{\boldmath Einstein’s equation $E=mc^2$}+ |
| 550 |
|
| 551 |
\subsection{Missing symbols} |
| 552 |
|
| 553 |
Luciole-Math does not aim at being as complete as \file{NotoSansMath-Regular} or |
| 554 |
\file{Cambria}, the current glyph coverage compares with Latin Modern or |
| 555 |
TeXGyre math fonts. |
| 556 |
In case some symbols do not show up in the output file, you will see warnings |
| 557 |
in the \file{.log} file, for instance: |
| 558 |
|
| 559 |
\setmathfont{NotoSansMath-Regular.otf}[range={"2964}] |
| 560 |
\texttt{Missing character: There is no }$⥤$% |
| 561 |
\texttt{ (U+2964) in font LucioleMath} |
| 562 |
|
| 563 |
Borrowing them from a more complete font, say \file{NotoSansMath}, |
| 564 |
is a possible workaround:\\ |
| 565 |
\verb+\setmathfont{NotoSansMath-Regular.otf}[range={"2964},Scale=2]+\\ |
| 566 |
scaling is possible, multiple character ranges are separated with commas:\\ |
| 567 |
\verb+\setmathfont{NotoSansMath-Regular.otf}[range={"294A-"2951,"2964}]+ |
| 568 |
|
| 569 |
Let’s mention \pkg{albatross}, a useful tool to find out the list of fonts |
| 570 |
providing a given glyph: f.i. type in a terminal |
| 571 |
``\texttt{albatross -t U+2964}'', see the manpage or |
| 572 |
\file{albatross-manual.pdf}. |
| 573 |
|
| 574 |
\section{Acknowledgements} |
| 575 |
|
| 576 |
|
| 577 |
I am grateful to George Williams and his co-workers for providing and |
| 578 |
maintaining FontForge, to Ulrik Vieth for his illuminating paper published |
| 579 |
in TUGboat~2009 Volume~30 about OpenType Math and to Khaled Hosny for his |
| 580 |
essential survey about OpenType Math Fonts \url{https://github.com/notofonts/math/blob/main/documentation/building-math-fonts/index.md}. |
| 581 |
|
| 582 |
|
| 583 |
\bigskip |
| 584 |
\begin{center}\Huge |
| 585 |
\decotwo |
| 586 |
\end{center} |
| 587 |
|
| 588 |
\end{document} |
| 589 |
|
| 590 |
%%% Local Variables: |
| 591 |
%%% mode: latex |
| 592 |
%%% TeX-engine: luatex |
| 593 |
%%% TeX-master: t |
| 594 |
%%% coding: utf-8 |
| 595 |
%%% End: |