| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% Copyright (C) 1997-2003 by Michael J. Downes |
| 4 |
% Copyright (C) 2007-2008 by Morten Hoegholm |
| 5 |
% Copyright (C) 2007-2014 by Lars Madsen |
| 6 |
% Copyright (C) 2007-2020 by Will Robertson |
| 7 |
% Copyright (C) 2010-2017 by Joseph Wright |
| 8 |
% Copyright (C) 2020-2020 by Ulrike Fischer |
| 9 |
% |
| 10 |
% This work may be distributed and/or modified under the |
| 11 |
% conditions of the LaTeX Project Public License, either |
| 12 |
% version 1.3 of this license or (at your option) any later |
| 13 |
% version. The latest version of this license is in |
| 14 |
% http://www.latex-project.org/lppl.txt |
| 15 |
% and version 1.3 or later is part of all distributions of |
| 16 |
% LaTeX version 2005/12/01 or later. |
| 17 |
% |
| 18 |
% This work has the LPPL maintenance status "maintained". |
| 19 |
% |
| 20 |
% This Current Maintainer of this work is Will Robertson. |
| 21 |
% |
| 22 |
% This work consists of the main source file flexisym.dtx |
| 23 |
% and the derived files |
| 24 |
% flexisym.sty, flexisym.pdf, flexisym.ins, |
| 25 |
% cmbase.sym, mathpazo.sym, mathptmx.sym, msabm.sym. |
| 26 |
% |
| 27 |
% Distribution: |
| 28 |
% CTAN:macros/latex/contrib/mh/flexisym.dtx |
| 29 |
% CTAN:macros/latex/contrib/mh/flexisym.pdf |
| 30 |
% |
| 31 |
% Unpacking: |
| 32 |
% tex breqnbundle.ins |
| 33 |
% |
| 34 |
% Documentation: |
| 35 |
% The class ltxdoc loads the configuration file ltxdoc.cfg |
| 36 |
% if available. Here you can specify further options, e.g. |
| 37 |
% use A4 as paper format: |
| 38 |
% \PassOptionsToClass{a4paper}{article} |
| 39 |
% |
| 40 |
% Programm calls to get the documentation (example): |
| 41 |
% pdflatex flexisym.dtx |
| 42 |
% makeindex -s gind.ist flexisym.idx |
| 43 |
% pdflatex flexisym.dtx |
| 44 |
% makeindex -s gind.ist flexisym.idx |
| 45 |
% pdflatex flexisym.dtx |
| 46 |
% |
| 47 |
% Installation: |
| 48 |
% TDS:tex/latex/breqn/flexisym.sty |
| 49 |
% TDS:tex/latex/breqn/cmbase.sym |
| 50 |
% TDS:tex/latex/breqn/mathpazo.sym |
| 51 |
% TDS:tex/latex/breqn/mathptmx.sym |
| 52 |
% TDS:tex/latex/breqn/msabm.sym |
| 53 |
% TDS:doc/latex/breqn/flexisym.pdf |
| 54 |
% TDS:source/latex/breqn/flexisym.dtx |
| 55 |
% |
| 56 |
%<*driver> |
| 57 |
\NeedsTeXFormat{LaTeX2e} |
| 58 |
\documentclass{ltxdoc} |
| 59 |
\CodelineIndex |
| 60 |
\EnableCrossrefs |
| 61 |
\setcounter{IndexColumns}{2} |
| 62 |
%\providecommand*\meta[1]{\ensuremath\langle\textit{#1}\ensuremath\rangle} |
| 63 |
\providecommand*\pkg[1]{\textsf{#1}} |
| 64 |
\providecommand*\cls[1]{\textsf{#1}} |
| 65 |
\providecommand*\opt[1]{\texttt{#1}} |
| 66 |
\providecommand*\env[1]{\texttt{#1}} |
| 67 |
\providecommand*\fn[1]{\texttt{#1}} |
| 68 |
\makeatletter |
| 69 |
\providecommand{\AmS}{{\protect\AmSfont |
| 70 |
A\kern-.1667em\lower.5ex\hbox{M}\kern-.125emS}} |
| 71 |
\providecommand{\AmSfont}{% |
| 72 |
\usefont{OMS}{cmsy}{\if\expandafter\@car\f@series\@nil bb\else m\fi}{n}} |
| 73 |
\makeatother |
| 74 |
\newenvironment{aside}{\begin{quote}\bfseries}{\end{quote}} |
| 75 |
\begin{document} |
| 76 |
\DocInput{flexisym.dtx} |
| 77 |
\end{document} |
| 78 |
%</driver> |
| 79 |
% \fi |
| 80 |
% |
| 81 |
% \title{The \textsf{flexisym} package} |
| 82 |
% \def\fileversion{0.98l} |
| 83 |
% \def\filedate{2021/10/28} |
| 84 |
% \date{\filedate\space\fileversion} |
| 85 |
% \author{Authors: Michael J. Downes, Morten H\o gholm\\ Maintained by Morten H\o gholm, Will Robertson\\ Feedback: \texttt{https://github.com/wspr/breqn/issues}} |
| 86 |
% |
| 87 |
% \maketitle |
| 88 |
% |
| 89 |
% \part*{User's guide} |
| 90 |
% |
| 91 |
% For now, the user's guide is in breqn. |
| 92 |
% |
| 93 |
% \StopEventually{} |
| 94 |
% \part*{Implementation} |
| 95 |
% |
| 96 |
% \section{flexisym} |
| 97 |
% |
| 98 |
% \begin{macrocode} |
| 99 |
%<*package> |
| 100 |
\RequirePackage{expl3}[2009/08/05] |
| 101 |
\ProvidesExplPackage{flexisym}{2021/10/28}{0.98l}{Make math characters macros} |
| 102 |
|
| 103 |
\edef\do{% |
| 104 |
\noexpand\AtEndOfPackage{% |
| 105 |
\catcode\number`\"=\number\catcode`\" |
| 106 |
\relax |
| 107 |
}% |
| 108 |
} |
| 109 |
\do \let\do\relax |
| 110 |
\catcode`\"=12 |
| 111 |
\let\@sym\@gobble |
| 112 |
\DeclareOption{robust}{% |
| 113 |
\def\@sym#1{% |
| 114 |
\ifx\protect\@typeset@protect \else\protect#1\exp_after:wN\use_none:nnnn\fi |
| 115 |
}% |
| 116 |
} |
| 117 |
% \end{macrocode} |
| 118 |
% The math groups (mg) here relate to |\textfont|$n$. |
| 119 |
% \begin{macrocode} |
| 120 |
\def\mg@bin{2}% binary operators |
| 121 |
\def\mg@rel{2}% relations |
| 122 |
%%\def\mg@nre{B}% negated relations |
| 123 |
\def\mg@del{3}% delimiters |
| 124 |
%%\def\mg@arr{B}% arrows |
| 125 |
\def\mg@acc{0}% accents |
| 126 |
\def\mg@cop{3}% cumulative operators (sum, int) |
| 127 |
\def\mg@latin{1}% (Latin) letters |
| 128 |
\def\mg@greek{1}% (lowercase) Greek |
| 129 |
\def\mg@Greek{0}% (capital) Greek |
| 130 |
%%\def\mg@bflatin{4}% bold upright Latin letters ? |
| 131 |
%%\def\mg@Bbb{B}% blackboard bold |
| 132 |
\def\mg@cal{2}% script/calligraphic |
| 133 |
%%\def\mg@frak{5}% Fraktur letters |
| 134 |
\def\mg@digit{0}% decimal digits % 1 = oldstyle, 0 = capital |
| 135 |
% \end{macrocode} |
| 136 |
% This is how we insert mathchars. The command has three arguments: |
| 137 |
% class, fam and slot postion and so it is always given as |
| 138 |
% hexadecimal. This way of separating things should make it easier |
| 139 |
% to get this to work with XeTeX et al.\ which have many more slot |
| 140 |
% positions |
| 141 |
% \begin{macrocode} |
| 142 |
\cs_set_protected:Nn \math_char:NNn { |
| 143 |
\tex_mathchar:D \__int_eval:w " #1#2#3 \__int_eval_end: |
| 144 |
} |
| 145 |
% \end{macrocode} |
| 146 |
% Delimiters and radicals are similar except here we have both small |
| 147 |
% and large variant. Radicals have no class. |
| 148 |
% \begin{macrocode} |
| 149 |
\cs_set_protected:Nn \math_delimiter:NNnNn { |
| 150 |
\tex_delimiter:D \__int_eval:w " #1#2#3#4#5 \__int_eval_end: |
| 151 |
} |
| 152 |
\cs_set_protected:Nn \math_radical:NnNn { |
| 153 |
\tex_radical:D \__int_eval:w " #1#2#3#4 \__int_eval_end: |
| 154 |
} |
| 155 |
\cs_set_protected:Nn \math_accent:NNnn { |
| 156 |
\tex_mathaccent:D \__int_eval:w " #1 #2 #3 \__int_eval_end: {#4} |
| 157 |
} |
| 158 |
|
| 159 |
\let\sumlimits\displaylimits |
| 160 |
\let\intlimits\nolimits |
| 161 |
\let\namelimits\displaylimits |
| 162 |
% \end{macrocode} |
| 163 |
% \TeX\ defines eight types of atoms. |
| 164 |
% \begin{enumerate}\addtocounter{enumi}{-1} |
| 165 |
% \item Ordinary |
| 166 |
% \item Operators |
| 167 |
% \item Binary |
| 168 |
% \item Relation |
| 169 |
% \item Open |
| 170 |
% \item Close |
| 171 |
% \item Punctuation |
| 172 |
% \item Inner |
| 173 |
% \end{enumerate} |
| 174 |
% \TeX\ defines eight math classes. |
| 175 |
% \begin{enumerate}\addtocounter{enumi}{-1} |
| 176 |
% \item Ordinary |
| 177 |
% \item Operators |
| 178 |
% \item Binary |
| 179 |
% \item Relation |
| 180 |
% \item Open |
| 181 |
% \item Close |
| 182 |
% \item Punctuation |
| 183 |
% \item Variable family |
| 184 |
% \end{enumerate} |
| 185 |
% flexisym/breqn extends this to types of classes. |
| 186 |
% \begin{enumerate}\addtocounter{enumi}{-1} |
| 187 |
% \item Ordinary: (Ord), Bidirectional delimiters (DeB), Radicals |
| 188 |
% (Rad), Accented items (Acc) |
| 189 |
% \item Operators: Cumulative Operators sum-like (COs), Cumulative |
| 190 |
% Operators integral-like (COi) |
| 191 |
% \item Binary: (Bin) |
| 192 |
% \item Relation: (Rel), Arrow delimiters (DeA) |
| 193 |
% \item Open: (DeL) |
| 194 |
% \item Close (DeR) |
| 195 |
% \item Punctuation: (Pun) |
| 196 |
% \item Variable family: (Var) |
| 197 |
% \end{enumerate} |
| 198 |
% |
| 199 |
% Here's an overview of what we are about to do. Math chars of each |
| 200 |
% type as defined by us need a basic operation for inserting it. We |
| 201 |
% will call that function |\math_bsym_|\meta{type}|:Nn|. Next there |
| 202 |
% are compund symbols for each type which we name |
| 203 |
% |\math_bcsym_|\meta{type}|:Nn|. Also, there is inline mode and |
| 204 |
% display mode which are different. We will call them for |
| 205 |
% |\math_isym_|\meta{type}|:Nn| |\math_icsym_|\meta{type}|:Nn| for |
| 206 |
% inline mode and |\math_dsym_|\meta{type}|:Nn| and |
| 207 |
% |\math_dcsym_|\meta{type}|:Nn|. The code uses the terms |
| 208 |
% |\math_sym_|\meta{type}|:Nn| and |\math_csym_|\meta{type}|:Nn| for |
| 209 |
% the current meaning of things. First up the basic definitions. |#1| |
| 210 |
% is the math group it is from and |#2| is the slot position. |
| 211 |
% \begin{macrocode} |
| 212 |
\cs_new:Npn \math_bsym_Ord:Nn {\math_char:NNn 0 }% \m@Ord |
| 213 |
\cs_new:Npn \math_bsym_Var:Nn {\math_char:NNn 7 }% \m@Var |
| 214 |
\cs_new:Npn \math_bsym_Bin:Nn {\math_char:NNn 2 }% \m@Bin |
| 215 |
\cs_new:Npn \math_bsym_Rel:Nn {\math_char:NNn 3 }% \m@Bin |
| 216 |
\cs_new:Npn \math_bsym_Pun:Nn {\math_char:NNn 6 }% \m@Pun |
| 217 |
\cs_new:Nn \math_bsym_COs:Nn { \math_char:NNn 1 #1 {#2} \sumlimits }% \m@COs |
| 218 |
\cs_new:Nn \math_bsym_COi:Nn { \math_char:NNn 1 #1 {#2} \intlimits }% \m@COi |
| 219 |
\cs_new:Nn \math_bsym_DeL:Nn { \math_sd_del_aux:Nnn 4 #1{#2} }% \m@DeL |
| 220 |
\cs_new:Nn \math_bsym_DeR:Nn { \math_sd_del_aux:Nnn 5 #1{#2} }% \m@DeR |
| 221 |
\cs_new:Nn \math_bsym_DeB:Nn { \math_sd_del_aux:Nnn 0 #1{#2} }% \m@DeB |
| 222 |
\cs_new:Nn \math_bsym_DeA:Nn { \math_sd_del_aux:Nnn 3 #1{#2} }% \m@DeA |
| 223 |
\cs_new:Nn \math_bsym_Rad:Nn { \math_sd_rad_aux:Nn #1{#2} }% \m@Rad |
| 224 |
\cs_new:Npn \math_bsym_Acc:Nn #1#2#3#4 {\math_accent:NNnn #1#2{#3}{#4}}% name is wrong |
| 225 |
|
| 226 |
% \end{macrocode} |
| 227 |
% Next is somewhat complicated internally. The way it is done is that |
| 228 |
% delimiters and radicals need information about the smallest version |
| 229 |
% of the symbol. If this smallest delimiter (SD) is defined, then use |
| 230 |
% it. We have these functions to help us return the number. Extract |
| 231 |
% the numbers to use and stick a function in front of it. |
| 232 |
% |
| 233 |
% Code changed because now we require the smallest delimiter to be |
| 234 |
% defined (it may be the same, no problem in that). So the two |
| 235 |
% arguments present in |\math_bsym_DeL:Nn| are the location of |
| 236 |
% extensible version (where the font will do the rest for us |
| 237 |
% automatically). For each delimiter, a pointer is defined using the |
| 238 |
% extensible characters family and slot as name and value equal to |
| 239 |
% family and position of the smallest version. For |(| in standard |
| 240 |
% \LaTeX\ this is |{del}{00}| and |{OT1}{28}| respectively. Hence, |
| 241 |
% |\math_bsym_DeL:Nn \mg@del {00}| must expand to |
| 242 |
% |\math_delimiter:NNnNn 4 \mg@OT1 {28}\mg@del{00}|. So first expand |
| 243 |
% away to get to the smallest version. Then call next function which |
| 244 |
% shuffles the arguments around. |
| 245 |
% \begin{macrocode} |
| 246 |
\cs_set:Npn \math_sd_del_aux:Nnn #1#2#3{ |
| 247 |
\exp_args:Nf \math_sd_del_auxi:nN {\use:c{sd@#2#3}} #1 #2{#3} |
| 248 |
} |
| 249 |
\cs_set:Npn \math_sd_del_auxi:nN #1#2{ \math_delimiter:NNnNn #2 #1 } |
| 250 |
% \end{macrocode} |
| 251 |
% Same for radicals. |
| 252 |
% \begin{macrocode} |
| 253 |
\cs_set:Npn \math_sd_rad_aux:Nn #1#2{ |
| 254 |
\exp_args:Nf \math_sd_rad_auxi:n {\use:c{sd@#1#2}} #1 {#2} |
| 255 |
} |
| 256 |
\cs_set:Npn \math_sd_rad_auxi:n #1{ \math_radical:NnNn #1 } |
| 257 |
|
| 258 |
|
| 259 |
% \cs_set:Npn \math_sd_aux:nn #1#2 { |
| 260 |
% %\exp_args:Nnf \use:nn { #1} { \math_sd_auxi:Nn #2 } |
| 261 |
% \exp_args:Nnf \use:nn { #1} { \use:c{sd@\use:nn#2} } |
| 262 |
% } |
| 263 |
% \cs_set:Npn \math_sd_auxi:Nn #1#2 { |
| 264 |
% \cs_if_free:cTF {sd@#1#2} |
| 265 |
% { #1{#2} } |
| 266 |
% { \use:c{sd@#1#2} } |
| 267 |
% } |
| 268 |
% \end{macrocode} |
| 269 |
% compound symbols here |
| 270 |
% \begin{macrocode} |
| 271 |
\cs_set_protected:Npn \math_bcsym_Ord:Nn #1#2 { \@symtype \mathord { \OrdSymbol {#2} } }%\@symOrd |
| 272 |
\cs_set_protected:Npn \math_bcsym_Var:Nn #1#2 { \@symtype \mathord { \OrdSymbol {#2} } }%\@symVar |
| 273 |
\cs_set_protected:Npn \math_bcsym_Bin:Nn #1#2 { \@symtype \mathbin { \OrdSymbol {#2} } }%\@symBin |
| 274 |
\cs_set_protected:Npn \math_bcsym_Rel:Nn #1#2 { \@symtype \mathrel { \OrdSymbol {#2} } }%\@symRel |
| 275 |
\cs_set_protected:Npn \math_bcsym_Pun:Nn #1#2 { \@symtype \mathpunct { \OrdSymbol {#2} } }%\@symPun |
| 276 |
\cs_set_protected:Npn \math_bcsym_COi:Nn #1#2 { \@symtype \mathop { \OrdSymbol {#2} \intlimits } }%\@symCOi |
| 277 |
\cs_set_protected:Npn \math_bcsym_COs:Nn #1#2 { \@symtype \mathop { \OrdSymbol {#2} \sumlimits } }%\@symCOs |
| 278 |
\cs_set_protected:Npn \math_bcsym_DeL:Nn #1#2 { \@symtype \mathopen { \OrdSymbol {#2} } }%\@symDeL |
| 279 |
\cs_set_protected:Npn \math_bcsym_DeR:Nn #1#2 { \@symtype \mathclose { \OrdSymbol {#2} } }%\@symDeR |
| 280 |
\cs_set_protected:Npn \math_bcsym_DeB:Nn #1#2 { \@symtype \mathord { \OrdSymbol {#2} } }%\@symDeB |
| 281 |
\cs_set_protected:Npn \math_bcsym_DeA:Nn #1#2 { \@symtype \mathrel { \OrdSymbol {#2} } }%\@symDeA |
| 282 |
\cs_set_protected:Npn \math_bcsym_Acc:Nn {\@sym}%\@symAcc FIX! |
| 283 |
% These three? |
| 284 |
\cs_set_protected:Npn \math_bcsym_Ope:Nn #1#2{\@symtype\mathopen{\OrdSymbol{#2}}}%\@symVar |
| 285 |
\cs_set_protected:Npn \math_bcsym_Clo:Nn #1#2{\@symtype\mathclose{\OrdSymbol{#2}}}%\@symVar |
| 286 |
\cs_set_protected:Npn \math_bcsym_Inn:Nn #1#2{\@symtype\mathinner{\OrdSymbol{#2}}}%\@symVar |
| 287 |
|
| 288 |
\let\@symtype\@firstofone |
| 289 |
\let\sym@global\global |
| 290 |
% \end{macrocode} |
| 291 |
% |
| 292 |
% |
| 293 |
% |
| 294 |
% |
| 295 |
% The inline variants, using the basic operations. Currently we do not |
| 296 |
% do anything to inline math. |
| 297 |
% \begin{macrocode} |
| 298 |
\cs_new:Npn \math_isym_Ord:Nn { \math_bsym_Ord:Nn }% \m@Ord |
| 299 |
\cs_new:Npn \math_isym_Var:Nn { \math_bsym_Var:Nn }% \m@Var |
| 300 |
\cs_new:Npn \math_isym_Bin:Nn { \math_bsym_Bin:Nn }% \m@Bin |
| 301 |
\cs_new:Npn \math_isym_Rel:Nn { \math_bsym_Rel:Nn }% \m@Bin |
| 302 |
\cs_new:Npn \math_isym_Pun:Nn { \math_bsym_Pun:Nn }% \m@Pun |
| 303 |
\cs_new:Npn \math_isym_COs:Nn { \math_bsym_COs:Nn }% \m@COs |
| 304 |
\cs_new:Npn \math_isym_COi:Nn { \math_bsym_COi:Nn }% \m@COi |
| 305 |
\cs_new:Npn \math_isym_DeL:Nn { \math_bsym_DeL:Nn }% \m@DeL |
| 306 |
\cs_new:Npn \math_isym_DeR:Nn { \math_bsym_DeR:Nn }% \m@DeR |
| 307 |
\cs_new:Npn \math_isym_DeB:Nn { \math_bsym_DeB:Nn }% \m@DeB |
| 308 |
\cs_new:Npn \math_isym_DeA:Nn { \math_bsym_DeA:Nn }% \m@DeA |
| 309 |
\cs_new:Npn \math_isym_Rad:Nn { \math_bsym_Rad:Nn }% \m@Rad |
| 310 |
\cs_new:Npn \math_isym_Acc:Nn { \math_bsym_DeL:Nn }% name is wrong |
| 311 |
% inline compound |
| 312 |
\cs_set_protected:Npn \math_icsym_Ord:Nn { \math_bcsym_Ord:Nn } |
| 313 |
\cs_set_protected:Npn \math_icsym_Var:Nn { \math_bcsym_Var:Nn } |
| 314 |
\cs_set_protected:Npn \math_icsym_Bin:Nn { \math_bcsym_Bin:Nn } |
| 315 |
\cs_set_protected:Npn \math_icsym_Rel:Nn { \math_bcsym_Rel:Nn } |
| 316 |
\cs_set_protected:Npn \math_icsym_Pun:Nn { \math_bcsym_Pun:Nn } |
| 317 |
\cs_set_protected:Npn \math_icsym_COi:Nn { \math_bcsym_COi:Nn } |
| 318 |
\cs_set_protected:Npn \math_icsym_COs:Nn { \math_bcsym_COs:Nn } |
| 319 |
\cs_set_protected:Npn \math_icsym_DeL:Nn { \math_bcsym_DeL:Nn } |
| 320 |
\cs_set_protected:Npn \math_icsym_DeR:Nn { \math_bcsym_DeR:Nn } |
| 321 |
\cs_set_protected:Npn \math_icsym_DeB:Nn { \math_bcsym_DeB:Nn } |
| 322 |
\cs_set_protected:Npn \math_icsym_DeA:Nn { \math_bcsym_DeA:Nn } |
| 323 |
\cs_set_protected:Npn \math_icsym_Acc:Nn { \math_bcsym_Acc:Nn } |
| 324 |
\cs_set_protected:Npn \math_icsym_Ope:Nn { \math_bcsym_Ope:Nn } |
| 325 |
\cs_set_protected:Npn \math_icsym_Clo:Nn { \math_bcsym_Clo:Nn } |
| 326 |
\cs_set_protected:Npn \math_icsym_Inn:Nn { \math_bcsym_Inn:Nn } |
| 327 |
% \end{macrocode} |
| 328 |
% |
| 329 |
% The display variants, using the basic operations. Currently we do |
| 330 |
% not do anything to inline math. |
| 331 |
% \begin{macrocode} |
| 332 |
\cs_new:Npn \math_dsym_Ord:Nn { \math_bsym_Ord:Nn } |
| 333 |
\cs_new:Npn \math_dsym_Var:Nn { \math_bsym_Var:Nn } |
| 334 |
\cs_new:Npn \math_dsym_Bin:Nn { \math_bsym_Bin:Nn } |
| 335 |
\cs_new:Npn \math_dsym_Rel:Nn { \math_bsym_Rel:Nn } |
| 336 |
\cs_new:Npn \math_dsym_Pun:Nn { \math_bsym_Pun:Nn } |
| 337 |
\cs_new:Npn \math_dsym_COs:Nn { \math_bsym_COs:Nn } |
| 338 |
\cs_new:Npn \math_dsym_COi:Nn { \math_bsym_COi:Nn } |
| 339 |
\cs_new:Npn \math_dsym_DeL:Nn { \math_bsym_DeL:Nn } |
| 340 |
\cs_new:Npn \math_dsym_DeR:Nn { \math_bsym_DeR:Nn } |
| 341 |
\cs_new:Npn \math_dsym_DeB:Nn { \math_bsym_DeB:Nn } |
| 342 |
\cs_new:Npn \math_dsym_DeA:Nn { \math_bsym_DeA:Nn } |
| 343 |
\cs_new:Npn \math_dsym_Rad:Nn { \math_bsym_Rad:Nn } |
| 344 |
\cs_new:Npn \math_dsym_Acc:Nn { \math_bsym_DeL:Nn } |
| 345 |
% inline compound |
| 346 |
\cs_set_protected:Npn \math_dcsym_Ord:Nn { \math_bcsym_Ord:Nn } |
| 347 |
\cs_set_protected:Npn \math_dcsym_Var:Nn { \math_bcsym_Var:Nn } |
| 348 |
\cs_set_protected:Npn \math_dcsym_Bin:Nn { \math_bcsym_Bin:Nn } |
| 349 |
\cs_set_protected:Npn \math_dcsym_Rel:Nn { \math_bcsym_Rel:Nn } |
| 350 |
\cs_set_protected:Npn \math_dcsym_Pun:Nn { \math_bcsym_Pun:Nn } |
| 351 |
\cs_set_protected:Npn \math_dcsym_COi:Nn { \math_bcsym_COi:Nn } |
| 352 |
\cs_set_protected:Npn \math_dcsym_COs:Nn { \math_bcsym_COs:Nn } |
| 353 |
\cs_set_protected:Npn \math_dcsym_DeL:Nn { \math_bcsym_DeL:Nn } |
| 354 |
\cs_set_protected:Npn \math_dcsym_DeR:Nn { \math_bcsym_DeR:Nn } |
| 355 |
\cs_set_protected:Npn \math_dcsym_DeB:Nn { \math_bcsym_DeB:Nn } |
| 356 |
\cs_set_protected:Npn \math_dcsym_DeA:Nn { \math_bcsym_DeA:Nn } |
| 357 |
\cs_set_protected:Npn \math_dcsym_Acc:Nn { \math_bcsym_Acc:Nn } |
| 358 |
\cs_set_protected:Npn \math_dcsym_Ope:Nn { \math_bcsym_Ope:Nn } |
| 359 |
\cs_set_protected:Npn \math_dcsym_Clo:Nn { \math_bcsym_Clo:Nn } |
| 360 |
\cs_set_protected:Npn \math_dcsym_Inn:Nn { \math_bcsym_Inn:Nn } |
| 361 |
% \end{macrocode} |
| 362 |
% Almost ready now! Now just need two commands to initialize these |
| 363 |
% settings. |
| 364 |
% |
| 365 |
% \begin{macrocode} |
| 366 |
\cs_set:Npn \math_setup_inline_symbols: |
| 367 |
{ |
| 368 |
\cs_set_eq:NN \math_sym_Ord:Nn \math_isym_Ord:Nn |
| 369 |
\cs_set_eq:NN \math_sym_Var:Nn \math_isym_Var:Nn |
| 370 |
\cs_set_eq:NN \math_sym_Bin:Nn \math_isym_Bin:Nn |
| 371 |
\cs_set_eq:NN \math_sym_Rel:Nn \math_isym_Rel:Nn |
| 372 |
\cs_set_eq:NN \math_sym_Pun:Nn \math_isym_Pun:Nn |
| 373 |
\cs_set_eq:NN \math_sym_COs:Nn \math_isym_COs:Nn |
| 374 |
\cs_set_eq:NN \math_sym_COi:Nn \math_isym_COi:Nn |
| 375 |
\cs_set_eq:NN \math_sym_DeL:Nn \math_isym_DeL:Nn |
| 376 |
\cs_set_eq:NN \math_sym_DeR:Nn \math_isym_DeR:Nn |
| 377 |
\cs_set_eq:NN \math_sym_DeB:Nn \math_isym_DeL:Nn |
| 378 |
\cs_set_eq:NN \math_sym_DeA:Nn \math_isym_DeA:Nn |
| 379 |
\cs_set_eq:NN \math_sym_Rad:Nn \math_isym_Rad:Nn |
| 380 |
\cs_set_eq:NN \math_sym_Acc:Nn \math_isym_DeL:Nn |
| 381 |
\cs_set_eq:NN \math_csym_Ord:Nn \math_icsym_Ord:Nn |
| 382 |
\cs_set_eq:NN \math_csym_Var:Nn \math_icsym_Var:Nn |
| 383 |
\cs_set_eq:NN \math_csym_Bin:Nn \math_icsym_Bin:Nn |
| 384 |
\cs_set_eq:NN \math_csym_Rel:Nn \math_icsym_Rel:Nn |
| 385 |
\cs_set_eq:NN \math_csym_Pun:Nn \math_icsym_Pun:Nn |
| 386 |
\cs_set_eq:NN \math_csym_COi:Nn \math_icsym_COi:Nn |
| 387 |
\cs_set_eq:NN \math_csym_COs:Nn \math_icsym_COs:Nn |
| 388 |
\cs_set_eq:NN \math_csym_DeL:Nn \math_icsym_DeL:Nn |
| 389 |
\cs_set_eq:NN \math_csym_DeR:Nn \math_icsym_DeR:Nn |
| 390 |
\cs_set_eq:NN \math_csym_DeB:Nn \math_icsym_DeB:Nn |
| 391 |
\cs_set_eq:NN \math_csym_DeA:Nn \math_icsym_DeA:Nn |
| 392 |
\cs_set_eq:NN \math_csym_Acc:Nn \math_icsym_Acc:Nn |
| 393 |
\cs_set_eq:NN \math_csym_Ope:Nn \math_icsym_Ope:Nn |
| 394 |
\cs_set_eq:NN \math_csym_Clo:Nn \math_icsym_Clo:Nn |
| 395 |
\cs_set_eq:NN \math_csym_Inn:Nn \math_icsym_Inn:Nn |
| 396 |
} |
| 397 |
|
| 398 |
\cs_set:Npn \math_setup_display_symbols: |
| 399 |
{ |
| 400 |
\cs_set_eq:NN \math_sym_Ord:Nn \math_dsym_Ord:Nn |
| 401 |
\cs_set_eq:NN \math_sym_Var:Nn \math_dsym_Var:Nn |
| 402 |
\cs_set_eq:NN \math_sym_Bin:Nn \math_dsym_Bin:Nn |
| 403 |
\cs_set_eq:NN \math_sym_Rel:Nn \math_dsym_Rel:Nn |
| 404 |
\cs_set_eq:NN \math_sym_Pun:Nn \math_dsym_Pun:Nn |
| 405 |
\cs_set_eq:NN \math_sym_COs:Nn \math_dsym_COs:Nn |
| 406 |
\cs_set_eq:NN \math_sym_COi:Nn \math_dsym_COi:Nn |
| 407 |
\cs_set_eq:NN \math_sym_DeL:Nn \math_dsym_DeL:Nn |
| 408 |
\cs_set_eq:NN \math_sym_DeR:Nn \math_dsym_DeR:Nn |
| 409 |
\cs_set_eq:NN \math_sym_DeB:Nn \math_dsym_DeL:Nn |
| 410 |
\cs_set_eq:NN \math_sym_DeA:Nn \math_dsym_DeA:Nn |
| 411 |
\cs_set_eq:NN \math_sym_Rad:Nn \math_dsym_Rad:Nn |
| 412 |
\cs_set_eq:NN \math_sym_Acc:Nn \math_dsym_DeL:Nn |
| 413 |
\cs_set_eq:NN \math_csym_Ord:Nn \math_dcsym_Ord:Nn |
| 414 |
\cs_set_eq:NN \math_csym_Var:Nn \math_dcsym_Var:Nn |
| 415 |
\cs_set_eq:NN \math_csym_Bin:Nn \math_dcsym_Bin:Nn |
| 416 |
\cs_set_eq:NN \math_csym_Rel:Nn \math_dcsym_Rel:Nn |
| 417 |
\cs_set_eq:NN \math_csym_Pun:Nn \math_dcsym_Pun:Nn |
| 418 |
\cs_set_eq:NN \math_csym_COi:Nn \math_dcsym_COi:Nn |
| 419 |
\cs_set_eq:NN \math_csym_COs:Nn \math_dcsym_COs:Nn |
| 420 |
\cs_set_eq:NN \math_csym_DeL:Nn \math_dcsym_DeL:Nn |
| 421 |
\cs_set_eq:NN \math_csym_DeR:Nn \math_dcsym_DeR:Nn |
| 422 |
\cs_set_eq:NN \math_csym_DeB:Nn \math_dcsym_DeB:Nn |
| 423 |
\cs_set_eq:NN \math_csym_DeA:Nn \math_dcsym_DeA:Nn |
| 424 |
\cs_set_eq:NN \math_csym_Acc:Nn \math_dcsym_Acc:Nn |
| 425 |
\cs_set_eq:NN \math_csym_Ope:Nn \math_dcsym_Ope:Nn |
| 426 |
\cs_set_eq:NN \math_csym_Clo:Nn \math_dcsym_Clo:Nn |
| 427 |
\cs_set_eq:NN \math_csym_Inn:Nn \math_dcsym_Inn:Nn |
| 428 |
} |
| 429 |
% \end{macrocode} |
| 430 |
% Phew, that was it. |
| 431 |
% |
| 432 |
% Well, almost. We need to set them up for use properly. Should they |
| 433 |
% be added to |\everymath|? Probably, for math within |
| 434 |
% displays. However, this is a lot of extra processing which we could |
| 435 |
% tackle in the display setup. |
| 436 |
% \begin{macrocode} |
| 437 |
\math_setup_inline_symbols: |
| 438 |
% \end{macrocode} |
| 439 |
% |
| 440 |
% Need an active character for a second. Don't rely on |~| being |
| 441 |
% active! |
| 442 |
% \begin{macrocode} |
| 443 |
\edef\tmp{\catcode\z@=\the\catcode\z@} |
| 444 |
\catcode\z@=\active |
| 445 |
\def\DeclareFlexSymbol#1#2#3#4{% |
| 446 |
\begingroup |
| 447 |
\cs_set_protected:Npx\@tempb{ |
| 448 |
\exp_not:N\@sym\exp_not:N#1\exp_not:c{math_sym_#2:Nn} |
| 449 |
\exp_not:c{mg@#3}{#4} |
| 450 |
} |
| 451 |
\ifcat\exp_not:N#1\relax |
| 452 |
\sym@global\let#1\@tempb |
| 453 |
\else |
| 454 |
\sym@global\mathcode`#1="8000\relax |
| 455 |
\lccode\z@=`#1\relax |
| 456 |
\lowercase{\sym@global\let^^@\@tempb}% zero char |
| 457 |
\fi |
| 458 |
\endgroup |
| 459 |
} |
| 460 |
\tmp % restore catcode |
| 461 |
\cs_set:Npn \DeclareFlexDelimiter #1#2#3#4#5#6{ |
| 462 |
\DeclareFlexSymbol{#1}{#2}{#3}{#4} |
| 463 |
\cs_gset:cpx{sd@\use:c{mg@#3}#4}{\exp_not:c{mg@#5}{#6}} |
| 464 |
} |
| 465 |
|
| 466 |
% \end{macrocode} |
| 467 |
% |\DeclareFlexCompoundSymbol{\cdots}{Inn}{\cdotp\cdotp\cdotp}| |
| 468 |
% |\def\@symInn#1#2{\@symtype\mathinner{\OrdSymbol{#2}}}| |
| 469 |
% |\@symtype \mathinner{\OrdSymbol{\cdtop\cdotp\cdotp}}| |
| 470 |
% \begin{macrocode} |
| 471 |
\def\DeclareFlexCompoundSymbol#1#2#3{% |
| 472 |
\exp_args:NNo \DeclareRobustCommand#1{\csname math_csym_#2:Nn\endcsname#1{#3}}% |
| 473 |
\sym@global\let#1#1\relax |
| 474 |
} |
| 475 |
\DeclareRobustCommand\textchar{\text@char\textfont} |
| 476 |
\DeclareRobustCommand\scriptchar{\text@char\scriptfont}% |
| 477 |
% \end{macrocode} |
| 478 |
% Simplified the next bit because now the slot is read as one argument |
| 479 |
% so no afterassignment and what have you. Just drop the char |
| 480 |
% directly. |
| 481 |
% \begin{macrocode} |
| 482 |
\def\text@char@sym#1#2#3#4{% #3=fam, #4=slot |
| 483 |
\begingroup |
| 484 |
\cs_set_eq:NN \@sym \prg_do_nothing: % defense against infinite loops |
| 485 |
% \end{macrocode} |
| 486 |
% the next line will result in |\scriptfont|\meta{num}, where |#3| |
| 487 |
% provides the \meta{num}. |
| 488 |
% \begin{macrocode} |
| 489 |
\the\text@script@char#3% |
| 490 |
\char"#4\endgroup |
| 491 |
} |
| 492 |
\edef\tmp{\catcode\z@=\the\catcode\z@} |
| 493 |
\catcode\z@=\active |
| 494 |
\def\text@char#1#2{\begingroup |
| 495 |
\check@mathfonts |
| 496 |
\cs_set_eq:NN \text@script@char #1 |
| 497 |
\cs_set_eq:NN \@sym \text@char@sym |
| 498 |
\cs_set_eq:NN \@symtype \use_ii:nn |
| 499 |
\cs_set_eq:NN \OrdSymbol \use:n |
| 500 |
\cs_set_eq:NN \ifmmode \iftrue |
| 501 |
\everymath{$\use_none:n}%$ |
| 502 |
\def\mkern{\muskip\z@} |
| 503 |
\cs_set_eq:NN\mskip\mkern |
| 504 |
\ifcat\relax\noexpand#2% true if #2 is a cs. |
| 505 |
#2% |
| 506 |
\else |
| 507 |
\lccode\z@=\expandafter`\string#2\relax |
| 508 |
\lowercase{^^@}% |
| 509 |
\fi |
| 510 |
\endgroup |
| 511 |
} |
| 512 |
\tmp % restore catcode |
| 513 |
\providecommand\textprime{} |
| 514 |
\DeclareRobustCommand\textprime{\leavevmode |
| 515 |
\raise.8ex\hbox{\text@char\scriptfont\prime}% |
| 516 |
} |
| 517 |
\@ifundefined{resetMathstrut@}{}{% |
| 518 |
\def\resetMathstrut@{% |
| 519 |
\setbox\z@\hbox{\textchar\vert}% |
| 520 |
\ht\Mathstrutbox@\ht\z@ \dp\Mathstrutbox@\dp\z@ |
| 521 |
}% |
| 522 |
} |
| 523 |
% \end{macrocode} |
| 524 |
% Arrow fills. changed to 7mu as in amsmath |
| 525 |
% \begin{macrocode} |
| 526 |
\@ifundefined{rightarrowfill@}{}{% |
| 527 |
\def\rightarrowfill@#1{\m@th\setboxz@h{$#1\relbar$}\ht\z@\z@ |
| 528 |
$#1\copy\z@\mkern-7mu\cleaders |
| 529 |
\hbox{$#1\mkern-2mu\box\z@\mkern-2mu$}\hfill |
| 530 |
\mkern-6mu\OrdSymbol{\rightarrow}$} |
| 531 |
\def\leftarrowfill@#1{\m@th\setboxz@h{$#1\relbar$}\ht\z@\z@ |
| 532 |
$#1\OrdSymbol{\leftarrow}\mkern-6mu\cleaders |
| 533 |
\hbox{$#1\mkern-2mu\copy\z@\mkern-2mu$}\hfill |
| 534 |
\mkern-7mu\box\z@$} |
| 535 |
\def\leftrightarrowfill@#1{\m@th\setboxz@h{$#1\relbar$}\ht\z@\z@ |
| 536 |
$#1\OrdSymbol{\leftarrow}\mkern-6mu\cleaders |
| 537 |
\hbox{$#1\mkern-2mu\box\z@\mkern-2mu$}\hfill |
| 538 |
\mkern-6mu\OrdSymbol{\rightarrow}$} |
| 539 |
} |
| 540 |
% \end{macrocode} |
| 541 |
% hey, this looks like a simple case switch... |
| 542 |
% \begin{macrocode} |
| 543 |
\def\binrel@sym#1#2#3#4{% |
| 544 |
\xdef\binrel@@##1{% |
| 545 |
\ifx\math_sym_Ord:Nn #2 \math_csym_Ord:Nn |
| 546 |
\else\ifx\math_sym_Var:Nn#2 \math_csym_Var:Nn |
| 547 |
\else\ifx\math_sym_COs:Nn#2 \math_csym_COs:Nn |
| 548 |
\else\ifx\math_sym_COi:Nn#2 \math_csym_COi:Nn |
| 549 |
\else\ifx\math_sym_Bin:Nn#2 \math_csym_Bin:Nn |
| 550 |
\else\ifx\math_sym_Rel:Nn#2 \math_csym_Rel:Nn |
| 551 |
\else\ifx\math_sym_Pun:Nn#2 \math_csym_Pun:Nn |
| 552 |
\else\exp_not:N\@symErr \fi\fi\fi\fi\fi\fi\fi |
| 553 |
?{\exp_not:N\OrdSymbol{##1}}}% |
| 554 |
} |
| 555 |
|
| 556 |
\def\binrel@a{% |
| 557 |
\def\math_sym_Ord:Nn##1##2{\gdef\binrel@@####1{\math_sym_Ord:Nn##1{\OrdSymbol{####1}}}}% |
| 558 |
\def\math_sym_Var:Nn##1##2{\gdef\binrel@@####1{\math_sym_Var:Nn##1{\OrdSymbol{####1}}}}% |
| 559 |
\def\math_sym_COs:Nn##1##2{\gdef\binrel@@####1{\math_sym_COs:Nn##1{\OrdSymbol{####1}}}}% |
| 560 |
\def\math_sym_COi:Nn##1##2{\gdef\binrel@@####1{\math_sym_COi:Nn##1{\OrdSymbol{####1}}}}% |
| 561 |
\def\math_sym_Bin:Nn##1##2{\gdef\binrel@@####1{\math_sym_Bin:Nn##1{\OrdSymbol{####1}}}}% |
| 562 |
\def\math_sym_Rel:Nn##1##2{\gdef\binrel@@####1{\math_sym_Rel:Nn##1{\OrdSymbol{####1}}}}% |
| 563 |
\def\math_sym_Pun:Nn##1##2{\gdef\binrel@@####1{\math_sym_Pun:Nn##1{\OrdSymbol{####1}}}}% |
| 564 |
} |
| 565 |
\def\binrel@#1{% |
| 566 |
\setbox\z@\hbox{$% |
| 567 |
\let\mathchoice\@gobblethree |
| 568 |
\let\@sym\binrel@sym \binrel@a |
| 569 |
#1$}% |
| 570 |
} |
| 571 |
\def\@symextension{sym} |
| 572 |
\newcommand\usesymbols[1]{% |
| 573 |
\clist_map_variable:nNn{#1}\@tempb{% |
| 574 |
\exp_args:No\@onefilewithoptions{\@tempb}[][]\@symextension |
| 575 |
}% |
| 576 |
} |
| 577 |
% Need to introduce \ProvidesExplFile somehow |
| 578 |
\newcommand\ProvidesSymbols[1]{\ProvidesFile{#1.sym}} |
| 579 |
\DeclareRobustCommand{\not}[1]{\math_csym_Rel:Nn\not{\OrdSymbol{\notRel#1}}} |
| 580 |
\DeclareRobustCommand{\OrdSymbol}[1]{% |
| 581 |
\begingroup\mathchars@reset#1\endgroup |
| 582 |
} |
| 583 |
\def\mathchars@reset{\let\@sym\@sym@ord \let\@symtype\@symtype@ord |
| 584 |
\let\OrdSymbol\relax} |
| 585 |
\def\@symtype@ord#1#{}% a strange sort of \@gobble |
| 586 |
\def\@sym@ord#1#2{\exp_after:wN\@sym@ord@a\string#2\@nil}% |
| 587 |
% \end{macrocode} |
| 588 |
% Read delimited argument here. We want to find first character of |
| 589 |
% DeA, Bin, etc. and the control sequence checked agains is |\m@DeL|, |
| 590 |
% |\m@Pun|, etc. The lccode trick makes the . into an @ with catcode |
| 591 |
% 12. This is what results when the code is called with |
| 592 |
% |\string|. Beware of this when we change internal names for math |
| 593 |
% groups! If a Delimiter is found, insert it with class 0 but use the |
| 594 |
% smallest version available. Otherwise just insert math char of class |
| 595 |
% 0. The code here is not pretty and it indicates it should be tackled |
| 596 |
% differently! |
| 597 |
% \begin{macrocode} |
| 598 |
\begingroup |
| 599 |
\lccode`\.=`\_ \lowercase{\endgroup |
| 600 |
\def\@sym@ord@a#1.#2.}#3#4\@nil#5#6{% |
| 601 |
\if D#3 |
| 602 |
%\math_ord_delim_aux:Nn #5{#6} |
| 603 |
\math_sd_del_aux:Nnn 0 #5{#6}% check if this works! |
| 604 |
\else |
| 605 |
\math_char:NNn 0 #5{#6} |
| 606 |
\fi |
| 607 |
} |
| 608 |
\cs_set:Nn \math_ord_delim_aux:Nn { |
| 609 |
\math_sd_aux:nn { \math_char:NNn 0 } {#1{#2}} |
| 610 |
} |
| 611 |
% \end{macrocode} |
| 612 |
% |
| 613 |
% |
| 614 |
% Before declaring any math characters active, we have to take care of |
| 615 |
% a small problem with \pkg{amsmath} v2.x, if it is loaded before |
| 616 |
% \pkg{flexisym}. \cs{std@minus} and \cs{std@equal} are defined as |
| 617 |
% \begin{verbatim} |
| 618 |
% \mathchardef\std@minus\mathcode`\-\relax |
| 619 |
% \mathchardef\std@equal\mathcode`\=\relax |
| 620 |
% \end{verbatim} |
| 621 |
% in \fn{amsmath.sty} and again \cs{AtBeginDocument}. The |
| 622 |
% latter is because |
| 623 |
% \begin{quote} |
| 624 |
% In case some alternative math fonts are loaded |
| 625 |
% later. [\fn{amsmath.dtx}] |
| 626 |
% \end{quote} |
| 627 |
% The problem arises because \pkg{flexisym} sets the mathcode of all |
| 628 |
% symbols to $32768$ which is illegal for a \cs{mathchardef}. |
| 629 |
% |
| 630 |
% We have to remove the assignments from the \cs{AtBeginDocument} hook |
| 631 |
% as they will cause an error there. |
| 632 |
% \changes{v0.98k}{2020/08/24}{Removed the patch as it will break with new LaTeX. Instead |
| 633 |
% the mathcodes are set later.} |
| 634 |
% \begin{macrocode} |
| 635 |
\@ifpackageloaded{amsmath}{% |
| 636 |
% \end{macrocode} |
| 637 |
% Split the contents of \cs{@begindocumenthook} by reading what we |
| 638 |
% search for as a delimited argument and ensure these two assignments |
| 639 |
% do not take place. It is questionable if anything reasonable can be |
| 640 |
% done to them. In the case of a package such as \pkg{mathpazo} which defines |
| 641 |
% \begin{verbatim} |
| 642 |
%\DeclareMathSymbol{=}{\mathrel}{upright}{"3D} |
| 643 |
% \end{verbatim} |
| 644 |
% the \cs{Relbar} will look wrong if we don't use the correct |
| 645 |
% symbol. The way to solve this is define additional \fn{.sym} files |
| 646 |
% which contain the definition of \cs{relbar} and \cs{Relbar} |
| 647 |
% needed. We need those additional files anyway for things like |
| 648 |
% \cs{joinord}. |
| 649 |
% \begin{macrocode} |
| 650 |
}{} |
| 651 |
% \end{macrocode} |
| 652 |
% |
| 653 |
% There is problem when using \cs{DeclareMathOperator} as the |
| 654 |
% operators defined call a command \cs{newmcodes@} which relies on the |
| 655 |
% mathcode of \texttt{-} being less than 32768. We delay the |
| 656 |
% definition \cs{AtBeginDocument} in case \pkg{amssymb} hasn't been |
| 657 |
% loaded yet. |
| 658 |
% \changes{v0.98k}{2020/08/24}{Adapted to unicode engines (using definition in amsopn)} |
| 659 |
% \begin{macrocode} |
| 660 |
\AtBeginDocument{% |
| 661 |
\ifx\Umathcode\@undefined |
| 662 |
\gdef\newmcodes@{\mathcode`\'39\mathcode`\*42\mathcode`\."613A% |
| 663 |
\ifnum\mathcode`\-=45 \else |
| 664 |
% \end{macrocode} |
| 665 |
% The extra check. Don't do anything if \texttt{-} is math active. |
| 666 |
% \begin{macrocode} |
| 667 |
\ifnum\mathcode`\-=32768\space |
| 668 |
\else |
| 669 |
\mathchardef\std@minus\mathcode`\-\relax |
| 670 |
\fi |
| 671 |
\fi |
| 672 |
\mathcode`\-45\mathcode`\/47\mathcode`\:"603A\relax} |
| 673 |
\else |
| 674 |
\gdef\newmcodes@{\mathcode`\'39\mathcode`\*42\mathcode`\."613A% |
| 675 |
\ifnum\Umathcodenum`\-=45 \else |
| 676 |
% \end{macrocode} |
| 677 |
% The extra check. Don't do anything if \texttt{-} is math active. |
| 678 |
% \begin{macrocode} |
| 679 |
\ifnum\Umathcodenum`\-=16777216\space |
| 680 |
\else |
| 681 |
\Umathcharnumdef\std@minus\Umathcodenum`\-\relax |
| 682 |
\fi |
| 683 |
\fi |
| 684 |
\mathcode`\-45\mathcode`\/47\mathcode`\:"603A\relax} |
| 685 |
\fi |
| 686 |
} |
| 687 |
% \end{macrocode} |
| 688 |
% |
| 689 |
% And we then continue with the options. |
| 690 |
% \begin{macrocode} |
| 691 |
\DeclareOption{mathstyleoff}{% |
| 692 |
\PassOptionsToPackage{noactivechars}{mathstyle}} |
| 693 |
\DeclareOption{cmbase}{\usesymbols{cmbase}} |
| 694 |
\DeclareOption{mathpazo}{\usesymbols{mathpazo}} |
| 695 |
\DeclareOption{mathptmx}{\usesymbols{mathptmx}} |
| 696 |
\ExecuteOptions{cmbase} |
| 697 |
\ProcessOptions\relax |
| 698 |
\renewcommand{\lnot}{\neg} |
| 699 |
\renewcommand{\land}{\wedge} |
| 700 |
\renewcommand{\lor}{\vee} |
| 701 |
\renewcommand{\le}{\leq} |
| 702 |
\renewcommand{\ge}{\geq} |
| 703 |
\renewcommand{\ne}{\neq} |
| 704 |
\renewcommand{\owns}{\ni} |
| 705 |
\renewcommand{\gets}{\leftarrow} |
| 706 |
\renewcommand{\to}{\rightarrow} |
| 707 |
\renewcommand{\|}{\Vert} |
| 708 |
\RequirePackage{mathstyle} |
| 709 |
%</package>\endinput |
| 710 |
% \end{macrocode} |
| 711 |
% |
| 712 |
% \section{cmbase, mathpazo, mathptmx} |
| 713 |
% |
| 714 |
% |
| 715 |
% For each math font package we define a corresponding symbol file |
| 716 |
% with extension \fn{sym}. The Computer Modern base is called |
| 717 |
% \opt{cmbase} and \opt{mathpazo} and \opt{mathptmx} corresponds to |
| 718 |
% the packages. The definitions are almost identical as they mostly |
| 719 |
% concern the positions in the math font encodings. Look for |
| 720 |
% differences in \cs{joinord}, \cs{relbar} and \cs{Relbar}. If you |
| 721 |
% inspect the source code, you'll see that the support for |
| 722 |
% \pkg{mathptmx} didn't require any work but I thought it better to |
| 723 |
% create a \fn{sym} file to maintain a uniform interface. |
| 724 |
% |
| 725 |
% \begin{aside} |
| 726 |
% Open question on \verb"!" and \verb"?": maybe they |
| 727 |
% should have type `Pun' instead of `DeR'. Need to |
| 728 |
% search for uses in math in AMS archives. Or, maybe add a special |
| 729 |
% `Clo' type for them: non-extensible closing delimiter. |
| 730 |
% \end{aside} |
| 731 |
% |
| 732 |
% |
| 733 |
% |
| 734 |
% Default mathgroup setup. |
| 735 |
% \changes{v0.3}{2010/07/11}{fixed bugs regarding capital greek |
| 736 |
% letters in mathpazo and mathptmx} |
| 737 |
% \begin{macrocode} |
| 738 |
%<*cmbase|mathpazo|mathptmx> |
| 739 |
%<cmbase>\ProvidesSymbols{cmbase}[2007/12/19 v0.92] |
| 740 |
%<mathpazo>\ProvidesSymbols{mathpazo}[2010/07/11 v0.3] |
| 741 |
%<mathptmx>\ProvidesSymbols{mathptmx}[2010/07/11 v0.3] |
| 742 |
\ExplSyntaxOn |
| 743 |
\cs_gset:cpx {mg@OT1} {\hexnumber@\symoperators} |
| 744 |
\cs_gset:cpx {mg@OML} {\hexnumber@\symletters} |
| 745 |
\cs_gset:cpx {mg@OMS} {\hexnumber@\symsymbols} |
| 746 |
\cs_gset:cpx {mg@OMX} {\hexnumber@\symlargesymbols} |
| 747 |
\cs_gset:Npx \mg@bin {\mg@OMS} |
| 748 |
\cs_gset:Npx \mg@del {\mg@OMX} |
| 749 |
\cs_gset:Npx \mg@digit {\exp_not:c{mg@OT1}} |
| 750 |
\cs_gset:Npn \mg@latin {\mg@OML} |
| 751 |
\cs_gset_eq:NN \mg@Latin \mg@latin |
| 752 |
\cs_gset_eq:NN \mg@greek \mg@latin |
| 753 |
%<cmbase|mathptmx>\cs_gset_eq:NN\mg@Greek\mg@digit |
| 754 |
% \end{macrocode} |
| 755 |
% Mathpazo takes the upper case greeks from the letter font if |
| 756 |
% slantedGreek is in effect, but from \emph{upright} if not. Mathptmx |
| 757 |
% also takes the slanted greek from the letter font. |
| 758 |
% \begin{macrocode} |
| 759 |
%<mathpazo>\@ifpackagewith{mathpazo}{slantedGreek}{% |
| 760 |
%<mathpazo> \cs_gset_eq:NN\mg@Greek\mg@latin |
| 761 |
%<mathpazo>}{% |
| 762 |
%<mathpazo> \cs_gset:cpx{mg@Greek}{\hexnumber@\symupright} |
| 763 |
%<mathpazo>} |
| 764 |
%<mathptmx>\@ifpackagewith{mathptmx}{slantedGreek}{% |
| 765 |
%<mathptmx> \cs_gset_eq:NN\mg@Greek\mg@latin |
| 766 |
%<mathptmx>}{} |
| 767 |
\cs_gset_eq:NN \mg@rel \mg@bin |
| 768 |
\cs_gset_eq:NN \mg@ord \mg@bin |
| 769 |
\cs_gset_eq:NN \mg@cop \mg@del |
| 770 |
% \end{macrocode} |
| 771 |
% |
| 772 |
% |
| 773 |
% Symbols from the 128-character \fn{cmr} encoding. |
| 774 |
% Paren and square bracket delimiters from this encoding are covered |
| 775 |
% by the definitions in the \fn{cmex} section, however. |
| 776 |
% \begin{macrocode} |
| 777 |
\DeclareFlexSymbol{!} {Pun}{OT1}{21} |
| 778 |
\DeclareFlexSymbol{+} {Bin}{OT1}{2B} |
| 779 |
\DeclareFlexSymbol{:} {Rel}{OT1}{3A} |
| 780 |
\DeclareFlexSymbol{\colon}{Pun}{OT1}{3A} |
| 781 |
\DeclareFlexSymbol{;} {Pun}{OT1}{3B} |
| 782 |
\AtBeginDocument{\DeclareFlexSymbol{=} {Rel}{OT1}{3D}} |
| 783 |
\DeclareFlexSymbol{?} {Pun}{OT1}{3F} |
| 784 |
% \end{macrocode} |
| 785 |
% \AmS\TeX, and therefore the \pkg{amsmath} package, make the |
| 786 |
% uppercase Greek letters class 0 (nonvariable) instead of 7 |
| 787 |
% (variable), to eliminate the glaring inconsistency with lowercase |
| 788 |
% Greek. (In plain \TeX , \verb"{\bf\Delta}" works, while |
| 789 |
% \verb"{\bf\delta}" doesn't.) Let us try to make them both |
| 790 |
% variable (fonts permitting) instead of nonvariable. |
| 791 |
% \begin{macrocode} |
| 792 |
\DeclareFlexSymbol{\Gamma} {Var}{Greek}{00} |
| 793 |
\DeclareFlexSymbol{\Delta} {Var}{Greek}{01} |
| 794 |
\DeclareFlexSymbol{\Theta} {Var}{Greek}{02} |
| 795 |
\DeclareFlexSymbol{\Lambda} {Var}{Greek}{03} |
| 796 |
\DeclareFlexSymbol{\Xi} {Var}{Greek}{04} |
| 797 |
\DeclareFlexSymbol{\Pi} {Var}{Greek}{05} |
| 798 |
\DeclareFlexSymbol{\Sigma} {Var}{Greek}{06} |
| 799 |
\DeclareFlexSymbol{\Upsilon}{Var}{Greek}{07} |
| 800 |
\DeclareFlexSymbol{\Phi} {Var}{Greek}{08} |
| 801 |
\DeclareFlexSymbol{\Psi} {Var}{Greek}{09} |
| 802 |
\DeclareFlexSymbol{\Omega} {Var}{Greek}{0A} |
| 803 |
% \end{macrocode} |
| 804 |
% Decimal digits. |
| 805 |
% \begin{macrocode} |
| 806 |
\DeclareFlexSymbol{0}{Var}{digit}{30} |
| 807 |
\DeclareFlexSymbol{1}{Var}{digit}{31} |
| 808 |
\DeclareFlexSymbol{2}{Var}{digit}{32} |
| 809 |
\DeclareFlexSymbol{3}{Var}{digit}{33} |
| 810 |
\DeclareFlexSymbol{4}{Var}{digit}{34} |
| 811 |
\DeclareFlexSymbol{5}{Var}{digit}{35} |
| 812 |
\DeclareFlexSymbol{6}{Var}{digit}{36} |
| 813 |
\DeclareFlexSymbol{7}{Var}{digit}{37} |
| 814 |
\DeclareFlexSymbol{8}{Var}{digit}{38} |
| 815 |
\DeclareFlexSymbol{9}{Var}{digit}{39} |
| 816 |
% \end{macrocode} |
| 817 |
% Symbols from the 128-character \fn{cmmi} encoding. |
| 818 |
% \begin{macrocode} |
| 819 |
\DeclareFlexSymbol{,}{Pun}{OML}{3B} |
| 820 |
\DeclareFlexSymbol{.}{Ord}{OML}{3A} |
| 821 |
\DeclareFlexSymbol{/}{Ord}{OML}{3D} |
| 822 |
\DeclareFlexSymbol{<}{Rel}{OML}{3C} |
| 823 |
\DeclareFlexSymbol{>}{Rel}{OML}{3E} |
| 824 |
% \end{macrocode} |
| 825 |
% To do: make the Var property of lc Greek work properly. |
| 826 |
% \begin{macrocode} |
| 827 |
\DeclareFlexSymbol{\alpha} {Var}{greek}{0B} |
| 828 |
\DeclareFlexSymbol{\beta} {Var}{greek}{0C} |
| 829 |
\DeclareFlexSymbol{\gamma} {Var}{greek}{0D} |
| 830 |
\DeclareFlexSymbol{\delta} {Var}{greek}{0E} |
| 831 |
\DeclareFlexSymbol{\epsilon} {Var}{greek}{0F} |
| 832 |
\DeclareFlexSymbol{\zeta} {Var}{greek}{10} |
| 833 |
\DeclareFlexSymbol{\eta} {Var}{greek}{11} |
| 834 |
\DeclareFlexSymbol{\theta} {Var}{greek}{12} |
| 835 |
\DeclareFlexSymbol{\iota} {Var}{greek}{13} |
| 836 |
\DeclareFlexSymbol{\kappa} {Var}{greek}{14} |
| 837 |
\DeclareFlexSymbol{\lambda} {Var}{greek}{15} |
| 838 |
\DeclareFlexSymbol{\mu} {Var}{greek}{16} |
| 839 |
\DeclareFlexSymbol{\nu} {Var}{greek}{17} |
| 840 |
\DeclareFlexSymbol{\xi} {Var}{greek}{18} |
| 841 |
\DeclareFlexSymbol{\pi} {Var}{greek}{19} |
| 842 |
\DeclareFlexSymbol{\rho} {Var}{greek}{1A} |
| 843 |
\DeclareFlexSymbol{\sigma} {Var}{greek}{1B} |
| 844 |
\DeclareFlexSymbol{\tau} {Var}{greek}{1C} |
| 845 |
\DeclareFlexSymbol{\upsilon} {Var}{greek}{1D} |
| 846 |
\DeclareFlexSymbol{\phi} {Var}{greek}{1E} |
| 847 |
\DeclareFlexSymbol{\chi} {Var}{greek}{1F} |
| 848 |
\DeclareFlexSymbol{\psi} {Var}{greek}{20} |
| 849 |
\DeclareFlexSymbol{\omega} {Var}{greek}{21} |
| 850 |
\DeclareFlexSymbol{\varepsilon}{Var}{greek}{22} |
| 851 |
\DeclareFlexSymbol{\vartheta} {Var}{greek}{23} |
| 852 |
\DeclareFlexSymbol{\varpi} {Var}{greek}{24} |
| 853 |
\DeclareFlexSymbol{\varrho} {Var}{greek}{25} |
| 854 |
\DeclareFlexSymbol{\varsigma} {Var}{greek}{26} |
| 855 |
\DeclareFlexSymbol{\varphi} {Var}{greek}{27} |
| 856 |
% \end{macrocode} |
| 857 |
% Note that in plain \TeX\ \cs{imath} and \cs{jmath} are |
| 858 |
% not variable-font. But if a \verb"j" changes font to, let's |
| 859 |
% say, sans serif or calligraphic, a dotless \verb"j" in the same |
| 860 |
% context should change font in the same way. |
| 861 |
% \begin{macrocode} |
| 862 |
\DeclareFlexSymbol{\imath} {Var}{OML}{7B} |
| 863 |
\DeclareFlexSymbol{\jmath} {Var}{OML}{7C} |
| 864 |
\DeclareFlexSymbol{\ell} {Ord}{OML}{60} |
| 865 |
\DeclareFlexSymbol{\wp} {Ord}{OML}{7D} |
| 866 |
\DeclareFlexSymbol{\partial} {Ord}{OML}{40} |
| 867 |
\DeclareFlexSymbol{\flat} {Ord}{OML}{5B} |
| 868 |
\DeclareFlexSymbol{\natural} {Ord}{OML}{5C} |
| 869 |
\DeclareFlexSymbol{\sharp} {Ord}{OML}{5D} |
| 870 |
\DeclareFlexSymbol{\triangleleft} {Bin}{OML}{2F} |
| 871 |
\DeclareFlexSymbol{\triangleright} {Bin}{OML}{2E} |
| 872 |
\DeclareFlexSymbol{\star} {Bin}{OML}{3F} |
| 873 |
\DeclareFlexSymbol{\smile} {Rel}{OML}{5E} |
| 874 |
\DeclareFlexSymbol{\frown} {Rel}{OML}{5F} |
| 875 |
\DeclareFlexSymbol{\leftharpoonup} {Rel}{OML}{28} |
| 876 |
\DeclareFlexSymbol{\leftharpoondown} {Rel}{OML}{29} |
| 877 |
\DeclareFlexSymbol{\rightharpoonup} {Rel}{OML}{2A} |
| 878 |
\DeclareFlexSymbol{\rightharpoondown}{Rel}{OML}{2B} |
| 879 |
% \end{macrocode} |
| 880 |
% Latin |
| 881 |
% \begin{macrocode} |
| 882 |
\DeclareFlexSymbol{a}{Var}{latin}{61} |
| 883 |
\DeclareFlexSymbol{b}{Var}{latin}{62} |
| 884 |
\DeclareFlexSymbol{c}{Var}{latin}{63} |
| 885 |
\DeclareFlexSymbol{d}{Var}{latin}{64} |
| 886 |
\DeclareFlexSymbol{e}{Var}{latin}{65} |
| 887 |
\DeclareFlexSymbol{f}{Var}{latin}{66} |
| 888 |
\DeclareFlexSymbol{g}{Var}{latin}{67} |
| 889 |
\DeclareFlexSymbol{h}{Var}{latin}{68} |
| 890 |
\DeclareFlexSymbol{i}{Var}{latin}{69} |
| 891 |
\DeclareFlexSymbol{j}{Var}{latin}{6A} |
| 892 |
\DeclareFlexSymbol{k}{Var}{latin}{6B} |
| 893 |
\DeclareFlexSymbol{l}{Var}{latin}{6C} |
| 894 |
\DeclareFlexSymbol{m}{Var}{latin}{6D} |
| 895 |
\DeclareFlexSymbol{n}{Var}{latin}{6E} |
| 896 |
\DeclareFlexSymbol{o}{Var}{latin}{6F} |
| 897 |
\DeclareFlexSymbol{p}{Var}{latin}{70} |
| 898 |
\DeclareFlexSymbol{q}{Var}{latin}{71} |
| 899 |
\DeclareFlexSymbol{r}{Var}{latin}{72} |
| 900 |
\DeclareFlexSymbol{s}{Var}{latin}{73} |
| 901 |
\DeclareFlexSymbol{t}{Var}{latin}{74} |
| 902 |
\DeclareFlexSymbol{u}{Var}{latin}{75} |
| 903 |
\DeclareFlexSymbol{v}{Var}{latin}{76} |
| 904 |
\DeclareFlexSymbol{w}{Var}{latin}{77} |
| 905 |
\DeclareFlexSymbol{x}{Var}{latin}{78} |
| 906 |
\DeclareFlexSymbol{y}{Var}{latin}{79} |
| 907 |
\DeclareFlexSymbol{z}{Var}{latin}{7A} |
| 908 |
\DeclareFlexSymbol{A}{Var}{Latin}{41} |
| 909 |
\DeclareFlexSymbol{B}{Var}{Latin}{42} |
| 910 |
\DeclareFlexSymbol{C}{Var}{Latin}{43} |
| 911 |
\DeclareFlexSymbol{D}{Var}{Latin}{44} |
| 912 |
\DeclareFlexSymbol{E}{Var}{Latin}{45} |
| 913 |
\DeclareFlexSymbol{F}{Var}{Latin}{46} |
| 914 |
\DeclareFlexSymbol{G}{Var}{Latin}{47} |
| 915 |
\DeclareFlexSymbol{H}{Var}{Latin}{48} |
| 916 |
\DeclareFlexSymbol{I}{Var}{Latin}{49} |
| 917 |
\DeclareFlexSymbol{J}{Var}{Latin}{4A} |
| 918 |
\DeclareFlexSymbol{K}{Var}{Latin}{4B} |
| 919 |
\DeclareFlexSymbol{L}{Var}{Latin}{4C} |
| 920 |
\DeclareFlexSymbol{M}{Var}{Latin}{4D} |
| 921 |
\DeclareFlexSymbol{N}{Var}{Latin}{4E} |
| 922 |
\DeclareFlexSymbol{O}{Var}{Latin}{4F} |
| 923 |
\DeclareFlexSymbol{P}{Var}{Latin}{50} |
| 924 |
\DeclareFlexSymbol{Q}{Var}{Latin}{51} |
| 925 |
\DeclareFlexSymbol{R}{Var}{Latin}{52} |
| 926 |
\DeclareFlexSymbol{S}{Var}{Latin}{53} |
| 927 |
\DeclareFlexSymbol{T}{Var}{Latin}{54} |
| 928 |
\DeclareFlexSymbol{U}{Var}{Latin}{55} |
| 929 |
\DeclareFlexSymbol{V}{Var}{Latin}{56} |
| 930 |
\DeclareFlexSymbol{W}{Var}{Latin}{57} |
| 931 |
\DeclareFlexSymbol{X}{Var}{Latin}{58} |
| 932 |
\DeclareFlexSymbol{Y}{Var}{Latin}{59} |
| 933 |
\DeclareFlexSymbol{Z}{Var}{Latin}{5A} |
| 934 |
% \end{macrocode} |
| 935 |
% The \cs{ldotPun} glyph is used in constructing the |
| 936 |
% \cs{ldots} symbol. It is just a period with a different math |
| 937 |
% symbol class. \cs{lhookRel} and \cs{rhookRel} are used |
| 938 |
% in a similar way for building hooked arrow symbols. |
| 939 |
% \begin{macrocode} |
| 940 |
\DeclareFlexSymbol{\ldotPun}{Pun}{OML}{3A} |
| 941 |
\def\ldotp{\ldotPun} |
| 942 |
\DeclareFlexSymbol{\lhookRel}{Rel}{OML}{2C} |
| 943 |
\DeclareFlexSymbol{\rhookRel}{Rel}{OML}{2D} |
| 944 |
% \end{macrocode} |
| 945 |
% Symbols from the 128-character \fn{cmsy} encoding. |
| 946 |
% \begin{macrocode} |
| 947 |
\DeclareFlexSymbol{*} {Bin}{bin}{03} % \ast |
| 948 |
\AtBeginDocument{\DeclareFlexSymbol{-} {Bin}{bin}{00}} |
| 949 |
\DeclareFlexSymbol{|} {Ord}{OMS}{6A} |
| 950 |
\DeclareFlexSymbol{\aleph} {Ord}{ord}{40} |
| 951 |
\DeclareFlexSymbol{\Re} {Ord}{ord}{3C} |
| 952 |
\DeclareFlexSymbol{\Im} {Ord}{ord}{3D} |
| 953 |
\DeclareFlexSymbol{\infty} {Ord}{ord}{31} |
| 954 |
\DeclareFlexSymbol{\prime} {Ord}{ord}{30} |
| 955 |
\DeclareFlexSymbol{\emptyset} {Ord}{ord}{3B} |
| 956 |
\DeclareFlexSymbol{\nabla} {Ord}{ord}{72} |
| 957 |
\DeclareFlexSymbol{\top} {Ord}{ord}{3E} |
| 958 |
\DeclareFlexSymbol{\bot} {Ord}{ord}{3F} |
| 959 |
\DeclareFlexSymbol{\triangle} {Ord}{ord}{34} |
| 960 |
\DeclareFlexSymbol{\forall} {Ord}{ord}{38} |
| 961 |
\DeclareFlexSymbol{\exists} {Ord}{ord}{39} |
| 962 |
\DeclareFlexSymbol{\neg} {Ord}{ord}{3A} |
| 963 |
\DeclareFlexSymbol{\clubsuit} {Ord}{ord}{7C} |
| 964 |
\DeclareFlexSymbol{\diamondsuit}{Ord}{ord}{7D} |
| 965 |
\DeclareFlexSymbol{\heartsuit} {Ord}{ord}{7E} |
| 966 |
\DeclareFlexSymbol{\spadesuit} {Ord}{ord}{7F} |
| 967 |
\DeclareFlexSymbol{\smallint} {COs}{OMS}{73} |
| 968 |
% \end{macrocode} |
| 969 |
% Binary operators. |
| 970 |
% \begin{macrocode} |
| 971 |
\DeclareFlexSymbol{\bigtriangleup} {Bin}{bin}{34} |
| 972 |
\DeclareFlexSymbol{\bigtriangledown}{Bin}{bin}{35} |
| 973 |
\DeclareFlexSymbol{\wedge} {Bin}{bin}{5E} |
| 974 |
\DeclareFlexSymbol{\vee} {Bin}{bin}{5F} |
| 975 |
\DeclareFlexSymbol{\cap} {Bin}{bin}{5C} |
| 976 |
\DeclareFlexSymbol{\cup} {Bin}{bin}{5B} |
| 977 |
\DeclareFlexSymbol{\ddagger} {Bin}{bin}{7A} |
| 978 |
\DeclareFlexSymbol{\dagger} {Bin}{bin}{79} |
| 979 |
\DeclareFlexSymbol{\sqcap} {Bin}{bin}{75} |
| 980 |
\DeclareFlexSymbol{\sqcup} {Bin}{bin}{74} |
| 981 |
\DeclareFlexSymbol{\uplus} {Bin}{bin}{5D} |
| 982 |
\DeclareFlexSymbol{\amalg} {Bin}{bin}{71} |
| 983 |
\DeclareFlexSymbol{\diamond} {Bin}{bin}{05} |
| 984 |
\DeclareFlexSymbol{\bullet} {Bin}{bin}{0F} |
| 985 |
\DeclareFlexSymbol{\wr} {Bin}{bin}{6F} |
| 986 |
\DeclareFlexSymbol{\div} {Bin}{bin}{04} |
| 987 |
\DeclareFlexSymbol{\odot} {Bin}{bin}{0C} |
| 988 |
\DeclareFlexSymbol{\oslash} {Bin}{bin}{0B} |
| 989 |
\DeclareFlexSymbol{\otimes} {Bin}{bin}{0A} |
| 990 |
\DeclareFlexSymbol{\ominus} {Bin}{bin}{09} |
| 991 |
\DeclareFlexSymbol{\oplus} {Bin}{bin}{08} |
| 992 |
\DeclareFlexSymbol{\mp} {Bin}{bin}{07} |
| 993 |
\DeclareFlexSymbol{\pm} {Bin}{bin}{06} |
| 994 |
\DeclareFlexSymbol{\circ} {Bin}{bin}{0E} |
| 995 |
\DeclareFlexSymbol{\bigcirc} {Bin}{bin}{0D} |
| 996 |
\DeclareFlexSymbol{\setminus} {Bin}{bin}{6E} |
| 997 |
\DeclareFlexSymbol{\cdot} {Bin}{bin}{01} |
| 998 |
\DeclareFlexSymbol{\ast} {Bin}{bin}{03} |
| 999 |
\DeclareFlexSymbol{\times} {Bin}{bin}{02} |
| 1000 |
% \end{macrocode} |
| 1001 |
% Relation symbols. |
| 1002 |
% \begin{macrocode} |
| 1003 |
\DeclareFlexSymbol{\propto} {Rel}{rel}{2F} |
| 1004 |
\DeclareFlexSymbol{\sqsubseteq} {Rel}{rel}{76} |
| 1005 |
\DeclareFlexSymbol{\sqsupseteq} {Rel}{rel}{77} |
| 1006 |
\DeclareFlexSymbol{\parallel} {Rel}{rel}{6B} |
| 1007 |
\DeclareFlexSymbol{\mid} {Rel}{rel}{6A} |
| 1008 |
\DeclareFlexSymbol{\dashv} {Rel}{rel}{61} |
| 1009 |
\DeclareFlexSymbol{\vdash} {Rel}{rel}{60} |
| 1010 |
\DeclareFlexSymbol{\nearrow} {Rel}{rel}{25} |
| 1011 |
\DeclareFlexSymbol{\searrow} {Rel}{rel}{26} |
| 1012 |
\DeclareFlexSymbol{\nwarrow} {Rel}{rel}{2D} |
| 1013 |
\DeclareFlexSymbol{\swarrow} {Rel}{rel}{2E} |
| 1014 |
\DeclareFlexSymbol{\Leftrightarrow}{Rel}{rel}{2C} |
| 1015 |
\DeclareFlexSymbol{\Leftarrow} {Rel}{rel}{28} |
| 1016 |
\DeclareFlexSymbol{\Rightarrow} {Rel}{rel}{29} |
| 1017 |
\DeclareFlexSymbol{\leq} {Rel}{rel}{14} |
| 1018 |
\DeclareFlexSymbol{\geq} {Rel}{rel}{15} |
| 1019 |
\DeclareFlexSymbol{\succ} {Rel}{rel}{1F} |
| 1020 |
\DeclareFlexSymbol{\prec} {Rel}{rel}{1E} |
| 1021 |
\DeclareFlexSymbol{\approx} {Rel}{rel}{19} |
| 1022 |
\DeclareFlexSymbol{\succeq} {Rel}{rel}{17} |
| 1023 |
\DeclareFlexSymbol{\preceq} {Rel}{rel}{16} |
| 1024 |
\DeclareFlexSymbol{\supset} {Rel}{rel}{1B} |
| 1025 |
\DeclareFlexSymbol{\subset} {Rel}{rel}{1A} |
| 1026 |
\DeclareFlexSymbol{\supseteq} {Rel}{rel}{13} |
| 1027 |
\DeclareFlexSymbol{\subseteq} {Rel}{rel}{12} |
| 1028 |
\DeclareFlexSymbol{\in} {Rel}{rel}{32} |
| 1029 |
\DeclareFlexSymbol{\ni} {Rel}{rel}{33} |
| 1030 |
\DeclareFlexSymbol{\gg} {Rel}{rel}{1D} |
| 1031 |
\DeclareFlexSymbol{\ll} {Rel}{rel}{1C} |
| 1032 |
\DeclareFlexSymbol{\leftrightarrow}{Rel}{rel}{24} |
| 1033 |
\DeclareFlexSymbol{\leftarrow} {Rel}{rel}{20} |
| 1034 |
\DeclareFlexSymbol{\rightarrow} {Rel}{rel}{21} |
| 1035 |
\DeclareFlexSymbol{\sim} {Rel}{rel}{18} |
| 1036 |
\DeclareFlexSymbol{\simeq} {Rel}{rel}{27} |
| 1037 |
\DeclareFlexSymbol{\perp} {Rel}{rel}{3F} |
| 1038 |
\DeclareFlexSymbol{\equiv} {Rel}{rel}{11} |
| 1039 |
\DeclareFlexSymbol{\asymp} {Rel}{rel}{10} |
| 1040 |
% \end{macrocode} |
| 1041 |
% The \cs{notRel} glyph is a special zero-width glyph intended only |
| 1042 |
% for use in constructing negated symbols. \cs{mapstoRel} and |
| 1043 |
% \cs{cdotPun} have similar but more restricted applications. |
| 1044 |
% \begin{macrocode} |
| 1045 |
\DeclareFlexSymbol{\notRel} {Rel}{rel}{36} |
| 1046 |
\DeclareFlexSymbol{\mapstoOrd}{Ord}{OMS}{37} |
| 1047 |
\DeclareFlexSymbol{\cdotOrd} {Ord}{OMS}{01} |
| 1048 |
\cs_set:Npn\cdotp{\mathpunct{\cdotOrd}} |
| 1049 |
% \end{macrocode} |
| 1050 |
% Symbols from the 128-character \fn{cmex} encoding. |
| 1051 |
% \verb"COs" stands for `cumulative operator |
| 1052 |
% (sum-like)'. |
| 1053 |
% \verb"COi" stands for `cumulative operator |
| 1054 |
% (integral-like)'. These typically differ only in the |
| 1055 |
% default placement of limits. \verb"cop" stands for |
| 1056 |
% `cumulative operator math group'. |
| 1057 |
% \begin{macrocode} |
| 1058 |
\DeclareFlexSymbol{\coprod} {COs}{cop}{60} |
| 1059 |
\DeclareFlexSymbol{\bigvee} {COs}{cop}{57} |
| 1060 |
\DeclareFlexSymbol{\bigwedge} {COs}{cop}{56} |
| 1061 |
\DeclareFlexSymbol{\biguplus} {COs}{cop}{55} |
| 1062 |
\DeclareFlexSymbol{\bigcap} {COs}{cop}{54} |
| 1063 |
\DeclareFlexSymbol{\bigcup} {COs}{cop}{53} |
| 1064 |
\DeclareFlexSymbol{\int} {COi}{cop}{52} |
| 1065 |
\DeclareFlexSymbol{\prod} {COs}{cop}{51} |
| 1066 |
\DeclareFlexSymbol{\sum} {COs}{cop}{50} |
| 1067 |
\DeclareFlexSymbol{\bigotimes}{COs}{cop}{4E} |
| 1068 |
\DeclareFlexSymbol{\bigoplus} {COs}{cop}{4C} |
| 1069 |
\DeclareFlexSymbol{\bigodot} {COs}{cop}{4A} |
| 1070 |
\DeclareFlexSymbol{\oint} {COi}{cop}{48} |
| 1071 |
\DeclareFlexSymbol{\bigsqcup} {COs}{cop}{46} |
| 1072 |
% \end{macrocode} |
| 1073 |
% Delimiter symbols. |
| 1074 |
% \verb"DeL" stands for `delimiter (left)'. |
| 1075 |
% \verb"DeR" stands for `delimiter (right)'. |
| 1076 |
% \verb"DeB" stands for `delimiter (bidirectional)'. |
| 1077 |
% The principal encoding point for an extensible delimiter is the |
| 1078 |
% first link in the list of linked sizes as specified in the font metric |
| 1079 |
% information. |
| 1080 |
% For a math encoding such as OT1/OML/OMS/OMX where not all sizes of a |
| 1081 |
% given delimiter reside in a given font, the extra encoding point for the |
| 1082 |
% smallest delimiter must be supplied by defining |
| 1083 |
% \begin{verbatim} |
| 1084 |
% \sd@GXX |
| 1085 |
% \end{verbatim} |
| 1086 |
% where G is the mathgroup and XX is the hexadecimal glyph |
| 1087 |
% position. |\DeclareFlexDelimiter| does that for us. |
| 1088 |
% \begin{macrocode} |
| 1089 |
\DeclareFlexDelimiter{\rangle}{DeR}{del}{0B}{OMS}{69} |
| 1090 |
\DeclareFlexDelimiter{\langle}{DeL}{del}{0A}{OMS}{68} |
| 1091 |
\DeclareFlexDelimiter{\rbrace}{DeR}{del}{09}{OMS}{67} |
| 1092 |
\DeclareFlexDelimiter{\lbrace}{DeL}{del}{08}{OMS}{66} |
| 1093 |
\DeclareFlexDelimiter{\rceil} {DeR}{del}{07}{OMS}{65} |
| 1094 |
\DeclareFlexDelimiter{\lceil} {DeL}{del}{06}{OMS}{64} |
| 1095 |
\DeclareFlexDelimiter{\rfloor}{DeR}{del}{05}{OMS}{63} |
| 1096 |
\DeclareFlexDelimiter{\lfloor}{DeL}{del}{04}{OMS}{62} |
| 1097 |
\DeclareFlexDelimiter{(} {DeL}{del}{00}{OT1}{28} |
| 1098 |
\DeclareFlexDelimiter{)} {DeR}{del}{01}{OT1}{29} |
| 1099 |
\DeclareFlexDelimiter{[} {DeL}{del}{02}{OT1}{5B} |
| 1100 |
\DeclareFlexDelimiter{]} {DeR}{del}{03}{OT1}{5D} |
| 1101 |
\DeclareFlexDelimiter{\lVert} {DeL}{del}{0D}{OMS}{6B} |
| 1102 |
\DeclareFlexDelimiter{\rVert} {DeR}{del}{0D}{OMS}{6B} |
| 1103 |
\DeclareFlexDelimiter{\lvert} {DeL}{del}{0C}{OMS}{6A} |
| 1104 |
\DeclareFlexDelimiter{\rvert} {DeR}{del}{0C}{OMS}{6A} |
| 1105 |
\DeclareFlexDelimiter{\Vert} {DeB}{del}{0D}{OMS}{6B} |
| 1106 |
\DeclareFlexDelimiter{\vert} {DeB}{del}{0C}{OMS}{6A} |
| 1107 |
% \end{macrocode} |
| 1108 |
% Maybe make the vert bars mathord instead of delimiter, to discourage |
| 1109 |
% poor usage. |
| 1110 |
% \begin{macrocode} |
| 1111 |
\DeclareFlexDelimiter{|}{DeB}{del}{0C}{OMS}{6A} |
| 1112 |
\DeclareFlexDelimiter{/}{DeB}{del}{0E}{OML}{3D} |
| 1113 |
% \end{macrocode} |
| 1114 |
% |
| 1115 |
% |
| 1116 |
% These wacky delimiters need to be supported I guess for |
| 1117 |
% compabitility reasons. |
| 1118 |
% The DeA delimiter type is a special case used only for these |
| 1119 |
% arrows. |
| 1120 |
% \begin{macrocode} |
| 1121 |
\DeclareFlexDelimiter{\lmoustache} {DeL}{del}{40}{del}{7A} |
| 1122 |
\DeclareFlexDelimiter{\rmoustache} {DeR}{del}{41}{del}{7B} |
| 1123 |
\DeclareFlexDelimiter{\lgroup} {DeL}{del}{3A}{del}{3A} |
| 1124 |
\DeclareFlexDelimiter{\rgroup} {DeR}{del}{3B}{del}{3B} |
| 1125 |
\DeclareFlexDelimiter{\bracevert} {DeB}{del}{3E}{del}{3E} |
| 1126 |
\DeclareFlexDelimiter{\arrowvert} {DeB}{del}{3C}{OMS}{6A} |
| 1127 |
\DeclareFlexDelimiter{\Arrowvert} {DeB}{del}{3D}{OMS}{6B} |
| 1128 |
\DeclareFlexDelimiter{\uparrow} {DeA}{del}{78}{OMS}{22} |
| 1129 |
\DeclareFlexDelimiter{\downarrow} {DeA}{del}{79}{OMS}{23} |
| 1130 |
\DeclareFlexDelimiter{\updownarrow}{DeA}{del}{3F}{OMS}{6C} |
| 1131 |
\DeclareFlexDelimiter{\Uparrow} {DeA}{del}{7E}{OMS}{2A} |
| 1132 |
\DeclareFlexDelimiter{\Downarrow} {DeA}{del}{7F}{OMS}{2B} |
| 1133 |
\DeclareFlexDelimiter{\Updownarrow}{DeA}{del}{77}{OMS}{6D} |
| 1134 |
\DeclareFlexDelimiter{\backslash} {DeB}{del}{0F}{OMS}{6E} |
| 1135 |
% \end{macrocode} |
| 1136 |
% |
| 1137 |
% |
| 1138 |
% |
| 1139 |
% |
| 1140 |
% \section{Some compound symbols} |
| 1141 |
% The following symbols are not robust in standard \LaTeX\ |
| 1142 |
% because they use \verb"#" or \cs{mathpalette} (which is not |
| 1143 |
% robust and contains a \verb"#" in its expansion): \cs{angle}, |
| 1144 |
% \cs{cong}, \cs{notin}, \cs{rightleftharpoons}. |
| 1145 |
% |
| 1146 |
% In this definition of \cs{hbar}, the symbol is cobbled together |
| 1147 |
% from a math italic h and the cmr overbar accent glyph. |
| 1148 |
% \begin{macrocode} |
| 1149 |
\DeclareFlexSymbol{\hbarOrd}{Ord}{OT1}{16} |
| 1150 |
\DeclareFlexCompoundSymbol{\hbar}{Ord}{\hbarOrd\mkern-9mu h} |
| 1151 |
% \end{macrocode} |
| 1152 |
% For \cs{surd}, the interior symbol gets math class 1 |
| 1153 |
% (cumulative operator) to make the glyph vertically centered on the |
| 1154 |
% math axis, but the desired horizontal spacing is the spacing for a |
| 1155 |
% mathord. (Couldn't it just be class mathopen, though?) |
| 1156 |
% \begin{macrocode} |
| 1157 |
\DeclareFlexSymbol{\surdOrd}{Ord}{OMS}{70} |
| 1158 |
\DeclareFlexCompoundSymbol{\surd}{Ord}{\mathop{\surdOrd}} |
| 1159 |
% \end{macrocode} |
| 1160 |
% As shown in this definition of \cs{angle}, rule dimens are not |
| 1161 |
% allowed to use math-units, unfortunately. |
| 1162 |
% \begin{macrocode} |
| 1163 |
\DeclareFlexCompoundSymbol{\angle}{Ord}{% |
| 1164 |
\vbox{\ialign{% |
| 1165 |
$\m@th\scriptstyle##$\crcr |
| 1166 |
\notRel\mathrel{\mkern14mu}\crcr |
| 1167 |
\noalign{\nointerlineskip}% |
| 1168 |
\mkern2.5mu\leaders\hrule \@height.34pt\hfill\mkern2.5mu\crcr |
| 1169 |
}}% |
| 1170 |
} |
| 1171 |
% \end{macrocode} |
| 1172 |
% The \cs{not} function, which is defined in the \pkg{flexisym} |
| 1173 |
% package, requires a suitably defined \cs{notRel} symbol. |
| 1174 |
% \begin{macrocode} |
| 1175 |
\DeclareFlexCompoundSymbol{\neq}{Rel}{\not{=}} |
| 1176 |
% \end{macrocode} |
| 1177 |
% . |
| 1178 |
% \begin{macrocode} |
| 1179 |
\DeclareFlexCompoundSymbol{\mapsto}{Rel}{\mapstoOrd\rightarrow} |
| 1180 |
% \end{macrocode} |
| 1181 |
% The \cs{@vereq} function ends by centering the whole |
| 1182 |
% construction on the math axis, unlike \cs{buildrel} where the base |
| 1183 |
% symbol remains at its normal altitude. Furthermore, |
| 1184 |
% \cs{@vereq} leaves the math style of the top symbol as given |
| 1185 |
% instead of downsizing to scriptstyle. |
| 1186 |
% \begin{macrocode} |
| 1187 |
\DeclareFlexCompoundSymbol{\cong}{Rel}{\mathpalette\@vereq\sim} |
| 1188 |
% \end{macrocode} |
| 1189 |
% The \cs{m@th} in the \fn{fontmath.ltx} definition of |
| 1190 |
% \cs{notin} is superfluous unless \cs{c@ncel} doesn't include |
| 1191 |
% it (which was perhaps true in an older version of |
| 1192 |
% \fn{plain.tex}?). |
| 1193 |
% \begin{macrocode} |
| 1194 |
\providecommand*\joinord{} |
| 1195 |
%<cmbase|mathptmx>\renewcommand*\joinord{\mkern-3mu } |
| 1196 |
%<mathpazo>\renewcommand*\joinord{\mkern-3.45mu } |
| 1197 |
\DeclareFlexCompoundSymbol{\notin}{Rel}{\mathpalette\c@ncel\in} |
| 1198 |
\DeclareFlexCompoundSymbol{\rightleftharpoons}{Rel}{\mathpalette\rlh@{}} |
| 1199 |
\DeclareFlexCompoundSymbol{\doteq}{Rel}{\buildrel\textstyle.\over=} |
| 1200 |
\DeclareFlexCompoundSymbol{\hookrightarrow}{Rel}{\lhookRel\joinord\rightarrow} |
| 1201 |
\DeclareFlexCompoundSymbol{\hookleftarrow}{Rel}{\leftarrow\joinord\rhookRel} |
| 1202 |
\DeclareFlexCompoundSymbol{\bowtie}{Rel}{\triangleright\joinord\triangleleft} |
| 1203 |
\DeclareFlexCompoundSymbol{\models}{Rel}{\vert\joinord=} |
| 1204 |
\DeclareFlexCompoundSymbol{\Longrightarrow}{Rel}{\Relbar\joinord\Rightarrow} |
| 1205 |
\DeclareFlexCompoundSymbol{\longrightarrow}{Rel}{\relbar\joinord\rightarrow} |
| 1206 |
\DeclareFlexCompoundSymbol{\Longleftarrow}{Rel}{\Leftarrow\joinord\Relbar} |
| 1207 |
\DeclareFlexCompoundSymbol{\longleftarrow}{Rel}{\leftarrow\joinord\relbar} |
| 1208 |
\DeclareFlexCompoundSymbol{\longmapsto}{Rel}{\mapstochar\longrightarrow} |
| 1209 |
\DeclareFlexCompoundSymbol{\longleftrightarrow}{Rel}{\leftarrow\joinord\rightarrow} |
| 1210 |
\DeclareFlexCompoundSymbol{\Longleftrightarrow}{Rel}{\Leftarrow\joinord\Rightarrow} |
| 1211 |
% \end{macrocode} |
| 1212 |
% Here is what you get from the old definition of \cs{iff}. |
| 1213 |
% \begin{verbatim} |
| 1214 |
% \glue 2.77771 plus 2.77771 |
| 1215 |
% \glue(\thickmuskip) 2.77771 plus 2.77771 |
| 1216 |
% \OMS/cmsy/m/n/10 ( |
| 1217 |
% \hbox(0.0+0.0)x-1.66663 |
| 1218 |
% .\kern -1.66663 |
| 1219 |
% \OMS/cmsy/m/n/10 ) |
| 1220 |
% \penalty 500 |
| 1221 |
% \glue 2.77771 plus 2.77771 |
| 1222 |
% \glue(\thickmuskip) 2.77771 plus 2.77771 |
| 1223 |
% \end{verbatim} |
| 1224 |
% Looks like it could be simplified slightly. But it's not so |
| 1225 |
% easy as it looks to do it without screwing up the line breaking |
| 1226 |
% possibilities. |
| 1227 |
% \begin{macrocode} |
| 1228 |
\renewcommand*\iff{% |
| 1229 |
\mskip\thickmuskip\Longleftrightarrow\mskip\thickmuskip |
| 1230 |
} |
| 1231 |
% \end{macrocode} |
| 1232 |
% Some dotly symbols. |
| 1233 |
% \begin{macrocode} |
| 1234 |
\DeclareFlexCompoundSymbol{\cdots}{Inn}{\cdotp\cdotp\cdotp}% |
| 1235 |
\DeclareFlexCompoundSymbol{\vdots}{Ord}{% |
| 1236 |
\vbox{\baselineskip4\p@ \lineskiplimit\z@ |
| 1237 |
\kern6\p@\hbox{.}\hbox{.}\hbox{.}}} |
| 1238 |
\DeclareFlexCompoundSymbol{\ddots}{Inn}{% |
| 1239 |
\mkern1mu\raise7\p@ |
| 1240 |
\vbox{\kern7\p@\hbox{.}}\mkern2mu% |
| 1241 |
\raise4\p@\hbox{.}\mkern2mu\raise\p@\hbox{.}\mkern1mu% |
| 1242 |
} |
| 1243 |
% \end{macrocode} |
| 1244 |
% . |
| 1245 |
% \begin{macrocode} |
| 1246 |
\def\relbar{\begingroup \def\smash@{tb}% in case amsmath is loaded |
| 1247 |
\mathpalette\mathsm@sh{\mathchar"200 }\endgroup} |
| 1248 |
% \end{macrocode} |
| 1249 |
% For \cs{Relbar} we take an equal sign of class $0$ (Ord) from the |
| 1250 |
% operator family. For \fn{cmr} and \pkg{mathptmx} we know this is |
| 1251 |
% family $0$. |
| 1252 |
% \begin{macrocode} |
| 1253 |
%<cmbase|mathptmx>\def\Relbar{\mathchar"3D } |
| 1254 |
% \end{macrocode} |
| 1255 |
% For the \pkg{mathpazo} setup we need to use the equal sign from |
| 1256 |
% \fn{cmr} and so must insert class $0$ and use the symbol from the |
| 1257 |
% upright symbols. |
| 1258 |
% \begin{macrocode} |
| 1259 |
%<mathpazo>\edef\Relbar{\mathchar\string"\hexnumber@\symupright3D } |
| 1260 |
% \end{macrocode} |
| 1261 |
% Done. |
| 1262 |
% \begin{macrocode} |
| 1263 |
\ExplSyntaxOff |
| 1264 |
%</cmbase|mathpazo|mathptmx> |
| 1265 |
% \end{macrocode} |
| 1266 |
% Various synonyms such as \cs{le} for \cs{leq} and |
| 1267 |
% \cs{to} for \cs{rightarrow} are defined in |
| 1268 |
% \pkg{flexisym} with \cs{def} instead of \cs{let}, for |
| 1269 |
% slower execution speed but smaller chance of synchronization |
| 1270 |
% problems. |
| 1271 |
% |
| 1272 |
% |
| 1273 |
% |
| 1274 |
% \begin{macrocode} |
| 1275 |
%<*msabm> |
| 1276 |
\ProvidesSymbols{msabm}[2001/09/08 v0.91] |
| 1277 |
\ExplSyntaxOn |
| 1278 |
% \end{macrocode} |
| 1279 |
% \begin{macrocode} |
| 1280 |
\RequirePackage{amsfonts}\relax |
| 1281 |
% \end{macrocode} |
| 1282 |
% \begin{macrocode} |
| 1283 |
\cs_gset:cpx{mg@MSA}{\hexnumber@\symAMSa}% |
| 1284 |
\cs_gset:cpx{mg@MSB}{\hexnumber@\symAMSb}% |
| 1285 |
% \end{macrocode} |
| 1286 |
% \begin{macrocode} |
| 1287 |
\DeclareFlexSymbol{\boxdot} {Bin}{MSA}{00} |
| 1288 |
\DeclareFlexSymbol{\boxplus} {Bin}{MSA}{01} |
| 1289 |
\DeclareFlexSymbol{\boxtimes} {Bin}{MSA}{02} |
| 1290 |
\DeclareFlexSymbol{\square} {Ord}{MSA}{03} |
| 1291 |
\DeclareFlexSymbol{\blacksquare} {Ord}{MSA}{04} |
| 1292 |
\DeclareFlexSymbol{\centerdot} {Bin}{MSA}{05} |
| 1293 |
\DeclareFlexSymbol{\lozenge} {Ord}{MSA}{06} |
| 1294 |
\DeclareFlexSymbol{\blacklozenge} {Ord}{MSA}{07} |
| 1295 |
\DeclareFlexSymbol{\circlearrowright} {Rel}{MSA}{08} |
| 1296 |
\DeclareFlexSymbol{\circlearrowleft} {Rel}{MSA}{09} |
| 1297 |
% \end{macrocode} |
| 1298 |
% In amsfonts.sty: |
| 1299 |
% \begin{macrocode} |
| 1300 |
%%\DeclareFlexSymbol{\rightleftharpoons}{Rel}{MSA}{0A} |
| 1301 |
\DeclareFlexSymbol{\leftrightharpoons} {Rel}{MSA}{0B} |
| 1302 |
\DeclareFlexSymbol{\boxminus} {Bin}{MSA}{0C} |
| 1303 |
\DeclareFlexSymbol{\Vdash} {Rel}{MSA}{0D} |
| 1304 |
\DeclareFlexSymbol{\Vvdash} {Rel}{MSA}{0E} |
| 1305 |
\DeclareFlexSymbol{\vDash} {Rel}{MSA}{0F} |
| 1306 |
\DeclareFlexSymbol{\twoheadrightarrow} {Rel}{MSA}{10} |
| 1307 |
\DeclareFlexSymbol{\twoheadleftarrow} {Rel}{MSA}{11} |
| 1308 |
\DeclareFlexSymbol{\leftleftarrows} {Rel}{MSA}{12} |
| 1309 |
\DeclareFlexSymbol{\rightrightarrows} {Rel}{MSA}{13} |
| 1310 |
\DeclareFlexSymbol{\upuparrows} {Rel}{MSA}{14} |
| 1311 |
\DeclareFlexSymbol{\downdownarrows} {Rel}{MSA}{15} |
| 1312 |
\DeclareFlexSymbol{\upharpoonright} {Rel}{MSA}{16} |
| 1313 |
\let\restriction\upharpoonright |
| 1314 |
\DeclareFlexSymbol{\downharpoonright} {Rel}{MSA}{17} |
| 1315 |
\DeclareFlexSymbol{\upharpoonleft} {Rel}{MSA}{18} |
| 1316 |
\DeclareFlexSymbol{\downharpoonleft} {Rel}{MSA}{19} |
| 1317 |
\DeclareFlexSymbol{\rightarrowtail} {Rel}{MSA}{1A} |
| 1318 |
\DeclareFlexSymbol{\leftarrowtail} {Rel}{MSA}{1B} |
| 1319 |
\DeclareFlexSymbol{\leftrightarrows} {Rel}{MSA}{1C} |
| 1320 |
\DeclareFlexSymbol{\rightleftarrows} {Rel}{MSA}{1D} |
| 1321 |
\DeclareFlexSymbol{\Lsh} {Rel}{MSA}{1E} |
| 1322 |
\DeclareFlexSymbol{\Rsh} {Rel}{MSA}{1F} |
| 1323 |
\DeclareFlexSymbol{\rightsquigarrow} {Rel}{MSA}{20} |
| 1324 |
\DeclareFlexSymbol{\leftrightsquigarrow}{Rel}{MSA}{21} |
| 1325 |
\DeclareFlexSymbol{\looparrowleft} {Rel}{MSA}{22} |
| 1326 |
\DeclareFlexSymbol{\looparrowright} {Rel}{MSA}{23} |
| 1327 |
\DeclareFlexSymbol{\circeq} {Rel}{MSA}{24} |
| 1328 |
\DeclareFlexSymbol{\succsim} {Rel}{MSA}{25} |
| 1329 |
\DeclareFlexSymbol{\gtrsim} {Rel}{MSA}{26} |
| 1330 |
\DeclareFlexSymbol{\gtrapprox} {Rel}{MSA}{27} |
| 1331 |
\DeclareFlexSymbol{\multimap} {Rel}{MSA}{28} |
| 1332 |
\DeclareFlexSymbol{\therefore} {Rel}{MSA}{29} |
| 1333 |
\DeclareFlexSymbol{\because} {Rel}{MSA}{2A} |
| 1334 |
\DeclareFlexSymbol{\doteqdot} {Rel}{MSA}{2B} |
| 1335 |
\let\Doteq\doteqdot |
| 1336 |
\DeclareFlexSymbol{\triangleq} {Rel}{MSA}{2C} |
| 1337 |
\DeclareFlexSymbol{\precsim} {Rel}{MSA}{2D} |
| 1338 |
\DeclareFlexSymbol{\lesssim} {Rel}{MSA}{2E} |
| 1339 |
\DeclareFlexSymbol{\lessapprox} {Rel}{MSA}{2F} |
| 1340 |
\DeclareFlexSymbol{\eqslantless} {Rel}{MSA}{30} |
| 1341 |
\DeclareFlexSymbol{\eqslantgtr} {Rel}{MSA}{31} |
| 1342 |
\DeclareFlexSymbol{\curlyeqprec} {Rel}{MSA}{32} |
| 1343 |
\DeclareFlexSymbol{\curlyeqsucc} {Rel}{MSA}{33} |
| 1344 |
\DeclareFlexSymbol{\preccurlyeq} {Rel}{MSA}{34} |
| 1345 |
\DeclareFlexSymbol{\leqq} {Rel}{MSA}{35} |
| 1346 |
\DeclareFlexSymbol{\leqslant} {Rel}{MSA}{36} |
| 1347 |
\DeclareFlexSymbol{\lessgtr} {Rel}{MSA}{37} |
| 1348 |
\DeclareFlexSymbol{\backprime} {Ord}{MSA}{38} |
| 1349 |
\DeclareFlexSymbol{\risingdotseq} {Rel}{MSA}{3A} |
| 1350 |
\DeclareFlexSymbol{\fallingdotseq} {Rel}{MSA}{3B} |
| 1351 |
\DeclareFlexSymbol{\succcurlyeq} {Rel}{MSA}{3C} |
| 1352 |
\DeclareFlexSymbol{\geqq} {Rel}{MSA}{3D} |
| 1353 |
\DeclareFlexSymbol{\geqslant} {Rel}{MSA}{3E} |
| 1354 |
\DeclareFlexSymbol{\gtrless} {Rel}{MSA}{3F} |
| 1355 |
% \end{macrocode} |
| 1356 |
% in amsfonts.sty |
| 1357 |
% \begin{macrocode} |
| 1358 |
%% \DeclareFlexSymbol{\sqsubset} {Rel}{MSA}{40} |
| 1359 |
%% \DeclareFlexSymbol{\sqsupset} {Rel}{MSA}{41} |
| 1360 |
\DeclareFlexSymbol{\vartriangleright} {Rel}{MSA}{42} |
| 1361 |
\DeclareFlexSymbol{\vartriangleleft} {Rel}{MSA}{43} |
| 1362 |
\DeclareFlexSymbol{\trianglerighteq} {Rel}{MSA}{44} |
| 1363 |
\DeclareFlexSymbol{\trianglelefteq} {Rel}{MSA}{45} |
| 1364 |
\DeclareFlexSymbol{\bigstar} {Ord}{MSA}{46} |
| 1365 |
\DeclareFlexSymbol{\between} {Rel}{MSA}{47} |
| 1366 |
\DeclareFlexSymbol{\blacktriangledown} {Ord}{MSA}{48} |
| 1367 |
\DeclareFlexSymbol{\blacktriangleright} {Rel}{MSA}{49} |
| 1368 |
\DeclareFlexSymbol{\blacktriangleleft} {Rel}{MSA}{4A} |
| 1369 |
\DeclareFlexSymbol{\vartriangle} {Rel}{MSA}{4D} |
| 1370 |
\DeclareFlexSymbol{\blacktriangle} {Ord}{MSA}{4E} |
| 1371 |
\DeclareFlexSymbol{\triangledown} {Ord}{MSA}{4F} |
| 1372 |
\DeclareFlexSymbol{\eqcirc} {Rel}{MSA}{50} |
| 1373 |
\DeclareFlexSymbol{\lesseqgtr} {Rel}{MSA}{51} |
| 1374 |
\DeclareFlexSymbol{\gtreqless} {Rel}{MSA}{52} |
| 1375 |
\DeclareFlexSymbol{\lesseqqgtr} {Rel}{MSA}{53} |
| 1376 |
\DeclareFlexSymbol{\gtreqqless} {Rel}{MSA}{54} |
| 1377 |
\DeclareFlexSymbol{\Rrightarrow} {Rel}{MSA}{56} |
| 1378 |
\DeclareFlexSymbol{\Lleftarrow} {Rel}{MSA}{57} |
| 1379 |
\DeclareFlexSymbol{\veebar} {Bin}{MSA}{59} |
| 1380 |
\DeclareFlexSymbol{\barwedge} {Bin}{MSA}{5A} |
| 1381 |
\DeclareFlexSymbol{\doublebarwedge} {Bin}{MSA}{5B} |
| 1382 |
% \end{macrocode} |
| 1383 |
% In amsfonts.sty |
| 1384 |
% \begin{macrocode} |
| 1385 |
%%\DeclareFlexSymbol{\angle} {Ord}{MSA}{5C} |
| 1386 |
\DeclareFlexSymbol{\measuredangle} {Ord}{MSA}{5D} |
| 1387 |
\DeclareFlexSymbol{\sphericalangle} {Ord}{MSA}{5E} |
| 1388 |
\DeclareFlexSymbol{\varpropto} {Rel}{MSA}{5F} |
| 1389 |
\DeclareFlexSymbol{\smallsmile} {Rel}{MSA}{60} |
| 1390 |
\DeclareFlexSymbol{\smallfrown} {Rel}{MSA}{61} |
| 1391 |
\DeclareFlexSymbol{\Subset} {Rel}{MSA}{62} |
| 1392 |
\DeclareFlexSymbol{\Supset} {Rel}{MSA}{63} |
| 1393 |
\DeclareFlexSymbol{\Cup} {Bin}{MSA}{64} |
| 1394 |
\let\doublecup\Cup |
| 1395 |
\DeclareFlexSymbol{\Cap} {Bin}{MSA}{65} |
| 1396 |
\let\doublecap\Cap |
| 1397 |
\DeclareFlexSymbol{\curlywedge} {Bin}{MSA}{66} |
| 1398 |
\DeclareFlexSymbol{\curlyvee} {Bin}{MSA}{67} |
| 1399 |
\DeclareFlexSymbol{\leftthreetimes} {Bin}{MSA}{68} |
| 1400 |
\DeclareFlexSymbol{\rightthreetimes} {Bin}{MSA}{69} |
| 1401 |
\DeclareFlexSymbol{\subseteqq} {Rel}{MSA}{6A} |
| 1402 |
\DeclareFlexSymbol{\supseteqq} {Rel}{MSA}{6B} |
| 1403 |
\DeclareFlexSymbol{\bumpeq} {Rel}{MSA}{6C} |
| 1404 |
\DeclareFlexSymbol{\Bumpeq} {Rel}{MSA}{6D} |
| 1405 |
\DeclareFlexSymbol{\lll} {Rel}{MSA}{6E} |
| 1406 |
\let\llless\lll |
| 1407 |
\DeclareFlexSymbol{\ggg} {Rel}{MSA}{6F} |
| 1408 |
\let\gggtr\ggg |
| 1409 |
\DeclareFlexSymbol{\circledS} {Ord}{MSA}{73} |
| 1410 |
\DeclareFlexSymbol{\pitchfork} {Rel}{MSA}{74} |
| 1411 |
\DeclareFlexSymbol{\dotplus} {Bin}{MSA}{75} |
| 1412 |
\DeclareFlexSymbol{\backsim} {Rel}{MSA}{76} |
| 1413 |
\DeclareFlexSymbol{\backsimeq} {Rel}{MSA}{77} |
| 1414 |
\DeclareFlexSymbol{\complement} {Ord}{MSA}{7B} |
| 1415 |
\DeclareFlexSymbol{\intercal} {Bin}{MSA}{7C} |
| 1416 |
\DeclareFlexSymbol{\circledcirc} {Bin}{MSA}{7D} |
| 1417 |
\DeclareFlexSymbol{\circledast} {Bin}{MSA}{7E} |
| 1418 |
\DeclareFlexSymbol{\circleddash} {Bin}{MSA}{7F} |
| 1419 |
% \end{macrocode} |
| 1420 |
% Begin AMSb declarations |
| 1421 |
% \begin{macrocode} |
| 1422 |
\DeclareFlexSymbol{\lvertneqq} {Rel}{MSB}{00} |
| 1423 |
\DeclareFlexSymbol{\gvertneqq} {Rel}{MSB}{01} |
| 1424 |
\DeclareFlexSymbol{\nleq} {Rel}{MSB}{02} |
| 1425 |
\DeclareFlexSymbol{\ngeq} {Rel}{MSB}{03} |
| 1426 |
\DeclareFlexSymbol{\nless} {Rel}{MSB}{04} |
| 1427 |
\DeclareFlexSymbol{\ngtr} {Rel}{MSB}{05} |
| 1428 |
\DeclareFlexSymbol{\nprec} {Rel}{MSB}{06} |
| 1429 |
\DeclareFlexSymbol{\nsucc} {Rel}{MSB}{07} |
| 1430 |
\DeclareFlexSymbol{\lneqq} {Rel}{MSB}{08} |
| 1431 |
\DeclareFlexSymbol{\gneqq} {Rel}{MSB}{09} |
| 1432 |
\DeclareFlexSymbol{\nleqslant} {Rel}{MSB}{0A} |
| 1433 |
\DeclareFlexSymbol{\ngeqslant} {Rel}{MSB}{0B} |
| 1434 |
\DeclareFlexSymbol{\lneq} {Rel}{MSB}{0C} |
| 1435 |
\DeclareFlexSymbol{\gneq} {Rel}{MSB}{0D} |
| 1436 |
\DeclareFlexSymbol{\npreceq} {Rel}{MSB}{0E} |
| 1437 |
\DeclareFlexSymbol{\nsucceq} {Rel}{MSB}{0F} |
| 1438 |
\DeclareFlexSymbol{\precnsim} {Rel}{MSB}{10} |
| 1439 |
\DeclareFlexSymbol{\succnsim} {Rel}{MSB}{11} |
| 1440 |
\DeclareFlexSymbol{\lnsim} {Rel}{MSB}{12} |
| 1441 |
\DeclareFlexSymbol{\gnsim} {Rel}{MSB}{13} |
| 1442 |
\DeclareFlexSymbol{\nleqq} {Rel}{MSB}{14} |
| 1443 |
\DeclareFlexSymbol{\ngeqq} {Rel}{MSB}{15} |
| 1444 |
\DeclareFlexSymbol{\precneqq} {Rel}{MSB}{16} |
| 1445 |
\DeclareFlexSymbol{\succneqq} {Rel}{MSB}{17} |
| 1446 |
\DeclareFlexSymbol{\precnapprox} {Rel}{MSB}{18} |
| 1447 |
\DeclareFlexSymbol{\succnapprox} {Rel}{MSB}{19} |
| 1448 |
\DeclareFlexSymbol{\lnapprox} {Rel}{MSB}{1A} |
| 1449 |
\DeclareFlexSymbol{\gnapprox} {Rel}{MSB}{1B} |
| 1450 |
\DeclareFlexSymbol{\nsim} {Rel}{MSB}{1C} |
| 1451 |
\DeclareFlexSymbol{\ncong} {Rel}{MSB}{1D} |
| 1452 |
\DeclareFlexSymbol{\diagup} {Ord}{MSB}{1E} |
| 1453 |
\DeclareFlexSymbol{\diagdown} {Ord}{MSB}{1F} |
| 1454 |
\DeclareFlexSymbol{\varsubsetneq} {Rel}{MSB}{20} |
| 1455 |
\DeclareFlexSymbol{\varsupsetneq} {Rel}{MSB}{21} |
| 1456 |
\DeclareFlexSymbol{\nsubseteqq} {Rel}{MSB}{22} |
| 1457 |
\DeclareFlexSymbol{\nsupseteqq} {Rel}{MSB}{23} |
| 1458 |
\DeclareFlexSymbol{\subsetneqq} {Rel}{MSB}{24} |
| 1459 |
\DeclareFlexSymbol{\supsetneqq} {Rel}{MSB}{25} |
| 1460 |
\DeclareFlexSymbol{\varsubsetneqq} {Rel}{MSB}{26} |
| 1461 |
\DeclareFlexSymbol{\varsupsetneqq} {Rel}{MSB}{27} |
| 1462 |
\DeclareFlexSymbol{\subsetneq} {Rel}{MSB}{28} |
| 1463 |
\DeclareFlexSymbol{\supsetneq} {Rel}{MSB}{29} |
| 1464 |
\DeclareFlexSymbol{\nsubseteq} {Rel}{MSB}{2A} |
| 1465 |
\DeclareFlexSymbol{\nsupseteq} {Rel}{MSB}{2B} |
| 1466 |
\DeclareFlexSymbol{\nparallel} {Rel}{MSB}{2C} |
| 1467 |
\DeclareFlexSymbol{\nmid} {Rel}{MSB}{2D} |
| 1468 |
\DeclareFlexSymbol{\nshortmid} {Rel}{MSB}{2E} |
| 1469 |
\DeclareFlexSymbol{\nshortparallel} {Rel}{MSB}{2F} |
| 1470 |
\DeclareFlexSymbol{\nvdash} {Rel}{MSB}{30} |
| 1471 |
\DeclareFlexSymbol{\nVdash} {Rel}{MSB}{31} |
| 1472 |
\DeclareFlexSymbol{\nvDash} {Rel}{MSB}{32} |
| 1473 |
\DeclareFlexSymbol{\nVDash} {Rel}{MSB}{33} |
| 1474 |
\DeclareFlexSymbol{\ntrianglerighteq}{Rel}{MSB}{34} |
| 1475 |
\DeclareFlexSymbol{\ntrianglelefteq} {Rel}{MSB}{35} |
| 1476 |
\DeclareFlexSymbol{\ntriangleleft} {Rel}{MSB}{36} |
| 1477 |
\DeclareFlexSymbol{\ntriangleright} {Rel}{MSB}{37} |
| 1478 |
\DeclareFlexSymbol{\nleftarrow} {Rel}{MSB}{38} |
| 1479 |
\DeclareFlexSymbol{\nrightarrow} {Rel}{MSB}{39} |
| 1480 |
\DeclareFlexSymbol{\nLeftarrow} {Rel}{MSB}{3A} |
| 1481 |
\DeclareFlexSymbol{\nRightarrow} {Rel}{MSB}{3B} |
| 1482 |
\DeclareFlexSymbol{\nLeftrightarrow} {Rel}{MSB}{3C} |
| 1483 |
\DeclareFlexSymbol{\nleftrightarrow} {Rel}{MSB}{3D} |
| 1484 |
\DeclareFlexSymbol{\divideontimes} {Bin}{MSB}{3E} |
| 1485 |
\DeclareFlexSymbol{\varnothing} {Ord}{MSB}{3F} |
| 1486 |
\DeclareFlexSymbol{\nexists} {Ord}{MSB}{40} |
| 1487 |
\DeclareFlexSymbol{\Finv} {Ord}{MSB}{60} |
| 1488 |
\DeclareFlexSymbol{\Game} {Ord}{MSB}{61} |
| 1489 |
% \end{macrocode} |
| 1490 |
% In amsfonts.sty: |
| 1491 |
% \begin{macrocode} |
| 1492 |
%%\DeclareFlexSymbol{\mho} {Ord}{MSB}{66} |
| 1493 |
\DeclareFlexSymbol{\eth} {Ord}{MSB}{67} |
| 1494 |
\DeclareFlexSymbol{\eqsim} {Rel}{MSB}{68} |
| 1495 |
\DeclareFlexSymbol{\beth} {Ord}{MSB}{69} |
| 1496 |
\DeclareFlexSymbol{\gimel} {Ord}{MSB}{6A} |
| 1497 |
\DeclareFlexSymbol{\daleth} {Ord}{MSB}{6B} |
| 1498 |
\DeclareFlexSymbol{\lessdot} {Bin}{MSB}{6C} |
| 1499 |
\DeclareFlexSymbol{\gtrdot} {Bin}{MSB}{6D} |
| 1500 |
\DeclareFlexSymbol{\ltimes} {Bin}{MSB}{6E} |
| 1501 |
\DeclareFlexSymbol{\rtimes} {Bin}{MSB}{6F} |
| 1502 |
\DeclareFlexSymbol{\shortmid} {Rel}{MSB}{70} |
| 1503 |
\DeclareFlexSymbol{\shortparallel} {Rel}{MSB}{71} |
| 1504 |
\DeclareFlexSymbol{\smallsetminus} {Bin}{MSB}{72} |
| 1505 |
\DeclareFlexSymbol{\thicksim} {Rel}{MSB}{73} |
| 1506 |
\DeclareFlexSymbol{\thickapprox} {Rel}{MSB}{74} |
| 1507 |
\DeclareFlexSymbol{\approxeq} {Rel}{MSB}{75} |
| 1508 |
\DeclareFlexSymbol{\succapprox} {Rel}{MSB}{76} |
| 1509 |
\DeclareFlexSymbol{\precapprox} {Rel}{MSB}{77} |
| 1510 |
\DeclareFlexSymbol{\curvearrowleft} {Rel}{MSB}{78} |
| 1511 |
\DeclareFlexSymbol{\curvearrowright} {Rel}{MSB}{79} |
| 1512 |
\DeclareFlexSymbol{\digamma} {Ord}{MSB}{7A} |
| 1513 |
\DeclareFlexSymbol{\varkappa} {Ord}{MSB}{7B} |
| 1514 |
\DeclareFlexSymbol{\Bbbk} {Ord}{MSB}{7C} |
| 1515 |
\DeclareFlexSymbol{\hslash} {Ord}{MSB}{7D} |
| 1516 |
% \end{macrocode} |
| 1517 |
% In amsfonts.sty: |
| 1518 |
% \begin{macrocode} |
| 1519 |
%%\DeclareFlexSymbol{\hbar} {Ord}{MSB}{7E} |
| 1520 |
\DeclareFlexSymbol{\backepsilon} {Rel}{MSB}{7F} |
| 1521 |
\ExplSyntaxOff |
| 1522 |
%</msabm> |
| 1523 |
% \end{macrocode} |
| 1524 |
% |
| 1525 |
% \PrintIndex |
| 1526 |
% |
| 1527 |
% \Finale |