summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/unicode-math/unimath-symbols.ltx
blob: 310a9908d0cf9b9e09d4ea42b1f2af6d0976c338 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129

%%%%%%%%%%%%%%%%%%%%%%%
% SYMBOLS DEFINED BY UNICODE-MATH
%%%%%%%%%%%%%%%%%%%%%%%

\documentclass{article}
\makeatletter

\usepackage{booktabs,longtable,shortvrb,geometry,varwidth,textcomp,hyperref}

\geometry{margin=3cm}
\hypersetup{colorlinks,linkcolor=black}

\def\cmd#1{\texttt{\textbackslash\expandafter\@gobble\string#1}}

\usepackage{fontspec}
\setmainfont[Ligatures=TeX,Numbers={Monospaced}]{TeX Gyre Pagella}
\usepackage{unicode-math}
\setmathfont[SizeFeatures={
    {Size=-10, Colour=888888},
    {Size=10-, Colour=FF0000}}]{STIXGeneral}

\def\TABLE{%
\begin{longtable}[l]{@{}lcll@{}}
\toprule
\textsc{usv} & Ex. & Macro & Description \\
\midrule
\input unicode-math-table.tex\relax\\
\bottomrule
\end{longtable}
}
\def\USV#1{\small\scshape\MakeLowercase{U+\@gobble#1}}
\def\CMD#1{\small\cmd#1}
\def\DESC#1{%
  \begin{varwidth}[t]{10cm}
    \raggedright\linespread{0.6}\scshape#1%
  \end{varwidth}
}

\newcommand\SHOW[1]{%
\def\UnicodeMathSymbol##1##2##3##4{%
  \def\1{#1}\def\2{##3}%
  \ifx\1\2%
    \def\tempa{%
      \USV{##1} &%
      \SYMB{##2} &%
      \CMD{##2} & \DESC{##4}\\%
    }%
    \expandafter\tempa
  \fi
}%
\TABLE
}
\def\SYMB#1{$\displaystyle#1$}

\begin{document}
\MakeShortVerb\|
\title{Every symbol defined by \textsf{unicode-math}}
\author{Will Robertson\\\texttt{wspr81@gmail.com}}
\maketitle

This document uses the file \texttt{unicode-math-table.tex}
to print every symbol defined by the \textsf{unicode-math}
package. Use this document to find the command name or the Unicode glyph slot for a symbol that you wish to use.

\tableofcontents

\clearpage
\section{Opening symbols, \cmd\mathopen}
\begingroup
\let\sqrtold\sqrt
\def\sqrt{\sqrtold{}}
\SHOW\mathopen
\endgroup

\clearpage
\section{Closing symbols, \cmd\mathclose}
\SHOW\mathclose

\clearpage
\section{Fence symbols, \cmd\mathfence}
\SHOW\mathfence

\section{Punctuation symbols, \cmd\mathpunct}
\SHOW\mathpunct

\clearpage
\section{Accents, \cmd\mathaccent}

Note that accents will only be properly placed if used with an OpenType font with the necessary information. The examples shown below use `Cambria Math'.

\setmathfont[Color=FF0000]{Cambria Math}
\begingroup
\def\SYMB#1{$\displaystyle#1 x$}
\SHOW\mathaccent
\endgroup
\setmathfont[SizeFeatures={
    {Size=-10, Colour=888888},
    {Size=10-, Colour=FF0000}}]{STIXGeneral}

\clearpage
\section{Big operators, \cmd\mathop}

Of the operators shown below, a subset need to be flagged by \textsf{unicode-math} for \cmd\nolimits\ adjustments.
The limits behaviour as specified by \textsf{unicode-math} are shown with grey subscripts and superscripts.
\begingroup
\def\SYMB#1{$\displaystyle#1_0^1$}
\SHOW\mathop
\endgroup

\clearpage
\section{Binary relations, \cmd\mathbin}
\SHOW\mathbin

\clearpage
\section{Ordinary symbols, \cmd\mathord}
\SHOW\mathord

\clearpage
\section{Relation symbols, \cmd\mathrel}
\SHOW\mathrel

\clearpage
\section{Alphabetical symbols, \cmd\mathalpha}
\SHOW\mathalpha



\end{document}