Debian Codegraph @

texmf-dist/source/latex/unicode-math/um-code-variables.dtx

raw
1 %%^^A%% um-code-variables.dtx -- part of UNICODE-MATH <wspr.io/unicode-math>
2 %%^^A%% Declaration of all code-level variables used in the package.
3
4 % \section{Variable initialisation}
5 %
6 % \begin{macrocode}
7 %<*package>
8 % \end{macrocode}
9 %
10 %
11 % \subsection{bool}
12 %
13 % True if using a proper OpenType font with unicode maths
14 % \begin{macrocode}
15 \bool_new:N \g_@@_ot_math_bool
16 % \end{macrocode}
17 %
18 % Set when \cs{setmathfont} is run to trap the problem of no main font defined.
19 % \begin{macrocode}
20 \bool_new:N \g_@@_main_font_defined_bool
21 % \end{macrocode}
22 %
23 % \begin{macrocode}
24 \bool_new:N \g_@@_init_bool
25 \bool_new:N \l_@@_implicit_alph_bool
26 % \end{macrocode}
27 % For \opt{math-style}:
28 % \begin{macrocode}
29 \bool_new:N \g_@@_literal_bool
30 \bool_new:N \g_@@_upLatin_bool
31 \bool_new:N \g_@@_uplatin_bool
32 \bool_new:N \g_@@_upGreek_bool
33 \bool_new:N \g_@@_upgreek_bool
34 % \end{macrocode}
35 % For \opt{bold-style}:
36 % \begin{macrocode}
37 \bool_new:N \g_@@_bfliteral_bool
38 \bool_new:N \g_@@_bfupLatin_bool
39 \bool_new:N \g_@@_bfuplatin_bool
40 \bool_new:N \g_@@_bfupGreek_bool
41 \bool_new:N \g_@@_bfupgreek_bool
42 % \end{macrocode}
43 % For \opt{sans-style}:
44 % \begin{macrocode}
45 \bool_new:N \g_@@_upsans_bool
46 \bool_new:N \g_@@_sfliteral_bool
47 % \end{macrocode}
48 % For assorted package options:
49 % \begin{macrocode}
50 \bool_new:N \g_@@_upNabla_bool
51 \bool_new:N \g_@@_uppartial_bool
52 \bool_new:N \g_@@_literal_Nabla_bool
53 \bool_new:N \g_@@_literal_partial_bool
54 \bool_new:N \l_@@_smallfrac_bool
55 \bool_new:N \g_@@_literal_colon_bool
56 \bool_new:N \g_@@_mathrm_text_bool
57 \bool_new:N \g_@@_mathit_text_bool
58 \bool_new:N \g_@@_mathbf_text_bool
59 \bool_new:N \g_@@_mathsf_text_bool
60 \bool_new:N \g_@@_mathtt_text_bool
61 % \end{macrocode}
62 %
63 % \subsection{int}
64 %
65 % \begin{macrocode}
66 \int_new:N \g_@@_fam_int
67 \int_new:N \g_@@_fonts_used_int
68 \int_new:N \l_@@_primecount_int
69 % \end{macrocode}
70 %
71 % \subsection{tl}
72 %
73 % For displaying in warning messages, etc.:
74 % \begin{macrocode}
75 \tl_const:Nn \c_@@_math_alphabet_name_latin_tl {Latin,~lowercase}
76 \tl_const:Nn \c_@@_math_alphabet_name_Latin_tl {Latin,~uppercase}
77 \tl_const:Nn \c_@@_math_alphabet_name_greek_tl {Greek,~lowercase}
78 \tl_const:Nn \c_@@_math_alphabet_name_Greek_tl {Greek,~uppercase}
79 \tl_const:Nn \c_@@_math_alphabet_name_num_tl {Numerals}
80 \tl_const:Nn \c_@@_math_alphabet_name_misc_tl {Misc.}
81 % \end{macrocode}
82 %
83 % \begin{macrocode}
84 \tl_new:N \l_@@_style_tl
85 \tl_new:N \l_@@_family_tl
86 \tl_new:N \l_@@_alphabet_tl
87 \tl_new:N \l_@@_fontname_tl
88 \tl_new:N \l_@@_symfont_label_tl
89 \tl_new:N \l_@@_remap_style_tl
90 \tl_new:N \l_@@_fam_two_tl
91 \tl_new:N \l_@@_fam_three_tl
92 \tl_new:N \l_@@_curr_named_slot
93 % \end{macrocode}
94 %
95 % \begin{macrocode}
96 \tl_new:N \l_@@_tmpa_tl
97 \tl_new:N \l_@@_tmpb_tl
98 \tl_new:N \l_@@_tmpc_tl
99 \tl_new:N \l_@@_mathstyle_tl
100 \tl_new:N \l_@@_radicals_tl
101 \tl_new:N \l_@@_nolimits_tl
102 \tl_new:N \l_@@_trial_family_tl
103 \tl_new:N \l_@@_ss_chain_tl
104 \tl_new:N \l_@@_tmpa_key_tl
105 % \end{macrocode}
106 %
107 % Used to store the font switch for the \cs{operator@font}.
108 % \begin{macrocode}
109 \tl_new:N \g_@@_operator_mathfont_tl
110 % \end{macrocode}
111 %
112 % \begin{macrocode}
113 \tl_new:N \g_@@_slash_delimiter_usv
114 \tl_new:N \g_@@_mathparam_settings_tl
115 \tl_new:N \l_@@_mathtable_tl
116 \tl_new:N \g_@@_mathtable_tl
117 \tl_new:N \g_@@_fontname_tl
118 \tl_new:N \g_@@_mversion_tl
119 \tl_new:N \g_@@_symfont_tl
120 \tl_new:N \l_@@_font_keyval_tl
121 \tl_new:N \g_@@_family_tl
122 \tl_new:N \g_@@_style_tl
123 \tl_new:N \g_@@_remap_style_tl
124 \tl_new:N \l_@@_not_token_name_tl
125 \tl_new:N \g_@@_curr_font_cmd_tl
126 \tl_new:N \g_@@_sqrt_font_cmd_tl
127 \tl_new:N \g_@@_prime_font_cmd_tl
128 % \end{macrocode}
129 %
130 % \begin{macro}{\g_@@_mathparam_store_tl}
131 % Used to store and restore the math parameters used in Lua\TeX.
132 % This is done to `save' the values of the \emph{first} (or main)
133 % maths font loaded, rather than (as per Lua\TeX\ defaults) the last.
134 % \begin{macrocode}
135 %<*LU>
136 \tl_new:N \g_@@_mathparam_store_tl
137 %</LU>
138 % \end{macrocode}
139 % \end{macro}
140 %
141 % \subsection{clist}
142 %
143 % \begin{macrocode}
144 \clist_new:N \g_@@_char_nrange_clist
145 \clist_new:N \g_@@_unknown_keys_clist
146 \clist_new:N \g_@@_alphabet_clist
147 \clist_new:N \l_@@_mathmap_charints_clist
148 \clist_new:N \l_@@_unknown_keys_clist
149 \clist_new:N \l_@@_keyval_clist
150 \clist_new:N \l_@@_alphabet_clist
151 % \end{macrocode}
152 %
153 % \begin{macrocode}
154 \clist_new:N \g_@@_bad_alpha_clist
155 \clist_gput_right:Nx \g_@@_bad_alpha_clist { \tl_to_str:n {bf} }
156 \clist_gput_right:Nx \g_@@_bad_alpha_clist { \tl_to_str:n {sf} }
157 \clist_gput_right:Nx \g_@@_bad_alpha_clist { \tl_to_str:n {bfsf} }
158 % \end{macrocode}
159 %
160 % \subsection{seq}
161 %
162 % \begin{macrocode}
163 \seq_new:N \l_@@_missing_alph_seq
164 \seq_new:N \g_@@_mathalph_seq
165 \seq_new:N \g_@@_char_range_seq
166 \seq_new:N \g_@@_mclass_range_seq
167 % \end{macrocode}
168 %
169 % \begin{macro}{\g_@@_mathclasses_seq}
170 % Every math class.
171 % \begin{macrocode}
172 \seq_new:N \g_@@_mathclasses_seq
173 \seq_gset_from_clist:Nn \g_@@_mathclasses_seq
174 {
175 \mathord,\mathalpha,\mathbin,\mathrel,\mathpunct,
176 \mathop,
177 \mathopen,\mathclose,
178 \mathfence,\mathover,\mathunder,
179 \mathaccent,\mathaccentoverlay,\mathbotaccent,\mathaccentwide,\mathbotaccentwide
180 }
181 % \end{macrocode}
182 % \end{macro}
183 %
184 % \begin{macro}{\g_@@_default_mathalph_seq}
185 % This sequence stores the alphabets in each math style.
186 % \begin{macrocode}
187 \seq_new:N \g_@@_default_mathalph_seq
188 % \end{macrocode}
189 % \end{macro}
190 %
191 % \begin{macro}{\g_@@_mathstyles_seq}
192 % This is every `math style' known to \pkg{unicode-math}.
193 % A named range is such as "bfit" and "sfit", which are also math styles (with \cs{symbfit} and \cs{symsfit}).
194 % `Mathstyles' are a superset of named ranges and also include commands such as \cs{symbf} and \cs{symsf}.
195 %
196 % N.B. for parsing purposes `named ranges' are defined as strings!
197 % \begin{macrocode}
198 \seq_new:N \g_@@_mathstyles_seq
199 % \end{macrocode}
200 % \end{macro}
201 %
202 % \subsection{prop}
203 %
204 % \begin{macrocode}
205 \prop_new:N \g_@@_supers_prop
206 \prop_new:N \g_@@_subs_prop
207 % \end{macrocode}
208 %
209 % \subsection{muskip}
210 %
211 % \begin{macrocode}
212 \muskip_new:N \g_@@_primekern_muskip
213 \muskip_gset:Nn \g_@@_primekern_muskip { -\thinmuskip/2 }% arbitrary
214 % \end{macrocode}
215 %
216 % \subsection{fp}
217 %
218 % \begin{macrocode}
219 \fp_new:N \g_@@_size_tfsf_fp
220 \fp_new:N \g_@@_size_sfssf_fp
221 % \end{macrocode}
222 %
223 % \subsection{quark}
224 %
225 % \begin{macro}{\q_unicode_math}
226 % Used as a flag within control sequences to check they're recognised by the package.
227 % \begin{macrocode}
228 \quark_new:N \q_unicode_math
229 % \end{macrocode}
230 % \end{macro}
231 %
232 % \begin{macrocode}
233 %</package>
234 % \end{macrocode}
235
236 \endinput
237
238 % /©
239 %
240 % ------------------------------------------------
241 % The UNICODE-MATH package <wspr.io/unicode-math>
242 % ------------------------------------------------
243 % This package is free software and may be redistributed and/or modified under
244 % the conditions of the LaTeX Project Public License, version 1.3c or higher
245 % (your choice): <http://www.latex-project.org/lppl/>.
246 % ------------------------------------------------
247 % Copyright 2006-2019 Will Robertson, LPPL "maintainer"
248 % Copyright 2010-2017 Philipp Stephani
249 % Copyright 2011-2017 Joseph Wright
250 % Copyright 2012-2015 Khaled Hosny
251 % ------------------------------------------------
252 %
253 % ©/