Debian Codegraph @

texmf-dist/doc/fonts/concmath-otf/concmath-otf.ltx

raw
1 %\DocumentMetadata{pdfstandard={A-4,UA-2}, tagging=on, lang=en-GB}
2 \documentclass[a4paper,12pt]{scrartcl}
3
4 \usepackage{mathtools, array, varioref}
5 \usepackage[british]{babel}
6 \usepackage{concmath-otf}
7 \usepackage{float,subfig}
8 \captionsetup[subtable]{position=top}
9 \usepackage{realscripts}
10 \usepackage{microtype}
11 \usepackage{hyperref}
12 \hypersetup{pdftitle={Concrete Math OpenType User’s Guide},
13 pdfauthor={Daniel FLIPO},
14 bookmarksopen,
15 colorlinks
16 }
17 \newcommand*{\hlabel}[1]{\phantomsection\label{#1}}
18
19 \newcommand*{\CCM}{\pkg{concmath-otf}}
20 \newcommand*{\pkg}[1]{\texttt{#1}}
21 \newcommand*{\file}[1]{\texttt{#1}}
22 \newcommand*{\ttbold}[1]{\texttt{\textbf{#1}}}
23 \newcommand*{\opt}[1]{\texttt{#1}}
24 \newcommand*{\cmd}[1]{\texttt{\textbackslash #1}}
25 \newcommand*{\showtchar}[1]{\cmd{#1}~\csname #1\endcsname}
26 \newcommand*{\showmchar}[1]{\cmd{#1}~$(\csname #1\endcsname)$}
27 \newcommand*{\showmchardollar}[1]{\texttt{\$\cmd{#1}\$}~$(\csname #1\endcsname)$}
28
29 \title{Concrete-Math font, OTF version}
30 \author{Daniel Flipo \\ \texttt{[email protected]}}
31
32 \newcommand*{\version}{0.73}
33
34 \begin{document}
35 \maketitle
36
37 \section{What is \CCM{}?}
38
39 The \CCM{} package offers an OpenType version of the Concrete Math font
40 created by Ulrik Vieth in MetaFont. \file{concmath-otf.sty} is a replacement
41 for the original \file{concmath.sty} package.
42
43 It requires LuaTeX or XeTeX as engine and the \pkg{unicode-math} package%
44 \footnote{Please read the documentation \file{unicode-math.pdf}.}.
45
46 Please note that the current version (\version) is \emph{experimental,
47 do expect metrics and glyphs to change} until version 1.0 is reached.
48 Comments, suggestions and bug reports are welcome!
49
50 \section{Usage}
51
52 \subsection{Calling \cmd{setmathfont}}
53
54 A basic call for \CCM{} would be:
55 \begin{verbatim}
56 \usepackage{unicode-math}
57 \setmathfont{Concrete-Math.otf} % Call by file name or
58 \setmathfont{Concrete Math} % Call by file name
59 \end{verbatim}
60 this loads \CCM{} as maths font %
61 \footnote{Both calls work equally well with LuaTeX; with XeTeX a call by font
62 name will fail unless the font is declared as a \emph{system font}.}
63 with the default options, see subsections~\vref{ssection-um},
64 \vref{ssection-cv} and~\vref{ssection-ss} for customisation.
65
66 Please note that the three sets of text fonts have to be chosen separately,
67 f.i. if you want the Concrete text fonts%
68 \footnote{They are part of the \pkg{cm-unicode} package.}
69 as Roman font:%\\[.25\baselineskip]
70
71 \pagebreak[4]\noindent
72 \verb+\setmainfont{cmunorm.otf} +\\
73 \verb+ [BoldFont = cmunobx.otf ,+\\
74 \verb+ ItalicFont = cmunoti.otf ,+\\
75 \verb+ BoldItalicFont = cmunobi.otf ]+\\[.25\baselineskip]
76 otherwise you would get Latin Modern for text fonts (rm, sf and tt).
77
78 \subsection{Calling \pkg{concmat-otf.sty}}
79
80 A (recommended) alternative is:\\[.5\baselineskip]
81 \verb+\usepackage[ +\textit{options}
82 \footnote{Possible \textit{options} are \opt{loose}, \opt{no-text}, \opt{Scale=}
83 or any of the options described in sections \ref{ssection-um},
84 \ref{ssection-cv} and \ref{ssection-ss}.}%
85 \verb+ ]{concmath-otf}+\\[.5\baselineskip]
86 it loads \pkg{unicode-math} with the default options, sets Concrete-Math
87 as maths font and Concrete text fonts as Roman fonts
88 (families \textit{sf} and \textit{tt} left unchanged) and does a bit more:
89 \begin{enumerate}
90 \item it checks at \verb+\begin{document}+ if packages \pkg{amssymb} or
91 \pkg{latexsym} are loaded and issues warnings in case they are;
92 \item it provides aliases for glyphs named differently in Unicode, so that
93 \pkg{latexsym} or AMS names are also available;
94 \item it reduces spacing in maths mode: \cmd{thinmuskip}, \cmd{medmuskip}
95 and \cmd{thickmuskip} are reduced as in \file{fourier.sty}.
96 % \verb+\thinmuskip=2mu+,\\
97 % \verb+\medmuskip=2.5mu plus 1mu minus 2.5mu+,\\
98 % \verb+\thickmuskip=3.5mu plus 2.5mu+.\\
99 The option \opt{loose} disables these settings.
100 \end{enumerate}
101
102 Apart from the \opt{loose} option mentioned above, \pkg{concmath-otf.sty}
103 provides an option \opt{no-text} to be used for loading the \CCM{} font
104 together with roman text fonts other than Concrete.
105
106 \section{What is provided?}
107
108 \CCM{} provides all glyphs available in the \pkg{concmath}, \pkg{amssymb} and
109 \pkg{latexsym} packages and more.
110 Therefore, the latter two packages \emph{should not} be loaded as they might
111 override \CCM{} glyphs.
112
113 A full list of available glyphs is shown in file \file{unimath-concrete.pdf}.
114
115 See in section~\vref{ssec-math-alphabets} how to choose
116 from other maths fonts for these styles.
117
118 \subsection{Upright or slanted?}
119 \label{ssection-um}
120
121 Package \pkg{unicode-math} follows \TeX{} conventions for Latin and Greek
122 letters: in math mode, the default option (\opt{math-style=TeX}) prints
123 Latin letters $a$…$z$ $A$…$Z$ and lowercase Greek letters $\alpha$…$\omega$
124 slanted (italic) while uppercase Greek letters $\Alpha \Beta \Gamma$…$\Omega$
125 are printed upright.
126 This can be changed by option \opt{math-style} as shown in
127 table~\vref{math-style}.
128
129 \begin{table}[ht]
130 \centering
131 \caption{Effects of the \opt{math-style} package option.}
132 \hlabel{math-style}
133 \begin{tabular}{@{}>{\ttfamily}lcc@{}}
134 \hline
135 \rmfamily Package option & Latin & Greek \\
136 \hline
137 math-style=ISO & $(a,z,B,X)$ & $\symit{(\alpha,\beta,\Gamma,\Xi)}$ \\
138 math-style=TeX & $(a,z,B,X)$ & $(\symit\alpha,\symit\beta,\symup\Gamma,\symup\Xi)$ \\
139 math-style=french & $(a,z,\symup B,\symup X)$ & $(\symup\alpha,\symup\beta,\symup\Gamma,\symup\Xi)$ \\
140 math-style=upright & $(\symup a,\symup z,\symup B,\symup X)$ & $(\symup\alpha,\symup\beta,\symup\Gamma,\symup\Xi)$ \\
141 \hline
142 \end{tabular}
143 \end{table}
144
145 Bold letters are printed upright except lowercase Greek letters
146 which are slanted (the default option is \opt{bold-style=TeX}). This can be
147 changed by option \opt{bold-style} as shown in table~\vref{bold-style}.
148
149 \begin{table}[ht]
150 \centering
151 \caption{Effects of the \opt{bold-style} package option.}
152 \hlabel{bold-style}
153 \begin{tabular}{@{}>{\ttfamily}lcc@{}}
154 \hline
155 \rmfamily Package option & Latin & Greek \\
156 \hline
157 bold-style=ISO & $(\symbfit a, \symbfit z, \symbfit B, \symbfit X)$ & $(\symbfit\alpha, \symbfit\beta, \symbfit\Gamma, \symbfit\Xi)$ \\
158 bold-style=TeX & $(\symbfup a,\symbfup z,\symbfup B,\symbfup X)$ & $(\symbfit\alpha, \symbfit\beta,\symbfup \Gamma,\symbfup \Xi)$ \\
159 bold-style=upright & $(\symbfup a,\symbfup z,\symbfup B,\symbfup X)$ & $(\symbfup \alpha,\symbfup \beta,\symbfup \Gamma,\symbfup \Xi)$ \\
160 \hline
161 \end{tabular}
162 \end{table}
163
164 Other possible customisation: $\nabla$ is printed upright and $\partial$ is
165 printed slanted by default, but \opt{nabla=italic} and
166 \opt{partial=upright} can change this.
167
168 All these options are offered by the \pkg{unicode-math} package, they can
169 be added to the \cmd{setmathfont} call as well%
170 \footnote{IMHO it is easier to add \emph{all options} to the \cmd{setmathfont}
171 command.}, for example:
172
173 \verb+\setmathfont{Concrete-Math.otf}[math-style=french,partial=upright]+\\
174 will print for the code
175 \begin{verbatim}
176 \[ \frac{\partial f}{\partial x} = \alpha \symbf{V} + a\nabla\Gamma
177 + \symbf{\beta}\symbf{M} \]
178 \end{verbatim}
179 \setmathfont{Concrete-Math.otf}[math-style=french,partial=upright]
180 \[\frac{\partial f}{\partial x} = \alpha \symbf{V} + a\nabla\Gamma +
181 \symbf{\beta}\symbf{M} \]
182 while the default settings would print
183 \setmathfont{Concrete-Math.otf}[math-style=TeX,partial=italic]
184 \[\frac{\partial f}{\partial x} = \alpha \symbf{V} + a\nabla\Gamma +
185 \symbf{\beta}\symbf{M} \]
186
187 Both shapes remain available anytime: \verb+$\muppi,\mitpi$+
188 prints $\uppi, \itpi$.
189
190 If your text editor is able to handle Greek letters or maths symbols, they can
191 be entered in the code instead control sequences (i.e.
192 $\symup{α}$, $\symup{β}$, $\symup{Γ}$,… for \cmd{alpha}, \cmd{beta},
193 \cmd{Gamma},…).
194
195 \newpage
196 \subsection{Character variants}
197 \label{ssection-cv}
198
199 \CCM{} provides ten ``Character Variants'' options, listed on
200 table~\vref{cv}, to choose between different glyphs for Greek characters
201 and some others.
202
203 \begin{table}[ht]
204 \centering
205 \caption{Character variants.}
206 \hlabel{cv}
207 \begin{tabular}{@{}>{\ttfamily}lccl@{}}
208 \hline
209 & Default & Variant & Name\\
210 \hline
211 cv01 & $\hslash$ & $\mithbar$ & \cmd{hslash} \\
212 cv02 & $\emptyset$ & $\varemptyset$ & \cmd{emptyset} \\
213 cv03 & $\epsilon$ & $\varepsilon$ & \cmd{epsilon} \\
214 cv04 & $\kappa$ & $\varkappa$ & \cmd{kappa} \\
215 cv05 & $\pi$ & $\varpi$ & \cmd{pi} \\
216 cv06 & $\phi$ & $\varphi$ & \cmd{phi} \\
217 cv07 & $\rho$ & $\varrho$ & \cmd{rho} \\
218 cv08 & $\sigma$ & $\varsigma$ & \cmd{sigma} \\
219 cv09 & $\theta$ & $\vartheta$ & \cmd{theta} \\
220 cv10 & $\Theta$ & $\varTheta$ & \cmd{Theta}\\
221 \hline
222 \end{tabular}
223 \end{table}
224
225 For instance, to get \cmd{epsilon} and \cmd{phi} typeset as $\varepsilon$
226 and $\varphi$ instead of $\epsilon$ and $\phi$, you can add option
227 \verb+CharacterVariant={3,6}+ to the \cmd{setmathfont} call:
228 \begin{verbatim}
229 \setmathfont{Concrete-Math.otf}[CharacterVariant={3,6}]
230 \end{verbatim}
231
232 This works for all shapes and weights of these characters: f.i.\ %
233 \verb+$\symbf{\epsilon}$+, \verb+$\symbf{\phi}$+ are output as
234 \setmathfont{Concrete-Math.otf}[CharacterVariant={3,6}]$\symbf{\epsilon}$,
235 $\symbf{\phi}$ instead of
236 \setmathfont{Concrete-Math.otf}$\symbf{\epsilon}$, $\symbf{\phi}$.
237
238 Similarly with \opt{math-style=french}, \verb+\epsilon+ and \verb+\phi+
239 are output as $\symup{\varepsilon}$ and $\symup{\varphi}$ (upright).
240
241 Please note that curly braces are mandatory whenever more than one
242 ``Character Variant'' is selected.
243
244 Note: \pkg{unicode-math} defines \cmd{hbar} as
245 \cmd{hslash} (U+210F) while \pkg{amsmath} provides two different glyphs
246 (italic $h$ with horizontal or diagonal stroke).\\
247 \pkg{concmath-otf} follows \pkg{unicode-math}; the italic $h$ with horizontal
248 stroke can be printed using \cmd{hslash} or \cmd{hbar} together with character
249 variant \opt{cv01} or with \cmd{mithbar} (replacement for AMS’ command
250 \cmd{hbar}).
251
252 \subsection{Stylistic sets}
253 \label{ssection-ss}
254
255 \CCM{} provides four ``Stylistic Sets'' options to choose between different
256 glyphs for families of maths symbols.
257
258 \ttbold{StylisticSet=3}, alias%
259 \footnote{These \texttt{Style} aliases are provided by \file{concmath-otf.sty}.}
260 \ttbold{Style=upint}, converts integrals signs into their upright
261 variants, see table~\vref{ss03}.
262 \begin{table}[ht]
263 \let\DS\displaystyle
264 \centering
265 \caption{Style=upint\quad (+ss03)}\hlabel{ss03}
266 \begin{tabular}[t]{@{}l*{8}c@{}}
267 \hline
268 Command &\cmd{int} &\cmd{iint} &\cmd{iiint} &\cmd{iiiint}
269 &\cmd{oint} &\cmd{oiint} &\cmd{oiiint} \\
270 \hline
271 Default\rule[-15pt]{0pt}{35pt} &$\DS\int$ &$\DS\iint$ &$\DS\iiint$ &$\DS\iiiint$
272 &$\DS\oint$ &$\DS\oiint$ &$\DS\oiint$ &$\DS\oiiint$
273 \\[\baselineskip]
274 \setmathfont{Concrete-Math.otf}[Style=upint]
275 Upright\rule[-15pt]{0pt}{30pt} &$\DS\int$ &$\DS\iint$ &$\DS\iiint$ &$\DS\iiiint$
276 &$\DS\oint$ &$\DS\oiint$ &$\DS\oiint$ &$\DS\oiiint$ \\
277 \hline
278 \end{tabular}\\[\baselineskip]
279 \setmathfont{Concrete-Math.otf}
280 \begin{tabular}[t]{@{}l*{4}c@{}}
281 \hline
282 Command &\cmd{intclockwise} &\cmd{awint}
283 &\cmd{varointclockwise} &\cmd{ointctrclockwise} \\
284 \hline
285 Default\rule[-15pt]{0pt}{35pt} &$\DS\intclockwise$ &$\DS\awint$
286 &$\DS\varointclockwise$ &$\DS\ointctrclockwise$ \\
287 \setmathfont{Concrete-Math.otf}[Style=upint]
288 Upright\rule[-15pt]{0pt}{30pt} &$\DS\intclockwise$ &$\DS\awint$
289 &$\DS\varointclockwise$ &$\DS\ointctrclockwise$ \\
290 \hline
291 \end{tabular}
292 \end{table}
293 \setmathfont{Concrete-Math.otf}
294
295 \begin{table}[H]
296 \centering
297 \caption{Stylistic Sets 4, 5 and 6}
298 \addtocounter{table}{-1}% \subfloat steps counter table?
299 \subfloat[\texttt{Style=leqslant\quad (+ss04)}]{\hlabel{ss04}%
300 \begin{tabular}[t]{@{}lcc@{}}
301 \hline
302 Command & Default & Variant \\
303 \hline
304 \cmd{leq} & $\leq$ & $\leqslant$ \\
305 \cmd{geq} & $\geq$ & $\geqslant$ \\
306 \cmd{nleq} & $\nleq$ & $\nleqslant$ \\
307 \cmd{ngeq} & $\ngeq$ & $\ngeqslant$ \\
308 \cmd{leqq} & $\leqq$ & $\leqqslant$ \\
309 \cmd{geqq} & $\geqq$ & $\geqqslant$ \\
310 \cmd{nleqq} & $\nleqq$ & $\nleqqslant$ \\
311 \cmd{ngeqq} & $\ngeqq$ & $\ngeqqslant$ \\
312 \cmd{eqless} & $\eqless$ & $\eqslantless$ \\
313 \cmd{eqgtr} & $\eqgtr$ & $\eqslantgtr$ \\
314 \cmd{lesseqgtr} & $\lesseqgtr$ & $\lesseqslantgtr$ \\
315 \cmd{gtreqless} & $\gtreqless$ & $\gtreqslantless$ \\
316 \cmd{lesseqqgtr} & $\lesseqqgtr$ & $\lesseqqslantgtr$ \\
317 \cmd{gtreqqless} & $\gtreqqless$ & $\gtreqqslantless$ \\
318 \hline
319 \end{tabular}
320 }\hspace{10mm} % eof subfloat
321 \begin{minipage}[t]{0.4\linewidth}
322 \subfloat[\texttt{Style=smaller\quad (+ss05)}]{\hlabel{ss05}%
323 \begin{tabular}[t]{@{}lcc@{}}
324 \hline
325 Command & Default & Variant \\
326 \hline
327 \cmd{in} & $\in$ & $\smallin$ \\
328 \cmd{ni} & $\ni$ & $\smallni$ \\
329 \cmd{mid} & $\mid$ & $\shortmid$ \\
330 \cmd{nmid} & $\nmid$ & $\nshortmid$ \\
331 \cmd{parallel} & $\parallel$ & $\shortparallel$ \\
332 \cmd{nparallel} & $\nparallel$ & $\nshortparallel$ \\
333 \hline
334 \end{tabular}
335 }\\ % eof subfloat
336 \subfloat[\texttt{Style=subsetneq\quad (+ss06)}]{\hlabel{ss06}%
337 \begin{tabular}[t]{@{}lcc@{}}
338 \hline
339 Command & Default & Variant \\
340 \hline
341 \cmd{subsetneq} & $\subsetneq$ & $\varsubsetneq$ \\
342 \cmd{supsetneq} & $\supsetneq$ & $\varsupsetneq$ \\
343 \cmd{subsetneqq} & $\subsetneqq$ & $\varsubsetneqq$ \\
344 \cmd{supsetneqq} & $\supsetneqq$ & $\varsupsetneqq$ \\
345 \hline
346 \end{tabular}
347 }% eof subfloat
348 \end{minipage}
349 \end{table}
350
351 \ttbold{StylisticSet=4}, alias%
352 \footnote{These \opt{Style} aliases are provided by \file{concmath-otf.sty}.}
353 \ttbold{Style=leqslant}, converts (large) inequalities into their slanted
354 variants as shown by table~\vref{ss04}.
355
356 \ttbold{StylisticSet=5}, alias \ttbold{Style=smaller}, converts some symbols
357 into their smaller variants as shown by table~\vref{ss05}.
358
359 \ttbold{StylisticSet=6}, alias \ttbold{Style=subsetneq}, converts some inclusion
360 symbols as shown by table~\vref{ss06}.
361
362 To enable Stylistic Sets 4 and 6 for \CCM{}, you should enter
363 \begin{verbatim}
364 \setmathfont{Concrete-Math.otf}[StylisticSet={4,6}] or
365 \usepackage[Style={leqslant,subsetneq}]{concmath-otf}
366 \end{verbatim}
367 then, \verb+\[x\leq y \quad A \subsetneq B\]+
368 will print as\\
369 \setmathfont{Concrete-Math.otf}[StylisticSet={4,6}]
370 $x\leq y \quad A \subsetneq B$\qquad
371 instead of\qquad
372 \setmathfont{Concrete-Math.otf}%
373 $x\leq y \quad A \subsetneq B$
374
375 \subsection{Standard LaTeX math commands}
376 \label{ssec-math-commands}
377
378 All standard LaTeX maths commands, all \pkg{amssymb} commands and all
379 \pkg{latexsym} commands are supported by \CCM{}, for some of them loading
380 \pkg{concmath-otf.sty} is required.
381
382 Various wide accents are also supported:
383 \begin{itemize}
384 \item \cmd{wideoverbar} and \cmd{mathunderbar}%
385 \footnote{\cmd{overline} and \cmd{underline} are not font related,
386 they are based on \cmd{rule}.}
387 \[\wideoverbar{x}\quad \wideoverbar{xy}\quad \wideoverbar{xyz}\quad
388 \wideoverbar{A\cup B}\quad \wideoverbar{A\cup (B\cap C)\cup D}\quad
389 \mathunderbar{m+n+p}\]
390
391 \item \cmd{widehat} and \cmd{widetilde}
392 \[\widehat{x}\; \widehat{xx} \;\widehat{xxx} \;\widehat{xxxx}\;
393 \widehat{xxxxx} \;\widehat{xxxxxx} \;\widetilde{x}\; \widetilde{xx}\;
394 \widetilde{xxx} \;\widetilde{xxxx} \;\widetilde{xxxxx}\;
395 \widetilde{xxxxxx}\]
396
397 \item \cmd{widecheck} and \cmd{widebreve}
398 \[\widecheck{x}\quad \widecheck{xxxx}\quad \widecheck{xxxxxx}\quad
399 \widebreve{x}\quad \widebreve{xxxx}\quad \widebreve{xxxxxx}\]
400
401 \item \cmd{overparen} and \cmd{underparen}
402 \[\overparen{x}\quad \overparen{xy}\quad \overparen{xyz}\quad
403 \mathring{\overparen{A\cup B}}\quad
404 \overparen{A\cup (B\cap C)\cup D}^{\smwhtcircle}\quad
405 \overparen{x+y}^{2}\quad \overparen{a+b+...+z}^{26}\]
406 \[\underparen{x}\quad \underparen{xz} \quad \underparen{xyz}
407 \quad \underparen{x+z}_{2}\quad \underparen{a+b+...+z}_{26}\]
408
409 \item \cmd{overbrace} and \cmd{underbrace}
410 \[\overbrace{a}\quad \overbrace{ab}\quad \overbrace{abc}\quad
411 \overbrace{abcd}\quad \overbrace{abcde}\quad
412 \overbrace{a+b+c}^{3}\quad \overbrace{ a+b+. . . +z }^{26}\]
413 \[\underbrace{a}\quad\underbrace{ab}\quad\underbrace{abc}\quad
414 \underbrace{abcd}\quad \underbrace{abcde}\quad
415 \underbrace{a+b+c}_{3} \quad \underbrace{ a+b+...+z }_{26}\]
416
417 \item \cmd{overbracket} and \cmd{underbracket}
418 \[\overbracket{a}\quad \overbracket{ab}\quad \overbracket{abc}\quad
419 \overbracket{abcd}\quad \overbracket{abcde}\quad
420 \overbracket{a+b+c}^{3}\quad \overbracket{ a+b+. . . +z }^{26}\]
421 \[\underbracket{a}\quad\underbracket{ab}\quad\underbracket{abc}\quad
422 \underbracket{abcd}\quad \underbracket{abcde}\quad
423 \underbracket{a+b+c}_{3} \quad \underbracket{ a+b+...+z }_{26}\]
424
425 \item \cmd{overrightarrow} and \cmd{overleftarrow}
426 \[\overrightarrow{v}\quad \overrightarrow{M}\quad \overrightarrow{vv}
427 \quad \overrightarrow{AB}\quad \overrightarrow{ABC}
428 \quad \overrightarrow{ABCD} \quad \overrightarrow{ABCDEFGH}.
429 \]
430 \[\overleftarrow{v}\quad \overleftarrow{M}\quad \overleftarrow{vv}
431 \quad \overleftarrow{AB}\quad \overleftarrow{ABC}
432 \quad \overleftarrow{ABCD} \quad \overleftarrow{ABCDEFGH}\]
433
434 \item \cmd{overrightharpoon} and \cmd{overleftharpoon}
435 \[\overrightharpoon{v}\quad \overrightharpoon{M}\quad \overrightharpoon{vv}
436 \quad \overrightharpoon{AB}\quad \overrightharpoon{ABC}
437 \quad \overrightharpoon{ABCD} \quad \overrightharpoon{ABCDEFGH}.
438 \]
439 \[\overleftharpoon{v}\quad \overleftharpoon{M}\quad \overleftharpoon{vv}
440 \quad \overleftharpoon{AB}\quad \overleftharpoon{ABC}
441 \quad \overleftharpoon{ABCD} \quad \overleftharpoon{ABCDEFGH}\]
442
443 \item \cmd{underrightarrow} and \cmd{underleftarrow}
444 \[\underrightarrow{v}\quad \underrightarrow{M}\quad \underrightarrow{vv}
445 \quad \underrightarrow{AB}\quad \underrightarrow{ABC}
446 \quad \underrightarrow{ABCD} \quad \underrightarrow{ABCDEFGH}.
447 \]
448 \[\underleftarrow{v}\quad \underleftarrow{M}\quad \underleftarrow{vv}
449 \quad \underleftarrow{AB}\quad \underleftarrow{ABC}
450 \quad \underleftarrow{ABCD} \quad \underleftarrow{ABCDEFGH}\]
451
452 \item \cmd{underrightharpoon} and \cmd{underleftharpoondown}
453 \[\underrightharpoondown{v}\quad \underrightharpoondown{M}\quad
454 \underrightharpoondown{vv}\quad \underrightharpoondown{AB}\quad
455 \underrightharpoondown{ABC}\quad \underrightharpoondown{ABCD}\quad
456 \underrightharpoondown{ABCDEFGH}.
457 \]
458 \[\underleftharpoondown{v}\quad \underleftharpoondown{M}\quad
459 \underleftharpoondown{vv}\quad \underleftharpoondown{AB}\quad
460 \underleftharpoondown{ABC}\quad \underleftharpoondown{ABCD}
461 \quad \underleftharpoondown{ABCDEFGH}.
462 \]
463
464 \item Finally \cmd{widearc} and \cmd{overrightarc} (loading
465 \pkg{concmath-otf.sty} is required)
466 \[\widearc{AMB}\quad \overrightarc{AMB}\]
467 \end{itemize}
468
469 All extensible arrows provided by the \pkg{mathtools} package are
470 available in the Concrete Math font (loading \pkg{concmath-otf.sty} is
471 required), f.i.:
472 \[X \xLeftrightarrow{\text{above}} Y \xhookrightarrow[\text{under}]{}
473 Z\xmapsto{\text{above}} W\]
474
475 A wide range of extensible vertical delimiters is provided:
476 \[ \left/
477 \begin{pmatrix} a_{1} \\ a_{2} \\ a_{3} \end{pmatrix}
478 \begin{bmatrix} a_{1} \\ a_{2} \\ a_{3} \end{bmatrix}
479 \begin{Bmatrix} a_{1} \\ a_{2} \\ a_{3} \end{Bmatrix}
480 \begin{vmatrix} a_{1} \\ a_{2} \\ a_{3} \end{vmatrix}
481 \begin{Vmatrix} a_{1} \\ a_{2} \\ a_{3} \end{Vmatrix}
482 \left\lVvert\begin{array}{c} a_{1} \\ a_{2} \\ a_{3} \end{array}\right\Vvert
483 \left\lceil \begin{array}{c} a_{1} \\ a_{2} \\ a_{3} \end{array}\right\rceil
484 \left\lfloor\begin{array}{c} a_{1} \\ a_{2} \\ a_{3} \end{array}\right\rfloor
485 \left\lBrack\begin{array}{c} a_{1} \\ a_{2} \\ a_{3} \end{array}\right\rBrack
486 \left\langle\begin{array}{c} a_{1} \\ a_{2} \\ a_{3} \end{array}\right\rangle
487 \left\lAngle\begin{array}{c} a_{1} \\ a_{2} \\ a_{3} \end{array}\right\rAngle
488 \right\backslash \]
489
490 \subsection{Mathematical alphabets}
491 \label{ssec-math-alphabets}
492
493 \begin{itemize}
494 \item All Latin and Greek characters are available in italic, upright, bold
495 and bold italic via the \verb+\symit{}+, \verb+\symup{}+, \verb+\symbf{}+
496 and \verb+\symbfit{}+ commands.
497
498 \item Calligraphic alphabet uppercase only (commands \cmd{symscr} or
499 \cmd{symcal}), also in Bold (commands \cmd{symbfscr} or \cmd{symbfcal}):
500
501 $\symscr{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$\\
502 $\symbfscr{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
503
504 \item Blackboard-bold alphabet (\cmd{symbb} or \cmd{mathbb} command):
505
506 $\symbb{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$\\
507 $\symbb{abcdefghijklmnopqrstuvwxyz}$ $\symbb{0123456789}$
508
509 \item Fraktur alphabet, borrowed from Latin Modern:
510
511 $\symfrak{ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz}$
512
513 any alphabet can overwritten, i.e.
514 \begin{verbatim}
515 \setmathfont{Asana-Math.otf}[range=frak,Scale=MatchUppercase]
516 $\symfrak{ABCDEFGHIJKL...XYZ abcdefghijkl...xyz}$
517 \end{verbatim}
518 \setmathfont{Asana-Math.otf}[range=frak,Scale=MatchUppercase]
519 $\symfrak{ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz}$
520
521 \item Sans-serif (Latin and Greek) and Typewriter (Latin) alphabets
522 (commands \verb+\symsfup{}+, \verb+\symsfit{}+, \verb+\symbfsfup{}+,
523 \verb+\symbfsfit{}+, \verb+\symtt{}+):
524
525 $\symsfup{ABCDEFGHIJKLM abcdefghijklm}\quad
526 \symsfit{NOPQRSTUVWXYZ nopqrstuvwxyz}$
527
528 $\symbfsfup{ΑΒΓΔΕΖΗΘΙΚΛΜαβγδεζηθικλμ}\quad
529 \symbfsfit{ΝΞΟΠΡΣΤΥΦΧΨΩνξοπρσςτυφχψω}$
530
531 $\symtt{ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz}$
532
533 \end{itemize}
534
535 \subsection{Bold variant}
536
537 \setmathfont{Concrete-Math.otf}[BoldFont=Concrete-Math-Bold.otf]
538 In case short maths formulas have to be printed in section titles,
539 a \emph{limited} bold variant has been added in version~0.60.
540 Example of usage: \quad\textbf{\boldmath Einstein’s equation $E=mc^2$}\\
541 \verb+\setmathfont{Concrete-Math-Bold.otf}[version=bold, +\textit{options}\verb+]+
542 \\
543 \verb+\section{\mathversion{bold} Einstein’s equation $E=mc^2$}+
544
545 It is also possible to use the \verb+\boldmath+ command if the BoldFont has
546 been declared when defining Concrete-Math:\\
547 \verb+\setmathfont{Concrete-Math-Regular.otf}[BoldFont=Concrete-Math-Bold.otf]+\\
548 \verb+\section{\boldmath Einstein’s equation $E=mc^2$}+
549
550 \subsection{Missing symbols}
551
552 \CCM{} does not aim at being as complete as \file{STIXTwoMath-Regular} or
553 \file{Cambria}, the current glyph coverage compares with TeXGyre maths fonts.
554 In case some symbols do not show up in the output file, you will see warnings
555 in the \file{.log} file, for instance:
556
557 \setmathfont{STIXTwoMath-Regular.otf}[range={"2964}]
558 \texttt{Missing character: There is no }$⥤$%
559 \texttt{ (U+2964) in font ConcreteMath}
560
561 Borrowing them from a more complete font, say \file{Asana-Math},
562 is a possible workaround:
563 \verb+\setmathfont{Asana-Math.otf}[range={"2964},Scale=1.02]+\\
564 scaling is possible, multiple character ranges are separated with commas:\\
565 \verb+\setmathfont{Asana-Math.otf}[range={"294A-"2951,"2964,"2ABB-"2ABE}]+
566
567 Let’s mention \pkg{albatross}, a useful tool to find out the list of fonts
568 providing a given glyph: f.i. type in a terminal
569 ``\texttt{albatross -t U+2964}'',
570 see the manpage or \file{albatross-manual.pdf}.
571
572 \section{Acknowledgements}
573
574 The original Metafont glyphs have been converted first to Type\,1 (pfa) using
575 \pkg{mftrace} and \pkg{fontforge}. The \pkg{cm-unicode} package has also
576 helped a lot while cleaning the glyphs.
577
578 I am grateful to George Williams and his co-workers for providing and
579 maintaining FontForge and to Ulrik Vieth for his illuminating paper published
580 in TUGboat~2009 Volume~30 about OpenType Math.
581
582 \end{document}
583
584 %%% Local Variables:
585 %%% mode: latex
586 %%% TeX-engine: luatex
587 %%% TeX-master: t
588 %%% coding: utf-8
589 %%% End: