Debian Codegraph @

texmf-dist/tex/latex/breqn/flexisym.sty

raw
1 %%
2 %% This is file `flexisym.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% flexisym.dtx (with options: `package')
8 %%
9 %% This is a generated file.
10 %%
11 %% Copyright (C) 1997-2003 by Michael J. Downes
12 %% Copyright (C) 2007-2008 by Morten Hoegholm
13 %% Copyright (C) 2007-2014 by Lars Madsen
14 %% Copyright (C) 2007-2020 by Will Robertson
15 %% Copyright (C) 2010-2017 by Joseph Wright
16 %% Copyright (C) 2020-2020 by Ulrike Fischer
17 %%
18 %% This work may be distributed and/or modified under the
19 %% conditions of the LaTeX Project Public License, either
20 %% version 1.3 of this license or (at your option) any later
21 %% version. The latest version of this license is in
22 %% http://www.latex-project.org/lppl.txt
23 %% and version 1.3 or later is part of all distributions of
24 %% LaTeX version 2005/12/01 or later.
25 %%
26 %% This work has the LPPL maintenance status "maintained".
27 %%
28 %% The Current Maintainer of this work is Will Robertson.
29 %%
30 %% This work consists of the main source file breqn.dtx,
31 %% flexisym.dtx, and mathstyle.dtx.
32 %%
33 \RequirePackage{expl3}[2009/08/05]
34 \ProvidesExplPackage{flexisym}{2021/10/28}{0.98l}{Make math characters macros}
35
36 \edef\do{%
37 \noexpand\AtEndOfPackage{%
38 \catcode\number`\"=\number\catcode`\"
39 \relax
40 }%
41 }
42 \do \let\do\relax
43 \catcode`\"=12
44 \let\@sym\@gobble
45 \DeclareOption{robust}{%
46 \def\@sym#1{%
47 \ifx\protect\@typeset@protect \else\protect#1\exp_after:wN\use_none:nnnn\fi
48 }%
49 }
50 \def\mg@bin{2}% binary operators
51 \def\mg@rel{2}% relations
52 %%\def\mg@nre{B}% negated relations
53 \def\mg@del{3}% delimiters
54 %%\def\mg@arr{B}% arrows
55 \def\mg@acc{0}% accents
56 \def\mg@cop{3}% cumulative operators (sum, int)
57 \def\mg@latin{1}% (Latin) letters
58 \def\mg@greek{1}% (lowercase) Greek
59 \def\mg@Greek{0}% (capital) Greek
60 %%\def\mg@bflatin{4}% bold upright Latin letters ?
61 %%\def\mg@Bbb{B}% blackboard bold
62 \def\mg@cal{2}% script/calligraphic
63 %%\def\mg@frak{5}% Fraktur letters
64 \def\mg@digit{0}% decimal digits % 1 = oldstyle, 0 = capital
65 \cs_set_protected:Nn \math_char:NNn {
66 \tex_mathchar:D \__int_eval:w " #1#2#3 \__int_eval_end:
67 }
68 \cs_set_protected:Nn \math_delimiter:NNnNn {
69 \tex_delimiter:D \__int_eval:w " #1#2#3#4#5 \__int_eval_end:
70 }
71 \cs_set_protected:Nn \math_radical:NnNn {
72 \tex_radical:D \__int_eval:w " #1#2#3#4 \__int_eval_end:
73 }
74 \cs_set_protected:Nn \math_accent:NNnn {
75 \tex_mathaccent:D \__int_eval:w " #1 #2 #3 \__int_eval_end: {#4}
76 }
77
78 \let\sumlimits\displaylimits
79 \let\intlimits\nolimits
80 \let\namelimits\displaylimits
81 \cs_new:Npn \math_bsym_Ord:Nn {\math_char:NNn 0 }% \m@Ord
82 \cs_new:Npn \math_bsym_Var:Nn {\math_char:NNn 7 }% \m@Var
83 \cs_new:Npn \math_bsym_Bin:Nn {\math_char:NNn 2 }% \m@Bin
84 \cs_new:Npn \math_bsym_Rel:Nn {\math_char:NNn 3 }% \m@Bin
85 \cs_new:Npn \math_bsym_Pun:Nn {\math_char:NNn 6 }% \m@Pun
86 \cs_new:Nn \math_bsym_COs:Nn { \math_char:NNn 1 #1 {#2} \sumlimits }% \m@COs
87 \cs_new:Nn \math_bsym_COi:Nn { \math_char:NNn 1 #1 {#2} \intlimits }% \m@COi
88 \cs_new:Nn \math_bsym_DeL:Nn { \math_sd_del_aux:Nnn 4 #1{#2} }% \m@DeL
89 \cs_new:Nn \math_bsym_DeR:Nn { \math_sd_del_aux:Nnn 5 #1{#2} }% \m@DeR
90 \cs_new:Nn \math_bsym_DeB:Nn { \math_sd_del_aux:Nnn 0 #1{#2} }% \m@DeB
91 \cs_new:Nn \math_bsym_DeA:Nn { \math_sd_del_aux:Nnn 3 #1{#2} }% \m@DeA
92 \cs_new:Nn \math_bsym_Rad:Nn { \math_sd_rad_aux:Nn #1{#2} }% \m@Rad
93 \cs_new:Npn \math_bsym_Acc:Nn #1#2#3#4 {\math_accent:NNnn #1#2{#3}{#4}}% name is wrong
94
95 \cs_set:Npn \math_sd_del_aux:Nnn #1#2#3{
96 \exp_args:Nf \math_sd_del_auxi:nN {\use:c{sd@#2#3}} #1 #2{#3}
97 }
98 \cs_set:Npn \math_sd_del_auxi:nN #1#2{ \math_delimiter:NNnNn #2 #1 }
99 \cs_set:Npn \math_sd_rad_aux:Nn #1#2{
100 \exp_args:Nf \math_sd_rad_auxi:n {\use:c{sd@#1#2}} #1 {#2}
101 }
102 \cs_set:Npn \math_sd_rad_auxi:n #1{ \math_radical:NnNn #1 }
103
104 \cs_set_protected:Npn \math_bcsym_Ord:Nn #1#2 { \@symtype \mathord { \OrdSymbol {#2} } }%\@symOrd
105 \cs_set_protected:Npn \math_bcsym_Var:Nn #1#2 { \@symtype \mathord { \OrdSymbol {#2} } }%\@symVar
106 \cs_set_protected:Npn \math_bcsym_Bin:Nn #1#2 { \@symtype \mathbin { \OrdSymbol {#2} } }%\@symBin
107 \cs_set_protected:Npn \math_bcsym_Rel:Nn #1#2 { \@symtype \mathrel { \OrdSymbol {#2} } }%\@symRel
108 \cs_set_protected:Npn \math_bcsym_Pun:Nn #1#2 { \@symtype \mathpunct { \OrdSymbol {#2} } }%\@symPun
109 \cs_set_protected:Npn \math_bcsym_COi:Nn #1#2 { \@symtype \mathop { \OrdSymbol {#2} \intlimits } }%\@symCOi
110 \cs_set_protected:Npn \math_bcsym_COs:Nn #1#2 { \@symtype \mathop { \OrdSymbol {#2} \sumlimits } }%\@symCOs
111 \cs_set_protected:Npn \math_bcsym_DeL:Nn #1#2 { \@symtype \mathopen { \OrdSymbol {#2} } }%\@symDeL
112 \cs_set_protected:Npn \math_bcsym_DeR:Nn #1#2 { \@symtype \mathclose { \OrdSymbol {#2} } }%\@symDeR
113 \cs_set_protected:Npn \math_bcsym_DeB:Nn #1#2 { \@symtype \mathord { \OrdSymbol {#2} } }%\@symDeB
114 \cs_set_protected:Npn \math_bcsym_DeA:Nn #1#2 { \@symtype \mathrel { \OrdSymbol {#2} } }%\@symDeA
115 \cs_set_protected:Npn \math_bcsym_Acc:Nn {\@sym}%\@symAcc FIX!
116 \cs_set_protected:Npn \math_bcsym_Ope:Nn #1#2{\@symtype\mathopen{\OrdSymbol{#2}}}%\@symVar
117 \cs_set_protected:Npn \math_bcsym_Clo:Nn #1#2{\@symtype\mathclose{\OrdSymbol{#2}}}%\@symVar
118 \cs_set_protected:Npn \math_bcsym_Inn:Nn #1#2{\@symtype\mathinner{\OrdSymbol{#2}}}%\@symVar
119
120 \let\@symtype\@firstofone
121 \let\sym@global\global
122 \cs_new:Npn \math_isym_Ord:Nn { \math_bsym_Ord:Nn }% \m@Ord
123 \cs_new:Npn \math_isym_Var:Nn { \math_bsym_Var:Nn }% \m@Var
124 \cs_new:Npn \math_isym_Bin:Nn { \math_bsym_Bin:Nn }% \m@Bin
125 \cs_new:Npn \math_isym_Rel:Nn { \math_bsym_Rel:Nn }% \m@Bin
126 \cs_new:Npn \math_isym_Pun:Nn { \math_bsym_Pun:Nn }% \m@Pun
127 \cs_new:Npn \math_isym_COs:Nn { \math_bsym_COs:Nn }% \m@COs
128 \cs_new:Npn \math_isym_COi:Nn { \math_bsym_COi:Nn }% \m@COi
129 \cs_new:Npn \math_isym_DeL:Nn { \math_bsym_DeL:Nn }% \m@DeL
130 \cs_new:Npn \math_isym_DeR:Nn { \math_bsym_DeR:Nn }% \m@DeR
131 \cs_new:Npn \math_isym_DeB:Nn { \math_bsym_DeB:Nn }% \m@DeB
132 \cs_new:Npn \math_isym_DeA:Nn { \math_bsym_DeA:Nn }% \m@DeA
133 \cs_new:Npn \math_isym_Rad:Nn { \math_bsym_Rad:Nn }% \m@Rad
134 \cs_new:Npn \math_isym_Acc:Nn { \math_bsym_DeL:Nn }% name is wrong
135 \cs_set_protected:Npn \math_icsym_Ord:Nn { \math_bcsym_Ord:Nn }
136 \cs_set_protected:Npn \math_icsym_Var:Nn { \math_bcsym_Var:Nn }
137 \cs_set_protected:Npn \math_icsym_Bin:Nn { \math_bcsym_Bin:Nn }
138 \cs_set_protected:Npn \math_icsym_Rel:Nn { \math_bcsym_Rel:Nn }
139 \cs_set_protected:Npn \math_icsym_Pun:Nn { \math_bcsym_Pun:Nn }
140 \cs_set_protected:Npn \math_icsym_COi:Nn { \math_bcsym_COi:Nn }
141 \cs_set_protected:Npn \math_icsym_COs:Nn { \math_bcsym_COs:Nn }
142 \cs_set_protected:Npn \math_icsym_DeL:Nn { \math_bcsym_DeL:Nn }
143 \cs_set_protected:Npn \math_icsym_DeR:Nn { \math_bcsym_DeR:Nn }
144 \cs_set_protected:Npn \math_icsym_DeB:Nn { \math_bcsym_DeB:Nn }
145 \cs_set_protected:Npn \math_icsym_DeA:Nn { \math_bcsym_DeA:Nn }
146 \cs_set_protected:Npn \math_icsym_Acc:Nn { \math_bcsym_Acc:Nn }
147 \cs_set_protected:Npn \math_icsym_Ope:Nn { \math_bcsym_Ope:Nn }
148 \cs_set_protected:Npn \math_icsym_Clo:Nn { \math_bcsym_Clo:Nn }
149 \cs_set_protected:Npn \math_icsym_Inn:Nn { \math_bcsym_Inn:Nn }
150 \cs_new:Npn \math_dsym_Ord:Nn { \math_bsym_Ord:Nn }
151 \cs_new:Npn \math_dsym_Var:Nn { \math_bsym_Var:Nn }
152 \cs_new:Npn \math_dsym_Bin:Nn { \math_bsym_Bin:Nn }
153 \cs_new:Npn \math_dsym_Rel:Nn { \math_bsym_Rel:Nn }
154 \cs_new:Npn \math_dsym_Pun:Nn { \math_bsym_Pun:Nn }
155 \cs_new:Npn \math_dsym_COs:Nn { \math_bsym_COs:Nn }
156 \cs_new:Npn \math_dsym_COi:Nn { \math_bsym_COi:Nn }
157 \cs_new:Npn \math_dsym_DeL:Nn { \math_bsym_DeL:Nn }
158 \cs_new:Npn \math_dsym_DeR:Nn { \math_bsym_DeR:Nn }
159 \cs_new:Npn \math_dsym_DeB:Nn { \math_bsym_DeB:Nn }
160 \cs_new:Npn \math_dsym_DeA:Nn { \math_bsym_DeA:Nn }
161 \cs_new:Npn \math_dsym_Rad:Nn { \math_bsym_Rad:Nn }
162 \cs_new:Npn \math_dsym_Acc:Nn { \math_bsym_DeL:Nn }
163 \cs_set_protected:Npn \math_dcsym_Ord:Nn { \math_bcsym_Ord:Nn }
164 \cs_set_protected:Npn \math_dcsym_Var:Nn { \math_bcsym_Var:Nn }
165 \cs_set_protected:Npn \math_dcsym_Bin:Nn { \math_bcsym_Bin:Nn }
166 \cs_set_protected:Npn \math_dcsym_Rel:Nn { \math_bcsym_Rel:Nn }
167 \cs_set_protected:Npn \math_dcsym_Pun:Nn { \math_bcsym_Pun:Nn }
168 \cs_set_protected:Npn \math_dcsym_COi:Nn { \math_bcsym_COi:Nn }
169 \cs_set_protected:Npn \math_dcsym_COs:Nn { \math_bcsym_COs:Nn }
170 \cs_set_protected:Npn \math_dcsym_DeL:Nn { \math_bcsym_DeL:Nn }
171 \cs_set_protected:Npn \math_dcsym_DeR:Nn { \math_bcsym_DeR:Nn }
172 \cs_set_protected:Npn \math_dcsym_DeB:Nn { \math_bcsym_DeB:Nn }
173 \cs_set_protected:Npn \math_dcsym_DeA:Nn { \math_bcsym_DeA:Nn }
174 \cs_set_protected:Npn \math_dcsym_Acc:Nn { \math_bcsym_Acc:Nn }
175 \cs_set_protected:Npn \math_dcsym_Ope:Nn { \math_bcsym_Ope:Nn }
176 \cs_set_protected:Npn \math_dcsym_Clo:Nn { \math_bcsym_Clo:Nn }
177 \cs_set_protected:Npn \math_dcsym_Inn:Nn { \math_bcsym_Inn:Nn }
178 \cs_set:Npn \math_setup_inline_symbols:
179 {
180 \cs_set_eq:NN \math_sym_Ord:Nn \math_isym_Ord:Nn
181 \cs_set_eq:NN \math_sym_Var:Nn \math_isym_Var:Nn
182 \cs_set_eq:NN \math_sym_Bin:Nn \math_isym_Bin:Nn
183 \cs_set_eq:NN \math_sym_Rel:Nn \math_isym_Rel:Nn
184 \cs_set_eq:NN \math_sym_Pun:Nn \math_isym_Pun:Nn
185 \cs_set_eq:NN \math_sym_COs:Nn \math_isym_COs:Nn
186 \cs_set_eq:NN \math_sym_COi:Nn \math_isym_COi:Nn
187 \cs_set_eq:NN \math_sym_DeL:Nn \math_isym_DeL:Nn
188 \cs_set_eq:NN \math_sym_DeR:Nn \math_isym_DeR:Nn
189 \cs_set_eq:NN \math_sym_DeB:Nn \math_isym_DeL:Nn
190 \cs_set_eq:NN \math_sym_DeA:Nn \math_isym_DeA:Nn
191 \cs_set_eq:NN \math_sym_Rad:Nn \math_isym_Rad:Nn
192 \cs_set_eq:NN \math_sym_Acc:Nn \math_isym_DeL:Nn
193 \cs_set_eq:NN \math_csym_Ord:Nn \math_icsym_Ord:Nn
194 \cs_set_eq:NN \math_csym_Var:Nn \math_icsym_Var:Nn
195 \cs_set_eq:NN \math_csym_Bin:Nn \math_icsym_Bin:Nn
196 \cs_set_eq:NN \math_csym_Rel:Nn \math_icsym_Rel:Nn
197 \cs_set_eq:NN \math_csym_Pun:Nn \math_icsym_Pun:Nn
198 \cs_set_eq:NN \math_csym_COi:Nn \math_icsym_COi:Nn
199 \cs_set_eq:NN \math_csym_COs:Nn \math_icsym_COs:Nn
200 \cs_set_eq:NN \math_csym_DeL:Nn \math_icsym_DeL:Nn
201 \cs_set_eq:NN \math_csym_DeR:Nn \math_icsym_DeR:Nn
202 \cs_set_eq:NN \math_csym_DeB:Nn \math_icsym_DeB:Nn
203 \cs_set_eq:NN \math_csym_DeA:Nn \math_icsym_DeA:Nn
204 \cs_set_eq:NN \math_csym_Acc:Nn \math_icsym_Acc:Nn
205 \cs_set_eq:NN \math_csym_Ope:Nn \math_icsym_Ope:Nn
206 \cs_set_eq:NN \math_csym_Clo:Nn \math_icsym_Clo:Nn
207 \cs_set_eq:NN \math_csym_Inn:Nn \math_icsym_Inn:Nn
208 }
209
210 \cs_set:Npn \math_setup_display_symbols:
211 {
212 \cs_set_eq:NN \math_sym_Ord:Nn \math_dsym_Ord:Nn
213 \cs_set_eq:NN \math_sym_Var:Nn \math_dsym_Var:Nn
214 \cs_set_eq:NN \math_sym_Bin:Nn \math_dsym_Bin:Nn
215 \cs_set_eq:NN \math_sym_Rel:Nn \math_dsym_Rel:Nn
216 \cs_set_eq:NN \math_sym_Pun:Nn \math_dsym_Pun:Nn
217 \cs_set_eq:NN \math_sym_COs:Nn \math_dsym_COs:Nn
218 \cs_set_eq:NN \math_sym_COi:Nn \math_dsym_COi:Nn
219 \cs_set_eq:NN \math_sym_DeL:Nn \math_dsym_DeL:Nn
220 \cs_set_eq:NN \math_sym_DeR:Nn \math_dsym_DeR:Nn
221 \cs_set_eq:NN \math_sym_DeB:Nn \math_dsym_DeL:Nn
222 \cs_set_eq:NN \math_sym_DeA:Nn \math_dsym_DeA:Nn
223 \cs_set_eq:NN \math_sym_Rad:Nn \math_dsym_Rad:Nn
224 \cs_set_eq:NN \math_sym_Acc:Nn \math_dsym_DeL:Nn
225 \cs_set_eq:NN \math_csym_Ord:Nn \math_dcsym_Ord:Nn
226 \cs_set_eq:NN \math_csym_Var:Nn \math_dcsym_Var:Nn
227 \cs_set_eq:NN \math_csym_Bin:Nn \math_dcsym_Bin:Nn
228 \cs_set_eq:NN \math_csym_Rel:Nn \math_dcsym_Rel:Nn
229 \cs_set_eq:NN \math_csym_Pun:Nn \math_dcsym_Pun:Nn
230 \cs_set_eq:NN \math_csym_COi:Nn \math_dcsym_COi:Nn
231 \cs_set_eq:NN \math_csym_COs:Nn \math_dcsym_COs:Nn
232 \cs_set_eq:NN \math_csym_DeL:Nn \math_dcsym_DeL:Nn
233 \cs_set_eq:NN \math_csym_DeR:Nn \math_dcsym_DeR:Nn
234 \cs_set_eq:NN \math_csym_DeB:Nn \math_dcsym_DeB:Nn
235 \cs_set_eq:NN \math_csym_DeA:Nn \math_dcsym_DeA:Nn
236 \cs_set_eq:NN \math_csym_Acc:Nn \math_dcsym_Acc:Nn
237 \cs_set_eq:NN \math_csym_Ope:Nn \math_dcsym_Ope:Nn
238 \cs_set_eq:NN \math_csym_Clo:Nn \math_dcsym_Clo:Nn
239 \cs_set_eq:NN \math_csym_Inn:Nn \math_dcsym_Inn:Nn
240 }
241 \math_setup_inline_symbols:
242 \edef\tmp{\catcode\z@=\the\catcode\z@}
243 \catcode\z@=\active
244 \def\DeclareFlexSymbol#1#2#3#4{%
245 \begingroup
246 \cs_set_protected:Npx\@tempb{
247 \exp_not:N\@sym\exp_not:N#1\exp_not:c{math_sym_#2:Nn}
248 \exp_not:c{mg@#3}{#4}
249 }
250 \ifcat\exp_not:N#1\relax
251 \sym@global\let#1\@tempb
252 \else
253 \sym@global\mathcode`#1="8000\relax
254 \lccode\z@=`#1\relax
255 \lowercase{\sym@global\let^^@\@tempb}% zero char
256 \fi
257 \endgroup
258 }
259 \tmp % restore catcode
260 \cs_set:Npn \DeclareFlexDelimiter #1#2#3#4#5#6{
261 \DeclareFlexSymbol{#1}{#2}{#3}{#4}
262 \cs_gset:cpx{sd@\use:c{mg@#3}#4}{\exp_not:c{mg@#5}{#6}}
263 }
264
265 \def\DeclareFlexCompoundSymbol#1#2#3{%
266 \exp_args:NNo \DeclareRobustCommand#1{\csname math_csym_#2:Nn\endcsname#1{#3}}%
267 \sym@global\let#1#1\relax
268 }
269 \DeclareRobustCommand\textchar{\text@char\textfont}
270 \DeclareRobustCommand\scriptchar{\text@char\scriptfont}%
271 \def\text@char@sym#1#2#3#4{% #3=fam, #4=slot
272 \begingroup
273 \cs_set_eq:NN \@sym \prg_do_nothing: % defense against infinite loops
274 \the\text@script@char#3%
275 \char"#4\endgroup
276 }
277 \edef\tmp{\catcode\z@=\the\catcode\z@}
278 \catcode\z@=\active
279 \def\text@char#1#2{\begingroup
280 \check@mathfonts
281 \cs_set_eq:NN \text@script@char #1
282 \cs_set_eq:NN \@sym \text@char@sym
283 \cs_set_eq:NN \@symtype \use_ii:nn
284 \cs_set_eq:NN \OrdSymbol \use:n
285 \cs_set_eq:NN \ifmmode \iftrue
286 \everymath{$\use_none:n}%$
287 \def\mkern{\muskip\z@}
288 \cs_set_eq:NN\mskip\mkern
289 \ifcat\relax\noexpand#2% true if #2 is a cs.
290 #2%
291 \else
292 \lccode\z@=\expandafter`\string#2\relax
293 \lowercase{^^@}%
294 \fi
295 \endgroup
296 }
297 \tmp % restore catcode
298 \providecommand\textprime{}
299 \DeclareRobustCommand\textprime{\leavevmode
300 \raise.8ex\hbox{\text@char\scriptfont\prime}%
301 }
302 \@ifundefined{resetMathstrut@}{}{%
303 \def\resetMathstrut@{%
304 \setbox\z@\hbox{\textchar\vert}%
305 \ht\Mathstrutbox@\ht\z@ \dp\Mathstrutbox@\dp\z@
306 }%
307 }
308 \@ifundefined{rightarrowfill@}{}{%
309 \def\rightarrowfill@#1{\m@th\setboxz@h{$#1\relbar$}\ht\z@\z@
310 $#1\copy\z@\mkern-7mu\cleaders
311 \hbox{$#1\mkern-2mu\box\z@\mkern-2mu$}\hfill
312 \mkern-6mu\OrdSymbol{\rightarrow}$}
313 \def\leftarrowfill@#1{\m@th\setboxz@h{$#1\relbar$}\ht\z@\z@
314 $#1\OrdSymbol{\leftarrow}\mkern-6mu\cleaders
315 \hbox{$#1\mkern-2mu\copy\z@\mkern-2mu$}\hfill
316 \mkern-7mu\box\z@$}
317 \def\leftrightarrowfill@#1{\m@th\setboxz@h{$#1\relbar$}\ht\z@\z@
318 $#1\OrdSymbol{\leftarrow}\mkern-6mu\cleaders
319 \hbox{$#1\mkern-2mu\box\z@\mkern-2mu$}\hfill
320 \mkern-6mu\OrdSymbol{\rightarrow}$}
321 }
322 \def\binrel@sym#1#2#3#4{%
323 \xdef\binrel@@##1{%
324 \ifx\math_sym_Ord:Nn #2 \math_csym_Ord:Nn
325 \else\ifx\math_sym_Var:Nn#2 \math_csym_Var:Nn
326 \else\ifx\math_sym_COs:Nn#2 \math_csym_COs:Nn
327 \else\ifx\math_sym_COi:Nn#2 \math_csym_COi:Nn
328 \else\ifx\math_sym_Bin:Nn#2 \math_csym_Bin:Nn
329 \else\ifx\math_sym_Rel:Nn#2 \math_csym_Rel:Nn
330 \else\ifx\math_sym_Pun:Nn#2 \math_csym_Pun:Nn
331 \else\exp_not:N\@symErr \fi\fi\fi\fi\fi\fi\fi
332 ?{\exp_not:N\OrdSymbol{##1}}}%
333 }
334
335 \def\binrel@a{%
336 \def\math_sym_Ord:Nn##1##2{\gdef\binrel@@####1{\math_sym_Ord:Nn##1{\OrdSymbol{####1}}}}%
337 \def\math_sym_Var:Nn##1##2{\gdef\binrel@@####1{\math_sym_Var:Nn##1{\OrdSymbol{####1}}}}%
338 \def\math_sym_COs:Nn##1##2{\gdef\binrel@@####1{\math_sym_COs:Nn##1{\OrdSymbol{####1}}}}%
339 \def\math_sym_COi:Nn##1##2{\gdef\binrel@@####1{\math_sym_COi:Nn##1{\OrdSymbol{####1}}}}%
340 \def\math_sym_Bin:Nn##1##2{\gdef\binrel@@####1{\math_sym_Bin:Nn##1{\OrdSymbol{####1}}}}%
341 \def\math_sym_Rel:Nn##1##2{\gdef\binrel@@####1{\math_sym_Rel:Nn##1{\OrdSymbol{####1}}}}%
342 \def\math_sym_Pun:Nn##1##2{\gdef\binrel@@####1{\math_sym_Pun:Nn##1{\OrdSymbol{####1}}}}%
343 }
344 \def\binrel@#1{%
345 \setbox\z@\hbox{$%
346 \let\mathchoice\@gobblethree
347 \let\@sym\binrel@sym \binrel@a
348 #1$}%
349 }
350 \def\@symextension{sym}
351 \newcommand\usesymbols[1]{%
352 \clist_map_variable:nNn{#1}\@tempb{%
353 \exp_args:No\@onefilewithoptions{\@tempb}[][]\@symextension
354 }%
355 }
356 \newcommand\ProvidesSymbols[1]{\ProvidesFile{#1.sym}}
357 \DeclareRobustCommand{\not}[1]{\math_csym_Rel:Nn\not{\OrdSymbol{\notRel#1}}}
358 \DeclareRobustCommand{\OrdSymbol}[1]{%
359 \begingroup\mathchars@reset#1\endgroup
360 }
361 \def\mathchars@reset{\let\@sym\@sym@ord \let\@symtype\@symtype@ord
362 \let\OrdSymbol\relax}
363 \def\@symtype@ord#1#{}% a strange sort of \@gobble
364 \def\@sym@ord#1#2{\exp_after:wN\@sym@ord@a\string#2\@nil}%
365 \begingroup
366 \lccode`\.=`\_ \lowercase{\endgroup
367 \def\@sym@ord@a#1.#2.}#3#4\@nil#5#6{%
368 \if D#3
369 %\math_ord_delim_aux:Nn #5{#6}
370 \math_sd_del_aux:Nnn 0 #5{#6}% check if this works!
371 \else
372 \math_char:NNn 0 #5{#6}
373 \fi
374 }
375 \cs_set:Nn \math_ord_delim_aux:Nn {
376 \math_sd_aux:nn { \math_char:NNn 0 } {#1{#2}}
377 }
378 \@ifpackageloaded{amsmath}{%
379 }{}
380 \AtBeginDocument{%
381 \ifx\Umathcode\@undefined
382 \gdef\newmcodes@{\mathcode`\'39\mathcode`\*42\mathcode`\."613A%
383 \ifnum\mathcode`\-=45 \else
384 \ifnum\mathcode`\-=32768\space
385 \else
386 \mathchardef\std@minus\mathcode`\-\relax
387 \fi
388 \fi
389 \mathcode`\-45\mathcode`\/47\mathcode`\:"603A\relax}
390 \else
391 \gdef\newmcodes@{\mathcode`\'39\mathcode`\*42\mathcode`\."613A%
392 \ifnum\Umathcodenum`\-=45 \else
393 \ifnum\Umathcodenum`\-=16777216\space
394 \else
395 \Umathcharnumdef\std@minus\Umathcodenum`\-\relax
396 \fi
397 \fi
398 \mathcode`\-45\mathcode`\/47\mathcode`\:"603A\relax}
399 \fi
400 }
401 \DeclareOption{mathstyleoff}{%
402 \PassOptionsToPackage{noactivechars}{mathstyle}}
403 \DeclareOption{cmbase}{\usesymbols{cmbase}}
404 \DeclareOption{mathpazo}{\usesymbols{mathpazo}}
405 \DeclareOption{mathptmx}{\usesymbols{mathptmx}}
406 \ExecuteOptions{cmbase}
407 \ProcessOptions\relax
408 \renewcommand{\lnot}{\neg}
409 \renewcommand{\land}{\wedge}
410 \renewcommand{\lor}{\vee}
411 \renewcommand{\le}{\leq}
412 \renewcommand{\ge}{\geq}
413 \renewcommand{\ne}{\neq}
414 \renewcommand{\owns}{\ni}
415 \renewcommand{\gets}{\leftarrow}
416 \renewcommand{\to}{\rightarrow}
417 \renewcommand{\|}{\Vert}
418 \RequirePackage{mathstyle}
419 \endinput
420 %%
421 %% End of file `flexisym.sty'.