\NeedsTeXFormat{LaTeX2e}[1997/06/01]
% 
%:ams
% Based on Young Ryu's txfonts.sty, v.3.2.1
% Text and math are now loaded in separate sty files---the text
% font family need not be txtext. The text font loaded when this package
% is processed is used for operator names, mathrm, mathit, 
% and likewise for mathsf and mathtt.
% The original txfonts math fonts have been replaced by virtual fonts which
% render less tightly so that there are many fewer instances 
% of glyph collisions.
% These modifications are by Michael Sharpe, msharpe at ucsd dot edu

\def\fileversion{1.754}
\def\filedate{2024/09/22}
\ProvidesPackage{newtxmath}[\filedate\space v\fileversion ]
\@ifundefined{newtxmathLoaded}{}{\endinput}

%\expandafter\show\csname opt@newtxmath.sty\endcsname

\message{`newtxmath' v\fileversion, \filedate\space Math macros based originally on txfonts (msharpe)}

\csname newtxmathLoaded\endcsname
\let\newtxmathLoaded\endinput
\RequirePackage{amsmath} % improves extendable delimiter handling
\RequirePackage{ifthen}
\RequirePackage{etoolbox}
%\RequirePackage{trimspaces} % for trim@pre@space

%\RequirePackage{etextools} % for \ifiscs, conflicts with biblatex
% Replacement for \ifiscs is not comprehensive, but adequate to distinguish a letter like j from a macro like \rhox, not necessarily existent.
\def\ifiscseq#1{\ifcat$\expandafter\@gobble\string#1$\expandafter\@secondoftwo\else\expandafter\@firstoftwo\fi}

\RequirePackage{iftex} % should be in latex kernel now
\RequirePackage{xkeyval}
\RequirePackage{centernot} % for proper handling of negated relations

\newif\iftx@noopt \newif\iftx@upscr
\def\cmr@default{lmr} % changed from cmr 20170911
\def\ly@one{LY1}
\def\t@one{T1}
\def\ot@one{OT1}
\newcount\tx@cntz
\input{binhex}

\let\ntxmath@scaled\@empty
\@ifundefined{ntxmathscale}{\def\ntxmathscale{1}}{}
\def\tx@scale{\ntxmathscale}
\def\ntxmath@scaled{s*[\tx@scale]}
\define@key{ntxmath}{scaled}[1.0]{\def\tx@scale{#1}\def\ntxmath@scaled{s*[#1]}}
\define@key{ntxmath}{scale}[1.0]{\def\tx@scale{#1}\def\ntxmath@scaled{s*[#1]}}

\def\ntxmath@vecsep{.25ex}
\define@key{ntxmath}{vecsep}[.25ex]{\def\ntxmath@vecsep{#1}}
%:
%\define@key{ntxmath}{scalesubdrop}[1.0]{\DeclareRobustCommand{\ntx@scalesub}{%
%\fontdimen16\font=#1\fontdimen16\font\fontdimen17\font=#1\fontdimen17\font}}
\DeclareOption*{%
  \begingroup
  \edef\x{\endgroup
    \noexpand\setkeys{ntxmath}{\CurrentOption}}%
  \x}
\newif\iftx@XChalty
\newcount\tx@Isdigit
\newcount\tx@IsAlNum
\newif\iftx@ams \newif\iftx@slantedG \newif\iftx@cmint \newif\iftx@braces
\newif\iftx@curlybraces
\newif\iftx@libertine \newif\iftx@libertinus
\newif\iftx@vvarbb\newif\iftx@varbb \newif\iftx@symbolsC
\newif\iftx@gm 
\newif\iftx@ebgm 
\newif\iftx@bigdelims
\newif\iftx@liby \newif\iftx@tma % use Times math accents
\tx@symbolsCtrue
\newif\iftx@altnu
\newif\iftx@largelibfigs \newif\iftx@frenchm % french math
\newif\iftx@minion \newif\iftx@libaltvw \newif\iftx@bv \newif\iftx@ut
\newif\iftx@ba % new BaskervilleF fonts
\newif\iftx@gel % GelasioMath
\newif\iftx@ch \newif\iftx@coch \newif\iftx@nc % NewCenturySchoolbook
\newif\iftx@ot % use OT1 for operators
\newif\iftx@ntxmath \tx@ntxmathtrue % default is Times operators and math italic
\newif\iftx@upint %default is sloped
\newif\iftx@smops %default is large binary operators
\newif\iftx@BI \tx@BIfalse
\def\@tx@ptm{ptm}
\newif\iftx@ptm
\newif\iftx@nozchvw
\newif\iftx@stxtwo
\newif\iftx@sbc
\newif\iftx@noto \newif\iftx@notosans
%\newif\iftx@spc
\newif\iftx@nootone % do not switch to OT1 for operators
\newif\iftx@digits % use digits from letters
\newif\iftx@isenh % the math style is enhanced and can make use of new macros
% Currently (2019-12-11) only txmath, libertine, XCharter, aramond, stickstoo, utopia, nc, minion and cochineal have been enhanced.
\newif\iftx@ebgalth
\newif\iftx@cochf % switch to long f
\newif\iftx@cochrho % switch to long rho
\newif\iftx@fourier 
\edef\tx@rmdefault{\rmdefault}
\edef\tx@encdefault{\encodingdefault}
\tx@ottrue % default is to use OT1 operators
\let\rmdefaultB\rmdefault
\newif\iftx@hastm  % true means a times text package
\ifx\tx@rmdefault\@tx@ptm \tx@hastmtrue\fi
\@ifundefined{ver@newtxtext.sty}{}{\tx@hastmtrue}
\@ifundefined{ver@tgtermes.sty}{}{\tx@hastmtrue}
\@ifundefined{ver@newtx.sty}{}{\ifnum\ntx@id=0 \tx@hastmtrue\fi}
%\iftx@hastm\def\rmdefaultB{minntx}\fi
%\ifthenelse{\equal{\rmdefault}{minntx}}{\tx@hastmtrue\def\rmdefaultB{minntx}}{}
%\expandafter\ifx\csname qnc@scale\endcsname\relax
%\else
%    \let\znc@scale=\qnc@scale % scale set by tgschola.sty
%\fi

%
%\newcommand\enablesbcorrection{\tx@sbctrue\AtBeginDocument{\mathcode`\_=\string"8000 \catcode`\_=12\relax}}
%\newcommand\disablesbcorrection{\tx@sbcfalse\catcode`\_=8\relax}
%\newcommand\enablespcorrection{\tx@spctrue\AtBeginDocument{\mathcode`\^=\string"8000 \catcode`\^=12\relax}}
%\newcommand\disablespcorrection{\tx@spcfalse\catcode`\^=7\relax}
%\@onlypreamble\enablesbcorrection
%\@onlypreamble\disablesbcorrection
%\@onlypreamble\enablespcorrection
%\@onlypreamble\disablespcorrection

% Should test for which math italic font and customize these numbers.
\def\tx@sb@dflt{% default subscript kerns, usually negative
 \if\next f\mkern-3mu\else
  \if\next j\mkern-3mu\else
   \if\next p\mkern-\@ne mu\else
    \if\next y\mkern-\@ne mu\else
     \if\next A\mkern-\tw@ mu\else
      \if\next B\mkern-\@ne mu\else
       \if\next D\mkern-\@ne mu\else
        \if\next H\mkern-\@ne mu\else
         \if\next I\mkern-\@ne mu\else
          \if\next K\mkern-\@ne mu\else
           \if\next L\mkern-\@ne mu\else
            \if\next M\mkern-\@ne mu\else
             \if\next N\mkern-0.5mu\else
              \if\next P\mkern-\@ne mu\else
               \if\next X\mkern-\@ne mu\else
                \if\next \rho\mkern-1.5mu\else
                 \if\next \mu\mkern-1 mu\else
                 \fi
                \fi
               \fi%
              \fi%
             \fi%
            \fi%
           \fi%
          \fi%
         \fi%
        \fi%
       \fi%
      \fi%
     \fi%
    \fi%
   \fi%
  \fi%
 \fi}
%\def\tx@sp@dflt{% default superscript kerns, usually positive
% \if\tx@next f\mkern\tw@ mu\else
%  \if\tx@next j\mkern\tw@ mu\else
%   \if\tx@next p\mkern\@ne mu\else
%    \if\tx@next y\mkern\tw@ mu\else
%     \if\tx@next \rho\mkern\tw@ mu\else
%      \if\tx@next \mu\mkern\tw@ mu\else
%      \fi
%     \fi
%    \fi%
%   \fi%
%  \fi%
% \fi}
\newtoks\tx@tA
\newtoks\tx@tB
\newcommand*{\loadsubfile}[1]{\readsufile{#1}%creates toks tx@tA. tx@tB
\tx@tA\expandafter{\the\expandafter\tx@tA\the\tx@tB}
\expandafter\def\expandafter\tx@sb\expandafter{\the\tx@tA}}
\newif\ifntx@amsthm
%\def\tx@sb{\the\tx@tA \the\tx@tB}\enablesbcorrection}
%\newcommand*{\loadsupfile}[1]{\readsufile{#1}%creates toks tx@tA. tx@tB
%\def\tx@sp{\the\tx@tA \the\tx@tB}\enablespcorrection}
\def\tx@subs{newtx-subs.tex}
\newread\tx@su
\def\readsufile#1{%
  \tx@tA={}
  \tx@tB={}
  \openin\tx@su=#1
  \loop\unless\ifeof\tx@su
  \read\tx@su to \tx@line
  \if\tx@line\par\else
    \expandafter\tx@addrec\tx@line
  \fi
  \repeat
}
\def\tx@addrec#1#2{%
\ifiscseq{#1}{\tx@tA\expandafter{\the\tx@tA\if}}{\tx@tA\expandafter{\the\tx@tA\if}}
\tx@tA\expandafter{\the\tx@tA\next #1\mkern #2 mu\else}
\tx@tB\expandafter{\the\tx@tB\fi}}

%\newif\iftx@legacycolonsyms
\newif\iftx@subsfile
\newif\ifntx@pfigs % default is false---use tabular in math
%\@ifpackageloaded{newtx}%
%{\@for\ntx@x:=\ntx@textlst\do{\DeclareOption{\ntx@x}{}}}{}
\DeclareOption{subscriptcorrectionfile}{\def\tx@subs{#1}\tx@subsfiletrue}
\DeclareOption{nosubscriptcorrection}{\tx@sbcfalse}
\DeclareOption{subscriptcorrection}{\tx@sbctrue}
%\DeclareOption{nosuperscriptcorrection}{\disablespcorrection}
%\DeclareOption{superscriptcorrection}  {\enablespcorrection}
%\DeclareOption{legacycolonsyms}{\tx@legacycolonsymstrue}
\DeclareOption{timesmathacc}{\tx@tmatrue}
\DeclareOption{bigdelims}{\tx@bigdelimstrue}
\DeclareOption{varbb}{\tx@varbbtrue}
\DeclareOption{vvarbb}{\tx@vvarbbtrue}
\DeclareOption{libaltvw}{\tx@libaltvwtrue}
\DeclareOption{nosymbolsc}{\tx@symbolsCfalse}
\DeclareOption{libertine}{\tx@libertinetrue\tx@ntxmathfalse}
\DeclareOption{libertinus}{\tx@libertinustrue\tx@ntxmathfalse}
\DeclareOption{minion}{\tx@miniontrue\tx@ntxmathfalse}
\DeclareOption{cochineal}{\tx@cochtrue\tx@ntxmathfalse}
\DeclareOption{garamondx}{\tx@gmtrue\tx@ntxmathfalse\tx@otfalse}
\DeclareOption{ebgaramond}{\tx@ebgmtrue\tx@ntxmathfalse\tx@otfalse}
\DeclareOption{baskerville}{\tx@batrue\tx@ntxmathfalse}
\DeclareOption{Baskerville}{\tx@batrue\tx@ntxmathfalse}
\DeclareOption{baskervillef}{\tx@batrue\tx@ntxmathfalse}
\DeclareOption{BaskervilleF}{\tx@batrue\tx@ntxmathfalse}
\DeclareOption{baskervaldx}{\tx@bvtrue\tx@ntxmathfalse}
\DeclareOption{Baskervaldx}{\tx@bvtrue\tx@ntxmathfalse}
\DeclareOption{utopia}{\tx@uttrue\tx@ntxmathfalse}
\DeclareOption{heuristica}{\tx@uttrue\tx@ntxmathfalse}
\DeclareOption{Heuristica}{\tx@uttrue\tx@ntxmathfalse}
\DeclareOption{Erewhon}{\tx@uttrue\tx@ntxmathfalse}
\DeclareOption{erewhon}{\tx@uttrue\tx@ntxmathfalse}
\DeclareOption{gelasio}{\tx@geltrue\tx@ntxmathfalse}
\DeclareOption{charter}{\tx@chtrue\tx@ntxmathfalse}
\DeclareOption{xcharter}{\tx@chtrue\tx@ntxmathfalse}
\DeclareOption{cmintegrals}{\tx@cminttrue}
\DeclareOption{cmbraces}{\tx@bracestrue}
\DeclareOption{curlybraces}{\tx@curlybracestrue}
\DeclareOption{noamssymbols}{\tx@amsfalse}
\DeclareOption{amssymbols}{\tx@amstrue}
\DeclareOption{uprightscript}{\tx@upscrtrue}
\DeclareOption{uprightGreek}{\tx@slantedGfalse}
\DeclareOption{slantedGreek}{\tx@slantedGtrue}
\DeclareOption{altnu}{\tx@altnutrue}
\DeclareOption{largelibfigs}{\tx@largelibfigstrue}
\DeclareOption{liby}{\tx@libytrue}
\DeclareOption{frenchmath}{\tx@frenchmtrue}
\DeclareOption{nonewtxmathopt}{\tx@noopttrue}
\DeclareOption{upint}{\tx@upinttrue}
\DeclareOption{smallerops}{\tx@smopstrue}
\DeclareOption{useBImacros}{\tx@BItrue}
\DeclareOption{noxchvw}{\tx@nozchvwtrue}
\DeclareOption{noXchvw}{\tx@nozchvwtrue}
\DeclareOption{stix2}{\tx@stxtwotrue\tx@ntxmathfalse} % added in 1.55
\DeclareOption{stickstoo}{\tx@stxtwotrue\tx@ntxmathfalse} % added in 1.55
\DeclareOption{nc}{\tx@nctrue\tx@ntxmathfalse} % added in  1.62
\DeclareOption{ncf}{\tx@nctrue\tx@ntxmathfalse\tx@fouriertrue} % added in  1.622
\DeclareOption{noto}{\tx@nototrue\tx@notosansfalse\tx@ntxmathfalse} % added in 1.629
\DeclareOption{notosans}{\tx@notosanstrue\tx@notofalse\tx@ntxmathfalse} % added in 1.629
\DeclareOption{cochf}{\tx@cochftrue} % added in 1.604
\DeclareOption{cochrho}{\tx@cochrhotrue} % added in 1.604
\DeclareOption{alty}{\tx@XChaltytrue} % only in XCharter, added in 1.611
\DeclareOption{varg}{\def\X@s@v@rg{1}}
\DeclareOption{varvw}{\def\X@s@v@rg{0}}
\DeclareOption{internaldigits}{\tx@digitstrue}
\DeclareOption{noOT1}{\tx@nootonetrue}
\DeclareOption{amsthm}{\ntx@amsthmtrue}
\DeclareOption{propmathfigs}{\ntx@pfigstrue}
\DeclareOption{alth}{\tx@ebgalthtrue} % for ebg only
\ExecuteOptions{%
amssymbols,uprightGreek,nosubscriptcorrection}

\ProcessOptions\relax

\newif\iftx@lbtn
\iftx@libertine\tx@lbtntrue\else\iftx@libertinus%
\tx@lbtntrue\fi\fi

\let\ntxmath@scale\tx@scale

\ifntx@amsthm
  \RequirePackage{amsthm}
  \typeout{amsthm loaded}
\else
    \typeout{amsthm NOT loaded}
\fi

% noto option requires special handling because of scaling issues---
% The noto package does not have an option that  controls the scale
% factor for serifed text.
%\newdimen\tx@dima
%\newif\iftx@somenoto
%\iftx@noto
%  \tx@somenototrue
%\else
%  \iftx@notosans
%    \tx@somenototrue
%  \fi
%\fi
%\iftx@somenoto
%  % use the scale from newtxmath to reset scale factors for noto
%    \tx@dima=\tx@scale\p@
%    \tx@dima=.9\tx@dima
%    \edef\NotoSerif@scale{\strip@pt\tx@dima}
%    \let\NotoSans@scale\NotoSerif@scale
%    \let\NotoSansMono@scale\NotoSerif@scale
%\fi
% Check whether math face is enhanced
\iftx@ntxmath\tx@isenhtrue\else
  \iftx@lbtn\tx@isenhtrue\else
    \iftx@ch\tx@isenhtrue\else
      \iftx@ebgm\tx@isenhtrue\else
        \iftx@stxtwo\tx@isenhtrue\else
          \iftx@coch\tx@isenhtrue\else
            \iftx@ut\tx@isenhtrue\else
              \iftx@nc\tx@isenhtrue\else
                \iftx@minion\tx@isenhtrue\else
                  \iftx@noto\tx@isenhtrue\else
                    \iftx@notosans\tx@isenhtrue\else
                      \iftx@gel\tx@isenhtrue\else
                      \fi
                    \fi
                  \fi
                \fi
              \fi
            \fi
          \fi
        \fi
      \fi
    \fi
  \fi
\fi

\AtEndPreamble{%
%\traceon
\iftx@sbc
  \expandafter\ifx\csname xyversion\endcsname\relax \else
	\PackageError{newtxmath}{xy package is not compatible with the subscriptcorrection macros}{Either remove xy or disable  
	subscriptcorrection by means of package option nosubscriptcorrection}
  \fi
	\IfFileExists{\tx@subs}{\loadsubfile{\tx@subs}}%
	{\def\tx@sb{\tx@sb@dflt}\message{File \tx@subs\space not found. Using internal defaults for subscript correction.^^J}}
\fi
%\traceoff
}
%\iftx@ch\else\tx@XChaltyfalse\fi % option alty is only for XCharter
% stix2 forces timesmathacc and no optical sizes
\iftx@stxtwo\tx@tmatrue \tx@noopttrue\fi
% frenchmath implies uprightGreek
\iftx@frenchm\tx@slantedGfalse\fi

%bigdelims cancels cmbraces
\iftx@bigdelims\tx@bracesfalse\fi
% No varg or varvw with options other than newtx or newpx
\iftx@lbtn\let\X@s@v@rg\@undefined\fi
\iftx@minion\let\X@s@v@rg\@undefined\fi
\iftx@ut\let\X@s@v@rg\@undefined\fi
\iftx@ch\let\X@s@v@rg\@undefined\fi
\iftx@coch\let\X@s@v@rg\@undefined\fi
\iftx@gm\let\X@s@v@rg\@undefined\fi
\iftx@ebgm\let\X@s@v@rg\@undefined\fi
\iftx@bv\let\X@s@v@rg\@undefined\fi
\iftx@ba\let\X@s@v@rg\@undefined\fi
\iftx@stxtwo\let\X@s@v@rg\@undefined\fi
\iftx@gel\let\X@s@v@rg\@undefined\fi
% altnu, liby and largelibfigs valid only with libertin[e,us]
\iftx@lbtn\else\tx@altnufalse\tx@largelibfigsfalse\tx@libyfalse\fi
% Use existing text fonts for operators, mathrm, etc
\iftx@ntxmath
	\iftx@hastm\def\rmdefaultB{minntx}\fi
	\ifthenelse{\equal{\rmdefault}{minntx}}{\tx@hastmtrue\def\rmdefaultB{minntx}}{}
\fi
\iftutex
  \iftx@lbtn
    \ifx\tx@rmdefault\cmr@default
      %\message{Setting rmdefaultB to minlibertine}
      \renewcommand{\rmdefaultB}{minlibertine}% since can't load libertine twice
    \fi
  \fi
\else
  \iftx@libertine
    \@ifundefined{iflibertine@otf}{\tx@otfalse}{}
  \else
    \iftx@libertinus
      \@ifundefined{iflibertinus@otf}{\tx@otfalse}{}
	\fi
  \fi
\fi
\iftx@gel\edef\rmdefaultB{mingelasio}\fi
\iftx@minion\edef\rmdefaultB{MinionPro-TLF}\fi
\iftx@noto\edef\rmdefaultB{NotoSerif-TLF}\fi
\iftx@notosans\edef\rmdefaultB{NotoSans-TLF}\fi
\edef\bold@wt{\ifx\iflibertine@otf\undefined b\else sb\fi}
\let\tx@enc\encodingdefault
%:
\iftx@nootone\tx@otfalse\fi
\iftx@ot\let\tx@enc\ot@one\fi
\DeclareSymbolFont{operators}{\tx@enc}{\rmdefaultB}{m}{n}
\SetSymbolFont{operators}{bold}{\tx@enc}{\rmdefaultB}{\bold@wt}{n}

\def\operator@font{\mathgroup\symoperators}

\DeclareSymbolFontAlphabet{\mathrm}{operators}
%\iftx@slantedG
  \DeclareMathAlphabet{\mathsf}{OT1}%{\encodingdefault}
  {\sfdefault}{m}{n}
  \SetMathAlphabet{\mathsf}{bold}{OT1}%{\encodingdefault}
  {\sfdefault}{b}{n}
%\else
%  \DeclareMathAlphabet{\mathsfi}{OT1}%{\encodingdefault}
%  {\sfdefault}{m}{n}
%  \SetMathAlphabet{\mathsf}{bold}{OT1}%{\encodingdefault}
%  {\sfdefault}{b}{n}
%\fi
\DeclareMathAlphabet{\mathit}{\tx@enc}{\rmdefaultB}{m}{it}
\DeclareMathAlphabet{\mathtt}{\encodingdefault}{\ttdefault}{m}{n}
\DeclareSymbolFontAlphabet{\mathrm}{operators}
\DeclareMathAlphabet{\mathbf}{\tx@enc}{\rmdefaultB}{\bold@wt}{n}
\SetMathAlphabet{\mathit}{bold}{\tx@enc}{\rmdefaultB}{\bold@wt}{it}
%\SetMathAlphabet{\mathsf}{bold}{OT1}%{\encodingdefault}
%{\sfdefault}{b}{n}
\SetMathAlphabet{\mathtt}{bold}{\encodingdefault}{\ttdefault}{b}{n}

% change default def of \hbar in case noamssymbols
%\iftx@ams
%\else
%  \ifx\tx@encdefault\t@one
%	\renewcommand{\hbar}{\raisebox{-.13ex}{\mbox{$\mathchar'11$}}        \mkern-8mu h}%
%  \else
%	\renewcommand{\hbar}{\raisebox{-.13ex}{\mbox{$\mathchar'26$}}\mkern-8mu h}%
%  \fi%
%\fi
	
%%%%%%%%%%%%%%%
% Math Italic %
%%%%%%%%%%%%%%%

\iftx@lbtn
 \iftx@subsfile\else\def\tx@subs{newtx-libertine-subs.tex}\fi
 \DeclareSymbolFont{letters}{OML}{nxlmi}{m}{it}
 \SetSymbolFont{letters}{bold}{OML}{nxlmi}{b}{it}
 \DeclareFontSubstitution{OML}{nxlmi}{m}{it}
\else
 \iftx@minion
  \iftx@subsfile\else\def\tx@subs{newtx-minion-subs.tex}\fi
  \DeclareSymbolFont{letters}{OML}{zmnmi}{m}{it}
  \SetSymbolFont{letters}{bold}{OML}{zmnmi}{b}{it}
  \DeclareFontSubstitution{OML}{zmnmi}{m}{it}  
 \else
  \iftx@gm
   \iftx@subsfile\else\def\tx@subs{newtx-garamond-subs.tex}\fi
   \DeclareSymbolFont{letters}{OML}{zgmmi}{m}{it}
   \SetSymbolFont{letters}{bold}{OML}{zgmmi}{b}{it}
   \DeclareFontSubstitution{OML}{zgmmi}{m}{it}  
  \else
   \iftx@bv
    \iftx@subsfile\else\def\tx@subs{newtx-baskervald-subs.tex}\fi
    \DeclareSymbolFont{letters}{OML}{zbvmi}{m}{it}
    \SetSymbolFont{letters}{bold}{OML}{zbvmi}{b}{it}
    \DeclareFontSubstitution{OML}{zbvmi}{m}{it}  
   \else
    \iftx@ut
     \iftx@subsfile\else\def\tx@subs{newtx-utopia-subs.tex}\fi
     \DeclareSymbolFont{letters}{OML}{zutmi}{m}{it}
     \SetSymbolFont{letters}{bold}{OML}{zutmi}{b}{it}
     \DeclareFontSubstitution{OML}{zutmi}{m}{it}          
    \else
     \iftx@ch
      \iftx@subsfile\else\def\tx@subs{newtx-xcharter-subs.tex}\fi
      \DeclareSymbolFont{letters}{OML}{zchmi}{m}{it}
      \SetSymbolFont{letters}{bold}{OML}{zchmi}{b}{it}
      \DeclareFontSubstitution{OML}{zchmi}{m}{it}          
     \else
      \iftx@coch
       \iftx@subsfile\else\def\tx@subs{newtx-cochineal-subs.tex}\fi
       \DeclareSymbolFont{letters}{OML}{zcochmi}{m}{it}
       \SetSymbolFont{letters}{bold}{OML}{zcochmi}{b}{it}
       \DeclareFontSubstitution{OML}{zcochmi}{m}{it}           
      \else
       \iftx@ba
		\iftx@subsfile\else\def\tx@subs{newtx-baskervillef-subs.tex}\fi
        \DeclareSymbolFont{letters}{OML}{zbami}{m}{it}
        \SetSymbolFont{letters}{bold}{OML}{zbami}{b}{it}
        \DeclareFontSubstitution{OML}{zbami}{m}{it}
       \else
        \iftx@stxtwo
         \iftx@subsfile\else\def\tx@subs{newtx-stickstoo-subs.tex}\fi
         \DeclareSymbolFont{letters}{OML}{ntxstx2mi}{m}{it}
         \SetSymbolFont{letters}{bold}{OML}{ntxstx2mi}{b}{it}
         \DeclareFontSubstitution{OML}{ntxstx2mi}{m}{it}                
        \else
         \iftx@ebgm
          \iftx@subsfile\else\def\tx@subs{newtx-ebgaramond-subs.tex}\fi
      	  \DeclareSymbolFont{letters}{OML}{ntxebgmi}{m}{it}
      	  \SetSymbolFont{letters}{bold}{OML}{ntxebgmi}{b}{it}
      	  \DeclareFontSubstitution{OML}{ntxebgmi}{m}{it}  
         \else
          \iftx@nc
           \iftx@fourier
            \iftx@subsfile\else\def\tx@subs{newtx-ncf-subs.tex}\fi
      		\DeclareSymbolFont{letters}{OML}{zncfmi}{m}{it}
      		\SetSymbolFont{letters}{bold}{OML}{zncfmi}{b}{it}
      		\DeclareFontSubstitution{OML}{zncfmi}{m}{it}
		   \else  
            \iftx@subsfile\else\def\tx@subs{newtx-nc-subs.tex}\fi
      		\DeclareSymbolFont{letters}{OML}{zncmi}{m}{it}
      		\SetSymbolFont{letters}{bold}{OML}{zncmi}{b}{it}
      		\DeclareFontSubstitution{OML}{zncmi}{m}{it}
		   \fi
 		  \else
           \iftx@noto
            \iftx@subsfile\else\def\tx@subs{newtx-noto-subs.tex}\fi
            \DeclareSymbolFont{letters}{OML}{notomi}{m}{it}
            \SetSymbolFont{letters}{bold}{OML}{notomi}{b}{it}
            \DeclareFontSubstitution{OML}{notomi}{m}{it}
           \else
            \iftx@notosans
             \iftx@subsfile\else\def\tx@subs{newtx-notosans-subs.tex}\fi
             \DeclareSymbolFont{letters}{OML}{notosansmi}{m}{it}
             \SetSymbolFont{letters}{bold}{OML}{notosansmi}{b}{it}
             \DeclareFontSubstitution{OML}{notosansmi}{m}{it}
            \else
			 \iftx@gel
			  \iftx@subsfile\else\def\tx@subs{newtx-gel-subs.tex}\fi
      		  \DeclareSymbolFont{letters}{OML}{zgelmi}{m}{it}
      		  \SetSymbolFont{letters}{bold}{OML}{zgelmi}{b}{it}
      		  \DeclareFontSubstitution{OML}{zgelmi}{m}{it}
             \else
              %\iftx@subsfile\else\def\tx@subs{newtx-subs.tex}\fi
              \DeclareSymbolFont{letters}{OML}{ntxmi}{m}{it}
              \SetSymbolFont{letters}{bold}{OML}{ntxmi}{b}{it}
              \DeclareFontSubstitution{OML}{ntxmi}{m}{it}
             \fi
            \fi
           \fi
          \fi
         \fi  
        \fi  
       \fi
      \fi
     \fi
    \fi  
   \fi
  \fi
 \fi
\fi


\iftx@isenh
\iftx@digits
    \DeclareMathSymbol{0}{\mathord}{letters}{132}
    \DeclareMathSymbol{1}{\mathord}{letters}{133}
    \DeclareMathSymbol{2}{\mathord}{letters}{134}
    \DeclareMathSymbol{3}{\mathord}{letters}{135}
    \DeclareMathSymbol{4}{\mathord}{letters}{136}
    \DeclareMathSymbol{5}{\mathord}{letters}{137}
    \DeclareMathSymbol{6}{\mathord}{letters}{138}
    \DeclareMathSymbol{7}{\mathord}{letters}{139}
    \DeclareMathSymbol{8}{\mathord}{letters}{140}
    \DeclareMathSymbol{9}{\mathord}{letters}{141}
\fi
\fi
%\iftx@upscr
% \DeclareRobustCommand{\mathscr}[1]{\ntx@alfa{#1}{196}{222}{248}{249}{}{letters}}
%  \DeclareMathSymbol{\imathscr}{\mathord}{letters}{248}
%  \DeclareMathSymbol{\jmathscr}{\mathord}{letters}{249}
%\else
% \DeclareRobustCommand{\mathscr}[1]{\ntx@alfa{#1}{142}{168}{194}{195}{}{letters}}
%  \DeclareMathSymbol{\imathscr}{\mathord}{letters}{194}
%  \DeclareMathSymbol{\jmathscr}{\mathord}{letters}{195}
%\fi
%%%%%%%%%%%%%%%%%
% Math Italic A %
%%%%%%%%%%%%%%%%%

% untxmia.fd makes switch
\DeclareSymbolFont{lettersA}{U}{ntxmia}{m}{it}
\SetSymbolFont{lettersA}{bold}{U}{ntxmia}{b}{it}
\DeclareFontSubstitution{U}{ntxmia}{m}{it}
\DeclareSymbolFontAlphabet{\mathfrak}{lettersA}


%%%%%%%%%%%%%%%
% Math Symbol %
%%%%%%%%%%%%%%%
\DeclareFontEncoding{LMS}{}{}
\DeclareFontSubstitution{LMS}{ntxsy}{m}{n}
%\DeclareFontFamily{LMS}{ntxsy}{\providecommand{\setSYdimens}{}\setSYdimens\skewchar\font=120}
%\DeclareFontShape{LMS}{ntxsy}{m}{n}{%
%<-6.3> \ntxmath@scaled ntxsy5
%<6.3-8.6> \ntxmath@scaled ntxsy7 % from 6.3 up to, but not incl, 8.6
%<8.6-> \ntxmath@scaled ntxsy
%}{}
%\DeclareFontShape{LMS}{ntxsy}{b}{n}{%
%<-6.3> \ntxmath@scaled ntxbsy5
%<6.3-8.6> \ntxmath@scaled ntxbsy7 % from 6.3 up to, but not incl, 8.6
%<8.6-> \ntxmath@scaled ntxbsy
%}{}
%\DeclareFontShape{LMS}{ntxsy}{bx}{n}{<->ssub ntxsy/b/n}{}
\DeclareSymbolFont{symbols}{LMS}{ntxsy}{m}{n}
\SetSymbolFont{symbols}{bold}{LMS}{ntxsy}{b}{n}

%\DeclareSymbolFont{symbols}{OMS}{ntxsy}{m}{n}
%\SetSymbolFont{symbols}{bold}{OMS}{ntxsy}{b}{n}
%\DeclareFontSubstitution{OMS}{ntxsy}{m}{n}

\DeclareSymbolFontAlphabet{\symb@ls@lph@}{symbols}

\ifx\AmSfont\@undefined\else
\renewcommand{\AmS}{{\protect\AmSfont
  A\kern-.19em\lower.5ex\hbox{M}\kern-.025emS}}
\renewcommand{\AmSfont}{%
  \usefont{LMS}{ntxsy}{\if\@xp\@car\f@series\@nil bb\else m\fi}{n}}
\fi


%%%%%%%%%%%%%%%%%%%%%%%%%
% AMS math symbols are now combined into a single font, AMSm
% Math Symbols A (MSAM) %
%%%%%%%%%%%%%%%%%%%%%%%%%
\iftx@ams%
% \DeclareSymbolFont{AMSa}{U}{ntxsya}{m}{n}
% \SetSymbolFont{AMSa}{bold}{U}{ntxsya}{b}{n}
% \DeclareFontSubstitution{U}{ntxsya}{m}{n}
 \DeclareSymbolFont{AMSm}{U}{ntxsym}{m}{n}
 \SetSymbolFont{AMSm}{bold}{U}{ntxsym}{b}{n}
 \DeclareFontSubstitution{U}{ntxsym}{m}{n}
 \DeclareSymbolFontAlphabet{\mathbb}{AMSm}
\fi 

%%%%%%%%%%%%%%%%%%%%%%%%%
% Math Symbols B (MSBM) %
%%%%%%%%%%%%%%%%%%%%%%%%%

% \DeclareSymbolFont{AMSb}{U}{ntxsyb}{m}{n}
% \SetSymbolFont{AMSb}{bold}{U}{ntxsyb}{b}{n}
%  \DeclareFontSubstitution{U}{ntxsyb}{m}{n}
% \DeclareSymbolFontAlphabet{\mathbb}{AMSb}
%\fi

%%%%%%%%%%%%%%%%%%
% Math Symbols C %
%%%%%%%%%%%%%%%%%%

\iftx@symbolsC
  \DeclareSymbolFont{symbolsC}{U}{ntxsyc}{m}{n}
  \SetSymbolFont{symbolsC}{bold}{U}{ntxsyc}{b}{n}
  \DeclareFontSubstitution{U}{ntxsyc}{m}{n}
\fi
%%%%%%%%%%%%%%%%%%
% Math Extension %
%%%%%%%%%%%%%%%%%%
% no OMX used 
\DeclareFontEncoding{LMX}{}{}
\DeclareFontSubstitution{LMX}{ntxexx}{m}{n}
%\DeclareFontFamily{LMX}{ntxexx}{\providecommand{\setEXdimens}{}\setEXdimens}
%\DeclareFontShape{LMX}{ntxexx}{m}{n}{<-> \ntxmath@scaled ntxexx}{}
%\DeclareFontShape{LMX}{ntxexx}{b}{n}{<-> \ntxmath@scaled ntxbexx}{}
%\DeclareFontShape{LMX}{ntxexx}{bx}{n}{<->ssub ntxexx/b/n}{}
\DeclareSymbolFont{largesymbols}{LMX}{ntxexx}{m}{n}
\SetSymbolFont{largesymbols}{bold}{LMX}{ntxexx}{b}{n}
%\iftx@bigdelims
%    %default definitions of \big etc need some changes
%    %\renewcommand{\big}{\bBigg@\@ne}
%    \AtBeginDocument{\renewcommand{\Big}{\bBigg@{1.3}}
%    \renewcommand{\bigg}{\bBigg@{1.73}}
%    \renewcommand{\Bigg}{\bBigg@{2.16}}
%    }
%\fi%
%%%%%%%%%%%%%%%%%%%%
% Math Extension A %
%%%%%%%%%%%%%%%%%%%%

\DeclareSymbolFont{largesymbolsTXA}{U}{ntxexa}{m}{n}
\SetSymbolFont{largesymbolsTXA}{bold}{U}{ntxexa}{b}{n}
\DeclareFontSubstitution{U}{ntxexa}{m}{n}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Common Macros
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\def\re@DeclareMathSymbol#1#2#3#4{%
\if\relax\noexpand#1\let#1=\undefined \fi \DeclareMathSymbol{#1}{#2}{#3}{#4}}


%\def\re@DeclareMathSymbol#1#2#3#4{%
%    \let#1=\undefined
%    \DeclareMathSymbol{#1}{#2}{#3}{#4}}

\def\re@DeclareMathDelimiter#1#2#3#4#5#6{%
    \let#1=\undefined
    \DeclareMathDelimiter{#1}{#2}{#3}{#4}{#5}{#6}}

\def\re@DeclareMathAccent#1#2#3#4{%
    \let#1=\undefined
    \DeclareMathAccent{#1}{#2}{#3}{#4}}

\def\re@DeclareMathRadical#1#2#3#4{%
    \let#1=\undefined
    \DeclareMathRadical{#1}{#2}{#3}{#4}}

\def\DeclareMathSymbolCtr#1#2#3#4{%
   \DeclareMathSymbol{#1}{#2}{#3}{#4}
   \advance #4 by1}

\def\tx@isdigit#1{% #1 should be a single character
\tx@Isdigit=\z@ %
\tx@cntz=\number`#1\relax% 
\ifnum\tx@cntz>47\relax% 
\ifnum\tx@cntz<58\relax% 
\tx@Isdigit=\@ne % 
\fi% 
\fi%
}
\def\tx@isAlNum#1{% #1 should be a single character
\tx@IsAlNum=\z@ %
\tx@cntz=\number`#1\relax% 
\ifnum\tx@cntz>47\relax% 
	\ifnum\tx@cntz<58\relax% 
		\tx@IsAlNum=\@ne %
	\else
		\ifnum\tx@cntz>64\relax%
			\ifnum\tx@cntz<91\relax%
			 	\tx@IsAlNum=\tw@ %
			\else
				\ifnum\tx@cntz>96\relax%
					\ifnum\tx@cntz<123\relax%
			 			\tx@IsAlNum=3\relax %
					\fi
				\fi
			\fi
		\fi
	\fi
\fi 
}
%\def\tx@XXX#1#2\@nil{% #1=first character, #2=rest of string
%\tx@isdigit{#1}%
%\ifnum\tx@Isdigit>\z@ $#1$\else#1\fi%
%\if\relax\detokenize{#2}\relax \else
%\edef\tx@XXXcmd{\noexpand\tx@XXX #2\noexpand\@nil}\tx@XXXcmd \fi}
%
\newcommand{\tx@unbrace}[1]{#1}
\def\tx@XXX#1#2\@nil{#1}% #1=first character, #2=rest of string
%\tx@isdigit{#1}%
%\ifnum\tx@Isdigit>\z@ $#1$\else#1\fi%
%\if\relax\detokenize{#2}\relax \else
%\edef\tx@XXXcmd{\noexpand\tx@XXX #2\noexpand\@nil}\tx@XXXcmd \fi}

%\def\equalht#1{\tx@XXX #1\@nil}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Subscript correction code
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newtoks\tx@sbptoks
% next 2 macros borrowed from TeX by Topic
\def\tx@Pop#1(into:)#2{%
    \edef\tx@act{\noexpand\tx@SplitOff\the#1%
    (tx@head:)\noexpand#2(tx@tail:)\noexpand#1}%
    \tx@act}
\def\tx@SplitOff#1#2(tx@head:)#3(tx@tail:)#4{\def#3{\noexpand #1}#4={#2}}

\iftx@sbc
\AtBeginDocument{% first check if _ has been redefined
 \mathcode`\_=\string"8000 \catcode`\_=12\relax} \begingroup
 \catcode`\_=13
 \gdef_{\expandafter\s@@b@}
\endgroup
%\def\s@@b{\expandafter\s@@b@}
\def\s@@b@#1{\def\tx@next@{#1}%
\tx@sbptoks={#1}%
\tx@Pop\tx@sbptoks(into:)\next% first token is \next
\sb{\tx@sb \tx@next@}} % \tx@sb provides mkern to insert before first tok
\fi
%%%%%% Code that seems to work well except for unprotected spacing commands
%\def\space@.{\futurelet\space@\relax}
%\space@. %
%
%\iftx@sbc
% \begingroup
% \catcode`\_=13
% \gdef_{\futurelet\tx@next\s@@b}
%\endgroup
%\def\s@@b{\expandafter\s@@b@}
%\def\s@@b@#1{\sb{\futurelet\tx@next\sb@#1}}
%\def\sb@{%
%  \ifx\tx@next\space@\def\tx@next@{\futurelet\tx@next\sb@}\else
%  \def\tx@next@{\tx@sb}
%  \fi
%  \tx@next@}
%\AtBeginDocument{\mathcode`\_=\string"8000 \catcode`\_=12\relax}
%\fi % iftx@sbc

%%%%%Code that works except for unprotected spacing commands, like \,
%\iftx@sbc
%\begingroup
% \catcode`\_=13
% \gdef_{\futurelet\next\s@@b}
%\endgroup
%\def\s@@b{\expandafter\s@@b@}
%\def\s@@b@#1{\sb{\futurelet\next\sb@#1}}
%\def\sb@{%
%  \ifx\next\space@\def\next@. {\futurelet\next\sb@}\else%
%  \def\next@.{\tx@sb@dflt}\fi\next@.}
%\AtBeginDocument{\mathcode`\_=\string"8000 \catcode`\_=12\relax}
%\fi
%%%% End working code

%
%\def\s@@b{\expandafter\s@@b@}
%\def\s@@b@#1{\def\tx@next@{#1}%
%\tx@sbptoks={\tx@next@}%
%\tx@Pop\tx@sbptoks(into:)\tx@next% first token
%\show\tx@next
%\sb{\tx@sb \tx@next@}}
%%
%\iftx@sbc
%\begingroup
% \catcode`\_=13 % active
% \gdef_{\s@@b}
%\endgroup
%\AtBeginDocument{\mathcode`\_=\string"8000 \catcode`\_=12\relax}
%\fi
%%\fi
%\def\s@@b{\iftx@sbc\expandafter\s@@b@\else\expandafter\sb\fi}
%\def\s@@b@#1{\def\next@@@@{#1}%
%\expandafter\def\expandafter\next@\expandafter{\detokenize{#1}}%
%\if\relax\next@\def\next{} 
%\else
%\edef\tx@XXXcmd{\noexpand\tx@XXX \next@\noexpand\@nil}
%\edef\next{\tx@XXXcmd}% first character
%\fi%
%\sb{\tx@sb \next@@@@}}
%\def\s@@b{\iftx@sbc\expandafter\s@@b@\else\expandafter\sb\fi}
%\def\tx@sb{\tx@sb@dflt}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Superscript correction code
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\begingroup
% \catcode`\^=13 % active
% \gdef^{\s@@p}
%\endgroup
%\def\s@@p{\iftx@spc\expandafter\s@@p@\else\expandafter\sp\fi}
%\def\s@@p@#1{\def\tx@next@{#1}%
%\tx@sbptoks={#1}%
%\tx@Pop\tx@sbptoks(into:)\tx@next% first token
%\sp{\tx@sp \tx@next@}}

%%%%%%%%%%%%%%
% Math Symbols & Notations Definitions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\def\joinrel{\mathrel{\mkern-2.5mu}}  %-3mu in plain TeX


%%%%%%%%%%%%%%%%%%%%%%
% Text Roman in Math % operators
%%%%%%%%%%%%%%%%%%%%%%
% LaTeX defaults are set to the following in the roman text font.
% Not all text fonts have these available, or not in the same slots.

%\DeclareMathSymbol{\Gamma}{\mathalpha}{operators}{0}
%\DeclareMathSymbol{\Delta}{\mathalpha}{operators}{1}
%\DeclareMathSymbol{\Theta}{\mathalpha}{operators}{2}
%\DeclareMathSymbol{\Lambda}{\mathalpha}{operators}{3}
%\DeclareMathSymbol{\Xi}{\mathalpha}{operators}{4}
%\DeclareMathSymbol{\Pi}{\mathalpha}{operators}{5}
%\DeclareMathSymbol{\Sigma}{\mathalpha}{operators}{6}
%\DeclareMathSymbol{\Upsilon}{\mathalpha}{operators}{7}
%\DeclareMathSymbol{\Phi}{\mathalpha}{operators}{8}
%\DeclareMathSymbol{\Psi}{\mathalpha}{operators}{9}
%\DeclareMathSymbol{\Omega}{\mathalpha}{operators}{10}
%"30-"39: 0-9
%\DeclareMathAccent{\grave}{\mathalpha}{operators}{18}
%\DeclareMathAccent{\acute}{\mathalpha}{operators}{19}
%\DeclareMathAccent{\check}{\mathalpha}{operators}{20}
%\DeclareMathAccent{\breve}{\mathalpha}{operators}{21}
%\DeclareMathAccent{\bar}{\mathalpha}{operators}{22}
%\DeclareMathAccent{\mathring}{\mathalpha}{operators}{23}
%\DeclareMathSymbol{\mathdollar}{\mathord}{operators}{36}
%\def\mathsterling{\mathit{\mathchar"7024}}
%Change the following two so we can adjust metrics in math mode
%\DeclareMathDelimiter{(}{\mathopen}{operators}{40}{largesymbols}{0}
%\DeclareMathDelimiter{)}{\mathclose}{operators}{41}{largesymbols}{1}
%\iftx@bigdelims
  \re@DeclareMathDelimiter{\lgroup}{\mathopen}{largesymbols}{58}{largesymbols}{58}
  \re@DeclareMathDelimiter{\rgroup}{\mathclose}{largesymbols}{59}{largesymbols}{59}
  \re@DeclareMathDelimiter{\lmoustache}{\mathopen}{largesymbols}{64}{largesymbols}{64}
  \re@DeclareMathDelimiter{\rmoustache}{\mathclose}{largesymbols}{65}{largesymbols}{65}
  \DeclareMathDelimiter{/}{\mathopen}{symbols}{157}{largesymbols}{14}
  \DeclareMathDelimiter{(}{\mathopen}{symbols}{185}{largesymbols}{0}
  \DeclareMathDelimiter{)}{\mathclose}{symbols}{186}{largesymbols}{1}
  \DeclareMathDelimiter{[}{\mathopen}{symbols}{187}{largesymbols}{2}
  \DeclareMathDelimiter{]}{\mathclose}{symbols}{188}{largesymbols}{3}
  \DeclareMathDelimiter{\lfloor}{\mathopen}{symbols}{98}{largesymbols}{4}
  \DeclareMathDelimiter{\rfloor}{\mathclose}{symbols}{99}{largesymbols}{5}
  \DeclareMathDelimiter{\lceil}{\mathopen}{symbols}{100}{largesymbols}{6}
  \DeclareMathDelimiter{\rceil}{\mathclose}{symbols}{101}{largesymbols}{7}  
  \iftx@curlybraces
    \DeclareMathDelimiter{\lbrace}{\mathopen}{symbols}{215}{largesymbols}{142}
    \DeclareMathDelimiter{\rbrace}{\mathclose}{symbols}{216}{largesymbols}{143}  
  \else
    \DeclareMathDelimiter{\lbrace}{\mathopen}{symbols}{102}{largesymbols}{8}
    \DeclareMathDelimiter{\rbrace}{\mathclose}{symbols}{103}{largesymbols}{9}
  \fi
  \DeclareMathDelimiter{\langle}{\mathopen}{symbols}{104}{largesymbols}{10}
  %\re@DeclareMathDelimiter{<}{\mathopen}{letters}{60}{largesymbols}{140}
  \DeclareMathDelimiter{\rangle}{\mathclose}{symbols}{105}{largesymbols}{11}
  %\re@DeclareMathDelimiter{>}{\mathclose}{letters}{62}{largesymbols}{141}
  \re@DeclareMathSymbol{\mid}{\mathrel}{symbols}{106}
  \DeclareMathDelimiter{|}{\mathord}{symbols}{106}{largesymbols}{12}
  \DeclareMathDelimiter{\arrowvert}{\mathord}{symbols}{106}{largesymbols}{60}% 60
  \DeclareMathDelimiter{\vert}{\mathord}{symbols}{106}{largesymbols}{12}
  \re@DeclareMathSymbol{\parallel}{\mathrel}{symbols}{107}
  \re@DeclareMathDelimiter{\Arrowvert}{\mathord}{symbols}{107}{largesymbols}{61}%61
  \re@DeclareMathDelimiter{\Vert}{\mathord}{symbols}{107}{largesymbols}{13}
   \let\|=\Vert
  \re@DeclareMathDelimiter{\updownarrow}{\mathrel}{symbols}{108}{largesymbols}{63}
  \re@DeclareMathDelimiter{\Updownarrow}{\mathrel}{symbols}{109}{largesymbols}{119}
  \re@DeclareMathDelimiter{\llbracket}{\mathopen}{symbols}{201}{largesymbolsTXA}{18}
  \let\lBrack=\llbracket
  \re@DeclareMathDelimiter{\rrbracket}{\mathclose}{symbols}{202}{largesymbolsTXA}{19}
  \let\rBrack=\rrbracket
\re@DeclareMathDelimiter{\lvert} {\mathopen}  {symbols}{106}{largesymbols}{12}
\re@DeclareMathDelimiter{\rvert} {\mathclose} {symbols}{106}{largesymbols}{12}
\re@DeclareMathDelimiter{\lVert} {\mathopen}  {symbols}{107}{largesymbols}{13}
\re@DeclareMathDelimiter{\rVert} {\mathclose} {symbols}{107}{largesymbols}{13}

\re@DeclareMathDelimiter{\smlbrace}{\mathopen}{lettersA}{62}{largesymbols}{8}
\re@DeclareMathDelimiter{\smrbrace}{\mathclose}{lettersA}{63}{largesymbols}{9}

\re@DeclareMathSymbol{\Perp}{\mathrel}{symbols}{205} % was symbolsC
\re@DeclareMathSymbol{\nPerp}{\mathrel}{symbols}{206} % was symbolsC

%\else
%  \iftx@braces
%    \DeclareMathDelimiter{\lbrace}{\mathopen}{lettersA}{62}{largesymbols}{142}
%    \DeclareMathDelimiter{\rbrace}{\mathclose}{lettersA}{63}{largesymbols}{143}
%  \fi
%	\iftx@minion\else
%	  \iftx@libertine%
%	    \DeclareMathDelimiter{(}{\mathopen}{lettersA}{123}{largesymbols}{0}
%	    \DeclareMathDelimiter{)}{\mathclose}{lettersA}{124}{largesymbols}{1}
%	  \else %Times
%	    \DeclareMathDelimiter{(}{\mathopen}{lettersA}{125}{largesymbols}{0}
%	    \DeclareMathDelimiter{)}{\mathclose}{lettersA}{126}{largesymbols}{1}
%	  \fi
%	\fi
%\fi
%\DeclareMathSymbol{+}{\mathbin}{operators}{43}
\DeclareMathSymbol{+}{\mathbin}{symbols}{207}
%\DeclareMathDelimiter{/}{\mathord}{operators}{47}{largesymbols}{14}
%\DeclareMathSymbol{:}{\mathrel}{operators}{58}
%\DeclareMathSymbol{\colon}{\mathpunct}{operators}{58}
%\DeclareMathSymbol{;}{\mathpunct}{operators}{59}
\DeclareMathSymbol{=}{\mathrel}{lettersA}{61}
\iftx@isenh
  \re@DeclareMathSymbol{\hslash}{\mathord}{lettersA}{91}
  \re@DeclareMathSymbol{\hbar}{\mathord}{lettersA}{92}
  \re@DeclareMathSymbol{\lambdabar}{\mathord}{lettersA}{93}
  \re@DeclareMathSymbol{\lambdaslash}{\mathord}{lettersA}{251}
  \DeclareMathSymbol{\Zbar}{\mathord}{lettersA}{94}
  \DeclareMathSymbol{\Angstrom}{\mathord}{lettersA}{95}
  \DeclareMathSymbol{\Euler}{\mathord}{lettersA}{96}
\else
  \iftx@ams
  	\re@DeclareMathSymbol{\hslash}{\mathord}{AMSm}{125}
  	\re@DeclareMathSymbol{\hbar}{\mathord}{AMSm}{126}
  \fi
  \iftx@symbolsC
  	\re@DeclareMathSymbol{\lambdaslash}{\mathord}{symbolsC}{110}
  	\re@DeclareMathSymbol{\lambdabar}{\mathord}{symbolsC}{111}
  \fi
\fi
%\DeclareMathSymbol{?}{\mathclose}{operators}{63}
%change the following two for better sizing
%\DeclareMathDelimiter{[}{\mathopen}{operators}{91}{largesymbols}{2}
%\DeclareMathDelimiter{]}{\mathclose}{operators}{93}{largesymbols}{3}
%\DeclareMathAccent{\hat}{\mathalpha}{operators}{94}
%\DeclareMathAccent{\tilde}{\mathalpha}{operators}{126}
\DeclareMathSymbol{\transp}{\mathord}{symbols}{203}
\DeclareMathSymbol{\hermtransp}{\mathord}{symbols}{204}
	\let\htransp=\hermtransp
\re@DeclareMathAccent{\dot}{\mathalpha}{symbols}{164}
\re@DeclareMathAccent{\ddot}{\mathalpha}{symbols}{165}
\re@DeclareMathAccent{\dddot}{\mathord}{symbols}{168}
\re@DeclareMathAccent{\ddddot}{\mathord}{symbols}{200}
\iftx@tma
\else
 \iftx@ot %no change needed if using OT1 for operators
 \else
  \ifx\encodingdefault\t@one%
    \re@DeclareMathAccent{\grave}{\mathalpha}{operators}{0}
    \re@DeclareMathAccent{\acute}{\mathalpha}{operators}{1}
    \re@DeclareMathAccent{\check}{\mathalpha}{operators}{7}
    \re@DeclareMathAccent{\breve}{\mathalpha}{operators}{8}
    \re@DeclareMathAccent{\bar}{\mathalpha}{operators}{9}
    \re@DeclareMathAccent{\mathring}{\mathalpha}{operators}{6}
    \re@DeclareMathAccent{\hat}{\mathalpha}{operators}{2}
    \re@DeclareMathAccent{\tilde}{\mathalpha}{operators}{3}
  \else\ifx\encodingdefault\ly@one
    \re@DeclareMathAccent{\bar}{\mathalpha}{operators}{175}
    \re@DeclareMathAccent{\hat}{\mathalpha}{operators}{94}
    \re@DeclareMathAccent{\tilde}{\mathalpha}{operators}{152}
  \fi\fi\fi
\fi
%
\iftx@slantedG
  \re@DeclareMathSymbol{\Gamma}{\mathalpha}{letters}{0}
  \re@DeclareMathSymbol{\Delta}{\mathalpha}{letters}{1}
  \re@DeclareMathSymbol{\Theta}{\mathalpha}{letters}{2}
  \re@DeclareMathSymbol{\Lambda}{\mathalpha}{letters}{3}
  \re@DeclareMathSymbol{\Xi}{\mathalpha}{letters}{4}
  \re@DeclareMathSymbol{\Pi}{\mathalpha}{letters}{5}
  \re@DeclareMathSymbol{\Sigma}{\mathalpha}{letters}{6}
  \re@DeclareMathSymbol{\Upsilon}{\mathalpha}{letters}{7}
  \re@DeclareMathSymbol{\Phi}{\mathalpha}{letters}{8}
  \re@DeclareMathSymbol{\Psi}{\mathalpha}{letters}{9}
  \re@DeclareMathSymbol{\Omega}{\mathalpha}{letters}{10}
\else
  \re@DeclareMathSymbol{\Gamma}{\mathalpha}{lettersA}{0}
  \re@DeclareMathSymbol{\Delta}{\mathalpha}{lettersA}{1}
  \re@DeclareMathSymbol{\Theta}{\mathalpha}{lettersA}{2}
  \re@DeclareMathSymbol{\Lambda}{\mathalpha}{lettersA}{3}
  \re@DeclareMathSymbol{\Xi}{\mathalpha}{lettersA}{4}
  \re@DeclareMathSymbol{\Pi}{\mathalpha}{lettersA}{5}
  \re@DeclareMathSymbol{\Sigma}{\mathalpha}{lettersA}{6}
  \re@DeclareMathSymbol{\Upsilon}{\mathalpha}{lettersA}{7}
  \re@DeclareMathSymbol{\Phi}{\mathalpha}{lettersA}{8}
  \re@DeclareMathSymbol{\Psi}{\mathalpha}{lettersA}{9}
  \re@DeclareMathSymbol{\Omega}{\mathalpha}{lettersA}{10}
\fi


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Math Symbol (txsy) Definition % symbols
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%\DeclareMathSymbol{-}{\mathbin}{symbols}{0}
%\DeclareMathSymbol{\cdotp}{\mathpunct}{symbols}{1}
%\DeclareMathSymbol{\cdot}{\mathbin}{symbols}{1}
%\DeclareMathSymbol{\times}{\mathbin}{symbols}{2}
%\DeclareMathSymbol{\ast}{\mathbin}{symbols}{3}
%\DeclareMathSymbol{*}{\mathbin}{symbols}{3} %
%\DeclareMathSymbol{\div}{\mathbin}{symbols}{4}
%\DeclareMathSymbol{\diamond}{\mathbin}{symbols}{5}
%\DeclareMathSymbol{\pm}{\mathbin}{symbols}{6}
%\DeclareMathSymbol{\mp}{\mathbin}{symbols}{7}
%\DeclareMathSymbol{\oplus}{\mathbin}{symbols}{8}
   \let\circledplus\oplus
%\DeclareMathSymbol{\ominus}{\mathbin}{symbols}{9}
   \let\circledminus\ominus
%\DeclareMathSymbol{\otimes}{\mathbin}{symbols}{10}
   \let\circledtimes\otimes
%\DeclareMathSymbol{\oslash}{\mathbin}{symbols}{11}
   \let\circledslash\oslash
%\DeclareMathSymbol{\odot}{\mathbin}{symbols}{12}
   \let\circleddot\odot
%\DeclareMathSymbol{\bigcirc}{\mathbin}{symbols}{13}
%\DeclareMathSymbol{\circ}{\mathbin}{symbols}{14}
%\DeclareMathSymbol{\bullet}{\mathbin}{symbols}{15}
%\DeclareMathSymbol{\asymp}{\mathrel}{symbols}{16}
%\DeclareMathSymbol{\equiv}{\mathrel}{symbols}{17}
%\DeclareMathSymbol{\subseteq}{\mathrel}{symbols}{18}
%\DeclareMathSymbol{\supseteq}{\mathrel}{symbols}{19}
%\DeclareMathSymbol{\leq}{\mathrel}{symbols}{20}
%   \let\le=\leq
%\DeclareMathSymbol{\geq}{\mathrel}{symbols}{21}
%   \let\ge=\geq
%\DeclareMathSymbol{\preceq}{\mathrel}{symbols}{22}
%\DeclareMathSymbol{\succeq}{\mathrel}{symbols}{23}
%\DeclareMathSymbol{\sim}{\mathrel}{symbols}{24}
%\DeclareMathSymbol{\approx}{\mathrel}{symbols}{25}
%\DeclareMathSymbol{\subset}{\mathrel}{symbols}{26}
%\DeclareMathSymbol{\supset}{\mathrel}{symbols}{27}
%\DeclareMathSymbol{\ll}{\mathrel}{symbols}{28}
%\DeclareMathSymbol{\gg}{\mathrel}{symbols}{29}
%\DeclareMathSymbol{\prec}{\mathrel}{symbols}{30}
%\DeclareMathSymbol{\succ}{\mathrel}{symbols}{31}
%\DeclareMathSymbol{\leftarrow}{\mathrel}{symbols}{32}
%   \let\gets=\leftarrow
%\DeclareMathSymbol{\rightarrow}{\mathrel}{symbols}{33}
%   \let\to=\rightarrow
%\DeclareMathDelimiter{\uparrow}{\mathrel}{symbols}{34}{largesymbols}{120}
%\DeclareMathDelimiter{\downarrow}{\mathrel}{symbols}{35}{largesymbols}{121}
%\DeclareMathSymbol{\leftrightarrow}{\mathrel}{symbols}{36}
%\DeclareMathSymbol{\nearrow}{\mathrel}{symbols}{37}
%\DeclareMathSymbol{\searrow}{\mathrel}{symbols}{38}
%\DeclareMathSymbol{\simeq}{\mathrel}{symbols}{39}
%\DeclareMathSymbol{\Leftarrow}{\mathrel}{symbols}{40}
%\DeclareMathSymbol{\Rightarrow}{\mathrel}{symbols}{41}
%\DeclareMathDelimiter{\Uparrow}{\mathrel}{symbols}{42}{largesymbols}{126}
%\DeclareMathDelimiter{\Downarrow}{\mathrel}{symbols}{43}{largesymbols}{127}
%\DeclareMathSymbol{\Leftrightarrow}{\mathrel}{symbols}{44}
%\DeclareMathSymbol{\nwarrow}{\mathrel}{symbols}{45}
%\DeclareMathSymbol{\swarrow}{\mathrel}{symbols}{46}
%\DeclareMathSymbol{\propto}{\mathrel}{symbols}{47}
%\DeclareMathSymbol{\prime}{\mathord}{symbols}{48}
%\DeclareMathSymbol{\infty}{\mathord}{symbols}{49}
%\DeclareMathSymbol{\in}{\mathrel}{symbols}{50}
%\DeclareMathSymbol{\ni}{\mathrel}{symbols}{51}
%    \let\owns=\ni
%\DeclareMathSymbol{\triangle}{\mathord}{symbols}{52}
%\DeclareMathSymbol{\bigtriangleup}{\mathbin}{symbols}{52}
%\DeclareMathSymbol{\bigtriangledown}{\mathbin}{symbols}{53}
%\DeclareMathSymbol{\not}{\mathrel}{symbols}{54}
%\DeclareMathSymbol{\mapstochar}{\mathrel}{symbols}{55}
%   \def\mapsto{\mapstochar\rightarrow}
%\DeclareMathSymbol{\forall}{\mathord}{symbols}{56}
%\DeclareMathSymbol{\exists}{\mathord}{symbols}{57}
%\DeclareMathSymbol{\neg}{\mathord}{symbols}{58}
%    \let\lnot=\neg
%\DeclareMathSymbol{\emptyset}{\mathord}{symbols}{59}
%\DeclareMathSymbol{\Re}{\mathord}{symbols}{60}
%\DeclareMathSymbol{\Im}{\mathord}{symbols}{61}
%\DeclareMathSymbol{\top}{\mathord}{symbols}{62}
%\DeclareMathSymbol{\bot}{\mathord}{symbols}{63}
%\DeclareMathSymbol{\perp}{\mathrel}{symbols}{63}
%\DeclareMathSymbol{\aleph}{\mathord}{symbols}{64}
% "41-"5A: \mathcal{A-Z}
%\DeclareMathSymbol{\cup}{\mathbin}{symbols}{91}
%\DeclareMathSymbol{\cap}{\mathbin}{symbols}{92}
%\DeclareMathSymbol{\uplus}{\mathbin}{symbols}{93}
%\DeclareMathSymbol{\wedge}{\mathbin}{symbols}{94}
%   \let\land=\wedge
%\DeclareMathSymbol{\vee}{\mathbin}{symbols}{95}
%   \let\lor=\vee
%\DeclareMathSymbol{\vdash}{\mathrel}{symbols}{96}
%\DeclareMathSymbol{\dashv}{\mathrel}{symbols}{97}
%\DeclareMathDelimiter{\lfloor}{\mathopen}{symbols}{98}{largesymbols}{4}
%\DeclareMathDelimiter{\rfloor}{\mathclose}{symbols}{99}{largesymbols}{5}
%\DeclareMathDelimiter{\lceil}{\mathopen}{symbols}{100}{largesymbols}{6}
%\DeclareMathDelimiter{\rceil}{\mathclose}{symbols}{101}{largesymbols}{7}
%\DeclareMathDelimiter{\lbrace}{\mathopen}{symbols}{102}{largesymbols}{8}
%\DeclareMathDelimiter{\rbrace}{\mathclose}{symbols}{103}{largesymbols}{9}
%\DeclareMathDelimiter{\langle}{\mathopen}{symbols}{104}{largesymbols}{10}
%\DeclareMathDelimiter{<}{\mathopen}{symbols}{104}{largesymbols}{10}
%\DeclareMathDelimiter{\rangle}{\mathclose}{symbols}{105}{largesymbols}{11}
%\DeclareMathDelimiter{>}{\mathclose}{symbols}{105}{largesymbols}{11}
%\DeclareMathSymbol{\mid}{\mathrel}{symbols}{106}
%\DeclareMathDelimiter{|}{\mathord}{symbols}{106}{largesymbols}{12}
%\DeclareMathDelimiter{\arrowvert}{\mathord}{symbols}{106}{largesymbols}{60}
%\DeclareMathDelimiter{\vert}{\mathord}{symbols}{106}{largesymbols}{12}
%\DeclareMathSymbol{\parallel}{\mathrel}{symbols}{107}
%\DeclareMathDelimiter{\Arrowvert}{\mathord}{symbols}{107}{largesymbols}{61}
%\DeclareMathDelimiter{\Vert}{\mathord}{symbols}{107}{largesymbols}{13}
%   \let\|=\Vert
%\DeclareMathDelimiter{\updownarrow}{\mathrel}{symbols}{108}{largesymbols}{63}
%\DeclareMathDelimiter{\Updownarrow}{\mathrel}{symbols}{109}{largesymbols}{119}
%\DeclareMathSymbol{\setminus}{\mathbin}{symbols}{110}
%\DeclareMathDelimiter{\backslash}{\mathord}{symbols}{110}{largesymbols}{15}
%\expandafter\DeclareMathDelimiter\@backslashchar{\mathord}{symbols}{110}{largesymbols}{15}
%\DeclareMathSymbol{\wr}{\mathbin}{symbols}{111}
%\def\surd{{\mathchar"1270}}
%\DeclareMathRadical{\sqrtsign}{symbols}{112}{largesymbols}{112}
%\DeclareMathSymbol{\amalg}{\mathbin}{symbols}{113}
%\DeclareMathSymbol{\nabla}{\mathord}{symbols}{114}
\DeclareMathSymbol{\laplace}{\mathord}{symbols}{217}
\DeclareMathSymbol{\laplac}{\mathord}{symbols}{218}
\DeclareMathSymbol{\dAlembertian}{\mathord}{symbols}{219}
%\DeclareMathSymbol{\smallint}{\mathop}{symbols}{115}
%\DeclareMathSymbol{\sqcup}{\mathbin}{symbols}{116}
%\DeclareMathSymbol{\sqcap}{\mathbin}{symbols}{117}
%\DeclareMathSymbol{\sqsubseteq}{\mathrel}{symbols}{118}
%\DeclareMathSymbol{\sqsupseteq}{\mathrel}{symbols}{119}
%\DeclareMathSymbol{\mathsection}{\mathord}{symbols}{120}
%\DeclareMathSymbol{\dagger}{\mathbin}{symbols}{121}
%\DeclareMathSymbol{\ddagger}{\mathbin}{symbols}{122}
%\DeclareMathSymbol{\mathparagraph}{\mathord}{symbols}{123}
%\DeclareMathSymbol{\clubsuit}{\mathord}{symbols}{124}
%\DeclareMathSymbol{\diamondsuit}{\mathord}{symbols}{125}
%\DeclareMathSymbol{\heartsuit}{\mathord}{symbols}{126}
%\DeclareMathSymbol{\spadesuit}{\mathord}{symbols}{127}
%\iftx@bigdelims
%  \re@DeclareMathDelimiter{(}{\mathopen}{lettersA}{62}{largesymbols}{8}
%  \re@DeclareMathDelimiter{)}{\mathclose}{lettersA}{63}{largesymbols}{9}
%  \re@DeclareMathDelimiter{[}{\mathopen}{lettersA}{62}{largesymbols}{8}
%  \re@DeclareMathDelimiter{]}{\mathclose}{lettersA}{63}{largesymbols}{9}
%  \re@DeclareMathDelimiter{\lbrace}{\mathopen}{lettersA}{62}{largesymbols}{8}
%  \re@DeclareMathDelimiter{\rbrace}{\mathclose}{lettersA}{63}{largesymbols}{9}
%
%\else
%  \iftx@braces%
%    \re@DeclareMathDelimiter{\lbrace}{\mathopen}{lettersA}{62}{largesymbols}{8}
%    \re@DeclareMathDelimiter{\rbrace}{\mathclose}{lettersA}{63}{largesymbols}{9}
%  \fi
%\fi
% Define \overgroup, \undergroup, like \overbrace, \underbrace
\DeclareMathSymbol{\groupld}{\mathord}{largesymbolsTXA}{78}
\DeclareMathSymbol{\grouprd}{\mathord}{largesymbolsTXA}{79}
\DeclareMathSymbol{\grouplu}{\mathord}{largesymbolsTXA}{80}
\DeclareMathSymbol{\groupru}{\mathord}{largesymbolsTXA}{81}
\DeclareMathSymbol{\grouplda}{\mathord}{largesymbolsTXA}{82}
\DeclareMathSymbol{\grouprda}{\mathord}{largesymbolsTXA}{83}
\DeclareMathSymbol{\grouplua}{\mathord}{largesymbolsTXA}{84}
\DeclareMathSymbol{\grouprua}{\mathord}{largesymbolsTXA}{85}
%\def\rVecmp@h{\mathrel{\mathpalette\mathsm@sh\rVec@h}}
%\def\rVecmp@x{\mathrel{\mathpalette\mathsm@sh\rVec@x}}
% Override default definitions of \widehat and \widetilde
\xdef\widehat#1{\mathaccent"0\hexnumber@\symlargesymbols 62{#1}}
%\DeclareMathAccent{\widehat}{\mathord}{largesymbols}{98}
\xdef\widetilde#1{\mathaccent"0\hexnumber@\symlargesymbols 65{#1}}
%\re@DeclareMathAccent{\widetilde}{\mathord}{largesymbols}{101}

%%%%%%% Begin txvec code 2019-07-31 (adaptive vec)
\DeclareMathSymbol{\rVec@h}{\mathrel}{symbols}{198}% vector head
\DeclareMathSymbol{\rVec@x}{\mathrel}{symbols}{199}% vector extension
%% borrow interfacefrom esvect
\protected\def\vv{\@ifstar{\vvstar}{\txvec}}
\def\vvstar#1#2{{\txvec{#1}}_{\mkern-1mu\relax#2}}
%%
\newcommand{\txvec}{\mathpalette{\overVec@\Vecfill@}}
%
\def\Vecfill@{\@rrowfill@\rVec@x\rVec@h}
%
\def\@rrowfill@#1#2#3{$\m@th\mkern2mu%
\relax#3#1\mkern-1.5mu\cleaders\hbox{$#3\mkern-.4mu#1\mkern-.4mu$}\hfill\mkern-1.5mu#2$}
%
\def\overVec@#1#2#3{\mathop{\vbox{\ialign{##\crcr\noalign{\kern-.2ex}%
#1#2\crcr\noalign{\kern\ntxmath@vecsep\nointerlineskip}% kern controls sep to arrow
$\m@th\hfil #2#3\hfil$\crcr}}}}
%%%%%%%% End txvec code 

\def\overgroup#1{\mathop{\vbox{\ialign{##\crcr\noalign{\kern.4\p@}%
\downgroupfill\crcr\noalign{\kern1.5\p@\nointerlineskip}%
$\hfil\displaystyle{#1}\hfil$\crcr}}}\limits}
%
\def\undergroup#1{\mathop{\vtop{\ialign{##\crcr%
$\hfil\displaystyle{#1}\hfil$\crcr%
\noalign{\kern1.5\p@\nointerlineskip}%
\upgroupfill\crcr\noalign{\kern.5\p@}}}}\limits}
%
\def\downgroupfill{$\m@th%
   \groupld\mkern-1mu\cleaders\hbox{$\mkern-.5mu\br@cext\mkern-.5mu$}\hfill\mkern-1mu\grouprd$}
%
\def\upgroupfill{$\m@th%
   \grouplu\mkern-1mu\cleaders\hbox{$\mkern-.5mu\br@cext\mkern-.5mu$}\hfill\mkern-1mu\groupru$}
% same thing but with arrows
\def\overgroupra#1{\mathop{\vbox{\ialign{##\crcr\noalign{\kern.4\p@}%
\downgroupfillra\crcr\noalign{\kern1.5\p@\nointerlineskip}%
$\hfil\displaystyle{#1}\hfil$\crcr}}}\limits}
%
\def\undergroupra#1{\mathop{\vtop{\ialign{##\crcr%
$\hfil\displaystyle{#1}\hfil$\crcr%
\noalign{\kern1.5\p@\nointerlineskip}%
\upgroupfillra\crcr\noalign{\kern.5\p@}}}}\limits}
%
\def\overgroupla#1{\mathop{\vbox{\ialign{##\crcr\noalign{\kern.4\p@}%
\downgroupfillla\crcr\noalign{\kern1.5\p@\nointerlineskip}%
$\hfil\displaystyle{#1}\hfil$\crcr}}}\limits}
%
\def\undergroupla#1{\mathop{\vtop{\ialign{##\crcr%
$\hfil\displaystyle{#1}\hfil$\crcr%
\noalign{\kern1.5\p@\nointerlineskip}%
\upgroupfillla\crcr\noalign{\kern.5\p@}}}}\limits}
%
\def\downgroupfillra{$\m@th%
   \groupld\mkern-1mu\cleaders\hbox{$\mkern-.5mu\br@cext\mkern-.5mu$}\hfill\mkern-1mu\grouprda$}
%
\def\upgroupfillra{$\m@th%
   \grouplu\mkern-1mu\cleaders\hbox{$\mkern-.5mu\br@cext\mkern-.5mu$}\hfill\mkern-1mu\grouprua$}
%
\def\downgroupfillla{$\m@th%
   \grouplda\mkern-1mu\cleaders\hbox{$\mkern-.5mu\br@cext\mkern-.5mu$}\hfill\mkern-1mu\grouprd$}
%
\def\upgroupfillla{$\m@th%
   \grouplua\mkern-1mu\cleaders\hbox{$\mkern-.5mu\br@cext\mkern-.5mu$}\hfill\mkern-1mu\groupru$}

% Place a ring over an overgroup symbol, like yhmath \widering
\newcommand{\widering}[1]{\overset{\smash{\vbox to .2ex{%
    \hbox{$\mathring{}$}}}}{\overgroup{#1}}}

% \widearc, \wideOarc
\DeclareMathAccent{\widearc}{\mathalpha}{symbols}{175}
\DeclareMathAccent{\wideOarc}{\mathalpha}{symbols}{180}

%\def\surd{{\mathchar"13F9}}
\re@DeclareMathSymbol{\smallintsl}             {\mathop}{symbols}{"80}
\re@DeclareMathSymbol{\smalliintsl}            {\mathop}{symbols}{"81}
\re@DeclareMathSymbol{\smalliiintsl}           {\mathop}{symbols}{"82}
\re@DeclareMathSymbol{\smallointsl}            {\mathop}{symbols}{"83}
\re@DeclareMathSymbol{\smalloiintsl}           {\mathop}{symbols}{"84}
\re@DeclareMathSymbol{\smalloiiintsl}          {\mathop}{symbols}{"85}
\re@DeclareMathSymbol{\smallvarointclockwisesl}{\mathop}{symbols}{"86}
\re@DeclareMathSymbol{\smallointctrclockwisesl}{\mathop}{symbols}{"87}
\re@DeclareMathSymbol{\smallsumintsl}          {\mathop}{symbols}{"88}
\re@DeclareMathSymbol{\smalliiiintsl}          {\mathop}{symbols}{"89}
\re@DeclareMathSymbol{\smallfintsl}            {\mathop}{symbols}{"8A}
\re@DeclareMathSymbol{\smallsqintsl}           {\mathop}{symbols}{"8B}

\re@DeclareMathSymbol{\smallintup}             {\mathop}{symbols}{"8C}
\re@DeclareMathSymbol{\smalliintup}            {\mathop}{symbols}{"8D}
\re@DeclareMathSymbol{\smalliiintup}           {\mathop}{symbols}{"8E}
\re@DeclareMathSymbol{\smallointup}            {\mathop}{symbols}{"8F}
\re@DeclareMathSymbol{\smalloiintup}           {\mathop}{symbols}{"90}
\re@DeclareMathSymbol{\smalloiiintup}          {\mathop}{symbols}{"91}
\re@DeclareMathSymbol{\smallvarointclockwiseup}{\mathop}{symbols}{"92}
\re@DeclareMathSymbol{\smallointctrclockwiseup}{\mathop}{symbols}{"93}
\re@DeclareMathSymbol{\smallsumintup}          {\mathop}{symbols}{"94}
\re@DeclareMathSymbol{\smalliiiintup}          {\mathop}{symbols}{"95}
\re@DeclareMathSymbol{\smallfintup}            {\mathop}{symbols}{"96}
\re@DeclareMathSymbol{\smallsqintup}           {\mathop}{symbols}{"97}

\re@DeclareMathSymbol{\intslop}                {\mathop}{largesymbols}{"AF}
\re@DeclareMathSymbol{\iintslop}               {\mathop}{largesymbols}{"B0}
\re@DeclareMathSymbol{\iiintslop}              {\mathop}{largesymbols}{"B1}
\re@DeclareMathSymbol{\ointslop}               {\mathop}{largesymbols}{"B2}
\re@DeclareMathSymbol{\oiintslop}              {\mathop}{largesymbols}{"B3}
\re@DeclareMathSymbol{\oiiintslop}             {\mathop}{largesymbolsTXA}{"40}
\re@DeclareMathSymbol{\varointclockwiseslop}   {\mathop}{largesymbolsTXA}{"42}
\re@DeclareMathSymbol{\ointctrclockwiseslop}   {\mathop}{largesymbolsTXA}{"44}
\re@DeclareMathSymbol{\sumintslop}             {\mathop}{largesymbolsTXA}{"46}
\re@DeclareMathSymbol{\iiiintslop}             {\mathop}{largesymbolsTXA}{"48}
\re@DeclareMathSymbol{\fintslop}               {\mathop}{largesymbolsTXA}{"4A}
\re@DeclareMathSymbol{\sqintslop}              {\mathop}{largesymbolsTXA}{"4C}

\re@DeclareMathSymbol{\intupop}                {\mathop}{largesymbols}{"B4}
\re@DeclareMathSymbol{\iintupop}               {\mathop}{largesymbols}{"B5}
\re@DeclareMathSymbol{\iiintupop}              {\mathop}{largesymbols}{"B6}
\re@DeclareMathSymbol{\ointupop}               {\mathop}{largesymbols}{"B7}
\re@DeclareMathSymbol{\oiintupop}              {\mathop}{largesymbols}{"B8}
\re@DeclareMathSymbol{\oiiintupop}             {\mathop}{largesymbolsTXA}{"08}
\re@DeclareMathSymbol{\varointclockwiseupop}   {\mathop}{largesymbolsTXA}{"0A}
\re@DeclareMathSymbol{\ointctrclockwiseupop}   {\mathop}{largesymbolsTXA}{"0C}
\re@DeclareMathSymbol{\sumintupop}             {\mathop}{largesymbolsTXA}{"0E}
\re@DeclareMathSymbol{\iiiintupop}             {\mathop}{largesymbolsTXA}{"21}
\re@DeclareMathSymbol{\fintupop}               {\mathop}{largesymbolsTXA}{"23}
\re@DeclareMathSymbol{\sqintupop}              {\mathop}{largesymbolsTXA}{"25}
\re@DeclareMathSymbol{\br@cext}{\mathord}{largesymbolsTXA}{32}

\iftx@upint
    \let\smallint=\smallintup
    \let\smalliint=\smalliintup
    \let\smalliiint=\smalliiintup
    \let\smalloint=\smallointup
    \let\smalloiint=\smalloiintup
    \let\smalloiiint=\smalloiiintup
    \let\smallvarointclockwise=\smallvarointclockwiseup
    \let\smallointctrclockwise=\smallointctrclockwiseup
    \let\smallsumint=\smallsumintup
    \let\smalliiiint=\smalliiiintup
    \let\smallfint=\smallfintup
    \let\smallsqint=\smallsqintup

    \let\intop=\intupop
    \let\iintop=\iintupop
    \let\iiintop=\iiintupop
    \let\ointop=\ointupop
    \let\oiintop=\oiintupop
    \let\oiiintop=\oiiintupop
    \let\varointclockwiseop=\varointclockwiseupop
    \let\ointctrclockwiseop=\ointctrclockwiseupop
    \let\sumintop=\sumintupop
    \let\iiiintop=\iiiintupop
    \let\fintop=\fintupop
    \let\sqintop=\sqintupop
\else
    \let\smallint=\smallintsl
    \let\smalliint=\smalliintsl
    \let\smalliiint=\smalliiintsl
    \let\smalloint=\smallointsl
    \let\smalloiint=\smalloiintsl
    \let\smalloiiint=\smalloiiintsl
    \let\smallvarointclockwise=\smallvarointclockwisesl
    \let\smallointctrclockwise=\smallointctrclockwisesl
    \let\smallsumint=\smallsumintsl
    \let\smalliiiint=\smalliiiintsl
    \let\smallfint=\smallfintsl
    \let\smallsqint=\smallsqintsl

    \let\intop=\intslop
    \let\iintop=\iintslop
    \let\iiintop=\iiintslop
    \let\ointop=\ointslop
    \let\oiintop=\oiintslop
    \let\oiiintop=\oiiintslop
    \let\varointclockwiseop=\varointclockwiseslop
    \let\ointctrclockwiseop=\ointctrclockwiseslop
    \let\sumintop=\sumintslop
    \let\iiiintop=\iiiintslop
    \let\fintop=\fintslop
    \let\sqintop=\sqintslop
\fi
\def\int{\DOTSI\intop\ilimits@}
\def\iint{\DOTSI\iintop\ilimits@}
\def\iiint{\DOTSI\iiintop\ilimits@}
\def\oint{\DOTSI\ointop\ilimits@}
\def\oiint{\DOTSI\oiintop\ilimits@}
\def\oiiint{\DOTSI\oiiintop\ilimits@}
\def\varointclockwise{\DOTSI\varointclockwiseop\ilimits@}
\def\ointctrclockwise{\DOTSI\ointctrclockwiseop\ilimits@}
\def\sumint{\DOTSI\sumintop\ilimits@}
\def\iiiint{\DOTSI\iiiintop\ilimits@}
\def\fint{\DOTSI\fintop\ilimits@}
\def\sqint{\DOTSI\sqintop\ilimits@}

\def\intsl{\DOTSI\intslop\ilimits@}
\def\iintsl{\DOTSI\iintslop\ilimits@}
\def\iiintsl{\DOTSI\iiintslop\ilimits@}
\def\ointsl{\DOTSI\ointslop\ilimits@}
\def\oiintsl{\DOTSI\oiintslop\ilimits@}
\def\oiiintsl{\DOTSI\oiiintslop\ilimits@}
\def\varointclockwisesl{\DOTSI\varointclockwiseslop\ilimits@}
\def\ointctrclockwisesl{\DOTSI\ointctrclockwiseslop\ilimits@}
\def\sumintsl{\DOTSI\sumintslop\ilimits@}
\def\iiiintsl{\DOTSI\iiiintslop\ilimits@}
\def\fintsl{\DOTSI\fintslop\ilimits@}
\def\sqintsl{\DOTSI\sqintslop\ilimits@}

\def\intup{\DOTSI\intupop\ilimits@}
\def\iintup{\DOTSI\iintupop\ilimits@}
\def\iiintup{\DOTSI\iiintupop\ilimits@}
\def\ointup{\DOTSI\ointupop\ilimits@}
\def\oiintup{\DOTSI\oiintupop\ilimits@}
\def\oiiintup{\DOTSI\oiiintupop\ilimits@}
\def\varointclockwiseup{\DOTSI\varointclockwiseupop\ilimits@}
\def\ointctrclockwiseup{\DOTSI\ointctrclockwiseupop\ilimits@}
\def\sumintup{\DOTSI\sumintupop\ilimits@}
\def\iiiintup{\DOTSI\iiiintupop\ilimits@}
\def\fintup{\DOTSI\fintupop\ilimits@}
\def\sqintup{\DOTSI\sqintupop\ilimits@}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Math extension options
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\iftx@smops % use smaller form of binary operators
\re@DeclareMathSymbol{\bigsqcupop}{\mathop}{largesymbols}{"46}
\re@DeclareMathSymbol{\bigodotop}{\mathop}{largesymbols}{"4A}
\re@DeclareMathSymbol{\bigoplusop}{\mathop}{largesymbols}{"4C}
\re@DeclareMathSymbol{\bigotimesop}{\mathop}{largesymbols}{"4E}
\re@DeclareMathSymbol{\sumop}{\mathop}{largesymbols}{"50}
\re@DeclareMathSymbol{\prodop}{\mathop}{largesymbols}{"51}
\re@DeclareMathSymbol{\bigcupop}{\mathop}{largesymbols}{"53}
\re@DeclareMathSymbol{\bigcapop}{\mathop}{largesymbols}{"54}
\re@DeclareMathSymbol{\biguplusop}{\mathop}{largesymbols}{"55}
\re@DeclareMathSymbol{\bigwedgeop}{\mathop}{largesymbols}{"56}
\re@DeclareMathSymbol{\bigveeop}{\mathop}{largesymbols}{"57}
\re@DeclareMathSymbol{\bigcupdotop}{\mathop}{largesymbols}{"DF}
\re@DeclareMathSymbol{\bigcapplusop}{\mathop}{largesymbolsTXA}{"00}
\re@DeclareMathSymbol{\bigsqcupplusop}{\mathop}{largesymbolsTXA}{"02}
\re@DeclareMathSymbol{\bigsqcapplusop}{\mathop}{largesymbolsTXA}{"04}
\re@DeclareMathSymbol{\bigsqcapop}{\mathop}{largesymbolsTXA}{"06}
\re@DeclareMathSymbol{\bigtimesop}{\mathop}{largesymbolsTXA}{"10}
\re@DeclareMathSymbol{\coprodop}{\mathop}{largesymbols}{"60}
%\re@DeclareMathSymbol{\bignplus}{\mathop}{largesymbolsTXA}{0}
%\re@DeclareMathSymbol{\bigsqcupplus}{\mathop}{largesymbolsTXA}{2}
%\re@DeclareMathSymbol{\bigsqcapplus}{\mathop}{largesymbolsTXA}{4}
%\re@DeclareMathSymbol{\bigsqcap}{\mathop}{largesymbolsTXA}{6}
%\re@DeclareMathSymbol{\varprod}{\mathop}{largesymbolsTXA}{16}
\else
\re@DeclareMathSymbol{\bigsqcupop}{\mathop}{largesymbols}{"C3}
\re@DeclareMathSymbol{\bigodotop}{\mathop}{largesymbols}{"C7}
\re@DeclareMathSymbol{\bigoplusop}{\mathop}{largesymbols}{"C9}
\re@DeclareMathSymbol{\bigotimesop}{\mathop}{largesymbols}{"CB}
\re@DeclareMathSymbol{\sumop}{\mathop}{largesymbols}{"CD}
\re@DeclareMathSymbol{\prodop}{\mathop}{largesymbols}{"CE}
\re@DeclareMathSymbol{\bigcupop}{\mathop}{largesymbols}{"D0}
\re@DeclareMathSymbol{\bigcapop}{\mathop}{largesymbols}{"D1}
\re@DeclareMathSymbol{\biguplusop}{\mathop}{largesymbols}{"D2}
\re@DeclareMathSymbol{\bigwedgeop}{\mathop}{largesymbols}{"D3}
\re@DeclareMathSymbol{\bigveeop}{\mathop}{largesymbols}{"D4}
\re@DeclareMathSymbol{\bigcupdotop}{\mathop}{largesymbols}{"CF}
\re@DeclareMathSymbol{\bigcapplusop}{\mathop}{largesymbolsTXA}{"28}
\re@DeclareMathSymbol{\bigsqcupplusop}{\mathop}{largesymbolsTXA}{"2A}
\re@DeclareMathSymbol{\bigsqcapplusop}{\mathop}{largesymbolsTXA}{"2C}
\re@DeclareMathSymbol{\bigsqcapop}{\mathop}{largesymbolsTXA}{"2E}
\re@DeclareMathSymbol{\bigtimesop}{\mathop}{largesymbolsTXA}{"3E}
\re@DeclareMathSymbol{\coprodop}{\mathop}{largesymbols}{"DD}
\fi
\def\prod{\DOTSI\prodop\slimits@}
\def\coprod{\DOTSI\coprodop\slimits@}
\def\sum{\DOTSI\sumop\slimits@}
\def\bigwedge{\DOTSI\bigwedgeop\slimits@}
\def\bigvee{\DOTSI\bigveeop\slimits@}
\def\bigcap{\DOTSI\bigcapop\slimits@}
\def\bigcup{\DOTSI\bigcupop\slimits@}
\def\bigodot{\DOTSI\bigodotop\slimits@}
\def\bigoplus{\DOTSI\bigoplusop\slimits@}
\def\bigotimes{\DOTSI\bigotimesop\slimits@}
\def\bigcupdot{\DOTSI\bigcupdotop\slimits@}
\def\bignplus{\DOTSI\bigcapplusop\slimits@}
	\let\bigcapplus=\bignplus
\def\biguplus{\DOTSI\biguplusop\slimits@}
	\let\bigcupplus=\biguplus
\def\bigsqcap{\DOTSI\bigsqcapop\slimits@}
\def\bigsqcapplus{\DOTSI\bigsqcapplusop\slimits@}
\def\bigsqcup{\DOTSI\bigsqcupop\slimits@}
\def\bigsqcupplus{\DOTSI\bigsqcupplusop\slimits@}
\def\bigtimes{\DOTSI\bigtimesop\slimits@}
	\let\varprod=\bigtimes

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Math Symbol A Definitions % AMSm
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\iftx@ams
\re@DeclareMathSymbol{\boxdot}{\mathbin}{AMSm}{128}
\re@DeclareMathSymbol{\boxplus}{\mathbin}{AMSm}{129}
\re@DeclareMathSymbol{\boxtimes}{\mathbin}{AMSm}{130}
\re@DeclareMathSymbol{\square}{\mathord}{AMSm}{131}
\re@DeclareMathSymbol{\blacksquare}{\mathord}{AMSm}{132}
\re@DeclareMathSymbol{\centerdot}{\mathbin}{AMSm}{133}
\re@DeclareMathSymbol{\lozenge}{\mathord}{AMSm}{134}
\re@DeclareMathSymbol{\blacklozenge}{\mathord}{AMSm}{135}
\re@DeclareMathSymbol{\circlearrowright}{\mathrel}{AMSm}{136}
\re@DeclareMathSymbol{\circlearrowleft}{\mathrel}{AMSm}{137}
\re@DeclareMathSymbol{\rightleftharpoons}{\mathrel}{AMSm}{138}
\re@DeclareMathSymbol{\leftrightharpoons}{\mathrel}{AMSm}{139}
\re@DeclareMathSymbol{\boxminus}{\mathbin}{AMSm}{140}
\re@DeclareMathSymbol{\Vdash}{\mathrel}{AMSm}{141}
\re@DeclareMathSymbol{\Vvdash}{\mathrel}{AMSm}{142}
\re@DeclareMathSymbol{\vDash}{\mathrel}{AMSm}{143}
\re@DeclareMathSymbol{\twoheadrightarrow}{\mathrel}{AMSm}{144}
\re@DeclareMathSymbol{\twoheadleftarrow}{\mathrel}{AMSm}{145}
\re@DeclareMathSymbol{\leftleftarrows}{\mathrel}{AMSm}{146}
\re@DeclareMathSymbol{\rightrightarrows}{\mathrel}{AMSm}{147}
\re@DeclareMathSymbol{\upuparrows}{\mathrel}{AMSm}{148}
\re@DeclareMathSymbol{\downdownarrows}{\mathrel}{AMSm}{149}
\re@DeclareMathSymbol{\upharpoonright}{\mathrel}{AMSm}{150}
   \let\restriction\upharpoonright
\re@DeclareMathSymbol{\downharpoonright}{\mathrel}{AMSm}{151}
\re@DeclareMathSymbol{\upharpoonleft}{\mathrel}{AMSm}{152}
\re@DeclareMathSymbol{\downharpoonleft}{\mathrel}{AMSm}{153}
\re@DeclareMathSymbol{\rightarrowtail}{\mathrel}{AMSm}{154}
\re@DeclareMathSymbol{\leftarrowtail}{\mathrel}{AMSm}{155}
\re@DeclareMathSymbol{\leftrightarrows}{\mathrel}{AMSm}{156}
\re@DeclareMathSymbol{\rightleftarrows}{\mathrel}{AMSm}{157}
\re@DeclareMathSymbol{\Lsh}{\mathrel}{AMSm}{158}
\re@DeclareMathSymbol{\Rsh}{\mathrel}{AMSm}{159}
\re@DeclareMathSymbol{\rightsquigarrow}{\mathrel}{AMSm}{160}
\re@DeclareMathSymbol{\leftrightsquigarrow}{\mathrel}{AMSm}{161}
\re@DeclareMathSymbol{\looparrowleft}{\mathrel}{AMSm}{162}
\re@DeclareMathSymbol{\looparrowright}{\mathrel}{AMSm}{163}
\re@DeclareMathSymbol{\circeq}{\mathrel}{AMSm}{164}
\re@DeclareMathSymbol{\succsim}{\mathrel}{AMSm}{165}
\re@DeclareMathSymbol{\gtrsim}{\mathrel}{AMSm}{166}
\re@DeclareMathSymbol{\gtrapprox}{\mathrel}{AMSm}{167}
\re@DeclareMathSymbol{\multimap}{\mathrel}{AMSm}{168}
\re@DeclareMathSymbol{\therefore}{\mathrel}{AMSm}{169}
\re@DeclareMathSymbol{\because}{\mathrel}{AMSm}{170}
\re@DeclareMathSymbol{\doteqdot}{\mathrel}{AMSm}{171}
   \let\Doteq\doteqdot
\re@DeclareMathSymbol{\triangleq}{\mathrel}{AMSm}{172}
\re@DeclareMathSymbol{\precsim}{\mathrel}{AMSm}{173}
\re@DeclareMathSymbol{\lesssim}{\mathrel}{AMSm}{174}
\re@DeclareMathSymbol{\lessapprox}{\mathrel}{AMSm}{175}
\re@DeclareMathSymbol{\eqslantless}{\mathrel}{AMSm}{176}
\re@DeclareMathSymbol{\eqslantgtr}{\mathrel}{AMSm}{177}
\re@DeclareMathSymbol{\curlyeqprec}{\mathrel}{AMSm}{178}
\re@DeclareMathSymbol{\curlyeqsucc}{\mathrel}{AMSm}{179}
\re@DeclareMathSymbol{\preccurlyeq}{\mathrel}{AMSm}{180}
\re@DeclareMathSymbol{\leqq}{\mathrel}{AMSm}{181}
\re@DeclareMathSymbol{\leqslant}{\mathrel}{AMSm}{182}
\re@DeclareMathSymbol{\lessgtr}{\mathrel}{AMSm}{183}
\re@DeclareMathSymbol{\backprime}{\mathord}{AMSm}{184}
\re@DeclareMathSymbol{\risingdotseq}{\mathrel}{AMSm}{186}
\re@DeclareMathSymbol{\fallingdotseq}{\mathrel}{AMSm}{187}
\re@DeclareMathSymbol{\succcurlyeq}{\mathrel}{AMSm}{188}
\re@DeclareMathSymbol{\geqq}{\mathrel}{AMSm}{189}
\re@DeclareMathSymbol{\geqslant}{\mathrel}{AMSm}{190}
\re@DeclareMathSymbol{\gtrless}{\mathrel}{AMSm}{191}
\re@DeclareMathSymbol{\sqsubset}{\mathrel}{AMSm}{192}
\re@DeclareMathSymbol{\sqsupset}{\mathrel}{AMSm}{193}
\re@DeclareMathSymbol{\vartriangleright}{\mathrel}{AMSm}{194}
\re@DeclareMathSymbol{\vartriangleleft}{\mathrel}{AMSm}{195}
\re@DeclareMathSymbol{\trianglerighteq}{\mathrel}{AMSm}{196}
\re@DeclareMathSymbol{\trianglelefteq}{\mathrel}{AMSm}{197}
\re@DeclareMathSymbol{\bigstar}{\mathord}{AMSm}{198}
\re@DeclareMathSymbol{\between}{\mathrel}{AMSm}{199}
\re@DeclareMathSymbol{\blacktriangledown}{\mathord}{AMSm}{200}
\re@DeclareMathSymbol{\blacktriangleright}{\mathrel}{AMSm}{201}
\re@DeclareMathSymbol{\blacktriangleleft}{\mathrel}{AMSm}{202}
\re@DeclareMathSymbol{\vartriangle}{\mathrel}{AMSm}{205}
\re@DeclareMathSymbol{\blacktriangle}{\mathord}{AMSm}{206}
\re@DeclareMathSymbol{\triangledown}{\mathord}{AMSm}{207}
\re@DeclareMathSymbol{\eqcirc}{\mathrel}{AMSm}{208}
\re@DeclareMathSymbol{\lesseqgtr}{\mathrel}{AMSm}{209}
\re@DeclareMathSymbol{\gtreqless}{\mathrel}{AMSm}{210}
\re@DeclareMathSymbol{\lesseqqgtr}{\mathrel}{AMSm}{211}
\re@DeclareMathSymbol{\gtreqqless}{\mathrel}{AMSm}{212}
\re@DeclareMathSymbol{\Rrightarrow}{\mathrel}{AMSm}{214}
\re@DeclareMathSymbol{\Lleftarrow}{\mathrel}{AMSm}{215}
\re@DeclareMathSymbol{\veebar}{\mathbin}{AMSm}{217}
\re@DeclareMathSymbol{\barwedge}{\mathbin}{AMSm}{218}
\re@DeclareMathSymbol{\doublebarwedge}{\mathbin}{AMSm}{219}
\re@DeclareMathSymbol{\angle}{\mathord}{AMSm}{220}
\re@DeclareMathSymbol{\measuredangle}{\mathord}{AMSm}{221}
\re@DeclareMathSymbol{\sphericalangle}{\mathord}{AMSm}{222}
\re@DeclareMathSymbol{\varpropto}{\mathrel}{AMSm}{223}
\re@DeclareMathSymbol{\smallsmile}{\mathrel}{AMSm}{224}
\re@DeclareMathSymbol{\smallfrown}{\mathrel}{AMSm}{225}
\re@DeclareMathSymbol{\Subset}{\mathrel}{AMSm}{226}
\re@DeclareMathSymbol{\Supset}{\mathrel}{AMSm}{227}
\re@DeclareMathSymbol{\Cup}{\mathbin}{AMSm}{228}
   \let\doublecup\Cup
\re@DeclareMathSymbol{\Cap}{\mathbin}{AMSm}{229}
   \let\doublecap\Cap
\re@DeclareMathSymbol{\curlywedge}{\mathbin}{AMSm}{230}
\re@DeclareMathSymbol{\curlyvee}{\mathbin}{AMSm}{231}
\re@DeclareMathSymbol{\leftthreetimes}{\mathbin}{AMSm}{232}
\re@DeclareMathSymbol{\rightthreetimes}{\mathbin}{AMSm}{233}
\re@DeclareMathSymbol{\subseteqq}{\mathrel}{AMSm}{234}
\re@DeclareMathSymbol{\supseteqq}{\mathrel}{AMSm}{235}
\re@DeclareMathSymbol{\bumpeq}{\mathrel}{AMSm}{236}
\re@DeclareMathSymbol{\Bumpeq}{\mathrel}{AMSm}{237}
\re@DeclareMathSymbol{\lll}{\mathrel}{AMSm}{238}
   \let\llless\lll
\re@DeclareMathSymbol{\ggg}{\mathrel}{AMSm}{239}
   \let\gggtr\ggg
\re@DeclareMathDelimiter\ulcorner{\mathopen}{AMSm}{240}{AMSm}{240}
\re@DeclareMathDelimiter\urcorner{\mathclose}{AMSm}{241}{AMSm}{241}
\re@DeclareMathSymbol{\circledS}{\mathord}{AMSm}{243}
\re@DeclareMathSymbol{\pitchfork}{\mathrel}{AMSm}{244}
\re@DeclareMathSymbol{\dotplus}{\mathbin}{AMSm}{245}
\re@DeclareMathSymbol{\backsim}{\mathrel}{AMSm}{246}
\re@DeclareMathSymbol{\backsimeq}{\mathrel}{AMSm}{247}
\re@DeclareMathDelimiter\llcorner{\mathopen}{AMSm}{248}{AMSm}{248}
\re@DeclareMathDelimiter\lrcorner{\mathclose}{AMSm}{249}{AMSm}{249}
\re@DeclareMathSymbol{\complement}{\mathord}{AMSm}{251}
\re@DeclareMathSymbol{\intercal}{\mathbin}{AMSm}{252}
\re@DeclareMathSymbol{\circledcirc}{\mathbin}{AMSm}{253}
\re@DeclareMathSymbol{\circledast}{\mathbin}{AMSm}{254}
\re@DeclareMathSymbol{\circleddash}{\mathbin}{AMSm}{255}

\let\Box=\square % LaTeX symbol
\re@DeclareMathSymbol{\rhd}{\mathbin}{AMSm}{194} % LaTeX symbol
\re@DeclareMathSymbol{\lhd}{\mathbin}{AMSm}{195} % LaTeX symbol
\re@DeclareMathSymbol{\unrhd}{\mathbin}{AMSm}{196} % LaTeX symbol
\re@DeclareMathSymbol{\unlhd}{\mathbin}{AMSm}{197} % LaTeX symbol
\edef\checkmark{\noexpand\mathhexbox{\hexnumber@\symAMSm}D8}
\edef\circledR{\noexpand\mathhexbox{\hexnumber@\symAMSm}F2}
\edef\maltese{\noexpand\mathhexbox{\hexnumber@\symAMSm}FA}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Math Symbol B Definitions % AMSb
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\re@DeclareMathSymbol{\lvertneqq}{\mathrel}{AMSm}{0}
\re@DeclareMathSymbol{\gvertneqq}{\mathrel}{AMSm}{1}
\re@DeclareMathSymbol{\nleq}{\mathrel}{AMSm}{2}
\re@DeclareMathSymbol{\ngeq}{\mathrel}{AMSm}{3}
\re@DeclareMathSymbol{\nless}{\mathrel}{AMSm}{4}
\re@DeclareMathSymbol{\ngtr}{\mathrel}{AMSm}{5}
\re@DeclareMathSymbol{\nprec}{\mathrel}{AMSm}{6}
\re@DeclareMathSymbol{\nsucc}{\mathrel}{AMSm}{7}
\re@DeclareMathSymbol{\lneqq}{\mathrel}{AMSm}{8}
\re@DeclareMathSymbol{\gneqq}{\mathrel}{AMSm}{9}
\re@DeclareMathSymbol{\nleqslant}{\mathrel}{AMSm}{10}
\re@DeclareMathSymbol{\ngeqslant}{\mathrel}{AMSm}{11}
\re@DeclareMathSymbol{\lneq}{\mathrel}{AMSm}{12}
\re@DeclareMathSymbol{\gneq}{\mathrel}{AMSm}{13}
\re@DeclareMathSymbol{\npreceq}{\mathrel}{AMSm}{14}
\re@DeclareMathSymbol{\nsucceq}{\mathrel}{AMSm}{15}
\re@DeclareMathSymbol{\precnsim}{\mathrel}{AMSm}{16}
\re@DeclareMathSymbol{\succnsim}{\mathrel}{AMSm}{17}
\re@DeclareMathSymbol{\lnsim}{\mathrel}{AMSm}{18}
\re@DeclareMathSymbol{\gnsim}{\mathrel}{AMSm}{19}
\re@DeclareMathSymbol{\nleqq}{\mathrel}{AMSm}{20}
\re@DeclareMathSymbol{\ngeqq}{\mathrel}{AMSm}{21}
\re@DeclareMathSymbol{\precneqq}{\mathrel}{AMSm}{22}
\re@DeclareMathSymbol{\succneqq}{\mathrel}{AMSm}{23}
\re@DeclareMathSymbol{\precnapprox}{\mathrel}{AMSm}{24}
\re@DeclareMathSymbol{\succnapprox}{\mathrel}{AMSm}{25}
\re@DeclareMathSymbol{\lnapprox}{\mathrel}{AMSm}{26}
\re@DeclareMathSymbol{\gnapprox}{\mathrel}{AMSm}{27}
\re@DeclareMathSymbol{\nsim}{\mathrel}{AMSm}{28}
\re@DeclareMathSymbol{\ncong}{\mathrel}{AMSm}{29}
\re@DeclareMathSymbol{\diagup}{\mathord}{AMSm}{30}
\re@DeclareMathSymbol{\diagdown}{\mathord}{AMSm}{31}
\re@DeclareMathSymbol{\varsubsetneq}{\mathrel}{AMSm}{32}
\re@DeclareMathSymbol{\varsupsetneq}{\mathrel}{AMSm}{33}
\re@DeclareMathSymbol{\nsubseteqq}{\mathrel}{AMSm}{34}
\re@DeclareMathSymbol{\nsupseteqq}{\mathrel}{AMSm}{35}
\re@DeclareMathSymbol{\subsetneqq}{\mathrel}{AMSm}{36}
\re@DeclareMathSymbol{\supsetneqq}{\mathrel}{AMSm}{37}
\re@DeclareMathSymbol{\varsubsetneqq}{\mathrel}{AMSm}{38}
\re@DeclareMathSymbol{\varsupsetneqq}{\mathrel}{AMSm}{39}
\re@DeclareMathSymbol{\subsetneq}{\mathrel}{AMSm}{40}
\re@DeclareMathSymbol{\supsetneq}{\mathrel}{AMSm}{41}
\re@DeclareMathSymbol{\nsubseteq}{\mathrel}{AMSm}{42}
\re@DeclareMathSymbol{\nsupseteq}{\mathrel}{AMSm}{43}
\re@DeclareMathSymbol{\nparallel}{\mathrel}{AMSm}{44}
\re@DeclareMathSymbol{\nmid}{\mathrel}{AMSm}{45}
\re@DeclareMathSymbol{\nshortmid}{\mathrel}{AMSm}{46}
\re@DeclareMathSymbol{\nshortparallel}{\mathrel}{AMSm}{47}
\re@DeclareMathSymbol{\nvdash}{\mathrel}{AMSm}{48}
\re@DeclareMathSymbol{\nVdash}{\mathrel}{AMSm}{49}
\re@DeclareMathSymbol{\nvDash}{\mathrel}{AMSm}{50}
\re@DeclareMathSymbol{\nVDash}{\mathrel}{AMSm}{51}
\re@DeclareMathSymbol{\ntrianglerighteq}{\mathrel}{AMSm}{52}
\re@DeclareMathSymbol{\ntrianglelefteq}{\mathrel}{AMSm}{53}
\re@DeclareMathSymbol{\ntriangleleft}{\mathrel}{AMSm}{54}
\re@DeclareMathSymbol{\ntriangleright}{\mathrel}{AMSm}{55}
\re@DeclareMathSymbol{\nleftarrow}{\mathrel}{AMSm}{56}
\re@DeclareMathSymbol{\nrightarrow}{\mathrel}{AMSm}{57}
\re@DeclareMathSymbol{\nLeftarrow}{\mathrel}{AMSm}{58}
\re@DeclareMathSymbol{\nRightarrow}{\mathrel}{AMSm}{59}
\re@DeclareMathSymbol{\nLeftrightarrow}{\mathrel}{AMSm}{60}
\re@DeclareMathSymbol{\nleftrightarrow}{\mathrel}{AMSm}{61}
\re@DeclareMathSymbol{\divideontimes}{\mathbin}{AMSm}{62}
%\re@DeclareMathSymbol{\varnothing}{\mathord}{AMSm}{63}
%\re@DeclareMathSymbol{\nexists}{\mathord}{AMSm}{64}
\re@DeclareMathSymbol{\Finv}{\mathord}{AMSm}{96}
\re@DeclareMathSymbol{\Game}{\mathord}{AMSm}{97}
\re@DeclareMathSymbol{\mho}{\mathord}{AMSm}{102}
\re@DeclareMathSymbol{\eth}{\mathord}{AMSm}{103}
\re@DeclareMathSymbol{\eqsim}{\mathrel}{AMSm}{104}
\re@DeclareMathSymbol{\beth}{\mathord}{AMSm}{105}
\re@DeclareMathSymbol{\gimel}{\mathord}{AMSm}{106}
\re@DeclareMathSymbol{\daleth}{\mathord}{AMSm}{124} % was 107
\re@DeclareMathSymbol{\lessdot}{\mathbin}{AMSm}{108}
\re@DeclareMathSymbol{\gtrdot}{\mathbin}{AMSm}{109}
\re@DeclareMathSymbol{\ltimes}{\mathbin}{AMSm}{110}
\re@DeclareMathSymbol{\rtimes}{\mathbin}{AMSm}{111}
\re@DeclareMathSymbol{\shortmid}{\mathrel}{AMSm}{112}
\re@DeclareMathSymbol{\shortparallel}{\mathrel}{AMSm}{113}
\re@DeclareMathSymbol{\smallsetminus}{\mathbin}{AMSm}{114}
\re@DeclareMathSymbol{\thicksim}{\mathrel}{AMSm}{115}
\re@DeclareMathSymbol{\thickapprox}{\mathrel}{AMSm}{116}
\re@DeclareMathSymbol{\approxeq}{\mathrel}{AMSm}{117}
\re@DeclareMathSymbol{\precapprox}{\mathrel}{AMSm}{118}
\re@DeclareMathSymbol{\succapprox}{\mathrel}{AMSm}{119}
\re@DeclareMathSymbol{\curvearrowleft}{\mathrel}{AMSm}{120}
\re@DeclareMathSymbol{\curvearrowright}{\mathrel}{AMSm}{121}
\re@DeclareMathSymbol{\digamma}{\mathord}{AMSm}{122}
%\re@DeclareMathSymbol{\varkappa}{\mathord}{AMSm}{123}
\re@DeclareMathSymbol{\Bbbk}{\mathord}{AMSm}{107} % was 124
%\re@DeclareMathSymbol{\hslash}{\mathord}{AMSm}{125}
%\re@DeclareMathSymbol{\hbar}{\mathord}{AMSm}{126}
\re@DeclareMathSymbol{\backepsilon}{\mathrel}{AMSm}{127}
\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Math Symbol C Definitions % symbolsC
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\iftx@symbolsC
\re@DeclareMathSymbol{\mappedfromchar}{\mathrel}{symbolsC}{0}
   \def\mappedfrom{\leftarrow\mappedfromchar}
   \let\mapsfrom\mappedfrom
   \def\longmappedfrom{\longleftarrow\mappedfromchar}
\re@DeclareMathSymbol{\Mapstochar}{\mathrel}{symbolsC}{1}
   \def\Mapsto{\Mapstochar\Rightarrow}
   \def\Longmapsto{\Mapstochar\Longrightarrow}
\re@DeclareMathSymbol{\Mappedfromchar}{\mathrel}{symbolsC}{2}
   \def\Mappedfrom{\Leftarrow\Mappedfromchar}
   \let\Mapsfrom\Mappedfrom
   \def\Longmappedfrom{\Longleftarrow\Mappedfromchar}
\re@DeclareMathSymbol{\mmapstochar}{\mathrel}{symbolsC}{3}
   \def\mmapsto{\mmapstochar\rightarrow}
   \def\longmmapsto{\mmapstochar\longrightarrow}
\re@DeclareMathSymbol{\mmappedfromchar}{\mathrel}{symbolsC}{4}
   \def\mmappedfrom{\leftarrow\mmappedfromchar}
   \def\longmmappedfrom{\longleftarrow\mmappedfromchar}
\re@DeclareMathSymbol{\Mmapstochar}{\mathrel}{symbolsC}{5}
   \def\Mmapsto{\Mmapstochar\Rightarrow}
   \def\Longmmapsto{\Mmapstochar\Longrightarrow}
\re@DeclareMathSymbol{\Mmappedfromchar}{\mathrel}{symbolsC}{6}
   \def\Mmappedfrom{\Leftarrow\Mmappedfromchar}
   \def\Longmmappedfrom{\Longleftarrow\Mmappedfromchar}
\re@DeclareMathSymbol{\medcirc}{\mathbin}{symbolsC}{7}
\re@DeclareMathSymbol{\medbullet}{\mathbin}{symbolsC}{8}
\re@DeclareMathSymbol{\varparallel}{\mathrel}{symbolsC}{9}
\re@DeclareMathSymbol{\varparallelinv}{\mathrel}{symbolsC}{10}
\re@DeclareMathSymbol{\nvarparallel}{\mathrel}{symbolsC}{11}
\re@DeclareMathSymbol{\nvarparallelinv}{\mathrel}{symbolsC}{12}
\re@DeclareMathSymbol{\colonapprox}{\mathrel}{symbolsC}{13}
\re@DeclareMathSymbol{\colonsim}{\mathrel}{symbolsC}{14}
\re@DeclareMathSymbol{\Colonapprox}{\mathrel}{symbolsC}{15}
\re@DeclareMathSymbol{\Colonsim}{\mathrel}{symbolsC}{16}
\re@DeclareMathSymbol{\doteq}{\mathrel}{symbolsC}{17}
\re@DeclareMathSymbol{\multimapinv}{\mathrel}{symbolsC}{18}
\re@DeclareMathSymbol{\multimapboth}{\mathrel}{symbolsC}{19}
\re@DeclareMathSymbol{\multimapdot}{\mathrel}{symbolsC}{20}
\re@DeclareMathSymbol{\multimapdotinv}{\mathrel}{symbolsC}{21}
\re@DeclareMathSymbol{\multimapdotboth}{\mathrel}{symbolsC}{22}
\re@DeclareMathSymbol{\multimapdotbothA}{\mathrel}{symbolsC}{23}
\re@DeclareMathSymbol{\multimapdotbothB}{\mathrel}{symbolsC}{24}
\re@DeclareMathSymbol{\VDash}{\mathrel}{symbolsC}{25}
\re@DeclareMathSymbol{\VvDash}{\mathrel}{symbolsC}{26}
\re@DeclareMathSymbol{\cong}{\mathrel}{symbolsC}{27}
\re@DeclareMathSymbol{\preceqq}{\mathrel}{symbolsC}{28}
\re@DeclareMathSymbol{\succeqq}{\mathrel}{symbolsC}{29}
\re@DeclareMathSymbol{\nprecsim}{\mathrel}{symbolsC}{30}
\re@DeclareMathSymbol{\nsuccsim}{\mathrel}{symbolsC}{31}
\re@DeclareMathSymbol{\nlesssim}{\mathrel}{symbolsC}{32}
\re@DeclareMathSymbol{\ngtrsim}{\mathrel}{symbolsC}{33}
\re@DeclareMathSymbol{\nlessapprox}{\mathrel}{symbolsC}{34}
\re@DeclareMathSymbol{\ngtrapprox}{\mathrel}{symbolsC}{35}
\re@DeclareMathSymbol{\npreccurlyeq}{\mathrel}{symbolsC}{36}
\re@DeclareMathSymbol{\nsucccurlyeq}{\mathrel}{symbolsC}{37}
\re@DeclareMathSymbol{\ngtrless}{\mathrel}{symbolsC}{38}
\re@DeclareMathSymbol{\nlessgtr}{\mathrel}{symbolsC}{39}
\re@DeclareMathSymbol{\nbumpeq}{\mathrel}{symbolsC}{40}
\re@DeclareMathSymbol{\nBumpeq}{\mathrel}{symbolsC}{41}
\re@DeclareMathSymbol{\nbacksim}{\mathrel}{symbolsC}{42}
\re@DeclareMathSymbol{\nbacksimeq}{\mathrel}{symbolsC}{43}
%\re@DeclareMathSymbol{\neq}{\mathrel}{symbolsC}{44}
%   \let\ne=\neq
\re@DeclareMathSymbol{\nasymp}{\mathrel}{symbolsC}{45}
\re@DeclareMathSymbol{\nequiv}{\mathrel}{symbolsC}{46}
%\re@DeclareMathSymbol{\nsim}{\mathrel}{symbolsC}{47}
\re@DeclareMathSymbol{\napprox}{\mathrel}{symbolsC}{48}
%\re@DeclareMathSymbol{\nsubset}{\mathrel}{symbolsC}{49}
%\re@DeclareMathSymbol{\nsupset}{\mathrel}{symbolsC}{50}
\re@DeclareMathSymbol{\nll}{\mathrel}{symbolsC}{51}
\re@DeclareMathSymbol{\ngg}{\mathrel}{symbolsC}{52}
\re@DeclareMathSymbol{\nthickapprox}{\mathrel}{symbolsC}{53}
\re@DeclareMathSymbol{\napproxeq}{\mathrel}{symbolsC}{54}
\re@DeclareMathSymbol{\nprecapprox}{\mathrel}{symbolsC}{55}
\re@DeclareMathSymbol{\nsuccapprox}{\mathrel}{symbolsC}{56}
\re@DeclareMathSymbol{\npreceqq}{\mathrel}{symbolsC}{57}
\re@DeclareMathSymbol{\nsucceqq}{\mathrel}{symbolsC}{58}
\re@DeclareMathSymbol{\nsimeq}{\mathrel}{symbolsC}{59}
%\re@DeclareMathSymbol{\notin}{\mathrel}{symbolsC}{60}
%\re@DeclareMathSymbol{\notni}{\mathrel}{symbolsC}{61}
%   \let\notowns=\notni
\re@DeclareMathSymbol{\nSubset}{\mathrel}{symbolsC}{62}
\re@DeclareMathSymbol{\nSupset}{\mathrel}{symbolsC}{63}
\re@DeclareMathSymbol{\nsqsubseteq}{\mathrel}{symbolsC}{64}
\re@DeclareMathSymbol{\nsqsupseteq}{\mathrel}{symbolsC}{65}
%\re@DeclareMathSymbol{\coloneq}{\mathrel}{symbolsC}{66}
%\re@DeclareMathSymbol{\eqcolon}{\mathrel}{symbolsC}{67}
\re@DeclareMathSymbol{\colondash}{\mathrel}{symbolsC}{68}
\re@DeclareMathSymbol{\dashcolon}{\mathrel}{symbolsC}{69}
\re@DeclareMathSymbol{\Coloneq}{\mathrel}{symbolsC}{70}
\re@DeclareMathSymbol{\Eqcolon}{\mathrel}{symbolsC}{71}
\re@DeclareMathSymbol{\Colondash}{\mathrel}{symbolsC}{72}
\re@DeclareMathSymbol{\Dashcolon}{\mathrel}{symbolsC}{73}
\re@DeclareMathSymbol{\strictif}{\mathrel}{symbolsC}{74}
\re@DeclareMathSymbol{\strictfi}{\mathrel}{symbolsC}{75}
\re@DeclareMathSymbol{\strictiff}{\mathrel}{symbolsC}{76}
\re@DeclareMathSymbol{\invamp}{\mathbin}{symbolsC}{77}
\re@DeclareMathDelimiter{\lbag}{\mathopen}{symbolsC}{78}{largesymbolsTXA}{48}
\re@DeclareMathDelimiter{\rbag}{\mathclose}{symbolsC}{79}{largesymbolsTXA}{49}
\re@DeclareMathSymbol{\Lbag}{\mathopen}{symbolsC}{80}
\re@DeclareMathSymbol{\Rbag}{\mathclose}{symbolsC}{81}
\re@DeclareMathSymbol{\circledless}{\mathrel}{symbolsC}{82}
\re@DeclareMathSymbol{\circledgtr}{\mathrel}{symbolsC}{83}
\re@DeclareMathSymbol{\circledwedge}{\mathbin}{symbolsC}{84}
\re@DeclareMathSymbol{\circledvee}{\mathbin}{symbolsC}{85}
\re@DeclareMathSymbol{\circledbar}{\mathbin}{symbolsC}{86}
\re@DeclareMathSymbol{\circledbslash}{\mathbin}{symbolsC}{87}
\re@DeclareMathSymbol{\lJoin}{\mathrel}{symbolsC}{88}
\re@DeclareMathSymbol{\rJoin}{\mathrel}{symbolsC}{89}
\re@DeclareMathSymbol{\Join}{\mathrel}{symbolsC}{90}
   \let\lrJoin=\Join
\re@DeclareMathSymbol{\openJoin}{\mathrel}{symbolsC}{91}
\re@DeclareMathSymbol{\lrtimes}{\mathrel}{symbolsC}{92}
%   \let\bowtie\lrtimes
\re@DeclareMathSymbol{\opentimes}{\mathrel}{symbolsC}{93}
\re@DeclareMathSymbol{\Diamond}{\mathord}{symbolsC}{94}
\re@DeclareMathSymbol{\Diamondblack}{\mathord}{symbolsC}{95}
\re@DeclareMathSymbol{\nplus}{\mathbin}{symbolsC}{96}
\re@DeclareMathSymbol{\nsqsubset}{\mathrel}{symbolsC}{97}
\re@DeclareMathSymbol{\nsqsupset}{\mathrel}{symbolsC}{98}
\re@DeclareMathSymbol{\dashleftarrow}{\mathrel}{symbolsC}{99}
\re@DeclareMathSymbol{\dashrightarrow}{\mathrel}{symbolsC}{100}
   \let\dasharrow\dashrightarrow
\re@DeclareMathSymbol{\dashleftrightarrow}{\mathrel}{symbolsC}{101}
\re@DeclareMathSymbol{\leftsquigarrow}{\mathrel}{symbolsC}{102}
\re@DeclareMathSymbol{\ntwoheadrightarrow}{\mathrel}{symbolsC}{103}
\re@DeclareMathSymbol{\ntwoheadleftarrow}{\mathrel}{symbolsC}{104}
\re@DeclareMathSymbol{\boxast}{\mathbin}{symbolsC}{105}
\re@DeclareMathSymbol{\boxbslash}{\mathbin}{symbolsC}{106}
\re@DeclareMathSymbol{\boxbar}{\mathbin}{symbolsC}{107}
\re@DeclareMathSymbol{\boxslash}{\mathbin}{symbolsC}{108}
\re@DeclareMathSymbol{\Wr}{\mathbin}{symbolsC}{109}
\re@DeclareMathSymbol{\lambdaslash}{\mathord}{symbolsC}{110}
\re@DeclareMathSymbol{\lambdabar}{\mathord}{symbolsC}{111}
\re@DeclareMathSymbol{\varclubsuit}{\mathord}{symbolsC}{112}
\re@DeclareMathSymbol{\vardiamondsuit}{\mathord}{symbolsC}{113}
\re@DeclareMathSymbol{\varheartsuit}{\mathord}{symbolsC}{114}
\re@DeclareMathSymbol{\varspadesuit}{\mathord}{symbolsC}{115}
\re@DeclareMathSymbol{\Nearrow}{\mathrel}{symbolsC}{116}
\re@DeclareMathSymbol{\Searrow}{\mathrel}{symbolsC}{117}
\re@DeclareMathSymbol{\Nwarrow}{\mathrel}{symbolsC}{118}
\re@DeclareMathSymbol{\Swarrow}{\mathrel}{symbolsC}{119}
\re@DeclareMathSymbol{\Top}{\mathord}{symbolsC}{120}
\re@DeclareMathSymbol{\Bot}{\mathord}{symbolsC}{121}
%\re@DeclareMathSymbol{\Perp}{\mathrel}{symbolsC}{121}
\re@DeclareMathSymbol\leadstoext{\mathrel}{symbolsC}{122}
\re@DeclareMathSymbol\leadsto{\mathrel}{symbolsC}{123}
\re@DeclareMathSymbol{\sqcupplus}{\mathbin}{symbolsC}{124}
\re@DeclareMathSymbol{\sqcapplus}{\mathbin}{symbolsC}{125}
%\iftx@bigdelims\else
%  \re@DeclareMathDelimiter{\llbracket}{\mathopen}{symbolsC}{126}{largesymbolsTXA}{18}
%  \re@DeclareMathDelimiter{\rrbracket}{\mathclose}{symbolsC}{127}{largesymbolsTXA}{19}
%\fi
\re@DeclareMathSymbol{\boxright}{\mathrel}{symbolsC}{128}
\re@DeclareMathSymbol{\boxleft}{\mathrel}{symbolsC}{129}
\re@DeclareMathSymbol{\boxdotright}{\mathrel}{symbolsC}{130}
\re@DeclareMathSymbol{\boxdotleft}{\mathrel}{symbolsC}{131}
\re@DeclareMathSymbol{\Diamondright}{\mathrel}{symbolsC}{132}
\re@DeclareMathSymbol{\Diamondleft}{\mathrel}{symbolsC}{133}
\re@DeclareMathSymbol{\Diamonddotright}{\mathrel}{symbolsC}{134}
\re@DeclareMathSymbol{\Diamonddotleft}{\mathrel}{symbolsC}{135}
\re@DeclareMathSymbol{\boxRight}{\mathrel}{symbolsC}{136}
\re@DeclareMathSymbol{\boxLeft}{\mathrel}{symbolsC}{137}
\re@DeclareMathSymbol{\boxdotRight}{\mathrel}{symbolsC}{138}
\re@DeclareMathSymbol{\boxdotLeft}{\mathrel}{symbolsC}{139}
\re@DeclareMathSymbol{\DiamondRight}{\mathrel}{symbolsC}{140}
\re@DeclareMathSymbol{\DiamondLeft}{\mathrel}{symbolsC}{141}
\re@DeclareMathSymbol{\DiamonddotRight}{\mathrel}{symbolsC}{142}
\re@DeclareMathSymbol{\DiamonddotLeft}{\mathrel}{symbolsC}{143}
\re@DeclareMathSymbol{\Diamonddot}{\mathord}{symbolsC}{144}
\re@DeclareMathSymbol{\circleright}{\mathrel}{symbolsC}{145}
\re@DeclareMathSymbol{\circleleft}{\mathrel}{symbolsC}{146}
\re@DeclareMathSymbol{\circleddotright}{\mathrel}{symbolsC}{147}
   \let\circledotright\circleddotright
\re@DeclareMathSymbol{\circleddotleft}{\mathrel}{symbolsC}{148}
   \let\circledotleft\circleddotleft
\re@DeclareMathSymbol{\multimapbothvert}{\mathrel}{symbolsC}{149}
\re@DeclareMathSymbol{\multimapdotbothvert}{\mathrel}{symbolsC}{150}
\re@DeclareMathSymbol{\multimapdotbothBvert}{\mathrel}{symbolsC}{151}
\re@DeclareMathSymbol{\multimapdotbothAvert}{\mathrel}{symbolsC}{152}
\else % tx@symbolsCfalse
	\newcommand*{\nvarparallel}{\centernot\varparallel}
	\newcommand*{\nvarparallelinv}{\centernot\varparallelinv}
	\newcommand*{\nprecsim}{\centernot\precsim}
	\newcommand*{\nsuccsim}{\centernot\succsim}
	\newcommand*{\nlesssim}{\centernot\lesssim}
	\newcommand*{\ngtrsim}{\centernot\gtrsim}
	\newcommand*{\nlessapprox}{\centernot\lessapprox}
	\newcommand*{\ngtrapprox}{\centernot\gtrapprox}
	\newcommand*{\npreccurlyeq}{\centernot\preccurlyeq}
	\newcommand*{\nsucccurlyeq}{\centernot\succcurlyeq}
	\newcommand*{\ngtrless}{\centernot\gtrless}
	\newcommand*{\nlessgtr}{\centernot\lessgtr}
	\newcommand*{\nbumpeq}{\centernot\bumpeq}
	\newcommand*{\nBumpeq}{\centernot\Bumpeq}
	\newcommand*{\nbacksim}{\centernot\backsim}
	\newcommand*{\nbacksimeq}{\centernot\backsimeq}
	\newcommand*{\nasymp}{\centernot\asymp}
	\newcommand*{\nequiv}{\centernot\equiv}
	%\newcommand*{\nsim}{\centernot\sim}
	\newcommand*{\napprox}{\centernot\approx}
	\newcommand*{\nll}{\centernot\ll}
	\newcommand*{\ngg}{\centernot\gg}
	\newcommand*{\nthickapprox}{\centernot\thickapprox}
	\newcommand*{\napproxeq}{\centernot\approxeq}
	\newcommand*{\nprecapprox}{\centernot\precapprox}
	\newcommand*{\nsuccapprox}{\centernot\succapprox}
	\newcommand*{\npreceqq}{\centernot\preceqq}
	\newcommand*{\nsucceqq}{\centernot\succeqq}
	\newcommand*{\nsimeq}{\centernot\simeq}
	\newcommand*{\nSubset}{\centernot\Subset}
	\newcommand*{\nSupset}{\centernot\Supset}
	\newcommand*{\nsqsubseteq}{\centernot\sqsubseteq}
	\newcommand*{\nsqsupseteq}{\centernot\sqsupseteq}
	\newcommand*{\nplus}{\centernot\plus}
	\newcommand*{\nsqsubset}{\centernot\sqsubset}
	\newcommand*{\nsqsupset}{\centernot\sqsupset}
	\newcommand*{\ntwoheadrightarrow}{\centernot\twoheadrightarrow}
	\newcommand*{\ntwoheadleftarrow}{\centernot\twoheadleftarrow}
\fi
% The following may be used for [[ and ]] without loading symbolsC as a math family. They replace \llbracket and \rrbracket.
%\def\dlb{\ensuremath\raisebox{.15ex}{\mbox{\usefont{U}{txsyc}{m}{n}\char126}}}
%\def\drb{\ensuremath\raisebox{.15ex}{\mbox{\usefont{U}{txsyc}{m}{n}\char127}}}
\let\dlb\llbracket
\let\drb\rrbracket

% Changes to put some symbolsC glyphs into lettersA
\re@DeclareMathSymbol{\nsubset}{\mathrel}{lettersA}{54}
\re@DeclareMathSymbol{\nsupset}{\mathrel}{lettersA}{55}
\re@DeclareMathSymbol{\notin}{\mathrel}{lettersA}{56}
\re@DeclareMathSymbol{\notni}{\mathrel}{lettersA}{57}
   \let\notowns=\notni \let\nni=\notni
\re@DeclareMathSymbol{\coloneq}{\mathrel}{lettersA}{58}
\re@DeclareMathSymbol{\eqcolon}{\mathrel}{lettersA}{59}
\re@DeclareMathSymbol{\neq}{\mathrel}{lettersA}{60}
   \let\ne=\neq
%Additional imath and jmath
\DeclareMathSymbol{\frakdotlessi}{\mathord}{lettersA}{123}
\DeclareMathSymbol{\frakdotlessj}{\mathord}{lettersA}{124}
\iftx@stxtwo
  \DeclareMathSymbol{\bbdotlessi}{\mathord}{lettersA}{184}
  \DeclareMathSymbol{\bbdotlessj}{\mathord}{lettersA}{185}
\else
  \DeclareMathSymbol{\bbdotlessi}{\mathord}{lettersA}{125}
  \DeclareMathSymbol{\bbdotlessj}{\mathord}{lettersA}{126}
\fi
\DeclareMathSymbol{\imathup}{\mathord}{lettersA}{186}
\DeclareMathSymbol{\jmathup}{\mathord}{lettersA}{187}
\let\imathfrak\frakdotlessi
\let\jmathfrak\frakdotlessj
\let\imathbb\bbdotlessi
\let\jmathbb\bbdotlessj

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Math Italic (ntxmi) Definition % letters
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%"01-"0A: italic uppercase Greek
%\DeclareMathSymbol{\alpha}{\mathord}{letters}{11}
%\DeclareMathSymbol{\beta}{\mathord}{letters}{12}
%\DeclareMathSymbol{\gamma}{\mathord}{letters}{13}
%\DeclareMathSymbol{\delta}{\mathord}{letters}{14}
%\DeclareMathSymbol{\epsilon}{\mathord}{letters}{15}
%\DeclareMathSymbol{\zeta}{\mathord}{letters}{16}
%\DeclareMathSymbol{\eta}{\mathord}{letters}{17}
%\DeclareMathSymbol{\theta}{\mathord}{letters}{18}
%\DeclareMathSymbol{\iota}{\mathord}{letters}{19}
%\DeclareMathSymbol{\kappa}{\mathord}{letters}{20}
%\DeclareMathSymbol{\lambda}{\mathord}{letters}{21}
%\DeclareMathSymbol{\mu}{\mathord}{letters}{22}
%\DeclareMathSymbol{\nu}{\mathord}{letters}{23}
%\DeclareMathSymbol{\xi}{\mathord}{letters}{24}
%\DeclareMathSymbol{\pi}{\mathord}{letters}{25}
%\DeclareMathSymbol{\rho}{\mathord}{letters}{26}
%\DeclareMathSymbol{\sigma}{\mathord}{letters}{27}
%\DeclareMathSymbol{\tau}{\mathord}{letters}{28}
%\DeclareMathSymbol{\upsilon}{\mathord}{letters}{29}
%\DeclareMathSymbol{\phi}{\mathord}{letters}{30}
%\DeclareMathSymbol{\chi}{\mathord}{letters}{31}
%\DeclareMathSymbol{\psi}{\mathord}{letters}{32}
%\DeclareMathSymbol{\omega}{\mathord}{letters}{33}
%\DeclareMathSymbol{\varepsilon}{\mathord}{letters}{34}
%\DeclareMathSymbol{\vartheta}{\mathord}{letters}{35}
%\DeclareMathSymbol{\varpi}{\mathord}{letters}{36}
%\DeclareMathSymbol{\varrho}{\mathord}{letters}{37}
%\DeclareMathSymbol{\varsigma}{\mathord}{letters}{38}
%\DeclareMathSymbol{\varphi}{\mathord}{letters}{39}
%\DeclareMathSymbol{\leftharpoonup}{\mathrel}{letters}{40}
%\DeclareMathSymbol{\leftharpoondown}{\mathrel}{letters}{41}
%\DeclareMathSymbol{\rightharpoonup}{\mathrel}{letters}{42}
%\DeclareMathSymbol{\rightharpoondown}{\mathrel}{letters}{43}
%\DeclareMathSymbol{\lhook}{\mathrel}{letters}{44}
%\DeclareMathSymbol{\rhook}{\mathrel}{letters}{45}
%\DeclareMathSymbol{\triangleright}{\mathbin}{letters}{46}
%\DeclareMathSymbol{\triangleleft}{\mathbin}{letters}{47}
%"30-"39: old style numerals
%\DeclareMathSymbol{\ldotp}{\mathpunct}{letters}{58}
%\DeclareMathSymbol{.}{\mathord}{letters}{58}
%\DeclareMathSymbol{,}{\mathpunct}{letters}{59}
%\DeclareMathSymbol{<}{\mathrel}{letters}{60}
%\DeclareMathSymbol{/}{\mathord}{letters}{61}
%\DeclareMathSymbol{>}{\mathrel}{letters}{62}
%\DeclareMathSymbol{\star}{\mathbin}{letters}{63}
%\DeclareMathSymbol{\partial}{\mathord}{letters}{64}
%"41-"5A: A-Z
%\DeclareMathSymbol{\flat}{\mathord}{letters}{91}
%\DeclareMathSymbol{\natural}{\mathord}{letters}{92}
%\DeclareMathSymbol{\sharp}{\mathord}{letters}{93}
%\DeclareMathSymbol{\smile}{\mathrel}{letters}{94}
%\DeclareMathSymbol{\frown}{\mathrel}{letters}{95}
%\DeclareMathSymbol{\ell}{\mathord}{letters}{96}
%"61-"7A: a-z
%\DeclareMathSymbol{\imath}{\mathord}{letters}{123}
%\DeclareMathSymbol{\jmath}{\mathord}{letters}{124}
%\DeclareMathSymbol{\wp}{\mathord}{letters}{125}
%Added in version 1.5
\re@DeclareMathAccent{\vec}{\mathord}{symbols}{174}
\DeclareMathAccent{\lvec}{\mathord}{symbols}{169}
\DeclareMathAccent{\lrvec}{\mathord}{symbols}{172}
\DeclareMathAccent{\harpoonacc}{\mathord}{symbols}{170}
\DeclareMathAccent{\lharpoonacc}{\mathord}{symbols}{171}
\DeclareMathAccent{\lrharpoonacc}{\mathord}{symbols}{173}
\DeclareMathAccent{\barbar}{\mathord}{symbols}{189}
\DeclareMathAccent{\bartilde}{\mathord}{symbols}{190}
\DeclareMathAccent{\barhat}{\mathord}{symbols}{191}
\DeclareMathAccent{\tildebar}{\mathord}{symbols}{192}
\DeclareMathAccent{\tildetilde}{\mathord}{symbols}{193}
\DeclareMathAccent{\tildehat}{\mathord}{symbols}{194}
\DeclareMathAccent{\hatbar}{\mathord}{symbols}{195}
\DeclareMathAccent{\hattilde}{\mathord}{symbols}{196}
\DeclareMathAccent{\hathat}{\mathord}{symbols}{197}
\DeclareMathSymbol{\cdotB}{\mathord}{symbols}{208}
\DeclareMathSymbol{\cdotBB}{\mathord}{symbols}{209}
\DeclareMathSymbol{\circS}{\mathord}{symbols}{210}
\DeclareMathSymbol{\bulletSSS}{\mathord}{symbols}{211}
\DeclareMathSymbol{\bulletSS}{\mathord}{symbols}{212}
\DeclareMathSymbol{\bulletS}{\mathord}{symbols}{213}
\DeclareMathSymbol{\primeS}{\mathord}{symbols}{214}
%"7F

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Math Italic A (ntxmia) Definition % lettersA
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\iftx@isenh
  \re@DeclareMathSymbol{\varkappait}{\mathord}{letters}{129}
  \re@DeclareMathSymbol{\varkappaup}{\mathord}{lettersA}{129}
\else
  \re@DeclareMathSymbol{\varkappait}{\mathord}{lettersA}{41}
  		\let\varkappa\varkappait
  \re@DeclareMathSymbol{\varkappaup}{\mathord}{lettersA}{42}
\fi
  		\let\varkappa\varkappait
% upright  Greek 
\re@DeclareMathSymbol{\Gammaup}{\mathalpha}{lettersA}{0}
\re@DeclareMathSymbol{\Deltaup}{\mathalpha}{lettersA}{1}
\re@DeclareMathSymbol{\Thetaup}{\mathalpha}{lettersA}{2}
\re@DeclareMathSymbol{\Lambdaup}{\mathalpha}{lettersA}{3}
\re@DeclareMathSymbol{\Xiup}{\mathalpha}{lettersA}{4}
\re@DeclareMathSymbol{\Piup}{\mathalpha}{lettersA}{5}
\re@DeclareMathSymbol{\Sigmaup}{\mathalpha}{lettersA}{6}
\re@DeclareMathSymbol{\Upsilonup}{\mathalpha}{lettersA}{7}
\re@DeclareMathSymbol{\Phiup}{\mathalpha}{lettersA}{8}
\re@DeclareMathSymbol{\Psiup}{\mathalpha}{lettersA}{9}
\re@DeclareMathSymbol{\Omegaup}{\mathalpha}{lettersA}{10}
\re@DeclareMathSymbol{\alphaup}{\mathord}{lettersA}{11}
\re@DeclareMathSymbol{\betaup}{\mathord}{lettersA}{12}
\re@DeclareMathSymbol{\gammaup}{\mathord}{lettersA}{13}
\re@DeclareMathSymbol{\deltaup}{\mathord}{lettersA}{14}
\re@DeclareMathSymbol{\epsilonup}{\mathord}{lettersA}{15}
\re@DeclareMathSymbol{\zetaup}{\mathord}{lettersA}{16}
\re@DeclareMathSymbol{\etaup}{\mathord}{lettersA}{17}
\re@DeclareMathSymbol{\thetaup}{\mathord}{lettersA}{18}
\re@DeclareMathSymbol{\iotaup}{\mathord}{lettersA}{19}
\re@DeclareMathSymbol{\kappaup}{\mathord}{lettersA}{20}
\re@DeclareMathSymbol{\lambdaup}{\mathord}{lettersA}{21}
\re@DeclareMathSymbol{\muup}{\mathord}{lettersA}{22}
\re@DeclareMathSymbol{\nuup}{\mathord}{lettersA}{23}
\iftx@altnu
  \re@DeclareMathSymbol{\nuup}{\mathord}{lettersA}{40}
\fi
\re@DeclareMathSymbol{\xiup}{\mathord}{lettersA}{24}
\re@DeclareMathSymbol{\piup}{\mathord}{lettersA}{25}
\re@DeclareMathSymbol{\rhoup}{\mathord}{lettersA}{26}
\re@DeclareMathSymbol{\sigmaup}{\mathord}{lettersA}{27}
\re@DeclareMathSymbol{\tauup}{\mathord}{lettersA}{28}
\re@DeclareMathSymbol{\upsilonup}{\mathord}{lettersA}{29}
\re@DeclareMathSymbol{\phiup}{\mathord}{lettersA}{30}
\re@DeclareMathSymbol{\chiup}{\mathord}{lettersA}{31}
\re@DeclareMathSymbol{\psiup}{\mathord}{lettersA}{32}
\re@DeclareMathSymbol{\omegaup}{\mathord}{lettersA}{33}
\re@DeclareMathSymbol{\varepsilonup}{\mathord}{lettersA}{34}
\re@DeclareMathSymbol{\varthetaup}{\mathord}{lettersA}{35}
\re@DeclareMathSymbol{\varpiup}{\mathord}{lettersA}{36}
\re@DeclareMathSymbol{\varrhoup}{\mathord}{lettersA}{37}
\re@DeclareMathSymbol{\varsigmaup}{\mathord}{lettersA}{38}
\re@DeclareMathSymbol{\varphiup}{\mathord}{lettersA}{39}
% and, for compatibility with other packages (mtpro2, lucida, etc)
\let\upGamma\Gammaup
\let\upDelta\Deltaup
\let\upTheta\Thetaup
\let\upLambda\Lambdaup
\let\upXi\Xiup
\let\upPi\Piup
\let\upSigma\Sigmaup
\let\upUpsilon\Upsilonup
\let\upPhi\Phiup
\let\upPsi\Psiup
\let\upOmega\Omegaup
\let\upalpha\alphaup
\let\upbeta\betaup
\let\upgamma\gammaup
\let\updelta\deltaup
\let\upepsilon\epsilonup
\let\upzeta\zetaup
\let\upeta\etaup
\let\uptheta\thetaup
\let\upiota\iotaup
\let\upkappa\kappaup
\let\uplambda\lambdaup
\let\upmu\muup
\let\upnu\nuup
\let\upxi\xiup
\let\uppi\piup
\let\uprho\rhoup
\let\upsigma\sigmaup
\let\uptau\tauup
\let\upupsilon\upsilonup
\let\upphi\phiup
\let\upchi\chiup
\let\uppsi\psiup
\let\upomega\omegaup
\let\upvarepsilon\varepsilonup
\let\upvartheta\varthetaup
\let\upvarpi\varpiup
\let\upvarrho\varrhoup
\let\upvarsigma\varsigmaup
\let\upvarphi\varphiup
\let\upvarkappa\varkappaup
% the mathgroup of lettersA  is stored in macro \symlettersA
\iftx@frenchm
  \let\alpha\alphaup
  \let\beta\betaup
  \let\gamma\gammaup
  \let\delta\deltaup
  \let\epsilon\epsilonup
  \let\zeta\zetaup
  \let\eta\etaup
  \let\theta\thetaup
  \let\iota\iotaup
  \let\kappa\kappaup
  \let\lambda\lambdaup
  \let\mu\muup
  \let\nu\nuup
  \let\xi\xiup
  \let\pi\piup
  \let\rho\rhoup
  \let\sigma\sigmaup
  \let\tau\tauup
  \let\upsilon\upsilonup
  \let\phi\phiup
  \let\chi\chiup
  \let\psi\psiup
  \let\omega\omegaup
  \let\varepsilon\varepsilonup
  \let\vartheta\varthetaup
  \let\varpi\varpiup
  \let\varrho\varrhoup
  \let\varsigma\varsigmaup
  \let\varphi\varphiup
  \let\varkappa\varkappaup
  \DeclareMathSymbol{A}{\mathalpha}{operators}{65}
  \DeclareMathSymbol{B}{\mathalpha}{operators}{66}
  \DeclareMathSymbol{C}{\mathalpha}{operators}{67}
  \DeclareMathSymbol{D}{\mathalpha}{operators}{68}
  \DeclareMathSymbol{E}{\mathalpha}{operators}{69}
  \DeclareMathSymbol{F}{\mathalpha}{operators}{70}
  \DeclareMathSymbol{G}{\mathalpha}{operators}{71}
  \DeclareMathSymbol{H}{\mathalpha}{operators}{72}
  \DeclareMathSymbol{I}{\mathalpha}{operators}{73}
  \DeclareMathSymbol{J}{\mathalpha}{operators}{74}
  \DeclareMathSymbol{K}{\mathalpha}{operators}{75}
  \DeclareMathSymbol{L}{\mathalpha}{operators}{76}
  \DeclareMathSymbol{M}{\mathalpha}{operators}{77}
  \DeclareMathSymbol{N}{\mathalpha}{operators}{78}
  \DeclareMathSymbol{O}{\mathalpha}{operators}{79}
  \DeclareMathSymbol{P}{\mathalpha}{operators}{80}
  \DeclareMathSymbol{Q}{\mathalpha}{operators}{81}
  \DeclareMathSymbol{R}{\mathalpha}{operators}{82}
  \DeclareMathSymbol{S}{\mathalpha}{operators}{83}
  \DeclareMathSymbol{T}{\mathalpha}{operators}{84}
  \DeclareMathSymbol{U}{\mathalpha}{operators}{85}
  \DeclareMathSymbol{V}{\mathalpha}{operators}{86}
  \DeclareMathSymbol{W}{\mathalpha}{operators}{87}
  \DeclareMathSymbol{X}{\mathalpha}{operators}{88}
  \DeclareMathSymbol{Y}{\mathalpha}{operators}{89}
  \DeclareMathSymbol{Z}{\mathalpha}{operators}{90}
\fi
\re@DeclareMathSymbol{\varg}{\mathord}{lettersA}{188} % was 49
\re@DeclareMathSymbol{\vary}{\mathord}{lettersA}{189}  % was 50
\re@DeclareMathSymbol{\varv}{\mathord}{lettersA}{190}  % was 51
\re@DeclareMathSymbol{\varw}{\mathord}{lettersA}{191} % was 52
%\DeclareMathSymbol{\imathfrak}{\mathord}{lettersA}{123}
%\DeclareMathSymbol{\jmathfrak}{\mathord}{lettersA}{124}
%\DeclareMathSymbol{\imathbb}{\mathord}{lettersA}{125}
%\DeclareMathSymbol{\jmathbb}{\mathord}{lettersA}{126}
%\DeclareMathSymbol{\imathup}{\mathord}{lettersA}{188}
%\DeclareMathSymbol{\jmathup}{\mathord}{lettersA}{189}


\re@DeclareMathSymbol{\nexists}{\mathord}{symbols}{"9A}
	\let\nexistsAlt=\nexists
%\re@DeclareMathSymbol{\exists}{\mathord}{lettersA}{92}
	\let\existsAlt=\exists
%\re@DeclareMathSymbol{\forall}{\mathord}{lettersA}{91}
	\let\forallAlt=\forall
%\DeclareMathSymbol{\forallAlt}{\mathord}{lettersA}{91}%added 20130726
%\DeclareMathSymbol{\nexistsAlt}{\mathord}{lettersA}{93}%added 20130726
%\DeclareMathSymbol{\emptysetAlt}{\mathord}{lettersA}{94}%added 20130726
\re@DeclareMathSymbol{\emptysetAlt}{\mathord}{symbols}{"9B}
\re@DeclareMathSymbol{\varnothing}{\mathord}{symbols}{"9C}
%
\re@DeclareMathSymbol{\Gammait}{\mathalpha}{letters}{0}
\re@DeclareMathSymbol{\Deltait}{\mathalpha}{letters}{1}
\re@DeclareMathSymbol{\Thetait}{\mathalpha}{letters}{2}
\re@DeclareMathSymbol{\Lambdait}{\mathalpha}{letters}{3}
\re@DeclareMathSymbol{\Xiit}{\mathalpha}{letters}{4}
\re@DeclareMathSymbol{\Piit}{\mathalpha}{letters}{5}
\re@DeclareMathSymbol{\Sigmait}{\mathalpha}{letters}{6}
\re@DeclareMathSymbol{\Upsilonit}{\mathalpha}{letters}{7}
\re@DeclareMathSymbol{\Phiit}{\mathalpha}{letters}{8}
\re@DeclareMathSymbol{\Psiit}{\mathalpha}{letters}{9}
\re@DeclareMathSymbol{\Omegait}{\mathalpha}{letters}{10}
\re@DeclareMathSymbol{\alphait}{\mathord}{letters}{11}
\re@DeclareMathSymbol{\betait}{\mathord}{letters}{12}
\re@DeclareMathSymbol{\gammait}{\mathord}{letters}{13}
\re@DeclareMathSymbol{\deltait}{\mathord}{letters}{14}
\re@DeclareMathSymbol{\epsilonit}{\mathord}{letters}{15}
\re@DeclareMathSymbol{\zetait}{\mathord}{letters}{16}
\re@DeclareMathSymbol{\etait}{\mathord}{letters}{17}
\re@DeclareMathSymbol{\thetait}{\mathord}{letters}{18}
\re@DeclareMathSymbol{\iotait}{\mathord}{letters}{19}
\re@DeclareMathSymbol{\kappait}{\mathord}{letters}{20}
\re@DeclareMathSymbol{\lambdait}{\mathord}{letters}{21}
\re@DeclareMathSymbol{\muit}{\mathord}{letters}{22}
\re@DeclareMathSymbol{\nuit}{\mathord}{letters}{23}
\re@DeclareMathSymbol{\xiit}{\mathord}{letters}{24}
\re@DeclareMathSymbol{\piit}{\mathord}{letters}{25}
\re@DeclareMathSymbol{\rhoit}{\mathord}{letters}{26}
\re@DeclareMathSymbol{\sigmait}{\mathord}{letters}{27}
\re@DeclareMathSymbol{\tauit}{\mathord}{letters}{28}
\re@DeclareMathSymbol{\upsilonit}{\mathord}{letters}{29}
\re@DeclareMathSymbol{\phiit}{\mathord}{letters}{30}
\re@DeclareMathSymbol{\chiit}{\mathord}{letters}{31}
\re@DeclareMathSymbol{\psiit}{\mathord}{letters}{32}
\re@DeclareMathSymbol{\omegait}{\mathord}{letters}{33}
\re@DeclareMathSymbol{\varepsilonit}{\mathord}{letters}{34}
\re@DeclareMathSymbol{\varthetait}{\mathord}{letters}{35}
\re@DeclareMathSymbol{\varpiit}{\mathord}{letters}{36}
\re@DeclareMathSymbol{\varrhoit}{\mathord}{letters}{37}
\re@DeclareMathSymbol{\varsigmait}{\mathord}{letters}{38}
\re@DeclareMathSymbol{\varphiit}{\mathord}{letters}{39}
\let\itGamma\Gammait
\let\itDelta\Deltait
\let\itTheta\Thetait
\let\itLambda\Lambdait
\let\itXi\Xiit
\let\itPi\Piit
\let\itSigma\Sigmait
\let\itUpsilon\Upsilonit
\let\itPhi\Phiit
\let\itPsi\Psiit
\let\itOmega\Omegait
\let\italpha\alphait
\let\itbeta\betait
\let\itgamma\gammait
\let\itdelta\deltait
\let\itepsilon\epsilonit
\let\itzeta\zetait
\let\iteta\etait
\let\ittheta\thetait
\let\itiota\iotait
\let\itkappa\kappait
\let\itlambda\lambdait
\let\itmu\muit
\let\itnu\nuit
\let\itxi\xiit
\let\itpi\piit
\let\itrho\rhoit
\let\itsigma\sigmait
\let\ittau\tauit
\let\itupsilon\upsilonit
\let\itphi\phiit
\let\itchi\chiit
\let\itpsi\psiit
\let\itomega\omegait
\let\itvarepsilon\varepsilonit
\let\itvartheta\varthetait
\let\itvarpi\varpiit
\let\itvarrho\varrhoit
\let\itvarsigma\varsigmait
\let\itvarphi\varphiit
\let\itvarkappa\varkappait

\DeclareMathSymbol{\uppartial}{\mathord}{lettersA}{64}%added 20120416

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Special considerations for stix2
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Accents change, as do Bbb alphabets, some special symbols in mia
%\iftx@stxtwo %
%    \DeclareMathSymbol{\upnabla}{\mathord}{lettersA}{43}
%    \re@DeclareMathSymbol{\nsubset}{\mathrel}{lettersA}{44}
%	\re@DeclareMathSymbol{\nsupset}{\mathrel}{lettersA}{45}
%	\re@DeclareMathSymbol{\notin}{\mathrel}{lettersA}{46}
%	\re@DeclareMathSymbol{\notni}{\mathrel}{lettersA}{47}
%   		\let\notowns=\notni \let\nni=\notni
%	\re@DeclareMathSymbol{\coloneq}{\mathrel}{lettersA}{58}
%	\re@DeclareMathSymbol{\eqcolon}{\mathrel}{lettersA}{59}
%	\re@DeclareMathSymbol{\neq}{\mathrel}{lettersA}{60}
%   		\let\ne=\neq
%	\re@DeclareMathAccent{\grave}{\mathord}{lettersA}{237}
%    \re@DeclareMathAccent{\acute}{\mathord}{lettersA}{238}
%    \re@DeclareMathAccent{\hat}{\mathord}{lettersA}{239}
%    \re@DeclareMathAccent{\tilde}{\mathord}{lettersA}{240}
%    \re@DeclareMathAccent{\bar}{\mathord}{lettersA}{241}
%    \re@DeclareMathAccent{\breve}{\mathord}{lettersA}{87} %{242}
%    \re@DeclareMathAccent{\dot}{\mathord}{lettersA}{243}
%    \re@DeclareMathAccent{\ddot}{\mathord}{lettersA}{244}
%    \re@DeclareMathAccent{\mathring}{\mathord}{lettersA}{245}
%    \re@DeclareMathAccent{\check}{\mathord}{lettersA}{186} %{246}
%\fi

%\def\ntx@UC{A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z}
%\def\ntx@lc{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}
%\def\ntx@num{0,1,2,3,4,5,6,7,8,9}


%\@for\ntx@x:=\ntx@UC\do{\edef\ntx@tmp{\edef\csname
\DeclareMathSymbol{\m@thbbch@rA}{\mathord}{lettersA}{132}
\DeclareMathSymbol{\m@thbbch@rB}{\mathord}{lettersA}{133}
\DeclareMathSymbol{\m@thbbch@rC}{\mathord}{lettersA}{134}
\DeclareMathSymbol{\m@thbbch@rD}{\mathord}{lettersA}{135}
\DeclareMathSymbol{\m@thbbch@rE}{\mathord}{lettersA}{136}
\DeclareMathSymbol{\m@thbbch@rF}{\mathord}{lettersA}{137}
\DeclareMathSymbol{\m@thbbch@rG}{\mathord}{lettersA}{138}
\DeclareMathSymbol{\m@thbbch@rH}{\mathord}{lettersA}{139}
\DeclareMathSymbol{\m@thbbch@rI}{\mathord}{lettersA}{140}
\DeclareMathSymbol{\m@thbbch@rJ}{\mathord}{lettersA}{141}
\DeclareMathSymbol{\m@thbbch@rK}{\mathord}{lettersA}{142}
\DeclareMathSymbol{\m@thbbch@rL}{\mathord}{lettersA}{143}
\DeclareMathSymbol{\m@thbbch@rM}{\mathord}{lettersA}{144}
\DeclareMathSymbol{\m@thbbch@rN}{\mathord}{lettersA}{145}
\DeclareMathSymbol{\m@thbbch@rO}{\mathord}{lettersA}{146}
\DeclareMathSymbol{\m@thbbch@rP}{\mathord}{lettersA}{147}
\DeclareMathSymbol{\m@thbbch@rQ}{\mathord}{lettersA}{148}
\DeclareMathSymbol{\m@thbbch@rR}{\mathord}{lettersA}{149}
\DeclareMathSymbol{\m@thbbch@rS}{\mathord}{lettersA}{150}
\DeclareMathSymbol{\m@thbbch@rT}{\mathord}{lettersA}{151}
\DeclareMathSymbol{\m@thbbch@rU}{\mathord}{lettersA}{152}
\DeclareMathSymbol{\m@thbbch@rV}{\mathord}{lettersA}{153}
\DeclareMathSymbol{\m@thbbch@rW}{\mathord}{lettersA}{154}
\DeclareMathSymbol{\m@thbbch@rX}{\mathord}{lettersA}{155}
\DeclareMathSymbol{\m@thbbch@rY}{\mathord}{lettersA}{156}
\DeclareMathSymbol{\m@thbbch@rZ}{\mathord}{lettersA}{157}
\DeclareMathSymbol{\m@thbbch@ra}{\mathord}{lettersA}{158}
\DeclareMathSymbol{\m@thbbch@rb}{\mathord}{lettersA}{159}
\DeclareMathSymbol{\m@thbbch@rc}{\mathord}{lettersA}{160}
\DeclareMathSymbol{\m@thbbch@rd}{\mathord}{lettersA}{161}
\DeclareMathSymbol{\m@thbbch@re}{\mathord}{lettersA}{162}
\DeclareMathSymbol{\m@thbbch@rf}{\mathord}{lettersA}{163}
\DeclareMathSymbol{\m@thbbch@rg}{\mathord}{lettersA}{164}
\DeclareMathSymbol{\m@thbbch@rh}{\mathord}{lettersA}{165}
\DeclareMathSymbol{\m@thbbch@ri}{\mathord}{lettersA}{166}
\DeclareMathSymbol{\m@thbbch@rj}{\mathord}{lettersA}{167}
\DeclareMathSymbol{\m@thbbch@rk}{\mathord}{lettersA}{168}
\DeclareMathSymbol{\m@thbbch@rl}{\mathord}{lettersA}{169}
\DeclareMathSymbol{\m@thbbch@rm}{\mathord}{lettersA}{170}
\DeclareMathSymbol{\m@thbbch@rn}{\mathord}{lettersA}{171}
\DeclareMathSymbol{\m@thbbch@ro}{\mathord}{lettersA}{172}
\DeclareMathSymbol{\m@thbbch@rp}{\mathord}{lettersA}{173}
\DeclareMathSymbol{\m@thbbch@rq}{\mathord}{lettersA}{174}
\DeclareMathSymbol{\m@thbbch@rr}{\mathord}{lettersA}{175}
\DeclareMathSymbol{\m@thbbch@rs}{\mathord}{lettersA}{176}
\DeclareMathSymbol{\m@thbbch@rt}{\mathord}{lettersA}{177}
\DeclareMathSymbol{\m@thbbch@ru}{\mathord}{lettersA}{178}
\DeclareMathSymbol{\m@thbbch@rv}{\mathord}{lettersA}{179}
\DeclareMathSymbol{\m@thbbch@rw}{\mathord}{lettersA}{180}
\DeclareMathSymbol{\m@thbbch@rx}{\mathord}{lettersA}{181}
\DeclareMathSymbol{\m@thbbch@ry}{\mathord}{lettersA}{182}
\DeclareMathSymbol{\m@thbbch@rz}{\mathord}{lettersA}{183}

\DeclareMathSymbol{\m@thbbch@rzero}{\mathord}{lettersA}{43}
\DeclareMathSymbol{\m@thbbch@rone}{\mathord}{lettersA}{44}
\DeclareMathSymbol{\m@thbbch@rtwo}{\mathord}{lettersA}{45}
\DeclareMathSymbol{\m@thbbch@rthree}{\mathord}{lettersA}{46}
\DeclareMathSymbol{\m@thbbch@rfour}{\mathord}{lettersA}{47}
\DeclareMathSymbol{\m@thbbch@rfive}{\mathord}{lettersA}{48}
\DeclareMathSymbol{\m@thbbch@rsix}{\mathord}{lettersA}{49}
\DeclareMathSymbol{\m@thbbch@rseven}{\mathord}{lettersA}{50}
\DeclareMathSymbol{\m@thbbch@reight}{\mathord}{lettersA}{51}
\DeclareMathSymbol{\m@thbbch@rnine}{\mathord}{lettersA}{52}
\DeclareMathSymbol{\m@thbbch@rimath}{\mathord}{lettersA}{184}
\DeclareMathSymbol{\m@thbbch@rjmath}{\mathord}{lettersA}{185}
\DeclareMathSymbol{\m@thbbch@rGamma}{\mathord}{lettersA}{219}
\DeclareMathSymbol{\m@thbbch@rPi}{\mathord}{lettersA}{220}
\DeclareMathSymbol{\m@thbbch@rgamma}{\mathord}{lettersA}{221}
\DeclareMathSymbol{\m@thbbch@rpi}{\mathord}{lettersA}{222}
%\@nameuse{m@thbbch@r 0}
\@xp\let\csname m@thbbch@r0\endcsname=\m@thbbch@rzero
\@xp\let\csname m@thbbch@r1\endcsname=\m@thbbch@rone
\@xp\let\csname m@thbbch@r2\endcsname=\m@thbbch@rtwo
\@xp\let\csname m@thbbch@r3\endcsname=\m@thbbch@rthree
\@xp\let\csname m@thbbch@r4\endcsname=\m@thbbch@rfour
\@xp\let\csname m@thbbch@r5\endcsname=\m@thbbch@rfive
\@xp\let\csname m@thbbch@r6\endcsname=\m@thbbch@rsix
\@xp\let\csname m@thbbch@r7\endcsname=\m@thbbch@rseven
\@xp\let\csname m@thbbch@r8\endcsname=\m@thbbch@reight
\@xp\let\csname m@thbbch@r9\endcsname=\m@thbbch@rnine

\def\ntx@@vbb#1#2\@nil{%
	\ifiscseq{#1}{\ifcsdef{m@thbbch@r\@xp\@gobble\string#1}{\csname m@thbbch@r\@xp\@gobble\string#1\endcsname}{#1}}{%not a cs
	\csname m@thbbch@r#1\endcsname}	
	\ifblank{#2}{\relax}{\ntx@@vbb #2\@nil}}

\DeclareRobustCommand*{\varmathbb}[1]{\ntx@@vbb#1\@nil}
\let\vmathbb=\varmathbb % was once different, but no longer so
%% Original \varmathbb macro, slightly polished
%\def\DoFutureLet{% 
%   \def\@FutureLetDecide{%
%     \ifx\@nil\@FutureLetToken
%        \def\@FutureLetNext{\@EachCharacterDone}
%     \else
%        \def\@FutureLetNext{\@PickUpTheCharacter}
%     \fi
%     \@FutureLetNext
%   }%
%\futurelet\@FutureLetToken\@FutureLetDecide}% end DoFutureLet
%
%\def\F@ntPrefix{m@thbbch@r}
%%\def\m@keCharacter#1{%
%%  \@tempcnta=`#1\relax \advance\@tempcnta "40\relax
%%  \edef\ntx@char{\ntx@lettersA\nhex{2}{\the\@tempcnta}}
%%  \expandafter\mathchar\ntx@char}
%%\def\@PickUpTheCharacter#1{\m@keCharacter{#1}\DoFutureLet}
%%\def\@EachCharacterDone \@nil{}% cleanup---get rid of \@nil
%%\newif\ifntx@notnil
%%\def\@EachCharacter{%
%%   \DoFutureLet{\@EachCharacterDone}{\@PickUpTheCharacter}}
%%
%\def\m@keCharacter#1{\csname\F@ntPrefix#1\endcsname}
%\def\@PickUpTheCharacter#1{\m@keCharacter{#1}\DoFutureLet}
%\def\@EachCharacterDone \@nil{}
%
%%\DeclareRobustCommand*{\varmathbb}[1]{\gdef\F@ntPrefix{m@thbbch@r}%
%%  \@EachCharacter #1\@nil}
%\DeclareRobustCommand*{\varmathbb}[1]{%\gdef\F@ntPrefix{m@thbbch@r}%
%  \DoFutureLet #1\@nil}

\DeclareMathSymbol{\tx@BbbA}{\mathord}{lettersA}{193}
\DeclareMathSymbol{\tx@BbbB}{\mathord}{lettersA}{194}
\DeclareMathSymbol{\tx@BbbC}{\mathord}{lettersA}{195}
\DeclareMathSymbol{\tx@BbbD}{\mathord}{lettersA}{196}
\DeclareMathSymbol{\tx@BbbE}{\mathord}{lettersA}{197}
\DeclareMathSymbol{\tx@BbbF}{\mathord}{lettersA}{198}
\DeclareMathSymbol{\tx@BbbG}{\mathord}{lettersA}{199}
\DeclareMathSymbol{\tx@BbbH}{\mathord}{lettersA}{200}
\DeclareMathSymbol{\tx@BbbI}{\mathord}{lettersA}{201}
\DeclareMathSymbol{\tx@BbbJ}{\mathord}{lettersA}{202}
\DeclareMathSymbol{\tx@BbbK}{\mathord}{lettersA}{203}
\DeclareMathSymbol{\tx@BbbL}{\mathord}{lettersA}{204}
\DeclareMathSymbol{\tx@BbbM}{\mathord}{lettersA}{205}
\DeclareMathSymbol{\tx@BbbN}{\mathord}{lettersA}{206}
\DeclareMathSymbol{\tx@BbbO}{\mathord}{lettersA}{207}
\DeclareMathSymbol{\tx@BbbP}{\mathord}{lettersA}{208}
\DeclareMathSymbol{\tx@BbbQ}{\mathord}{lettersA}{209}
\DeclareMathSymbol{\tx@BbbR}{\mathord}{lettersA}{210}
\DeclareMathSymbol{\tx@BbbS}{\mathord}{lettersA}{211}
\DeclareMathSymbol{\tx@BbbT}{\mathord}{lettersA}{212}
\DeclareMathSymbol{\tx@BbbU}{\mathord}{lettersA}{213}
\DeclareMathSymbol{\tx@BbbV}{\mathord}{lettersA}{214}
\DeclareMathSymbol{\tx@BbbW}{\mathord}{lettersA}{215}
\DeclareMathSymbol{\tx@BbbX}{\mathord}{lettersA}{216}
\DeclareMathSymbol{\tx@BbbY}{\mathord}{lettersA}{217}
\DeclareMathSymbol{\tx@BbbZ}{\mathord}{lettersA}{218}

\DeclareMathSymbol{\tx@Bbba}{\mathord}{lettersA}{225}
\DeclareMathSymbol{\tx@Bbbb}{\mathord}{lettersA}{226}
\DeclareMathSymbol{\tx@Bbbc}{\mathord}{lettersA}{227}
\DeclareMathSymbol{\tx@Bbbd}{\mathord}{lettersA}{228}
\DeclareMathSymbol{\tx@Bbbe}{\mathord}{lettersA}{229}
\DeclareMathSymbol{\tx@Bbbf}{\mathord}{lettersA}{230}
\DeclareMathSymbol{\tx@Bbbg}{\mathord}{lettersA}{231}
\DeclareMathSymbol{\tx@Bbbh}{\mathord}{lettersA}{232}
\DeclareMathSymbol{\tx@Bbbi}{\mathord}{lettersA}{233}
\DeclareMathSymbol{\tx@Bbbj}{\mathord}{lettersA}{234}
\DeclareMathSymbol{\tx@Bbbk}{\mathord}{lettersA}{235}
\DeclareMathSymbol{\tx@Bbbl}{\mathord}{lettersA}{236}
\DeclareMathSymbol{\tx@Bbbm}{\mathord}{lettersA}{237}
\DeclareMathSymbol{\tx@Bbbn}{\mathord}{lettersA}{238}
\DeclareMathSymbol{\tx@Bbbo}{\mathord}{lettersA}{239}
\DeclareMathSymbol{\tx@Bbbp}{\mathord}{lettersA}{240}
\DeclareMathSymbol{\tx@Bbbq}{\mathord}{lettersA}{241}
\DeclareMathSymbol{\tx@Bbbr}{\mathord}{lettersA}{242}
\DeclareMathSymbol{\tx@Bbbs}{\mathord}{lettersA}{243}
\DeclareMathSymbol{\tx@Bbbt}{\mathord}{lettersA}{244}
\DeclareMathSymbol{\tx@Bbbu}{\mathord}{lettersA}{245}
\DeclareMathSymbol{\tx@Bbbv}{\mathord}{lettersA}{246}
\DeclareMathSymbol{\tx@Bbbw}{\mathord}{lettersA}{247}
\DeclareMathSymbol{\tx@Bbbx}{\mathord}{lettersA}{248}
\DeclareMathSymbol{\tx@Bbby}{\mathord}{lettersA}{249}
\DeclareMathSymbol{\tx@Bbbz}{\mathord}{lettersA}{250}
\DeclareMathSymbol{\tx@Bbbimath}{\mathord}{lettersA}{125}
\DeclareMathSymbol{\tx@Bbbjmath}{\mathord}{lettersA}{126}

\@xp\let\csname tx@Bbb0\endcsname=\m@thbbch@rzero
\@xp\let\csname tx@Bbb1\endcsname=\m@thbbch@rone
\@xp\let\csname tx@Bbb2\endcsname=\m@thbbch@rtwo
\@xp\let\csname tx@Bbb3\endcsname=\m@thbbch@rthree
\@xp\let\csname tx@Bbb4\endcsname=\m@thbbch@rfour
\@xp\let\csname tx@Bbb5\endcsname=\m@thbbch@rfive
\@xp\let\csname tx@Bbb6\endcsname=\m@thbbch@rsix
\@xp\let\csname tx@Bbb7\endcsname=\m@thbbch@rseven
\@xp\let\csname tx@Bbb8\endcsname=\m@thbbch@reight
\@xp\let\csname tx@Bbb9\endcsname=\m@thbbch@rnine
\@xp\let\csname tx@BbbGamma\endcsname=\m@thbbch@rGamma
\@xp\let\csname tx@BbbPi\endcsname=\m@thbbch@rPi
\@xp\let\csname tx@Bbbgamma\endcsname=\m@thbbch@rgamma
\@xp\let\csname tx@Bbbpi\endcsname=\m@thbbch@rpi

% Changed macros which are not limited to a single character, and can include digits, \imath, \jmath
\def\ntx@@vvbb#1#2\@nil{%
	\ifiscseq{#1}{\ifcsdef{tx@Bbb\@xp\@gobble\string#1}{\csname tx@Bbb\@xp\@gobble\string#1\endcsname}{#1}}{%not a cs
	\csname tx@Bbb#1\endcsname}	
	\ifblank{#2}{\relax}{\ntx@@vvbb #2\@nil}}

\DeclareRobustCommand*{\vvmathbb}[1]{\ntx@@vvbb#1\@nil}

\iftx@isenh
% script and upright script
\DeclareMathSymbol{\tx@ScrA}{\mathord}{letters}{142}
\DeclareMathSymbol{\tx@ScrB}{\mathord}{letters}{143}
\DeclareMathSymbol{\tx@ScrC}{\mathord}{letters}{144}
\DeclareMathSymbol{\tx@ScrD}{\mathord}{letters}{145}
\DeclareMathSymbol{\tx@ScrE}{\mathord}{letters}{146}
\DeclareMathSymbol{\tx@ScrF}{\mathord}{letters}{147}
\DeclareMathSymbol{\tx@ScrG}{\mathord}{letters}{148}
\DeclareMathSymbol{\tx@ScrH}{\mathord}{letters}{149}
\DeclareMathSymbol{\tx@ScrI}{\mathord}{letters}{150}
\DeclareMathSymbol{\tx@ScrJ}{\mathord}{letters}{151}
\DeclareMathSymbol{\tx@ScrK}{\mathord}{letters}{152}
\DeclareMathSymbol{\tx@ScrL}{\mathord}{letters}{153}
\DeclareMathSymbol{\tx@ScrM}{\mathord}{letters}{154}
\DeclareMathSymbol{\tx@ScrN}{\mathord}{letters}{155}
\DeclareMathSymbol{\tx@ScrO}{\mathord}{letters}{156}
\DeclareMathSymbol{\tx@ScrP}{\mathord}{letters}{157}
\DeclareMathSymbol{\tx@ScrQ}{\mathord}{letters}{158}
\DeclareMathSymbol{\tx@ScrR}{\mathord}{letters}{159}
\DeclareMathSymbol{\tx@ScrS}{\mathord}{letters}{160}
\DeclareMathSymbol{\tx@ScrT}{\mathord}{letters}{161}
\DeclareMathSymbol{\tx@ScrU}{\mathord}{letters}{162}
\DeclareMathSymbol{\tx@ScrV}{\mathord}{letters}{163}
\DeclareMathSymbol{\tx@ScrW}{\mathord}{letters}{164}
\DeclareMathSymbol{\tx@ScrX}{\mathord}{letters}{165}
\DeclareMathSymbol{\tx@ScrY}{\mathord}{letters}{166}
\DeclareMathSymbol{\tx@ScrZ}{\mathord}{letters}{167}

\DeclareMathSymbol{\tx@Scra}{\mathord}{letters}{168}
\DeclareMathSymbol{\tx@Scrb}{\mathord}{letters}{169}
\DeclareMathSymbol{\tx@Scrc}{\mathord}{letters}{170}
\DeclareMathSymbol{\tx@Scrd}{\mathord}{letters}{171}
\DeclareMathSymbol{\tx@Scre}{\mathord}{letters}{172}
\DeclareMathSymbol{\tx@Scrf}{\mathord}{letters}{173}
\DeclareMathSymbol{\tx@Scrg}{\mathord}{letters}{174}
\DeclareMathSymbol{\tx@Scrh}{\mathord}{letters}{175}
\DeclareMathSymbol{\tx@Scri}{\mathord}{letters}{176}
\DeclareMathSymbol{\tx@Scrj}{\mathord}{letters}{177}
\DeclareMathSymbol{\tx@Scrk}{\mathord}{letters}{178}
\DeclareMathSymbol{\tx@Scrl}{\mathord}{letters}{179}
\DeclareMathSymbol{\tx@Scrm}{\mathord}{letters}{180}
\DeclareMathSymbol{\tx@Scrn}{\mathord}{letters}{181}
\DeclareMathSymbol{\tx@Scro}{\mathord}{letters}{182}
\DeclareMathSymbol{\tx@Scrp}{\mathord}{letters}{183}
\DeclareMathSymbol{\tx@Scrq}{\mathord}{letters}{184}
\DeclareMathSymbol{\tx@Scrr}{\mathord}{letters}{185}
\DeclareMathSymbol{\tx@Scrs}{\mathord}{letters}{186}
\DeclareMathSymbol{\tx@Scrt}{\mathord}{letters}{187}
\DeclareMathSymbol{\tx@Scru}{\mathord}{letters}{188}
\DeclareMathSymbol{\tx@Scrv}{\mathord}{letters}{189}
\DeclareMathSymbol{\tx@Scrw}{\mathord}{letters}{190}
\DeclareMathSymbol{\tx@Scrx}{\mathord}{letters}{191}
\DeclareMathSymbol{\tx@Scry}{\mathord}{letters}{192}
\DeclareMathSymbol{\tx@Scrz}{\mathord}{letters}{193}
\DeclareMathSymbol{\tx@Scrimath}{\mathord}{letters}{194}
\DeclareMathSymbol{\tx@Scrjmath}{\mathord}{letters}{195}

\DeclareMathSymbol{\tx@UScrA}{\mathord}{letters}{196}
\DeclareMathSymbol{\tx@UScrB}{\mathord}{letters}{197}
\DeclareMathSymbol{\tx@UScrC}{\mathord}{letters}{198}
\DeclareMathSymbol{\tx@UScrD}{\mathord}{letters}{199}
\DeclareMathSymbol{\tx@UScrE}{\mathord}{letters}{200}
\DeclareMathSymbol{\tx@UScrF}{\mathord}{letters}{201}
\DeclareMathSymbol{\tx@UScrG}{\mathord}{letters}{202}
\DeclareMathSymbol{\tx@UScrH}{\mathord}{letters}{203}
\DeclareMathSymbol{\tx@UScrI}{\mathord}{letters}{204}
\DeclareMathSymbol{\tx@UScrJ}{\mathord}{letters}{205}
\DeclareMathSymbol{\tx@UScrK}{\mathord}{letters}{206}
\DeclareMathSymbol{\tx@UScrL}{\mathord}{letters}{207}
\DeclareMathSymbol{\tx@UScrM}{\mathord}{letters}{208}
\DeclareMathSymbol{\tx@UScrN}{\mathord}{letters}{209}
\DeclareMathSymbol{\tx@UScrO}{\mathord}{letters}{210}
\DeclareMathSymbol{\tx@UScrP}{\mathord}{letters}{211}
\DeclareMathSymbol{\tx@UScrQ}{\mathord}{letters}{212}
\DeclareMathSymbol{\tx@UScrR}{\mathord}{letters}{213}
\DeclareMathSymbol{\tx@UScrS}{\mathord}{letters}{214}
\DeclareMathSymbol{\tx@UScrT}{\mathord}{letters}{215}
\DeclareMathSymbol{\tx@UScrU}{\mathord}{letters}{216}
\DeclareMathSymbol{\tx@UScrV}{\mathord}{letters}{217}
\DeclareMathSymbol{\tx@UScrW}{\mathord}{letters}{218}
\DeclareMathSymbol{\tx@UScrX}{\mathord}{letters}{219}
\DeclareMathSymbol{\tx@UScrY}{\mathord}{letters}{220}
\DeclareMathSymbol{\tx@UScrZ}{\mathord}{letters}{221}

\DeclareMathSymbol{\tx@UScra}{\mathord}{letters}{222}
\DeclareMathSymbol{\tx@UScrb}{\mathord}{letters}{223}
\DeclareMathSymbol{\tx@UScrc}{\mathord}{letters}{224}
\DeclareMathSymbol{\tx@UScrd}{\mathord}{letters}{225}
\DeclareMathSymbol{\tx@UScre}{\mathord}{letters}{226}
\DeclareMathSymbol{\tx@UScrf}{\mathord}{letters}{227}
\DeclareMathSymbol{\tx@UScrg}{\mathord}{letters}{228}
\DeclareMathSymbol{\tx@UScrh}{\mathord}{letters}{229}
\DeclareMathSymbol{\tx@UScri}{\mathord}{letters}{230}
\DeclareMathSymbol{\tx@UScrj}{\mathord}{letters}{231}
\DeclareMathSymbol{\tx@UScrk}{\mathord}{letters}{232}
\DeclareMathSymbol{\tx@UScrl}{\mathord}{letters}{233}
\DeclareMathSymbol{\tx@UScrm}{\mathord}{letters}{234}
\DeclareMathSymbol{\tx@UScrn}{\mathord}{letters}{235}
\DeclareMathSymbol{\tx@UScro}{\mathord}{letters}{236}
\DeclareMathSymbol{\tx@UScrp}{\mathord}{letters}{237}
\DeclareMathSymbol{\tx@UScrq}{\mathord}{letters}{238}
\DeclareMathSymbol{\tx@UScrr}{\mathord}{letters}{239}
\DeclareMathSymbol{\tx@UScrs}{\mathord}{letters}{240}
\DeclareMathSymbol{\tx@UScrt}{\mathord}{letters}{241}
\DeclareMathSymbol{\tx@UScru}{\mathord}{letters}{242}
\DeclareMathSymbol{\tx@UScrv}{\mathord}{letters}{243}
\DeclareMathSymbol{\tx@UScrw}{\mathord}{letters}{244}
\DeclareMathSymbol{\tx@UScrx}{\mathord}{letters}{245}
\DeclareMathSymbol{\tx@UScry}{\mathord}{letters}{246}
\DeclareMathSymbol{\tx@UScrz}{\mathord}{letters}{247}
\DeclareMathSymbol{\tx@UScrimath}{\mathord}{letters}{248}
\DeclareMathSymbol{\tx@UScrjmath}{\mathord}{letters}{249}

\def\ntx@@scr#1#2\@nil{%
	\ifiscseq{#1}{\ifcsdef{tx@Scr\@xp\@gobble\string#1}{\csname tx@Scr\@xp\@gobble\string#1\endcsname}{#1}}{%not a cs
	\csname tx@Scr#1\endcsname}	
	\ifblank{#2}{\relax}{\ntx@@scr #2\@nil}}
\DeclareRobustCommand*{\mathslscr}[1]{\ntx@@scr #1\@nil}

\def\ntx@@uscr#1#2\@nil{%
	\ifiscseq{#1}{\ifcsdef{tx@UScr\@xp\@gobble\string#1}{\csname tx@UScr\@xp\@gobble\string#1\endcsname}{#1}}{%not a cs
	\csname tx@UScr#1\endcsname}	
	\ifblank{#2}{\relax}{\ntx@@uscr #2\@nil}}
\DeclareRobustCommand*{\mathuscr}[1]{\ntx@@uscr #1\@nil}
%
\iftx@upscr
  \let\mathscr\mathuscr
  \DeclareMathSymbol{\scrdotlessi}{\mathord}{letters}{248}
  \DeclareMathSymbol{\scrdotlessj}{\mathord}{letters}{249}
\else
  \let\mathscr\mathslscr
  \DeclareMathSymbol{\scrdotlessi}{\mathord}{letters}{194}
  \DeclareMathSymbol{\scrdotlessj}{\mathord}{letters}{195}
\fi % upscr
\let\imathscr\scrdotlessi
\let\jmathscr\scrdotlessj
\fi % isenh

%%%%%%
%% Experimental code May 8, 2018
%\newcount\ntx@numstart 
%\newcount\ntx@UCstart 
%\newcount\ntx@lcstart
%\newcount\ntx@tmpc
%\newcount\ntx@imath
%\newcount\ntx@jmath
%\newif\ifntx@notempty
%\def\ntx@fam{}
%\def\ntx@char{}
%\def\ntx@alfa#1#2#3#4#5#6#7{%#1=string, #2=UC,#3=lc,#4=imath,#5=jmath,#6=numstart,#7=fam
%	\ntx@UCstart=#2 
%	%\gdef\xx{x#3x}
%	\@xp\ifblank\@xp{#3}{\ntx@lcstart=512 }{\ntx@lcstart=#3}
%	\@xp\ifblank\@xp{#4}{\ntx@imath=512 }{\ntx@imath=#4}
%	\@xp\ifblank\@xp{#5}{\ntx@jmath=512 }{\ntx@jmath=#5}
%	\@xp\ifblank\@xp{#6}{\ntx@numstart=512 }{\ntx@numstart=#6}
%	\def\ntx@fam{#7}
%	\@xp\ifblank\@xp{#1}{\relax}{\@xp\ntx@@alfa #1\@nil}}
%	
%\def\ntx@@alfa#1#2\@nil{%
%	\ntx@out{#1}
%	\ifblank{#2}{\relax}{\ntx@@alfa #2\@nil}}
%	
%\def\ntx@out#1{% #1 is always a single token---use values from \ntx@alfa
%	%\showthe\ntx@numstart
%	\ntx@tmpc=\z@
%	\ifx#1\imath\ntx@tmpc=128\relax
%		\ifnum\ntx@imath>255\relax #1\ntx@tmpc=256 \message{^^JNo imath in this alphabet^^J}\fi
%	\else % not \imath
%		\ifx#1\jmath\ntx@tmpc=129\relax
%			\ifnum\ntx@jmath>255\relax #1\ntx@tmpc=256 \message{^^JNo jmath in this alphabet^^J}\fi
%		\else % neither \imath nor \jmath
%			\ifiscseq{#1}{#1\ntx@tmpc=256 }{% not a cs
%			\ntx@tmpc=\number\@xp`#1}			
%		\fi
%	\fi
%	%\message{^^JCharacter index = \the\ntx@tmpc^^J}
%  \ifnum\ntx@tmpc<128\relax % neither \imath nor \jmath nor cs
%	\tx@isAlNum{#1}
%	%\message{^^JIsAlNum = \the\tx@IsAlNum^^J}
%	\ifnum\tx@IsAlNum=\@ne % it's a digit
%		\ifnum\ntx@numstart>255\relax #1\ntx@tmpc=256 \message{^^JNo digits in this alphabet^^J}
%		\else
%			\advance\ntx@tmpc -48 % 0..9
%			\advance\ntx@tmpc \ntx@numstart 
%		\fi
%	\else
%		\ifnum\tx@IsAlNum=\tw@ % it's UC
%			\advance\ntx@tmpc -65 % 0..25
%			\advance\ntx@tmpc\ntx@UCstart
%		\else
%			\ifnum\tx@IsAlNum>\tw@ % it's lc
%				\ifnum\ntx@lcstart>255 #1\ntx@tmpc=256 \message{^^JNo lowercase in this alphabet^^J}
%				\else
%					%\message{^^JCharacter index = \the\ntx@tmpc^^J
%					%lcstart = \the\ntx@lcstart^^J}
%					\advance\ntx@tmpc -97 % 0..25
%					\advance\ntx@tmpc\ntx@lcstart
%					%\message{^^JCharacter index = \the\ntx@tmpc^^J}
%				\fi
%			\else % it must be a character outside alphanumerics
%				#1
%			\fi
%		\fi			
%	\fi
%   \else % ntx@tmpc>127
%		\ifnum\ntx@tmpc=128\relax % imath
%			\ntx@tmpc=\ntx@imath
%		\else
%			\ifnum\ntx@tmpc=129\relax % jmath
%				\ntx@tmpc=\ntx@jmath
%			\fi
%		\fi
%	\fi
%	\ifnum\tx@IsAlNum>\z@
%	  \ifnum\ntx@tmpc<256\relax
%		\edef\ntx@char{"\@xp\hexnumber@\csname sym\ntx@fam\endcsname\nhex{2}{\the\ntx@tmpc}}
%		%\message{^^Joutput char = \ntx@char^^J}
%  		\@xp\mathchar\ntx@char%\traceoff
%  	  \fi %end of ifnum <256
%	\fi %end of ifnum >0
%}
%% This really needs to be reorganized
%\iftx@stxtwo
%	\DeclareRobustCommand{\vvmathbb}[1]{\ntx@alfa{#1}{132}{158}{125}{126}{43}{lettersA}}
%	\DeclareRobustCommand{\vmathbb}[1]{\ntx@alfa{#1}{193}{225}{184}{185}{43}{lettersA}}
%\else
%  \iftx@isenh
%	\DeclareRobustCommand{\vmathbb}[1]{\ntx@alfa{#1}{132}{158}{125}{126}{43}{lettersA}}
%	\DeclareRobustCommand{\vvmathbb}[1]{\ntx@alfa{#1}{193}{225}{125}{126}{43}{lettersA}}
%  \else % the old mia layout
%	   	\DeclareRobustCommand{\vmathbb}[1]{\ntx@alfa{#1}{129}{159}{}{}{176}{lettersA}}
%	    \DeclareRobustCommand{\vvmathbb}[1]{\ntx@alfa{#1}{193}{225}{}{}{176}{lettersA}}
%  \fi
%\fi
%%%%%%%%%%%%
%%End experimental code
%%%%%%%%%%%%
% Additional macros to access process a single character only, work with \bm
%\def\ntx@char{}
%\DeclareRobustCommand*{\vmathbb}[1]{% for original variant bb
%  \@tempcnta=`#1\relax \advance\@tempcnta "40\relax
%  \edef\ntx@char{"\hexnumber@\symlettersA\nhex{2}{\the\@tempcnta}}
%  \expandafter\mathchar\ntx@char
%}
%\DeclareRobustCommand*{\vvmathbb}[1]{% for new (STIX) variant
%  \@tempcnta=`#1\relax \advance\@tempcnta "80\relax
%  \edef\ntx@char{"\hexnumber@\symlettersA\nhex{2}{\the\@tempcnta}}
%  \expandafter\mathchar\ntx@char
%}
%\DeclareRobustCommand*{\vvmathbbb}[1]{% for new (STIX) variant
%  \@tempcnta=`#1\relax \advance\@tempcnta "80\relax
%  \edef\ntx@char{"\hexnumber@\symboldlettersA\nhex{2}{\the\@tempcnta}}
%  \expandafter\mathchar\ntx@char
%}

%\let\varmathbb\vmathbb

\iftx@vvarbb
  \let\mathbb\vvmathbb %\DeclareRobustCommand*{\mathbb}{\vvmathbb}
\else
  \iftx@varbb 
    \let\mathbb\vmathbb %\DeclareRobustCommand*{\mathbb}{\varmathbb}
  \else
    \iftx@ams\else\let\mathbb\vmathbb\fi
  \fi
\fi
\DeclareRobustCommand{\Bbbk}{\mathbb{k}}

%\show\mathbb
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Math Extension (ntxex) Definition % largesymbols
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Math Extension A (ntxexa) Definition % largesymbolsTXA
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%\re@DeclareMathSymbol{\bignplus}{\mathop}{largesymbolsTXA}{0}
%\re@DeclareMathSymbol{\bigsqcupplus}{\mathop}{largesymbolsTXA}{2}
%\re@DeclareMathSymbol{\bigsqcapplus}{\mathop}{largesymbolsTXA}{4}
%\re@DeclareMathSymbol{\bigsqcap}{\mathop}{largesymbolsTXA}{6}
%\re@DeclareMathSymbol{\varprod}{\mathop}{gggg}{16}
%\re@DeclareMathDelimiter{\llbracket}{\mathopen}{symbolsC}{126}{largesymbolsTXA}{18}
%\re@DeclareMathDelimiter{\rrbracket}{\mathclose}{symbolsC}{127}{largesymbolsTXA}{19}
\DeclareMathSymbol{\smallprod}{\mathop}{symbols}{"98}
\DeclareMathSymbol{\smallsum}{\mathop}{symbols}{"99}
\DeclareMathSymbol{\smallcoprod}{\mathop}{symbols}{113}%
%\iftx@cmint
%  \re@DeclareMathSymbol{\ointop}{\mathop}{largesymbols}{150}
%  \re@DeclareMathSymbol{\intop}{\mathop}{largesymbols}{152}
%  \ifx\AmSfont\@undefined
%        \def\oint{\ointop\nolimits}
%        \def\int{\intop\nolimits}
%   \fi
%\else % use tx integrals
%  \ifx\AmSfont\@undefined\else
%    % The following are needed if amsmath has been loaded
%    \let\iint\relax
%    \let\iiint\relax
%    \let\iiiint\relax
%    \let\idotsint\relax
%  \fi
%\renewcommand{\iint}{\DOTSI\protect\MultiIntegral{2}}
%\renewcommand{\iiint}{\DOTSI\protect\MultiIntegral{3}}
%\renewcommand{\iiiint}{\DOTSI\protect\MultiIntegral{4}}
%\re@DeclareMathSymbol{\oiintop}{\mathop}{largesymbolsTXA}{8}
%   \def\oiint{\oiintop\ilimits@}
%\re@DeclareMathSymbol{\ointctrclockwiseop}{\mathop}{largesymbolsTXA}{10}
%   \def\ointctrclockwise{\ointctrclockwiseop\ilimits@}
%\re@DeclareMathSymbol{\ointclockwiseop}{\mathop}{largesymbolsTXA}{12}
%   \def\ointclockwise{\ointclockwiseop\ilimits@}
%\re@DeclareMathSymbol{\sqintop}{\mathop}{largesymbolsTXA}{14}
%   \def\sqint{\sqintop\ilimits@}
%\re@DeclareMathSymbol{\iintop}{\mathop}{largesymbolsTXA}{33}
%   \def\iint{\iintop\ilimits@}
%\re@DeclareMathSymbol{\iiintop}{\mathop}{largesymbolsTXA}{35}
%   \def\iiint{\iiintop\ilimits@}
%\re@DeclareMathSymbol{\iiiintop}{\mathop}{largesymbolsTXA}{37}
%   \def\iiiint{\iiiintop\ilimits@}
%\re@DeclareMathSymbol{\idotsintop}{\mathop}{largesymbolsTXA}{39}
%   \def\idotsint{\idotsintop\ilimits@}
%\re@DeclareMathSymbol{\oiiintop}{\mathop}{largesymbolsTXA}{41}
%   \def\oiiint{\oiiintop\ilimits@}
%\re@DeclareMathSymbol{\varointctrclockwiseop}{\mathop}{largesymbolsTXA}{43}
%   \def\varointctrclockwise{\varointctrclockwiseop\ilimits@}
%\re@DeclareMathSymbol{\varointclockwiseop}{\mathop}{largesymbolsTXA}{45}
%   \def\varointclockwise{\varointclockwiseop\ilimits@}
%\re@DeclareMathSymbol{\fintop}{\mathop}{largesymbolsTXA}{62}
%   \def\fint{\fintop\ilimits@}
%\re@DeclareMathSymbol{\oiintctrclockwiseop}{\mathop}{largesymbolsTXA}{64}
%   \def\oiintctrclockwise{\oiintctrclockwiseop\ilimits@}
%\re@DeclareMathSymbol{\varoiintclockwiseop}{\mathop}{largesymbolsTXA}{66}
%   \def\varoiintclockwise{\varoiintclockwiseop\ilimits@}
%\re@DeclareMathSymbol{\oiiintctrclockwiseop}{\mathop}{largesymbolsTXA}{68}
%   \def\oiiintctrclockwise{\oiiintctrclockwiseop\ilimits@}
%\re@DeclareMathSymbol{\varoiiintclockwiseop}{\mathop}{largesymbolsTXA}{70}
%   \def\varoiiintclockwise{\varoiiintclockwiseop\ilimits@}
%\re@DeclareMathSymbol{\oiintclockwiseop}{\mathop}{largesymbolsTXA}{72}
%   \def\oiintclockwise{\oiintclockwiseop\ilimits@}
%\re@DeclareMathSymbol{\varoiintctrclockwiseop}{\mathop}{largesymbolsTXA}{74}
%   \def\varoiintctrclockwise{\varoiintctrclockwiseop\ilimits@}
%\re@DeclareMathSymbol{\oiiintclockwiseop}{\mathop}{largesymbolsTXA}{76}
%   \def\oiiintclockwise{\oiiintclockwiseop\ilimits@}
%\re@DeclareMathSymbol{\varoiiintctrclockwiseop}{\mathop}{largesymbolsTXA}{78}
%   \def\varoiiintctrclockwise{\varoiiintctrclockwiseop\ilimits@}
%\re@DeclareMathSymbol{\sqiintop}{\mathop}{largesymbolsTXA}{80}
%   \def\sqiint{\sqiintop\ilimits@}
%\re@DeclareMathSymbol{\sqiiintop}{\mathop}{largesymbolsTXA}{82}
%   \def\sqiiint{\sqiiintop\ilimits@}
%\fi


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Common Macros
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%% Use math italic, not text, version of dot, in \vdots and \ddots definitions
\def\vdots{\vbox{\baselineskip4\p@ \lineskiplimit\z@
    \kern6\p@\hbox{$\m@th.$}\hbox{$\m@th.$}\hbox{$\m@th.$}}}
\def\ddots{\mathinner{\mkern1mu\raise7\p@
    \vbox{\kern7\p@\hbox{$\m@th.$}}\mkern2mu
    \raise4\p@\hbox{$\m@th.$}\mkern2mu\raise\p@\hbox{$\m@th.$}\mkern1mu}}

%%% \sqrt redefined (unredefined 1.321, too much space in front)
%\let\sqrt=\undefined
%\DeclareRobustCommand\sqrt{\@ifnextchar[\@sqrt{\mathpalette\@x@sqrt}}
%\def\@x@sqrt#1#2{%
%  \setbox\z@\hbox{$\m@th#1\sqrtsign{\mkern1mu #2}$}
%  \mkern3mu\box\z@}
%\ifx\@@undefined\@amsmath@err
%  \def\r@@t#1#2{%    from latex.ltx
%    \setbox\z@\hbox{$\m@th#1\sqrtsign{\mkern1mu #2}$}%
%    \dimen@\ht\z@ \advance\dimen@-\dp\z@
%%    \mkern5mu\raise.6\dimen@\copy\rootbox
%    \mkern6mu\raise.68\dimen@\copy\rootbox
%%     \mkern-10mu\box\z@}
%     \mkern-9mu\box\z@}
%\else
%  \def\r@@t#1#2{\setboxz@h{$\m@th#1\sqrtsign{\mkern1mu #2}$}% from amsmath.sty
%   \dimen@\ht\z@\advance\dimen@-\dp\z@
%   \setbox\@ne\hbox{$\m@th#1\mskip\uproot@ mu$}%
%   \advance\dimen@ by1.667\wd\@ne
%%   \mkern-\leftroot@ mu\mkern5mu\raise.6\dimen@\copy\rootbox
%   \mkern-\leftroot@ mu\mkern6mu\raise.68\dimen@\copy\rootbox
%%   \mkern-10mu\mkern\leftroot@ mu\boxz@}
%   \mkern-9mu\mkern\leftroot@ mu\boxz@}
%\fi

%%% For \underbrace and \overbrace:
%%% use brace extension bar (in "20 of ntxexa) instead of vrule
%\re@DeclareMathSymbol{\br@cext}{\mathord}{largesymbolsTXA}{32}
\def\downbracefill{$\m@th%
   \braceld\mkern-1mu\cleaders\hbox{$\mkern-.5mu\br@cext\mkern-.5mu$}\hfill\mkern-1mu%
   \braceru\bracelu%
   \mkern-1mu\cleaders\hbox{$\mkern-.5mu\br@cext\mkern-.5mu$}\hfill\mkern-1mu\bracerd$}
\def\upbracefill{$\m@th%
   \bracelu\mkern-1mu\cleaders\hbox{$\mkern-.5mu\br@cext\mkern-.5mu$}\hfill\mkern-1mu%
   \bracerd\braceld%
   \mkern-1mu\cleaders\hbox{$\mkern-.5mu\br@cext\mkern-.5mu$}\hfill\mkern-1mu\braceru$}


% Changed again 20171121 to prevent possible damage due pandoc
%%% \not redefined:
%%%    \not= becomes \ne
%%%    \not< becomes \nless
%%%    \not> becomes \ngtr
%%%    if \notXXX is defined, \not\XXX becomes \notXXX;
%%%    if \nXXX is defined, \not\XXX becomes \nXXX;
%%%    otherwise, \not\XXX is done in the usual way.
\DeclareMathSymbol{\n@tch@r}{\mathrel}{symbols}{54}

\@namedef{not=}{\ne}
\@namedef{not>}{\ngtr}
\@namedef{not<}{\nless}
\DeclareRobustCommand*{\not}[1]{%
    \begingroup \escapechar\m@ne\xdef\@gtempa{not\string#1}\endgroup
    \@ifundefined{\@gtempa}%
        {\not@n@{#1}}%
        {\@nameuse{\@gtempa}}}
\def\not@n@#1{%
    \begingroup \escapechar\m@ne\xdef\@gtempa{n\string#1}\endgroup
    \@ifundefined{\@gtempa}%
        {\n@tch@r #1}%
        {\@nameuse{\@gtempa}}}
%   \ifx #1=\ne\else
%   \ifx #1<\nless\else
%   \ifx #1>\ngtr\else
%   \n@t@@n{#1}\fi\fi\fi}
%
%\def\n@t@@n#1{%
%  \begingroup \escapechar\m@ne\xdef\@gtempa{not\string#1}\endgroup%
%  \expandafter\@ifundefined{\@gtempa}%
%     {\not@n@{#1}}%
%     {\@nameuse{\@gtempa}}}
%\def\not@n@#1{%
%  \begingroup \escapechar\m@ne\xdef\@gtempa{n\string#1}\endgroup%
%  \expandafter\@ifundefined{\@gtempa}%
%     {\n@tch@r #1}%
%     {\@nameuse{\@gtempa}}}

%%%
%%% for AMS classes
%%%
\chardef\newtxmath@openbox 131 % was 3 in ntxsya
\DeclareRobustCommand{\textsquare}{\begingroup
 \usefont{U}{ntxsym}{m}{n}\newtxmath@openbox\endgroup}
\DeclareRobustCommand{\openbox}{}
% the spaces below after openbox and textsquare should not be removed
\expandafter\let\csname openbox \expandafter\endcsname
               \csname textsquare \endcsname 
%\DeclareRobustCommand{\textsquare}{\begingroup \usefont{U}{ntxsya}{m}{n}\thr@@\endgroup}
%\DeclareRobustCommand{\openbox}{\begingroup \usefont{U}{ntxsya}{m}{n}\thr@@\endgroup}

\DeclareRobustCommand{\BI@}[1]{%
\begingroup\text{\mathversion{bold}$#1$}\endgroup}
\iftx@BI
\DeclareRobustCommand{\BIA}{\BI@{A}}
\DeclareRobustCommand{\BIB}{\BI@{B}}
\DeclareRobustCommand{\BIC}{\BI@{C}}
\DeclareRobustCommand{\BID}{\BI@{D}}
\DeclareRobustCommand{\BIE}{\BI@{E}}
\DeclareRobustCommand{\BIF}{\BI@{F}}
\DeclareRobustCommand{\BIG}{\BI@{G}}
\DeclareRobustCommand{\BIH}{\BI@{H}}
\DeclareRobustCommand{\BII}{\BI@{I}}
\DeclareRobustCommand{\BIJ}{\BI@{J}}
\DeclareRobustCommand{\BIK}{\BI@{K}}
\DeclareRobustCommand{\BIL}{\BI@{L}}
\DeclareRobustCommand{\BIM}{\BI@{M}}
\DeclareRobustCommand{\BIN}{\BI@{N}}
\DeclareRobustCommand{\BIO}{\BI@{O}}
\DeclareRobustCommand{\BIP}{\BI@{P}}
\DeclareRobustCommand{\BIQ}{\BI@{Q}}
\DeclareRobustCommand{\BIR}{\BI@{R}}
\DeclareRobustCommand{\BIS}{\BI@{S}}
\DeclareRobustCommand{\BIT}{\BI@{T}}
\DeclareRobustCommand{\BIU}{\BI@{U}}
\DeclareRobustCommand{\BIV}{\BI@{V}}
\DeclareRobustCommand{\BIW}{\BI@{W}}
\DeclareRobustCommand{\BIX}{\BI@{X}}
\DeclareRobustCommand{\BIY}{\BI@{Y}}
\DeclareRobustCommand{\BIZ}{\BI@{Z}}
\DeclareRobustCommand{\BIa}{\BI@{a}}
\DeclareRobustCommand{\BIb}{\BI@{b}}
\DeclareRobustCommand{\BIc}{\BI@{c}}
\DeclareRobustCommand{\BId}{\BI@{d}}
\DeclareRobustCommand{\BIe}{\BI@{e}}
\DeclareRobustCommand{\BIf}{\BI@{f}}
\DeclareRobustCommand{\BIg}{\BI@{g}}
\DeclareRobustCommand{\BIh}{\BI@{h}}
\DeclareRobustCommand{\BIi}{\BI@{i}}
\DeclareRobustCommand{\BIj}{\BI@{j}}
\DeclareRobustCommand{\BIk}{\BI@{k}}
\DeclareRobustCommand{\BIl}{\BI@{l}}
\DeclareRobustCommand{\BIm}{\BI@{m}}
\DeclareRobustCommand{\BIn}{\BI@{n}}
\DeclareRobustCommand{\BIo}{\BI@{o}}
\DeclareRobustCommand{\BIp}{\BI@{p}}
\DeclareRobustCommand{\BIq}{\BI@{q}}
\DeclareRobustCommand{\BIr}{\BI@{r}}
\DeclareRobustCommand{\BIs}{\BI@{s}}
\DeclareRobustCommand{\BIt}{\BI@{t}}
\DeclareRobustCommand{\BIu}{\BI@{u}}
\DeclareRobustCommand{\BIv}{\BI@{v}}
\DeclareRobustCommand{\BIw}{\BI@{w}}
\DeclareRobustCommand{\BIx}{\BI@{x}}
\DeclareRobustCommand{\BIy}{\BI@{y}}
\DeclareRobustCommand{\BIz}{\BI@{z}}
\fi% end \iftx@BI

% Special constructions for Minion, where we cannot make real compound symbols
  \iftx@minion % minion does not have hslash, lambdabar, lambdaslash,Zbar
    \let\hslash\@empty \let\lambdaslash\@empty 
    \let\lambdabar\@empty \let\Zbar\@empty
  	\DeclareMathSymbol{\highbar}{\mathord}{lettersA}{252}
  	\DeclareMathSymbol{\slashbar}{\mathord}{lettersA}{253}
  	\DeclareMathSymbol{\midbar}{\mathord}{lettersA}{254}
    \def\hslash{\text{\rlap{\hspace{.04em}$\slashbar$}$h$}}
    \def\lambdaslash{\text{\rlap{\hspace{.1em}$\slashbar$}$\lambda$}}
    \def\lambdabar{\text{\rlap{\hspace{.09em}$\highbar$}$\lambda$}}
    \def\Zbar{\text{\rlap{$\midbar$}$\textrm{Z}$}}
  \fi

\def\defaultscriptratio{.73} % default is .7
\def\defaultscriptscriptratio{.55} % default is .5
\DeclareMathSizes{5}    {5.5}    {5.5}    {5.5}
\DeclareMathSizes{6}    {6.5}    {5.5}    {5.5}
\DeclareMathSizes{7}    {7.3}    {5.5}    {5.5}
\DeclareMathSizes{8}    {8}    {6}    {5.5}
\DeclareMathSizes{9}    {9}    {6.6}    {5.5}
\DeclareMathSizes{10}   {10}   {7.3}  {5.5} 
\DeclareMathSizes{10.95}{10.95}{8}    {6.1}
\DeclareMathSizes{11}   {10.95}{8}    {6.1}
\DeclareMathSizes{12}   {12}   {8.8}    {6.6}
\DeclareMathSizes{14.4} {14.4} {10.5}   {7.9}
\DeclareMathSizes{17.28}{17.28}{12.5}   {9.4}
\DeclareMathSizes{20.74}{20.74}{16.1} {11.4}
\DeclareMathSizes{24.88}{24.88}{18.2}{13.7}

\def\txf@ntname#1{\expandafter\let\expandafter\@ntx@\csname sym#1\endcsname
  \ifx\@ntx@\relax %
  \else
    \expandafter\def\csname @@@X\number\@ntx@ \endcsname{#1}
  \fi}
\newcommand{\ShowMathFonts}{%
\txf@ntname{operators}
\txf@ntname{boldoperators}
\txf@ntname{symbols}
\txf@ntname{boldsymbols}
\txf@ntname{largesymbols}
\txf@ntname{boldlargesymbols}
\txf@ntname{AMSm}
\txf@ntname{boldAMSm}
\txf@ntname{letters}
\txf@ntname{boldletters}
\txf@ntname{lettersA}
\txf@ntname{boldlettersA}
\txf@ntname{symbolsC}
\txf@ntname{boldsymbolsC}
\txf@ntname{largesymbolsTXA}
\txf@ntname{boldlargesymbolsTXA}
  \typeout{*** Mathgroups ***}
  \count@\z@
  \loop\ifnum\count@<16
    \def\@@ntx@{}
    \expandafter\let\expandafter\@ntx@\csname @@@X\the\count@\endcsname
    \ifx\@ntx@\relax\else\def\@@ntx@{\space[\@ntx@]}\fi
    \typeout{(\the\count@: \the\textfont\count@ = \fontname\textfont\count@\@@ntx@)}
    \advance\count@\@ne
  \repeat
  \typeout{***}}
%%%%%%% Additional pdf to unicode values not in Ross Moore's collection
% Conditional needed for engines other than pdflatex
\ifx\pdfglyphtounicode\@undefined \else 
\pdfgentounicode=1
\pdfglyphtounicode{nPerp}{2AEB 2215}% .. .. 
\pdfglyphtounicode{periodcentered.B}{00B7}
\pdfglyphtounicode{periodcentered.BB}{22C5}
\pdfglyphtounicode{openbullet.S}{25CB}
\pdfglyphtounicode{bullet.S}{25C5}
\pdfglyphtounicode{bullet.SS}{2022}
\pdfglyphtounicode{bullet.SSS}{2219}
\pdfglyphtounicode{emptyset.alt1}{2300}
\pdfglyphtounicode{emptyset.alt2}{2205}
\pdfglyphtounicode{transpose}{1D40}
\pdfglyphtounicode{hermitconj}{22B9}
\pdfglyphtounicode{EM}{0058 0058 0058 0058 0058 0058 0058 0058}%
\pdfglyphtounicode{NUL}{0060 0060 0060 0060 0060 0060 0060 0060}%
\pdfglyphtounicode{uni222B.dsp}{222B FE01}%
\pdfglyphtounicode{summationdisplay.1}{2211 FE01}%
\pdfglyphtounicode{summationdisplay}{2211 FE01}%    
\pdfglyphtounicode{radicalbig}{221A FE01}%
\pdfglyphtounicode{radicalbigg}{221A FE02}%
\pdfglyphtounicode{radicalBig}{221A FE03}%
\pdfglyphtounicode{radicalBigg}{221A FE04}%
\fi

% Code from Murray Eisenberg for a macro \widebar to complement \widehat and \widetilde
% Original by Hendrik Vogt
% http://tex.stackexchange.com/questions/16337/can-i-get-a-widebar-without-using-the-mathabx-package/60253#60253
% Modified at http://tex.stackexchange.com/questions/186607/combine-boldsymbol-and-widebar
\newcommand*\if@single[3]{%
  \setbox0\hbox{${\mathaccent"0362{#1}}^H$}%
  \setbox2\hbox{${\mathaccent"0362{\kern0pt#1}}^H$}%
  \ifdim\ht0=\ht2 #3\else #2\fi
  }
%The bar will be moved to the right by a half of \macc@kerna, which is computed by amsmath:
\newcommand*\rel@kern[1]{\kern#1\dimexpr\macc@kerna}
%If there's a superscript following the bar, then no negative kern may follow the bar;
%an additional {} makes sure that the superscript is high enough in this case:
\newcommand*\widebar[1]{\@ifnextchar^{{\wide@bar{#1}{0}}}{\wide@bar{#1}{1}}}
%Use a separate algorithm for single symbols:
\newcommand*\wide@bar[2]{\if@single{#1}{\wide@bar@{#1}{#2}{1}}{\wide@bar@{#1}{#2}{2}}}
\newcommand*\wide@bar@[3]{%
  \begingroup
  \def\mathaccent##1##2{%
%If there's more than a single symbol, use the first character instead (see below):
    \if#32 \let\macc@nucleus\first@char \fi
%Determine the italic correction:
    \setbox\z@\hbox{$\macc@style{\macc@nucleus}_{}$}%
    \setbox\tw@\hbox{$\macc@style{\macc@nucleus}{}_{}$}%
    \dimen@\wd\tw@
    \advance\dimen@-\wd\z@
%Now \dimen@ is the italic correction of the symbol.
    \divide\dimen@ 3
    \@tempdima\wd\tw@
    \advance\@tempdima-\scriptspace
%Now \@tempdima is the width of the symbol.
    \divide\@tempdima 10
    \advance\dimen@-\@tempdima
%Now \dimen@ = (italic correction / 3) - (Breite / 10)
    \ifdim\dimen@>\z@ \dimen@0pt\fi
%The bar will be shortened in the case \dimen@<0 !
    \rel@kern{0.6}\kern-\dimen@
    \if#31
      \overline{\rel@kern{-0.6}\kern\dimen@\macc@nucleus\rel@kern{0.4}\kern\dimen@}%
      \advance\dimen@0.4\dimexpr\macc@kerna
%Place the combined final kern (-\dimen@) if it is >0 or if a superscript follows:
      \let\final@kern#2%
      \ifdim\dimen@<\z@ \let\final@kern1\fi
      \if\final@kern1 \kern-\dimen@\fi
    \else
      \overline{\rel@kern{-0.6}\kern\dimen@#1}%
    \fi
  }%
  \macc@depth\@ne
  \let\math@bgroup\@empty \let\math@egroup\macc@set@skewchar
  \mathsurround\z@ \frozen@everymath{\mathgroup\macc@group\relax}%
  \macc@set@skewchar\relax
  \let\mathaccentV\macc@nested@a
%The following initialises \macc@kerna and calls \mathaccent:
  \if#31
    \macc@nested@a\relax111{#1}%
  \else
%If the argument consists of more than one symbol, and if the first token is
%a letter, use that letter for the computations:
    \def\gobble@till@marker##1\endmarker{}%
    \futurelet\first@char\gobble@till@marker#1\endmarker
    \ifcat\noexpand\first@char A\else
      \def\first@char{}%
    \fi
    \macc@nested@a\relax111{\first@char}%
  \fi
  \endgroup
}
\iftx@ebgm
\DeclareMathSymbol{\hslashAlt}{\mathord}{lettersA}{252}
  \DeclareMathSymbol{\hbarAlt}{\mathord}{lettersA}{253}
  \iftx@ebgalth
    \RenewCommandCopy{\hslash}{\hslashAlt}
    \RenewCommandCopy{\hbar}{\hbarAlt}
  \fi
\fi

\iftx@coch
  \DeclareMathSymbol{\rhoAlt}{\mathord}{letters}{251}
  \iftx@cochrho
    \RenewCommandCopy{\rho}{\rhoAlt}
  \fi
\fi

% For users of older newtxmath
\AtBeginDocument{%
\providecommand*\Coloneqq{\Coloneq}
\providecommand*\Eqqcolon{\Eqcolon}
\providecommand*\Coloneq{\Colondash}
\providecommand*\Eqcolon{\Dashcolon}}


% Fix for garamondx with siunitx
\iftx@gm%
  \AtEndPreamble{%
    \@ifpackageloaded{siunitx}   {\DeclareSIUnit\ohm{\text{\ensuremath\upOmega}}}{}}
\fi
\endinput
