Debian Codegraph @

texmf-dist/doc/fonts/newcomputermodern/newcm-unimath-symbols.ltx

raw
1 %%^^A%% unimath-symbols.ltx -- part of UNICODE-MATH <wspr.io/unicode-math>
2 %%^^A%% Listing of Unicode mathematics symbols using a variety of fonts.
3
4 %!TEX TS-program = LuaLaTeX
5
6 %%%%%%%%%%%%%%%%%%%%%%%
7 % SYMBOLS DEFINED BY UNICODE-MATH
8 %%%%%%%%%%%%%%%%%%%%%%%
9
10 \documentclass[final]{article}
11 \makeatletter
12
13 \usepackage{ragged2e,setspace,booktabs,catchfile,shortvrb,geometry,metalogo,textcomp,longtable,tabu,hyperref}
14
15 \geometry{margin=3cm}
16 \hypersetup{colorlinks,linkcolor=black}
17
18 \def\cmd#1{\texttt{\textbackslash\expandafter\@gobble\string#1}}
19
20 \usepackage{fontspec}
21 \setmainfont{texgyrepagella}%
22 [
23 Extension = .otf ,
24 UprightFont = *-regular,
25 ItalicFont = *-italic,
26 BoldFont = *-bold,
27 BoldItalicFont = *-bolditalic,
28 Ligatures=TeX,
29 Numbers={Lowercase,Monospaced},
30 ]
31 \usepackage[math-style=literal,bold-style=literal]{unicode-math}
32
33 \ExplSyntaxOn
34 \cs_generate_variant:Nn \fontspec_set_fontface:NNnn {c}
35
36 \def\FINISH{}
37 \newcount\Nfonts
38 \def\defmathfont#1#2#3#4{
39 \Nfonts=\numexpr\Nfonts+1\relax
40 \tl_set:cn {L#1} {#4}
41 \newcounter{#1}
42 \setcounter{#1}{-1}
43 \setmathfont[version=#1,SizeFeatures={
44 {Size=-10, Colour=999999},
45 {Size=10-, Colour=#3}}]{#2}
46 \fontspec_set_fontface:cNnn {#1} \x {ItalicFont={},BoldFont={}} {#2}
47 \tl_gput_right:Nn \FINISH {
48 \refstepcounter{#1}\label{count:#1}
49 }
50 }
51 \ExplSyntaxOff
52
53 %\defmathfont{lm}{latinmodern-math.otf}{CC6666}{L}
54 \defmathfont{lm}{NewCMMath-Regular.otf}{CC6666}{NCM}
55 \defmathfont{xits}{XITSMath-Regular.otf}{6666CC}{X}
56 \defmathfont{stix}{STIX2Math.otf}{66CC66}{S}
57 \defmathfont{pagella}{texgyrepagella-math.otf}{AA6666}{P}
58 \defmathfont{dejavu}{texgyredejavu-math.otf}{AACC66}{D}
59 \defmathfont{fira}{FiraMath-Regular.otf}{AA66CC}{F}
60
61 \def\INPUT{\input{unicode-math-table.tex}}
62 \def\TABLE{%
63 \par\noindent
64 \begin{longtabu}[l]{@{}l *{\Nfonts}{c} lX[l]@{}}
65 \toprule
66 \textsc{usv} & \Llm & \Lxits & \Lstix & \Lpagella & \Ldejavu & \Lfira & Macro & Description \\
67 \midrule \endhead
68 \INPUT\\
69 \bottomrule
70 \end{longtabu}
71 }
72 \makeatletter
73 \def\USV#1{\footnotesize\scshape\MakeLowercase{u+\@gobble#1}}
74 \makeatother
75 \def\CMD#1{\footnotesize\cmd#1}
76 \def\DESC#1{%
77 \begin{spacing}{0.5}
78 \RaggedRight\scriptsize #1%
79 \end{spacing}
80 }
81
82 \newcommand\SHOW[1]{%
83 \def\UnicodeMathSymbol##1##2##3##4{%
84 \def\1{#1}\def\2{##3}%
85 \ifx\1\2\PRINTLINE{##1}{##2}{##4}\fi
86 }%
87 \TABLE
88 }
89 \ExplSyntaxOn
90 \def\PRINTLINE#1#2#3{
91 \def\tempa{
92 \USV{#1} &
93 \SYMB{#2}{lm}{#1} &
94 \SYMB{#2}{xits}{#1} &
95 \SYMB{#2}{stix}{#1} &
96 \SYMB{#2}{pagella}{#1} &
97 \SYMB{#2}{dejavu}{#1} &
98 \SYMB{#2}{fira}{#1} &
99 \CMD{#2}
100 \tl_if_in:NnT \PLAIN {#2}
101 {
102 \makebox[0pt][l]
103 { \color[gray]{0.7} \textsuperscript{\sffamily (p)} }
104 }
105 \tl_if_in:NnT \LTXSYM {#2}
106 {
107 \makebox[0pt][l]
108 { \color[gray]{0.7} \textsuperscript{\sffamily (l)} }
109 }
110 \tl_if_in:NnT \AMSSYMB {#2}
111 {
112 \makebox[0pt][l]
113 { \color[gray]{0.7} \textsuperscript{\sffamily (a)} }
114 }
115 &
116 \DESC{#3} \\
117 }%
118 \expandafter\tempa
119 }
120 \ExplSyntaxOff
121 \def\SYMB#1#2#3{%
122 \expandafter\iffontchar\csname#2\endcsname #3\relax
123 \refstepcounter{#2}%
124 \mathversion{#2}%
125 $\displaystyle#1$%
126 \fi
127 }
128
129 \def\PLAIN{\alpha\beta\gamma\delta\epsilon\zeta\eta\theta\iota\kappa\lambda\mu\nu\xi\pi\rho\sigma\tau\upsilon\phi\chi\psi\omega\varepsilon\vartheta\varpi\varrho\varsigma\varphi\Gamma\Delta\Theta\Lambda\Xi\Pi\Sigma\Upsilon\Phi\Psi\Omega
130 %
131 \aleph\hbar\imath\jmath\ell\wp\Re\Im\partial\infty\prime\emptyset\nabla\surd\top\bot\angle\triangle\forall\exists\neg\flat\natural\sharp\clubsuit\diamondsuit\heartsuit\spadesuit
132 %
133 \coprod\bigvee\bigwedge\biguplus\bigcap\bigcup\int\prod\sum\bigotimes\bigoplus\bigodot\oint\bigsqcup\smallint
134 %
135 \triangleleft\triangleright\bigtriangleup\bigtriangledown\wedge\land\vee\lor\cap\cup\ddagger\dagger\sqcap\sqcup\uplus\amalg\diamond\bullet\wr\div\odot\oslash\otimes\ominus\oplus\mp\pm\circ\bigcirc\setminus\cdot\ast\times\star\propto\sqsubseteq\sqsupseteq\parallel\mid\dashv\vdash\nearrow\searrow\nwarrow\swarrow\Leftrightarrow\Leftarrow\Rightarrow\neq\ne\lnot\leq\le\geq\ge\succ\prec\approx\succeq\preceq\supset\subset\supseteq\subseteq\in\ni\owns\gg\ll\not\leftrightarrow\leftarrow\gets\rightarrow\to\mapstochar\mapsto\sim\simeq\perp\equiv\asymp\smile\frown\leftharpoonup\leftharpoondown\rightharpoonup\rightharpoondown
136 %
137 \joinrel\relbar\Relbar\lhook\hookrightarrow\rhook\hookleftarrow\bowtie\models\Longrightarrow\longrightarrow\longleftarrow\Longleftarrow\longmapsto\longleftrightarrow\Longleftrightarrow\iff
138 %
139 \ldotp\cdotp\colon\ldots\cdots\vdots\ddots
140 %
141 \acute\grave\ddot\tilde\bar\breve\check\hat\vec\dot\widetilde\widehat
142 %
143 \overrightarrow\overleftarrow\overbrace\underbrace\lmoustache\rmoustache\lgroup\rgroup\arrowvert\Arrowvert\bracevert\Vert\vert\uparrow\downarrow\updownarrow\Uparrow\Downarrow\Updownarrow\backslash\rangle\langle\rbrace\lbrace\rceil\lceil\rfloor\lfloor\sqrt}
144
145
146 \def\LTXSYM{
147 \cong
148 \notin
149 \rightleftharpoons
150 \doteq
151 \mathring
152 }
153
154 \def\AMSSYMB{\boxdot\boxplus\boxtimes\square\blacksquare\centerdot\lozenge\blacklozenge\circlearrowright\circlearrowleft\leftrightharpoons\boxminus\Vdash\Vvdash\vDash\twoheadrightarrow\twoheadleftarrow\leftleftarrows\rightrightarrows\upuparrows\downdownarrows\upharpoonright\restriction\downharpoonright\upharpoonleft\downharpoonleft\rightarrowtail\leftarrowtail\leftrightarrows\rightleftarrows\Lsh\Rsh\rightsquigarrow\leftrightsquigarrow\looparrowleft\looparrowright\circeq\succsim\gtrsim\gtrapprox\multimap\therefore\because\doteqdot\Doteq\triangleq\precsim\lesssim\lessapprox\eqslantless\eqslantgtr\curlyeqprec\curlyeqsucc\preccurlyeq\leqq\leqslant\lessgtr\backprime\risingdotseq\fallingdotseq\succcurlyeq\geqq\geqslant\gtrless\vartriangleright\vartriangleleft\trianglerighteq\trianglelefteq\bigstar\between\blacktriangledown\blacktriangleright\blacktriangleleft\vartriangle\blacktriangle\triangledown\eqcirc\lesseqgtr\gtreqless\lesseqqgtr\gtreqqless\Rrightarrow\Lleftarrow\veebar\barwedge\doublebarwedge\measuredangle\sphericalangle\varpropto\smallsmile\smallfrown\Subset\Supset\Cup\doublecup\Cap\doublecap\curlywedge\curlyvee\leftthreetimes\rightthreetimes\subseteqq\supseteqq\bumpeq\Bumpeq\lll\llless\ggg\gggtr\circledS\pitchfork\dotplus\backsim\backsimeq\complement\intercal\circledcirc\circledast\circleddash\lvertneqq\gvertneqq\nleq\ngeq\nless\ngtr\nprec\nsucc\lneqq\gneqq\nleqslant\ngeqslant\lneq\gneq\npreceq\nsucceq\precnsim\succnsim\lnsim\gnsim\nleqq\ngeqq\precneqq\succneqq\precnapprox\succnapprox\lnapprox\gnapprox\nsim\ncong\diagup\diagdown\varsubsetneq\varsupsetneq\nsubseteqq\nsupseteqq\subsetneqq\supsetneqq\varsubsetneqq\varsupsetneqq\subsetneq\supsetneq\nsubseteq\nsupseteq\nparallel\nmid\nshortmid\nshortparallel\nvdash\nVdash\nvDash\nVDash\ntrianglerighteq\ntrianglelefteq\ntriangleleft\ntriangleright\nleftarrow\nrightarrow\nLeftarrow\nRightarrow\nLeftrightarrow\nleftrightarrow\divideontimes\varnothing\nexists\Finv\Game\eth\eqsim\beth\gimel\daleth\lessdot\gtrdot\ltimes\rtimes\shortmid\shortparallel\smallsetminus\thicksim\thickapprox\approxeq\succapprox\precapprox\curvearrowleft\curvearrowright\digamma\varkappa\Bbbk\hslash\backepsilon}
155
156 \input{unicode-math.dtx}
157
158 \newfontfamily{\newcmbook}[Ligatures=TeX,SmallCapsFeatures={Numbers=OldStyle},Scale=1.2]{NewCM10-Book.otf}
159 \begin{document}
160
161 {\newcmbook
162 The rest of this file is the article written by Will Robertson named unimath-symbols that presents the Math symbols of different fonts but modified to present NewComputerModern (\textsc{ncm})
163 in the
164 place of \textsc{lm} fonts. Please note that \textsc{ncm}
165 covers the full Unicode Math Blocks and
166 not only the slots presented here. If a symbol is not in the pages that follow you
167 can access it using the \verb|\char| command.
168
169 \ \hfill {---}Antonis Tsolomitis, Samos, Greece \textsc{2021}.%
170 }
171 \thispagestyle{empty}
172
173 \newpage
174
175 \ \ \ \thispagestyle{empty}\setcounter{page}{0}
176
177 \newpage
178
179
180
181
182
183 \MakeShortVerb\|
184 \title{Symbols defined by \textsf{unicode-math}}
185 \author{Will Robertson}
186 \maketitle
187
188 This document uses the file \texttt{unicode-math-table.tex}
189 to print every symbol defined by the \textsf{unicode-math}
190 package.
191 Use this document to find the command name or the Unicode glyph slot for a symbol that you wish to use.
192 The following fonts are shown: (with approximate symbol counts)
193 \begin{itemize}
194 \item[\Llm] \mathversion{lm} $\mathup{New\ CM\ Math}$ (\ref{count:lm})
195 \item[\Lxits] \mathversion{xits} $\mathup{XITS\ Math}$ (\ref{count:xits})
196 \item[\Lstix] \mathversion{stix} $\mathup{STIX\ Math\ Two}$ (\ref{count:stix})
197 \item[\Lpagella] \mathversion{pagella} $\mathup{TeX\ Gyre\ Pagella\ Math}$ (\ref{count:pagella})
198 \item[\Ldejavu] \mathversion{dejavu} $\mathup{DejaVu\ Math\ TeX\ Gyre}$ (\ref{count:dejavu})
199 \item[\Lfira] \mathversion{fira} $\mathup{Fira\ Math}$ (\ref{count:fira})
200 \end{itemize}
201 Symbols defined in Plain \TeX\ are indicated with {\color[gray]{0.6} \textsuperscript{\sffamily (p)}} after their macro name.
202 \LaTeX\ follows Plain \TeX, but defines a handful more, indicated with {\color[gray]{0.6} \textsuperscript{\sffamily (l)}}.
203 Symbols defined in \textsf{amssymb} are indicated with {\color[gray]{0.6} \textsuperscript{\sffamily (a)}}.
204
205 Note that this list of fonts is not intended to be exhaustive but I am happy to add new fonts by request if they are distributed in \TeX\ Live.\footnote{Only a single \TeX\ Gyre Math font is shown here by design as they all largely have the same symbol coverage.}
206
207 \tableofcontents
208
209 \clearpage
210 \section{Opening symbols, \cmd\mathopen}
211 \begingroup
212 \def\sqrt{\sqrtsign{}}
213 \def\cuberoot{\cuberootsign{}}
214 \def\fourthroot{\fourthrootsign{}}
215 \def\longdivision{\longdivisionsign{}}
216 \SHOW\mathopen
217 \endgroup
218
219 \clearpage
220 \section{Closing symbols, \cmd\mathclose}
221 \SHOW\mathclose
222
223 \clearpage
224 \section{Fence symbols, \cmd\mathfence}
225 \SHOW\mathfence
226
227 \section{Punctuation symbols, \cmd\mathpunct}
228 \SHOW\mathpunct
229
230 \section{`Over' symbols, \cmd\mathover}
231 \begingroup
232 \def\SYMB#1#2#3{%
233 \expandafter\iffontchar\csname#2\endcsname #3\relax
234 \refstepcounter{#2}%
235 \mathversion{#2}%
236 $\displaystyle #1{\mitx+\mity}$%
237 \fi
238 }
239 \SHOW\mathover
240 \endgroup
241
242
243 \section{`Under' symbols, \cmd\mathunder}
244 \begingroup
245 \def\SYMB#1#2#3{%
246 \expandafter\iffontchar\csname#2\endcsname #3\relax
247 \refstepcounter{#2}%
248 \mathversion{#2}%
249 $\displaystyle #1{\mitx+\mity}$%
250 \fi
251 }
252 \SHOW\mathunder
253 \endgroup
254
255 \clearpage
256 \section{Accents, \cmd\mathaccent}
257
258 Note that accents will only be properly placed if used with an OpenType font with the necessary information.
259
260 \begingroup
261 \def\SYMB#1#2#3{%
262 \expandafter\iffontchar\csname#2\endcsname #3\relax
263 \refstepcounter{#2}%
264 \mathversion{#2}%
265 $\displaystyle#1 \mitx$%
266 \fi
267 }
268 \SHOW\mathaccent
269 \endgroup
270
271 \section{Bottom accents, \cmd\mathbotaccent}
272 \begingroup
273 \def\SYMB#1#2#3{%
274 \expandafter\iffontchar\csname#2\endcsname #3\relax
275 \refstepcounter{#2}%
276 \mathversion{#2}%
277 $\displaystyle#1 \mitx$%
278 \fi
279 }
280 \SHOW\mathbotaccent
281 \endgroup
282
283 \clearpage
284 \section{Big operators, \cmd\mathop}
285
286 Of the operators shown below, a subset need to be flagged by \textsf{unicode-math} for \cmd\nolimits\ adjustments.
287 The limits behaviour as specified by \textsf{unicode-math} are shown with grey subscripts and superscripts.
288 \begingroup
289 \def\SYMB#1#2#3{%
290 \expandafter\iffontchar\csname#2\endcsname #3\relax
291 \stepcounter{#2}%
292 \mathversion{#2}%
293 $\displaystyle#1_0^1$%
294 \fi
295 }
296 \SHOW\mathop
297 \endgroup
298
299 \section{Binary relations, \cmd\mathbin}
300 \SHOW\mathbin
301
302 \clearpage
303 \section{Ordinary symbols, \cmd\mathord}
304 \SHOW\mathord
305
306 \clearpage
307 \section{Relation symbols, \cmd\mathrel}
308 \SHOW\mathrel
309
310 \clearpage
311 \section{Alphabetical symbols, \cmd\mathalpha}
312
313 % first read in all \mathalpha symbols into a variable:
314 \ExplSyntaxOn
315 \cs_set:Npn \UnicodeMathSymbol #1#2#3#4 {
316 \str_if_eq:nnT {\mathalpha} {#3} {
317 \exp_not:n { \UnicodeMathSymbol {#1}{#2}{#3}{#4} }
318 }
319 }
320 \CatchFileEdef
321 \ALPHA{unicode-math-table.tex}
322 {\char_set_catcode_space:N \ }
323
324 % now each time we print an alphabet we remove the slot;
325 % this ensures we won't miss anything
326
327 \def\INPUT{\ALPHA}
328 \cs_new:Npn \SLOTS #1#2 {
329 \cs_set:Npn \UnicodeMathSymbol ##1##2##3##4 {
330 \bool_lazy_and:nnT
331 { \int_compare_p:n {##1 >= #1} }
332 { \int_compare_p:n {##1 <= #2} }
333 {
334 \PRINTLINE{##1}{##2}{##4}
335 }
336 }
337 \TABLE
338 \cs_set:Npn \UnicodeMathSymbol ##1##2##3##4 {
339 \bool_lazy_or:nnT
340 { \int_compare_p:n {##1 > #2} }
341 { \int_compare_p:n {##1 < #1} }
342 {
343 \exp_not:n { \UnicodeMathSymbol {##1}{##2}{##3}{##4} }
344 }
345 }
346 \edef\ALPHA{\ALPHA}
347 }
348
349 \ExplSyntaxOff
350
351 \subsection{Normal weight}
352
353 \subsubsection{Upright Greek, uppercase}
354 \SLOTS{"00391}{"003A9}
355
356 \subsubsection{Upright Greek, lowercase}
357 \SLOTS{"003B1}{"003F5}
358
359 \subsubsection{Italic, Latin, uppercase}
360 \SLOTS{"1D434}{"1D44D}
361
362 \subsubsection{Italic, Latin, lowercase}
363 \SLOTS{"1D44E}{"1D467}
364
365 \subsubsection{Italic Greek, uppercase}
366 \SLOTS{"1D6E2}{"1D6FA}
367
368 \subsubsection{Italic Greek, lowercase}
369 \SLOTS{"1D6FC}{"1D71B}
370
371 \subsubsection{Script, Latin, uppercase}
372 \SLOTS{"1D49C}{"1D4B5}
373
374 \subsubsection{Script, Latin, lowercase}
375 \SLOTS{"1D4B6}{"1D4CF}
376
377 \subsubsection{Fraktur, Latin, uppercase}
378 \SLOTS{"1D504}{"1D51C}
379
380 \subsubsection{Fraktur, Latin, lowercase}
381 \SLOTS{"1D51E}{"1D537}
382
383 \subsubsection{Blackboard, Latin, uppercase}
384 \SLOTS{"1D538}{"1D550}
385
386 \subsubsection{Blackboard, Latin, lowercase}
387 \SLOTS{"1D552}{"1D56B}
388
389 \subsubsection{Sans serif, Latin, uppercase}
390 \SLOTS{"1D5A0}{"1D5B9}
391
392 \subsubsection{Sans serif, Latin, lowercase}
393 \SLOTS{"1D5BA}{"1D5D3}
394
395 \subsubsection{Italic sans serif, Latin, uppercase}
396 \SLOTS{"1D608}{"1D621}
397
398 \subsubsection{Italic sans serif, Latin, lowercase}
399 \SLOTS{"1D622}{"1D63B}
400
401 \subsubsection{Typewriter, Latin, uppercase}
402 \SLOTS{"1D670}{"1D689}
403
404 \subsubsection{Typewriter, Latin, lowercase}
405 \SLOTS{"1D68A}{"1D6A3}
406
407 \subsection{Bold}
408
409 \subsubsection{Bold, Latin, uppercase}
410 \SLOTS{"1D400}{"1D419}
411
412 \subsubsection{Bold, Latin, lowercase}
413 \SLOTS{"1D41A}{"1D433}
414
415 \subsubsection{Bold Greek, uppercase}
416 \SLOTS{"1D6A8}{"1D6C0}
417
418 \subsubsection{Bold Greek, lowercase}
419 \SLOTS{"1D6C2}{"1D6E1}
420
421 \subsubsection{Bold italic, Latin, uppercase}
422 \SLOTS{"1D468}{"1D481}
423
424 \subsubsection{Bold italic, Latin, lowercase}
425 \SLOTS{"1D482}{"1D49B}
426
427 \subsubsection{Bold italic Greek, uppercase}
428 \SLOTS{"1D71C}{"1D734}
429
430 \subsubsection{Bold italic Greek, lowercase}
431 \SLOTS{"1D736}{"1D755}
432
433 \subsubsection{Bold script, Latin, uppercase}
434 \SLOTS{"1D4D0}{"1D4E9}
435
436 \subsubsection{Bold script, Latin, lowercase}
437 \SLOTS{"1D4EA}{"1D503}
438
439 \subsubsection{Bold fraktur, Latin, uppercase}
440 \SLOTS{"1D56C}{"1D585}
441
442 \subsubsection{Bold fraktur, Latin, lowercase}
443 \SLOTS{"1D586}{"1D59F}
444
445 \subsubsection{Bold sans serif, Latin, uppercase}
446 \SLOTS{"1D5D4}{"1D5ED}
447
448 \subsubsection{Bold sans serif, Latin, lowercase}
449 \SLOTS{"1D5EE}{"1D607}
450
451 \subsubsection{Bold italic sans serif, Latin, uppercase}
452 \SLOTS{"1D63C}{"1D655}
453
454 \subsubsection{Bold italic sans serif, Latin, lowercase}
455 \SLOTS{"1D656}{"1D66F}
456
457 \subsubsection{Bold sans serif Greek, uppercase}
458 \SLOTS{"1D756}{"1D76E}
459
460 \subsubsection{Bold sans serif Greek, lowercase}
461 \SLOTS{"1D770}{"1D78F}
462
463 \subsubsection{Bold italic sans serif Greek, uppercase}
464 \SLOTS{"1D790}{"1D7A8}
465
466 \subsubsection{Bold italic sans serif Greek, lowercase}
467 \SLOTS{"1D7AA}{"1D7C9}
468
469 \subsection{Miscellaneous}
470 \def\UnicodeMathSymbol#1#2#3#4{\PRINTLINE{#1}{#2}{#4}}
471 \TABLE
472
473 \FINISH
474
475 \end{document}
476
477 \endinput
478
479 % /©
480 %
481 % ------------------------------------------------
482 % The UNICODE-MATH package <wspr.io/unicode-math>
483 % ------------------------------------------------
484 % This package is free software and may be redistributed and/or modified under
485 % the conditions of the LaTeX Project Public License, version 1.3c or higher
486 % (your choice): <http://www.latex-project.org/lppl/>.
487 % ------------------------------------------------
488 % Copyright 2006-2019 Will Robertson, LPPL "maintainer"
489 % Copyright 2010-2017 Philipp Stephani
490 % Copyright 2011-2017 Joseph Wright
491 % Copyright 2012-2015 Khaled Hosny
492 % ------------------------------------------------
493 %
494 % ©/