<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\NeedsTeXFormat{LaTeX2e}
\def\mathalphaVersion{1.145}
\def\mathalphaDate{2025/01/17}
\ProvidesPackage{mathalpha}[\mathalphaDate\space-\space\mathalphaVersion
 mathalpha (License LPPL) Michael Sharpe]
\message{`mathalpha' v\mathalphaVersion, \mathalphaDate, a renaming of mathalfa (msharpe)}
\RequirePackage{xkeyval}
%\def\ma@undefine#1{%
%    \@ifundefined{#1}{}{\let#1=\@undefined}}
%\def\ma@MathSymbol#1#2#3#4{%
%    \ma@undefine#1%
%    \DeclareMathSymbol{#1}{#2}{#3}{#4}}
\newif\ifmathalfa@bfrak \newif\ifmathalfa@bbb
\newif\ifmathalfa@bcal \newif\ifmathalfa@bscr
\newif\ifmathalfa@fraksym \newif\ifmathalfa@bbsym
\newif\ifmathalfa@calsym \newif\ifmathalfa@scrsym
% normal meanings of weights
\def\mathalfa@bbm{m}
\def\mathalfa@frakm{m}
\def\mathalfa@calm{m}
\def\mathalfa@scrm{m}

% available choices
\def\bb@lst{ams, lucida, mathpi, mma, mt, mth, pazo, fourier, esstix, boondox, px, tx, txof, libus, dsserif, bboldxLight, bboldx, dsfontserif, dsfontsans, stixtwo, stix, ncmbbr, ncmbbk}
\def\cal@lst{cm, euler, rsfso, rsfs, lucida, mathpi, mma, mt, mtc, zapfc, esstix, boondox, boondoxo, dutchcal, pxtx, bickham, bickhams, stix, txupr, boondoxupr, kp, stixplain, stixfancy, stixtwoplain, stixtwofancy}
\def\frak@lst{euler, lucida, mathpi, mma, mt, esstix, boondox, pxtx, stixtwo}
\def\mathalfa@bbnr{-1}\def\mathalfa@calnr{-1}
\def\mathalfa@fraknr{-1}\def\mathalfa@scrnr{-1}
\def\minusone{-1}
% aliases
\newif\ifmathalfa@oldbold
\define@boolkey{mathalfa}{oldbold}[true]{\@nameuse{mathalfa@oldbold#1}}
\define@boolkey{mathalfa}{fraksymbols}[true]{\@nameuse{mathalfa@fraksym#1}}
\define@boolkey{mathalfa}{bbsymbols}[true]{\@nameuse{mathalfa@bbsym#1}}
\define@boolkey{mathalfa}{calsymbols}[true]{\@nameuse{mathalfa@calsym#1}}
\define@boolkey{mathalfa}{scrsymbols}[true]{\@nameuse{mathalfa@scrsym#1}}

%\edef\mathalfa@bbnr{\m@ne}\edef\mathalfa@calnr{\m@ne}
%\edef\mathalfa@fraknr{\m@ne}\edef\mathalfa@scrnr{\m@ne}
% scaled
\define@key{mathalfa}{scaled}[1.0]{%
\def\mathalfa@bbscaled{s*[#1]}\def\mathalfa@bbrawscaled{#1} \def\mathalfa@calscaled{s*[#1]}\def\mathalfa@calrawscaled{#1} \def\mathalfa@frakscaled{s*[#1]}\def\mathalfa@frakrawscaled{#1} \def\mathalfa@scrscaled{s*[#1]}\def\mathalfa@scrrawscaled{#1}}% all at once
\setkeys{mathalfa}{scaled}% initialize all scales to 1.0
% or separately
\define@key{mathalfa}{bbscaled}[1.0]{%
\def\mathalfa@bbscaled{s*[#1]}\def\mathalfa@bbrawscaled{#1}}
\define@key{mathalfa}{calscaled}[1.0]{%
\def\mathalfa@calscaled{s*[#1]}\def\mathalfa@calrawscaled{#1}}
\define@key{mathalfa}{frakscaled}[1.0]{%
\def\mathalfa@frakscaled{s*[#1]}\def\mathalfa@frakrawscaled{#1}}
\define@key{mathalfa}{scrscaled}[1.0]{%
\def\mathalfa@scrscaled{s*[#1]}\def\mathalfa@scrrawscaled{#1}}
% alphabets
\def\@cmd{}
\edef\@cmd{\noexpand\define@choicekey*{mathalfa}{bb}[\noexpand\mathalfa@val\noexpand\mathalfa@bbnr]{\bb@lst}{}}
\@cmd
\edef\@cmd{\noexpand\define@choicekey*{mathalfa}{cal}[\noexpand\mathalfa@val\noexpand\mathalfa@calnr]{\cal@lst}{}}
\@cmd
\edef\@cmd{\noexpand\define@choicekey*{mathalfa}{frak}[\noexpand\mathalfa@val\noexpand\mathalfa@fraknr]{\frak@lst}{}}
\@cmd
\edef\@cmd{\noexpand\define@choicekey*{mathalfa}{scr}[\noexpand\mathalfa@val\noexpand\mathalfa@scrnr]{\cal@lst}{}}%was scr@lst
\@cmd
\define@boolkey{mathalfa}{bffrak}[true]{\def\mathalfa@frakm{b}\@nameuse{mathalfa@bfrak#1}}
\define@boolkey{mathalfa}{bfcal}[true]{\def\mathalfa@calm{b}\@nameuse{mathalfa@bcal#1}}
\define@boolkey{mathalfa}{bfscr}[true]{\def\mathalfa@scrm{b}\@nameuse{mathalfa@bscr#1}}
\define@boolkey{mathalfa}{bfbb}[true]{\def\mathalfa@bbm{b}\@nameuse{mathalfa@bbb#1}}
% showoptions
\DeclareOption{showoptions}{\PackageError{mathalpha}{Package Options:^^J bb=\bb@lst^^J cal=\cal@lst^^J frak=\frak@lst^^J scr=\cal@lst^^J bbscaled=1.0, calscaled=1.0, frakscaled=1.0, scrscaled=1.0^^J Bold versions may be forced by one of options bfbb, bfcal, bffrak, bfscr.^^J The following exceptions should be noted:^^J
bb: stixtwo, dsfontsans, dsfontserif, libusbb, tx, esstix,^^J\space\space pazo, mathpi, ams, stix, ncmbbr, ncmbbk^^J
cal and scr: esstix, zapfc, mtc, mathpical, rsfs, rsfso^^J
frak: lucida, esstix, mathpi^^J
}{}}%was scr=\scr@lst
\DeclareOption*{%
  \begingroup
  \edef\x{\endgroup
    \noexpand\setkeys{mathalfa}{\CurrentOption}}%
  \x}
\ProcessOptions* % run \DeclareOption* on each option specified, in order
% Convert scaled choices to macros
%\expandafter\ifx\csname mathalfa@bbscaled\endcsname\relax \let\mathalfa@bbscaled\@empty
%\fi
%\expandafter\ifx\csname mathalfa@calscaled\endcsname\relax \let\mathalfa@calscaled\@empty\fi
%\expandafter\ifx\csname mathalfa@frakscaled\endcsname\relax \let\mathalfa@frakscaled\@empty\fi
%\expandafter\ifx\csname mathalfa@scrscaled\endcsname\relax \let\mathalfa@scrscaled\@empty\fi
\ifx\mathalfa@bbnr\minusone\else\let\mathbb\relax\let\mathbbb\relax\fi
%\ifnum \mathalfa@bbnr&lt;0
%\else\let\mathbb\relax\let\mathbbb\relax\fi
%\ifx\mathalfa@calnr\minusone\else\let\mathcal\relax\fi
\ifx\mathalfa@fraknr\minusone\else\let\mathfrak\relax\let\mathbfrak\relax\fi
\ifx\mathalfa@scrnr\minusone\else\let\mathscr\relax\fi
% Check for lucida loaded
\newif\iflucid@loaded \lucid@loadedfalse
\expandafter\ifx\csname DeclareLucidaFontShape\endcsname\relax\else\lucid@loadedtrue\fi% 
% Check for mtpro2 loaded
%\newif\ifmtp@loaded \mtp@loadedfalse
\def\mtp@loadedError{\PackageError{mathalpha}{You have already loaded the mtpro2 package. You should not use mathalpha to load additional mtpro2 options.}{}}%
% Check for amsfonts
\def\amsloaded{}
\@ifpackageloaded{amsfonts}{%
  \let\amsloaded=Y%
}{}%
% Some error messages
\newcommand*\mathalpha@boldError[2]{%#1=item specified, #2 from bb,cal,scr,frak
\PackageError{mathalpha}{You specified `#2=#1,b#2', but `#1' has no bold\space#2}{}}

% Code to set up the math alphabets specified, not necessarily using the fd files
%
% Blackboard Bold
%%%%%%%%%%%%%%%%%% START \mathbb
%
\ifcase\mathalfa@bbnr\relax% item 0 of {ams, lucida, mathpi, mma, mt, mth, pazo, fourier, esstix, boondox, px, tx, txof, libus, dsserif, bboldx-light, bboldx, dsfont-serif, dsfont-sans, stix, stixtwo, ncmbbr, ncmbbk}
% ams
  \ifmathalfa@bbb\mathalpha@boldError{ams}{bb}\fi
  \DeclareFontFamily{U}{msb}{}%
  \DeclareFontShape{U}{msb}{m}{n}{
    &lt;-7&gt;\mathalfa@bbscaled msbm5
    &lt;7-9&gt;\mathalfa@bbscaled msbm7
    &lt;9-&gt;\mathalfa@bbscaled msbm10}{}%
  \DeclareMathAlphabet{\mathbb}{U}{msb}{m}{n}
\or % lucida
  \iflucid@loaded \PackageError{mathalpha}{Do not use lucida as an option to mathalpha after loading a lucida package}{}\fi
%  \DeclareFontFamily{OMS}{lbm}{\skewchar\font48}
%  \DeclareFontShape{OMS}{lbm}{m}{n}{&lt;-&gt;\mathalfa@bbscaled hlcry}{}
%  \DeclareFontShape{OMS}{lbm}{b}{n}{&lt;-&gt;\mathalfa@bbscaled hlcdy}{}  
%  \DeclareMathAlphabet{\mathcal}  {OMS}{lbm}{m}{n}
%  \SetMathAlphabet{\mathcal}{bold}{OMS}{lbm}{b}{n}
%  \DeclareMathAlphabet{\mathbfcal} {OMS}{lbm}{b}{n}
  \DeclareFontFamily{U}{hlcm}{\skewchar\font48}
  \DeclareFontShape{U}{hlcm}{m}{n}{&lt;-&gt;\mathalfa@bbscaled hlcra}{}
  \DeclareFontShape{U}{hlcm}{b}{n}{&lt;-&gt;\mathalfa@bbscaled hlcrb}{}
  \DeclareMathAlphabet{\mathbb}{U}{hlcm}{\mathalfa@bbm}{n}
  \ifmathalfa@bbb\else%
    \SetMathAlphabet{\mathbb}{bold}{U}{hlcm}{b}{n}
    \DeclareMathAlphabet{\mathbfbb} {U}{hlcm}{b}{n}
  \fi
\or % mathpi
  \ifmathalfa@bbb\mathalpha@boldError{mathpi}{bb}\fi
  \DeclareFontFamily{U}{mathpibb}{\skewchar \font =45}
  \DeclareFontShape{U}{mathpibb}{m}{n}{
    &lt;-&gt; \mathalfa@bbscaled mathpibb}{}
  \DeclareMathAlphabet{\mathbb}{U}{mathpibb}{m}{n}
\or % mma
  \DeclareFontFamily{U}{mmambb}{\skewchar \font =45}
  \DeclareFontShape{U}{mmambb}{m}{n}{
    &lt;-&gt; \mathalfa@bbscaled  mmambb}{}
  \DeclareFontShape{U}{mmambb}{b}{n}{
    &lt;-&gt; \mathalfa@bbscaled  mmambbb}{}
  \DeclareMathAlphabet{\mathbb}{U}{mmambb}{\mathalfa@bbm}{n}
  \ifmathalfa@bbb\else
    \SetMathAlphabet{\mathbb}{bold}{U}{mmambb}{b}{n}
    \DeclareMathAlphabet{\mathbfbb} {U}{mmambb}{b}{n}
  \fi
\or % mt
  \@ifpackageloaded{mtpro2}{\mtp@loadedError}{}
  \DeclareFontFamily{U}{mtbb}{\skewchar\font45}%
  \DeclareFontShape{U}{mtbb}{m}{n}{
    &lt;-7&gt;\mathalfa@bbscaled mt2bbf
    &lt;7-9&gt;\mathalfa@bbscaled mt2bbs
    &lt;9-&gt;\mathalfa@bbscaled mt2bbt}{}%
  \DeclareFontShape{U}{mtbb}{b}{n}{
    &lt;-7&gt;\mathalfa@bbscaled mt2bbdf
    &lt;7-9&gt;\mathalfa@bbscaled mt2bbds
    &lt;9-&gt;\mathalfa@bbscaled mt2bbdt}{}%
  \DeclareMathAlphabet{\mathbb}{U}{mtbb}{\mathalfa@bbm}{n}
  \ifmathalfa@bbb\else  
    \SetMathAlphabet{\mathbb}{bold}{U}{mtbb}{b}{n}
    \DeclareMathAlphabet{\mathbfbb} {U}{mtbb}{b}{n}
  \fi
\or % mth--hollowed out letters with more shape---' Holey Roman'
  \@ifpackageloaded{mtpro2}{\mtp@loadedError}{}
  \DeclareFontFamily{U}{mthrb}{\skewchar\font45}%
  \DeclareFontShape{U}{mthrb}{m}{n}{&lt;-7&gt;\mathalfa@bbscaled mt2hrbf
    &lt;7-9&gt;\mathalfa@bbscaled mt2hrbs
    &lt;9-&gt;\mathalfa@bbscaled mt2hrbt}{}%
  \DeclareFontShape{U}{mthrb}{b}{n}{&lt;-7&gt;\mathalfa@bbscaled mt2hrbdf
    &lt;7-9&gt;\mathalfa@bbscaled mt2hrbds
    &lt;9-&gt;\mathalfa@bbscaled mt2hrbdt}{}%
  \DeclareMathAlphabet{\mathbb}  {U}{mthrb}{\mathalfa@bbm}{n}
  \ifmathalfa@bbb\else  
    \SetMathAlphabet{\mathbb}{bold}{U}{mthrb}{b}{n}
    \DeclareMathAlphabet{\mathbfbb} {U}{mthrb}{b}{n}
  \fi
\or % pazo
  \ifmathalfa@bbb\mathalpha@boldError{pazo}{bb}\fi
  \DeclareFontFamily{U}{fplmbb}{}
  \DeclareFontShape{U}{fplmbb}{m}{n}{
    &lt;-&gt;\mathalfa@bbscaled fplmbb}{}
  \DeclareMathAlphabet{\mathbb}  {U}{fplmbb}{m}{n}
\or % fourier
  \ifmathalfa@bbb\mathalpha@boldError{fourier}{bb}\fi
  \DeclareFontFamily{U}{futm}{}
  \DeclareFontShape{U}{futm}{m}{n}{
    &lt;-&gt; \mathalfa@bbscaled fourier-bb}{}
  \DeclareMathAlphabet{\mathbb}{U}{futm}{m}{n}% should this be a symbol font?
\or % esstix
  \ifmathalfa@bbb\mathalpha@boldError{esstix}{bb}\fi
  \DeclareFontFamily{U}{esstixbb}{\skewchar \font =45}
  \DeclareFontShape{U}{esstixbb}{m}{n}{
    &lt;-&gt; \mathalfa@bbscaled esstixbb}{}
  \DeclareMathAlphabet{\mathbb}{U}{esstixbb}{m}{n}
\or %boondox
  \DeclareFontFamily{U}{BOONDOX-ds}{\skewchar \font =45}
  \DeclareFontShape{U}{BOONDOX-ds}{m}{n}{
    &lt;-&gt; \mathalfa@bbscaled  BOONDOX-r-ds}{}
  \DeclareFontShape{U}{BOONDOX-ds}{b}{n}{
    &lt;-&gt; \mathalfa@bbscaled  BOONDOX-b-ds}{}
  \DeclareMathAlphabet{\mathbb}{U}{BOONDOX-ds}{\mathalfa@bbm}{n}
  \ifmathalfa@bbb\else%
    \SetMathAlphabet{\mathbb}{bold}{U}{BOONDOX-ds}{b}{n}
    \DeclareMathAlphabet{\mathbfbb} {U}{BOONDOX-ds}{b}{n}
  \fi
\or %px
  %\usepackage[scaled=\mathalfa@bbscaled]{px-ds} % has dotlessi, j
  \DeclareFontFamily{U}{px-math-ds}{\skewchar \font =45}% double-struck
  \DeclareFontShape{U}{px-math-ds}{m}{n}{
   &lt;-&gt; \mathalfa@bbscaled  pxr-ds}{}
  \DeclareFontShape{U}{px-math-ds}{b}{n}{
   &lt;-&gt; \mathalfa@bbscaled  pxb-ds}{}
  \DeclareMathAlphabet{\mathbb}{U}{px-math-ds}{\mathalfa@bbm}{n}
  \ifmathalfa@bbb\else%
    \SetMathAlphabet{\mathbb}{bold}{U}{px-math-ds}{b}{n}
    \DeclareMathAlphabet{\mathbfbb} {U}{px-math-ds}{b}{n}
  \fi
\or %tx
  \ifmathalfa@bbb\mathalpha@boldError{tx}{bb}\fi
  \usepackage[scaled=\mathalfa@bbscaled]{tx-ds} % has dotlessi, j
%  \DeclareFontFamily{U}{tx-math-ds}{\skewchar \font =127}% double-struck
%  \DeclareFontShape{U}{tx-math-ds}{m}{n}{
%   &lt;-&gt; \mathalfa@bbscaled  txr-ds}{}
%  \DeclareMathAlphabet{\mathbb}{U}{tx-math-ds}{m}{n}
\or %txof
  %\usepackage[scaled=\mathalfa@bbscaled]{tx-of}
  \DeclareFontFamily{U}{tx-math-of}{\skewchar \font =45}% openface
  \DeclareFontShape{U}{tx-math-of}{m}{n}{
   &lt;-&gt; \mathalfa@bbscaled  txr-of}{}
  \DeclareFontShape{U}{tx-math-of}{b}{n}{
   &lt;-&gt; \mathalfa@bbscaled  txb-of}{}
  \DeclareMathAlphabet{\mathbb}{U}{tx-math-of}{\mathalfa@bbm}{n}
   \ifmathalfa@bbb\else%
     \SetMathAlphabet{\mathbb}{bold}{U}{tx-math-of}{b}{n}
     \DeclareMathAlphabet{\mathbfbb} {U}{tx-math-of}{b}{n}
   \fi
\or %libus
  \ifmathalfa@bbb\mathalpha@boldError{libus}{bb}\fi
  \DeclareFontFamily{U}{libusbb}{\skewchar\font=127}% 
  \DeclareFontShape{U}{libusbb}{m}{n}{
   &lt;-&gt; \mathalfa@bbscaled  libertinust1-mathbb}{}
  \DeclareMathAlphabet{\mathbb}{U}{libusbb}{m}{n}
\or %dsserif
  \ifmathalfa@bbb
    \ifmathalfa@bbsym
      \usepackage[bbsymbols,bfbb,scaled=\mathalfa@bbrawscaled]{dsserif}
    \else
      \usepackage[bfbb,scaled=\mathalfa@bbrawscaled]{dsserif}
    \fi
  \else % no bfbb
     \ifmathalfa@bbsym
       \usepackage[bbsymbols,scaled=\mathalfa@bbrawscaled]{dsserif}
     \else
       \usepackage[scaled=\mathalfa@bbrawscaled]{dsserif}
     \fi
  \fi
%  \DeclareFontFamily{U}{dsserif}{\skewchar\font=45}% 
%  \DeclareFontShape{U}{dsserif}{m}{n}{
%   &lt;-&gt; \mathalfa@bbscaled  DSSerif}{}
%  \DeclareFontShape{U}{dsserif}{b}{n}{
%   &lt;-&gt; \mathalfa@bbscaled  DSSerif-Bold}{}
%  \DeclareMathAlphabet{\mathbb}{U}{dsserif}{m}{n}
%  \SetMathAlphabet{\mathbb}{bold}{U}{dsserif}{b}{n}
%  \DeclareMathAlphabet{\mathbfbb} {U}{dsserif}{b}{n}
\or % bboldxlight
  %\let\boldx@scaled=\mathalfa@bbscaled
  \ifmathalfa@bbb
    \ifmathalfa@bbsym
      \usepackage[bbsymbols,light,bfbb, scaled=\mathalfa@bbrawscaled]{bboldx}
    \else
      \usepackage[light,bfbb,scaled=\mathalfa@bbrawscaled]{bboldx}
    \fi
  \else
    \ifmathalfa@bbsym
      \usepackage[bbsymbols,light,scaled=\mathalfa@bbrawscaled]{bboldx}
    \else
      \usepackage[light,scaled=\mathalfa@bbrawscaled]{bboldx}
    \fi
  \fi
\or % bboldx
  %\let\boldx@scaled=\mathalfa@bbscaled
  \ifmathalfa@bbb
    \ifmathalfa@bbsym
      \usepackage[bbsymbols,bfbb, scaled=\mathalfa@bbrawscaled]{bboldx}
    \else
      \usepackage[bfbb,scaled=\mathalfa@bbrawscaled]{bboldx}
    \fi
  \else
    \ifmathalfa@bbsym
      \usepackage[bbsymbols,scaled=\mathalfa@bbrawscaled]{bboldx}
    \else
      \usepackage[scaled=\mathalfa@bbrawscaled]{bboldx}
    \fi
  \fi
\or % dsfontserif
  \ifmathalfa@bbb\mathalpha@boldError{dsfontserif}{bb}\fi
  \DeclareFontFamily{U}{dsrom}{}
  \DeclareFontShape{U}{dsrom}{m}{n}{
  &lt;-10&gt; \mathalfa@bbscaled  dsrom8
  &lt;10-12&gt; \mathalfa@bbscaled  dsrom10
  &lt;12-&gt; \mathalfa@bbscaled  dsrom12}{}
  \DeclareMathAlphabet{\mathbb}{U}{dsrom}{m}{n}
\or % dsfontsans
  \ifmathalfa@bbb\mathalpha@boldError{dsfontsans}{bb}\fi
  \DeclareFontFamily{U}{dsss}{}
  \DeclareFontShape{U}{dsss}{m}{n}{
  &lt;-10&gt; \mathalfa@bbscaled  dsss8
  &lt;10-12&gt; \mathalfa@bbscaled  dsss10
  &lt;12-&gt; \mathalfa@bbscaled  dsss12}{}
  \DeclareMathAlphabet{\mathbb}{U}{dsss}{m}{n}
\or % stixtwo
  \ifmathalfa@bbb\mathalpha@boldError{stixtwo}{bb}\fi
  \DeclareFontFamily{U}{stixtwobb}{\skewchar\font=45}% 
  \DeclareFontShape{U}{stixtwobb}{m}{n}{
   &lt;-&gt; \mathalfa@bbscaled  stix2-mathbb}{}
  \DeclareFontSubstitution{U}{stixtwobb}{m}{n}
  \ifmathalfa@bbsym
    \DeclareSymbolFont{stixtwobbr}{U}{stixtwobb}{m}{n}
    %\DeclareMathAlphabet{\mathbb}{U}{stixtwobb}{m}{n}  
    \DeclareSymbolFontAlphabet{\mathbb}{stixtwobbr}
    \DeclareMathSymbol{\bbGamma}{\mathord}{stixtwobbr}{0}
    \DeclareMathSymbol{\bbPi}{\mathord}{stixtwobbr}{5}
    \DeclareMathSymbol{\bbgamma}{\mathord}{stixtwobbr}{13}
    \DeclareMathSymbol{\bbpi}{\mathord}{stixtwobbr}{25}
    \DeclareMathSymbol{\bbdotlessi}{\mathord}{stixtwobbr}{123}
    \DeclareMathSymbol{\bbdotlessj}{\mathord}{stixtwobbr}{124}
    \let\imathbb\bbdotlessi
    \let\jmathbb\bbdotlessj
  \else % load symbols as text objects
    \DeclareMathAlphabet{\mathbb}{U}{stixtwobb}{m}{n}
    \def\txtbbGamma{{\usefont{U}{stixtwobb}{m}{n}\char0 }}
    \def\txtbbgamma{{\usefont{U}{stixtwobb}{m}{n}\char13 }}
    \def\txtbbPi{{\usefont{U}{stixtwobb}{m}{n}\char5 }}
    \def\txtbbpi{{\usefont{U}{stixtwobb}{m}{n}\char25 }}
    \def\txtbbdotlessi{{\usefont{U}{stixtwobb}{m}{n}\char123 }}
    \def\txtbbdotlessj{{\usefont{U}{stixtwobb}{m}{n}\char124 }}
    \def\txtbbzero{{\usefont{U}{stixtwobb}{m}{n}0}}
    \def\txtbbone{{\usefont{U}{stixtwobb}{m}{n}1}}
    \def\txtbbtwo{{\usefont{U}{stixtwobb}{m}{n}2}}
    \def\txtbbthree{{\usefont{U}{stixtwobb}{m}{n}3}}
    \def\txtbbfour{{\usefont{U}{stixtwobb}{m}{n}4}}
    \def\txtbbfive{{\usefont{U}{stixtwobb}{m}{n}5}}
    \def\txtbbsix{{\usefont{U}{stixtwobb}{m}{n}6}}
    \def\txtbbseven{{\usefont{U}{stixtwobb}{m}{n}7}}
    \def\txtbbeight{{\usefont{U}{stixtwobb}{m}{n}8}}
    \def\txtbbnine{{\usefont{U}{stixtwobb}{m}{n}9}}
  \fi    
    
\or % stix
  \DeclareFontFamily{U}{stixonebb}{\skewchar\font=45}% 
  \DeclareFontShape{U}{stixonebb}{m}{n}{
   &lt;-&gt; \mathalfa@bbscaled  stix-mathbb}{}
  \DeclareFontShape{U}{stixonebb}{m}{it}{
    &lt;-&gt; \mathalfa@bbscaled  stix-mathbbit}{}
  \DeclareFontShape{U}{stixonebb}{b}{n}{
    &lt;-&gt; \mathalfa@bbscaled  stix-mathbb-bold}{}
  \DeclareFontShape{U}{stixonebb}{b}{it}{
    &lt;-&gt; \mathalfa@bbscaled  stix-mathbbit-bold}{}
  \DeclareFontSubstitution{U}{stixonebb}{m}{n}
  \ifmathalfa@bbsym
    \DeclareSymbolFont{stixonebbr}{U}{stixonebb}{\mathalfa@bbm}{n}
    \DeclareSymbolFont{stixonebbi}{U}{stixonebb}{\mathalfa@bbm}{it}
    \DeclareSymbolFontAlphabet{\mathbb}{stixonebbr}
    \DeclareSymbolFontAlphabet{\mathbbi}{stixonebbi}
    \ifmathalfa@bbb\else%
      \SetSymbolFont{stixonebbr}{bold}{U}{stixonebb}{b}{n}
      \SetSymbolFont{stixonebbi}{bold}{U}{stixonebb}{b}{it}
      \DeclareMathAlphabet{\mathbfbbi}{U}{stixonebb}{b}{it}
      \DeclareMathAlphabet{\mathbfbb}{U}{stixonebb}{b}{n}
    \fi
    \DeclareMathSymbol{\bbGamma}{\mathord}{stixonebbr}{0}
    \DeclareMathSymbol{\bbPi}{\mathord}{stixonebbr}{5}
    \DeclareMathSymbol{\bbgamma}{\mathord}{stixonebbr}{13}
    \DeclareMathSymbol{\bbpi}{\mathord}{stixonebbr}{25}
    \DeclareMathSymbol{\bbdotlessi}{\mathord}{stixonebbr}{123}
    \DeclareMathSymbol{\bbdotlessj}{\mathord}{stixonebbr}{124}
    \let\imathbb\bbdotlessi
    \let\jmathbb\bbdotlessj
  \else
    \DeclareMathAlphabet{\mathbb}{U}{stixonebb}{\mathalfa@bbm}{n}
    \DeclareMathAlphabet{\mathbbi}{U}{stixonebb}{\mathalfa@bbm}{it}
    \ifmathalfa@bbb\else%
      \SetMathAlphabet{\mathbb}{bold}{U}{stixonebb}{b}{n}
      \DeclareMathAlphabet{\mathbfbb} {U}{stixonebb}{b}{n}
      \SetMathAlphabet{\mathbbi}{bold}{U}{stixonebb}{b}{it}
      \DeclareMathAlphabet{\mathbfbbi} {U}{stixonebb}{b}{it}
    \fi
    \def\txtbbGamma{{\usefont{U}{stixonebb}{m}{n}\char0 }}
    \def\txtbbgamma{{\usefont{U}{stixonebb}{m}{n}\char13 }}
    \def\txtbbPi{{\usefont{U}{stixonebb}{m}{n}\char5 }}
    \def\txtbbpi{{\usefont{U}{stixonebb}{m}{n}\char25 }}
    \def\txtbbdotlessi{{\usefont{U}{stixonebb}{m}{n}\char123 }}
    \def\txtbbdotlessj{{\usefont{U}{stixonebb}{m}{n}\char124 }}
%    \def\txtbbzero{{\usefont{U}{stixonebb}{m}{n}0}}
%    \def\txtbbone{{\usefont{U}{stixonebb}{m}{n}1}}
%    \def\txtbbtwo{{\usefont{U}{stixonebb}{m}{n}2}}
%    \def\txtbbthree{{\usefont{U}{stixonebb}{m}{n}3}}
%    \def\txtbbfour{{\usefont{U}{stixonebb}{m}{n}4}}
%    \def\txtbbfive{{\usefont{U}{stixonebb}{m}{n}5}}
%    \def\txtbbsix{{\usefont{U}{stixonebb}{m}{n}6}}
%    \def\txtbbseven{{\usefont{U}{stixonebb}{m}{n}7}}
%    \def\txtbbeight{{\usefont{U}{stixonebb}{m}{n}8}}
%    \def\txtbbnine{{\usefont{U}{stixonebb}{m}{n}9}}
  \fi
\or %ncmbbr
 \DeclareFontFamily{U}{ncmbbr}{\skewchar \font =45}
  \DeclareFontShape{U}{ncmbbr}{m}{n}{
    &lt;-&gt; \mathalfa@bbscaled mathalpha-ncmbb-regular}{}
  \DeclareFontShape{U}{ncmbbr}{b}{n}{
    &lt;-&gt; \mathalfa@bbscaled  mathalpha-ncmbb-bold}{}
  \DeclareMathAlphabet{\mathbb}{U}{ncmbbr}{\mathalfa@bbm}{n}
  \ifmathalfa@bbb\else
    \SetMathAlphabet{\mathbb}{bold}{U}{ncmbbr}{b}{n}
    \DeclareMathAlphabet{\mathbfbb} {U}{ncmbbr}{b}{n}
  \fi
\or %ncmbbk
 \DeclareFontFamily{U}{ncmbbk}{\skewchar \font =45}
  \DeclareFontShape{U}{ncmbbk}{m}{n}{
    &lt;-&gt; \mathalfa@bbscaled  mathalpha-ncmbb-book}{}
  \DeclareFontShape{U}{ncmbbk}{b}{n}{
    &lt;-&gt; \mathalfa@bbscaled  mathalpha-ncmbb-bold}{}
  \DeclareMathAlphabet{\mathbb}{U}{ncmbbk}{\mathalfa@bbm}{n}
  \ifmathalfa@bbb\else
    \SetMathAlphabet{\mathbb}{bold}{U}{ncmbbk}{b}{n}
    \DeclareMathAlphabet{\mathbfbb} {U}{ncmbbk}{b}{n}
  \fi



\fi
%%%%%%%%%%%%%%%%%% END \mathbb









%%%%%%%%%%%%%%%%%% START \mathcal
\ifcase\mathalfa@calnr\relax% item 0 of {cm, euler, rsfso, rsfs, lucida, mathpi, mma, mt, mtc, zapfc, esstix, boondox, boondoxo, dutchcal,pxtx,bickham,stix,txupr,boondoxupr}
  \DeclareFontFamily{U}{cmsy}{\skewchar\font48 }
  \DeclareFontShape{U}{cmsy}{m}{n}{%
      &lt;-5.5&gt;\mathalfa@calscaled cmsy5%
      &lt;5.5-6.5&gt;\mathalfa@calscaled cmsy6%
      &lt;6.5-7.5&gt;\mathalfa@calscaled cmsy7%
      &lt;7.5-8.5&gt;\mathalfa@calscaled cmsy8%
      &lt;8.5-9.5&gt;\mathalfa@calscaled cmsy9%
      &lt;9.5-&gt;\mathalfa@calscaled cmsy10}{}
  \DeclareFontShape{U}{cmsy}{b}{n}{%
      &lt;-5.5&gt;\mathalfa@calscaled cmbsy5%
      &lt;5.5-6.5&gt;\mathalfa@calscaled cmbsy6%
      &lt;6.5-7.5&gt;\mathalfa@calscaled cmbsy7%
      &lt;7.5-8.5&gt;\mathalfa@calscaled cmbsy8%
      &lt;8.5-9.5&gt;\mathalfa@calscaled cmbsy9%
      &lt;9.5-&gt;\mathalfa@calscaled cmbsy10}{}
  \DeclareMathAlphabet{\mathcal}  {U}{cmsy}{\mathalfa@calm}{n}
  \ifmathalfa@bcal\else%
    \SetMathAlphabet{\mathcal}{bold}{U}{cmsy}{b}{n}
    \DeclareMathAlphabet{\mathbfcal} {U}{cmsy}{b}{n}
  \fi
\or % euler
  \DeclareFontFamily{U}{eus}{\skewchar\font'60}
  \DeclareFontShape{U}{eus}{m}{n}{&lt;-6&gt;\mathalfa@calscaled eusm5
    &lt;6-8&gt;\mathalfa@calscaled eusm7
    &lt;8-&gt;\mathalfa@calscaled eusm10}{}
  \DeclareFontShape{U}{eus}{b}{n}{&lt;-6&gt;\mathalfa@calscaled eusb5
    &lt;6-8&gt;\mathalfa@calscaled eusb7
    &lt;8-&gt;\mathalfa@calscaled eusb10}{}
  \DeclareMathAlphabet{\mathcal}  {U}{eus}{\mathalfa@calm}{n}
  \ifmathalfa@bcal\else%
    \SetMathAlphabet{\mathcal}{bold}{U}{eus}{b}{n}
    \DeclareMathAlphabet{\mathbfcal} {U}{eus}{b}{n}
  \fi
\or % rsfso
   \ifmathalfa@bcal\mathalpha@boldError{rsfso}{cal}\fi
   \DeclareFontFamily{U}{rsfso}{\skewchar \font =45}
   \DeclareFontShape{U}{rsfso}{m}{n}{
     &lt;-6&gt; \mathalfa@calscaled  rsfso5
     &lt;6-8&gt; \mathalfa@calscaled  rsfso7
     &lt;8-&gt; \mathalfa@calscaled  rsfso10}{}
   \DeclareMathAlphabet{\mathcal}{U}{rsfso}{m}{n}
\or % rsfs
   \ifmathalfa@bcal\mathalpha@boldError{rsfs}{cal}\fi
   \DeclareFontFamily{U}{rsfs}{\skewchar\font127 }
   \DeclareFontShape{U}{rsfs}{m}{n}{%
     &lt;-6&gt;\mathalfa@calscaled rsfs5%
     &lt;6-8&gt;\mathalfa@calscaled rsfs7%
     &lt;8-&gt;\mathalfa@calscaled rsfs10}{}
   \DeclareMathAlphabet{\mathcal}{U}{rsfs}{m}{n}
\or % lucida
  \iflucid@loaded \PackageError{mathalpha}{Do not use lucida as an option to mathalpha after loading a lucida package}{}\fi
  \DeclareFontFamily{OMS}{lbm}{\skewchar\font48}
  \DeclareFontShape{OMS}{lbm}{m}{n}{&lt;-&gt;\mathalfa@calscaled hlcry}{}
  \DeclareFontShape{OMS}{lbm}{b}{n}{&lt;-&gt;\mathalfa@calscaled hlcdy}{}  
  \DeclareMathAlphabet{\mathcal}  {OMS}{lbm}{\mathalfa@calm}{n}
  \ifmathalfa@bcal\else%
    \SetMathAlphabet{\mathcal}{bold}{OMS}{lbm}{b}{n}
    \DeclareMathAlphabet{\mathbfcal} {OMS}{lbm}{b}{n}
  \fi
\or % mathpi
  \ifmathalfa@bcal\mathalpha@boldError{mathpi}{cal}\fi
  \DeclareFontFamily{U}{mathpical}{\skewchar \font =45}
  \DeclareFontShape{U}{mathpical}{m}{n}{
     &lt;-&gt; \mathalfa@calscaled  mathpical}{}
  \DeclareMathAlphabet{\mathcal}{U}{mathpical}{m}{n}
\or % mma
   \DeclareFontFamily{U}{mmamcal}{\skewchar \font =45}
   \DeclareFontShape{U}{mmamcal}{m}{n}{
      &lt;-&gt; \mathalfa@calscaled  mmamcal}{}
   \DeclareFontShape{U}{mmamcal}{b}{n}{
      &lt;-&gt; \mathalfa@calscaled  mmambcal}{}
  \DeclareMathAlphabet{\mathcal}{U}{mmamcal}{\mathalfa@calm}{n}
  \ifmathalfa@bcal\else%
    \SetMathAlphabet{\mathcal}{bold}{U}{mmamcal}{b}{n}
    \DeclareMathAlphabet{\mathbfcal} {U}{mmamcal}{b}{n}
  \fi
\or % mt
   \@ifpackageloaded{mtpro2}{\mtp@loadedError}{}
   \DeclareFontFamily{U}{mt2ms}{\skewchar\font42}%
%   \DeclareFontShape{U}{mt2ms}{m}{n}{&lt;-7&gt;\mathalfa@calscaled mt2mcf%
%     &lt;7-9&gt;\mathalfa@calscaled mt2mcs%
%      &lt;9-&gt;\mathalfa@calscaled mt2mct}{}%
   \DeclareFontShape{U}{mt2ms}{m}{it}{&lt;-7&gt;\mathalfa@calscaled mt2msf%
     &lt;7-9&gt;\mathalfa@calscaled mt2mss%
     &lt;9-&gt;\mathalfa@calscaled mt2mst}{}%
   \DeclareFontShape{U}{mt2ms}{b}{it}{&lt;-7&gt;\mathalfa@calscaled mt2bmsf%
     &lt;7-9&gt;\mathalfa@calscaled mt2bmss%
     &lt;9-&gt;\mathalfa@calscaled mt2bmst}{}%
   \DeclareMathAlphabet{\mathcal}  {U}{mt2ms}{\mathalfa@calm}{it}
   \ifmathalfa@bcal\else%
     \SetMathAlphabet{\mathcal}{bold}{U}{mt2ms}{b}{it}
     \DeclareMathAlphabet{\mathbfcal} {U}{mt2ms}{b}{it} 
   \fi 
\or % mtc
   \ifmathalfa@bcal\mathalpha@boldError{mtc}{cal}\fi
   \@ifpackageloaded{mtpro2}{\mtp@loadedError}{}
   \DeclareFontFamily{U}{mt2ms}{\skewchar\font42}%
   \DeclareFontShape{U}{mt2ms}{m}{n}{&lt;-7&gt;\mathalfa@calscaled mt2mcf%
     &lt;7-9&gt;\mathalfa@calscaled mt2mcs%
     &lt;9-&gt;\mathalfa@calscaled mt2mct}{}%
   \DeclareMathAlphabet{\mathcal}  {U}{mt2ms}{m}{n}
\or % zapfc
  \ifmathalfa@bcal\mathalpha@boldError{zapfc}{cal}\fi
  \DeclareFontFamily{U}{urwchancal}{\skewchar \font =45}
  \DeclareFontShape{U}{urwchancal}{m}{n}{%
     &lt;-&gt; \mathalfa@calscaled  urwchancal}{}
  \DeclareMathAlphabet{\mathcal}{U}{urwchancal}{m}{n}%
\or % esstix
   \ifmathalfa@bcal\mathalpha@boldError{esstix}{cal}\fi
   \DeclareFontFamily{U}{esstixcal}{\skewchar \font =45}
   \DeclareFontShape{U}{esstixcal}{m}{n}{
     &lt;-&gt; \mathalfa@calscaled  esstixcal}{}
   \DeclareMathAlphabet{\mathcal}{U}{esstixcal}{m}{n}
\or %boondox
  \DeclareFontFamily{U}{BOONDOX-cal}{\skewchar \font =45}
  \DeclareFontShape{U}{BOONDOX-cal}{m}{n}{
    &lt;-&gt; \mathalfa@calscaled  BOONDOX-r-cal}{}
  \DeclareFontShape{U}{BOONDOX-cal}{b}{n}{
    &lt;-&gt; \mathalfa@calscaled  BOONDOX-b-cal}{}
  \DeclareMathAlphabet{\mathcal}{U}{BOONDOX-cal}{\mathalfa@calm}{n}
  \ifmathalfa@bcal\else%
    \SetMathAlphabet{\mathcal}{bold}{U}{BOONDOX-cal}{b}{n}
    \DeclareMathAlphabet{\mathbfcal} {U}{BOONDOX-cal}{b}{n}
  \fi
\or %boondoxo
  \DeclareFontFamily{U}{BOONDOX-calo}{\skewchar \font =45}
  \DeclareFontShape{U}{BOONDOX-calo}{m}{n}{
    &lt;-&gt; \mathalfa@calscaled  BOONDOX-r-calo}{}
  \DeclareFontShape{U}{BOONDOX-calo}{b}{n}{
    &lt;-&gt; \mathalfa@calscaled  BOONDOX-b-calo}{}
  \DeclareMathAlphabet{\mathcal}{U}{BOONDOX-calo}{\mathalfa@calm}{n}
  \ifmathalfa@bcal\else%
    \SetMathAlphabet{\mathcal}{bold}{U}{BOONDOX-calo}{b}{n}
    \DeclareMathAlphabet{\mathbfcal} {U}{BOONDOX-calo}{b}{n}
  \fi
\or %dutchcal
  \DeclareFontFamily{U}{dutchcal}{\skewchar \font =45}
  \DeclareFontShape{U}{dutchcal}{m}{n}{
    &lt;-&gt; \mathalfa@calscaled  dutchcal-r}{}
  \DeclareFontShape{U}{dutchcal}{b}{n}{
    &lt;-&gt; \mathalfa@calscaled  dutchcal-b}{}
  \DeclareMathAlphabet{\mathcal}{U}{dutchcal}{\mathalfa@calm}{n}
  \ifmathalfa@bcal\else%
     \SetMathAlphabet{\mathcal}{bold}{U}{dutchcal}{b}{n}
     \DeclareMathAlphabet{\mathbfcal} {U}{dutchcal}{b}{n}
   \fi
\or %pxtx
  \DeclareFontFamily{U}{txcal}{\skewchar \font =45}
  \DeclareFontShape{U}{txcal}{m}{n}{
    &lt;-&gt; \mathalfa@calscaled  txr-cal}{}
  \DeclareFontShape{U}{txcal}{b}{n}{
    &lt;-&gt; \mathalfa@calscaled  txb-cal}{}
  \DeclareMathAlphabet{\mathcal}{U}{txcal}{\mathalfa@calm}{n}
  \ifmathalfa@bcal\else%
    \SetMathAlphabet{\mathcal}{bold}{U}{txcal}{b}{n}
    \DeclareMathAlphabet{\mathbfcal} {U}{txcal}{b}{n}
  \fi
\or %bickham
  \DeclareFontFamily{U}{bickhamcal}{\skewchar \font =45}
  \DeclareFontShape{U}{bickhamcal}{m}{n}{
    &lt;-&gt; \mathalfa@calscaled  bickham-r}{}
  \DeclareFontShape{U}{bickhamcal}{b}{n}{
    &lt;-&gt; \mathalfa@calscaled  bickham-b}{}
  \DeclareMathAlphabet{\mathcal}{U}{bickhamcal}{\mathalfa@calm}{n}
  \ifmathalfa@bcal\else%
    \SetMathAlphabet{\mathcal}{bold}{U}{bickhamcal}{b}{n}
    \DeclareMathAlphabet{\mathbfcal} {U}{bickhamcal}{b}{n}
  \fi
\or %bickhams
  %\let\bickham@scale=\mathalfa@calscaled
  \DeclareFontFamily{U}{bickhamcal}{\skewchar \font =45}
  \DeclareFontShape{U}{bickhamcal}{m}{n}{
    &lt;-&gt; \mathalfa@calscaled  bickham-s}{}
  \DeclareFontShape{U}{bickhamcal}{b}{n}{
    &lt;-&gt; \mathalfa@calscaled  bickham-b}{}
  \DeclareMathAlphabet{\mathcal}{U}{bickhamcal}{\mathalfa@calm}{n}
  \ifmathalfa@bcal\else%
    \SetMathAlphabet{\mathcal}{bold}{U}{bickhamcal}{b}{n}
    \DeclareMathAlphabet{\mathbfcal} {U}{bickhamcal}{b}{n}
  \fi
\or %stix
  \DeclareFontFamily{U}{stixcal}{\skewchar\font127 }
  \DeclareFontShape{U}{stixcal}{m}{n} {&lt;-&gt; \mathalfa@calscaled stix-mathcal}{}
  \DeclareFontShape{U}{stixcal}{b}{n} {&lt;-&gt; \mathalfa@calscaled stix-mathcal-bold}{}
  \DeclareMathAlphabet{\mathcal}{U}{stixcal}{\mathalfa@calm}{n}
  \ifmathalfa@bcal\else%
    \SetMathAlphabet{\mathcal}{bold}{U}{stixcal}{b}{n}
    \DeclareMathAlphabet{\mathbfcal} {U}{stixcal}{b}{n}
  \fi
\or %txupr
  \DeclareFontFamily{U}{TXuprcal}{\skewchar \font =45}
  \DeclareFontShape{U}{TXuprcal}{m}{n}{
    &lt;-&gt; \mathalfa@calscaled  txUprCal-Regular}{}
  \DeclareFontShape{U}{TXuprcal}{b}{n}{
    &lt;-&gt; \mathalfa@calscaled  txUprCal-Bold}{}
  \DeclareMathAlphabet{\mathcal}{U}{TXuprcal}{\mathalfa@calm}{n}
  \ifmathalfa@bcal\else%
    \SetMathAlphabet{\mathcal}{bold}{U}{TXuprcal}{b}{n}
    \DeclareMathAlphabet{\mathbfcal}{U}{TXuprcal}{b}{n}
  \fi
\or %boondoxupr
  \DeclareFontFamily{U}{boondoxuprcal}{\skewchar \font =45}
  \DeclareFontShape{U}{boondoxuprcal}{m}{n}{
    &lt;-&gt; \mathalfa@calscaled  BOONDOXUprScr-Regular}{}
  \DeclareFontShape{U}{boondoxuprcal}{b}{n}{
    &lt;-&gt; \mathalfa@calscaled  BOONDOXUprScr-Bold}{}
  \DeclareMathAlphabet{\mathcal}{U}{boondoxuprcal}{\mathalfa@calm}{n}
  \ifmathalfa@bcal\else%
    \SetMathAlphabet{\mathcal}{bold}{U}{boondoxuprcal}{b}{n}
    \DeclareMathAlphabet{\mathbfcal}{U}{boondoxuprcal}{b}{n}
  \fi
\or % kp
  \DeclareFontFamily{U}{jkpsyd}{\skewchar\font =0}
  \DeclareFontShape{U}{jkpsyd}{m}{n}{
   &lt;-&gt; \mathalfa@calscaled  jkpsyd%
  }{}
  \DeclareFontShape{U}{jkpsyd}{b}{n}{
   &lt;-&gt; \mathalfa@calscaled  jkpbsyd%
  }{}
  \DeclareMathAlphabet{\mathcal}{U}{jkpsyd}{\mathalfa@calm}{n}
  \ifmathalfa@bcal\else%
    \SetMathAlphabet{\mathcal}{bold}{U}{jkpsyd}{b}{n}
    \DeclareMathAlphabet{\mathbfcal}{U}{jkpsyd}{b}{n}
  \fi
\or % stixplain
  \DeclareFontFamily{U}{stixplain}{\skewchar\font =127}
  \DeclareFontShape{U}{stixplain}{m}{n} {
	&lt;-&gt; \mathalfa@calscaled stix-mathcal}{}
  \DeclareFontShape{U}{stixplain}{b}{n} {
	&lt;-&gt; \mathalfa@calscaled stix-mathcal-bold}{}
  \DeclareMathAlphabet{\mathcal}{U}{stixplain}{\mathalfa@calm}{n}
  \ifmathalfa@bcal\else%
    \SetMathAlphabet{\mathcal}{bold}{U}{stixplain}{b}{n}
    \DeclareMathAlphabet{\mathbfcal}{U}{stixplain}{b}{n}
  \fi
\or % stixfancy
  \DeclareFontFamily{U}{stixfancy}{\skewchar\font =127}
  \DeclareFontShape{U}{stixfancy}{m}{n} {
	&lt;-&gt; \mathalfa@calscaled stix-mathscr}{}
  \DeclareFontShape{U}{stixfancy}{b}{n} {
	&lt;-&gt; \mathalfa@calscaled stix-mathscr-bold}{}
  \DeclareMathAlphabet{\mathcal}{U}{stixfancy}{\mathalfa@calm}{n}
  \ifmathalfa@bcal\else%
    \SetMathAlphabet{\mathcal}{bold}{U}{stixfancy}{b}{n}
    \DeclareMathAlphabet{\mathbfcal}{U}{stixfancy}{b}{n}
  \fi
\or % stixtwoplain
  \DeclareFontFamily{U}{stixtwoplain}{\skewchar\font =127}
  \DeclareFontShape{U}{stixtwoplain}{m}{n} {
	&lt;-&gt; \mathalfa@calscaled stix2-mathcal}{}
  \DeclareFontShape{U}{stixtwoplain}{b}{n} {
	&lt;-&gt; \mathalfa@calscaled stix2-mathcal-bold}{}
  \DeclareMathAlphabet{\mathcal}{U}{stixtwoplain}{\mathalfa@calm}{n}
  \ifmathalfa@bcal\else%
    \SetMathAlphabet{\mathcal}{bold}{U}{stixtwoplain}{b}{n}
    \DeclareMathAlphabet{\mathbfcal}{U}{stixtwoplain}{b}{n}
  \fi
\or % stixtwofancy
  \DeclareFontFamily{U}{stixtwofancy}{\skewchar\font =127}
  \DeclareFontShape{U}{stixtwofancy}{m}{n} {
	&lt;-&gt; \mathalfa@calscaled stix2-mathscr}{}
  \DeclareFontShape{U}{stixtwofancy}{b}{n} {
	&lt;-&gt; \mathalfa@calscaled stix2-mathscr-bold}{}
  \DeclareMathAlphabet{\mathcal}{U}{stixtwofancy}{\mathalfa@calm}{n}
  \ifmathalfa@bcal\else%
    \SetMathAlphabet{\mathcal}{bold}{U}{stixtwofancy}{b}{n}
    \DeclareMathAlphabet{\mathbfcal}{U}{stixtwofancy}{b}{n}
  \fi
\fi
%%%%%%%%%%%%%%%%%% END \mathcal








%%%%%%%%%%%%%%%%%% START \mathfrak
%
\ifcase\mathalfa@fraknr\relax% item 0 of {euler, lucida, mathpi, mma, mt, esstix, boondox, pxtx}
% euler
  \DeclareFontFamily{U}{euf}{}%
  \DeclareFontShape{U}{euf}{m}{n}{
     &lt;-7&gt;\mathalfa@frakscaled eufm5
     &lt;7-9&gt;\mathalfa@frakscaled eufm7
     &lt;9-&gt;\mathalfa@frakscaled eufm10}{}%
  \DeclareFontShape{U}{euf}{b}{n}{&lt;-7&gt;\mathalfa@frakscaled eufb5
     &lt;7-9&gt;\mathalfa@frakscaled eufb7
     &lt;9-&gt;\mathalfa@frakscaled eufb10}{}%
  \DeclareMathAlphabet{\mathfrak}{U}{euf}{m}{n}
  \ifmathalfa@bfrak\else%
    \SetMathAlphabet{\mathfrak}{bold}{U}{euf}{b}{n}
    \DeclareMathAlphabet{\mathbffrak}{U}{euf}{b}{n}
  \fi
\or % lucida
  \iflucid@loaded \PackageError{mathalpha}{Do not use lucida as an option to mathalpha after loading a lucida package}{}\fi
   \ifmathalfa@bbb\mathalpha@boldError{lucida}{frak}\fi
  \DeclareFontFamily{U}{hlcf}{}
  \DeclareFontShape{U}{hlcf}{m}{n}{
    &lt;-&gt;\mathalfa@frakscaled hlcrf8r}{}
   \DeclareMathAlphabet{\mathfrak}{U}{hlcf}{m}{n}
\or % mathpi
  \ifmathalfa@bbb\mathalpha@boldError{mathpi}{frak}\fi
  \DeclareFontFamily{U}{mathpifrak}{\skewchar \font =45}
  \DeclareFontShape{U}{mathpifrak}{m}{n}{
    &lt;-&gt; \mathalfa@frakscaled mathpifrak}{}
  \DeclareMathAlphabet{\mathfrak}{U}{mathpifrak}{m}{n}
\or % mma
  \DeclareFontFamily{U}{mmamfrak}{\skewchar \font =45}
  \DeclareFontShape{U}{mmamfrak}{m}{n}{
    &lt;-&gt; \mathalfa@frakscaled  mmamfrak}{}
  \DeclareFontShape{U}{mmamfrak}{b}{n}{
    &lt;-&gt; \mathalfa@frakscaled  mmambfrak}{}
  \DeclareMathAlphabet{\mathfrak}{U}{mmamfrak}{m}{n}
  \ifmathalfa@bfrak\else%
    \SetMathAlphabet{\mathfrak}{bold}{U}{mmamfrak}{b}{n}
    \DeclareMathAlphabet{\mathbffrak}{U}{mmamfrak}{b}{n}
  \fi
\or % mt
  %\@ifpackageloaded{mtpro2}{\mtp@loadedError}{} %allow use with mtpro2
  \DeclareFontFamily{U}{mt2mf}{}%
  \DeclareFontShape{U}{mt2mf}{m}{n}{&lt;-7&gt;\mathalfa@frakscaled mt2mff%
    &lt;7-9&gt;\mathalfa@frakscaled mt2mfs%
    &lt;9-&gt;\mathalfa@frakscaled mt2mft}{}%
  \DeclareFontShape{U}{mt2mf}{b}{n}{&lt;-7&gt;\mathalfa@frakscaled mt2bmff%
    &lt;7-9&gt;\mathalfa@frakscaled mt2bmfs%
    &lt;9-&gt;\mathalfa@frakscaled mt2bmft}{}%
  \DeclareMathAlphabet{\mathfrak}{U}{mt2mf}{m}{n}
  \ifmathalfa@bfrak\else%
    \SetMathAlphabet{\mathfrak}{bold}{U}{mt2mf}{b}{n}
    \DeclareMathAlphabet{\mathbffrak}{U}{mt2mf}{b}{n}
  \fi
\or % esstix
  \ifmathalfa@bbb\mathalpha@boldError{esstix}{frak}\fi
  \DeclareFontFamily{U}{esstixfrak}{\skewchar \font =45}
  \DeclareFontShape{U}{esstixfrak}{m}{n}{
    &lt;-&gt; \mathalfa@frakscaled esstixfrak}{}
  \DeclareMathAlphabet{\mathfrak}{U}{esstixfrak}{m}{n}
\or % boondox
  \DeclareFontFamily{U}{BOONDOX-frak}{\skewchar \font =45}
  \DeclareFontShape{U}{BOONDOX-frak}{m}{n}{
    &lt;-&gt; \mathalfa@frakscaled  BOONDOX-r-frak}{}
  \DeclareFontShape{U}{BOONDOX-frak}{b}{n}{
    &lt;-&gt; \mathalfa@frakscaled  BOONDOX-b-frak}{}
  \DeclareMathAlphabet{\mathfrak}{U}{BOONDOX-frak}{m}{n}
  \ifmathalfa@bfrak\else%
    \SetMathAlphabet{\mathfrak}{bold}{U}{BOONDOX-frak}{b}{n}
    \DeclareMathAlphabet{\mathbffrak} {U}{BOONDOX-frak}{b}{n}
  \fi
\or % pxtx
  \DeclareFontFamily{U}{txfrak}{\skewchar \font =127}
  \DeclareFontShape{U}{txfrak}{m}{n}{
    &lt;-&gt; \mathalfa@frakscaled  txr-frak}{}
  \DeclareFontShape{U}{txfrak}{b}{n}{
    &lt;-&gt; \mathalfa@frakscaled  txb-frak}{}
  \DeclareMathAlphabet{\mathfrak}{U}{txfrak}{\mathalfa@frakm}{n}
  \ifmathalfa@bfrak\else%
    \SetMathAlphabet{\mathfrak}{bold}{U}{txfrak}{b}{n}
    \DeclareMathAlphabet{\mathbffrak} {U}{txfrak}{b}{n}
  \fi
\or % stixtwo
  \DeclareFontFamily{U}{stix2frak}{\skewchar\font127 }
  \DeclareFontShape{U}{stix2frak}{m}{n} {
      &lt;-&gt; \mathalfa@frakscaled stix2-mathfrak}{}
  \DeclareFontShape{U}{stix2frak}{b}{n} {
       &lt;-&gt;\mathalfa@frakscaled  stix2-mathfrak-bold}{}
  \DeclareMathAlphabet{\mathfrak}{U}{stix2frak}{m}{n}
  \ifmathalfa@bfrak\else%
    \SetMathAlphabet{\mathfrak}{bold}{U}{stix2frak}{b}{n}
    \DeclareMathAlphabet{\mathbffrak} {U}{stix2frak}{b}{n}
  \fi
\fi
%%%%%%%%%%%%%%%%%% END \mathfrak





%%%%%%%%%%%%%%%%%% START \mathscr
\ifcase\mathalfa@scrnr\relax%
%cm
  \DeclareFontFamily{U}{cmsy}{\skewchar\font48 }
  \DeclareFontShape{U}{cmsy}{m}{n}{%
      &lt;-5.5&gt;\mathalfa@scrscaled cmsy5%
      &lt;5.5-6.5&gt;\mathalfa@scrscaled cmsy6%
      &lt;6.5-7.5&gt;\mathalfa@scrscaled cmsy7%
      &lt;7.5-8.5&gt;\mathalfa@scrscaled cmsy8%
      &lt;8.5-9.5&gt;\mathalfa@scrscaled cmsy9%
      &lt;9.5-&gt;\mathalfa@scrscaled cmsy10}{}
  \DeclareFontShape{U}{cmsy}{b}{n}{%
      &lt;-5.5&gt;\mathalfa@scrscaled cmbsy5%
      &lt;5.5-6.5&gt;\mathalfa@scrscaled cmbsy6%
      &lt;6.5-7.5&gt;\mathalfa@scrscaled cmbsy7%
      &lt;7.5-8.5&gt;\mathalfa@scrscaled cmbsy8%
      &lt;8.5-9.5&gt;\mathalfa@scrscaled cmbsy9%
      &lt;9.5-&gt;\mathalfa@scrscaled cmbsy10}{}
  \DeclareMathAlphabet{\mathscr}  {U}{cmsy}{\mathalfa@scrm}{n}
  \ifmathalfa@bscr\else%
    \SetMathAlphabet{\mathscr}{bold}{U}{cmsy}{b}{n}
    \DeclareMathAlphabet{\mathbfscr} {U}{cmsy}{b}{n}
  \fi
\or % euler
  \DeclareFontFamily{U}{eus}{\skewchar\font'60}
  \DeclareFontShape{U}{eus}{m}{n}{&lt;-6&gt;\mathalfa@scrscaled eusm5
    &lt;6-8&gt;\mathalfa@scrscaled eusm7
    &lt;8-&gt;\mathalfa@scrscaled eusm10}{}
  \DeclareFontShape{U}{eus}{b}{n}{&lt;-6&gt;\mathalfa@scrscaled eusb5
    &lt;6-8&gt;\mathalfa@scrscaled eusb7
    &lt;8-&gt;\mathalfa@scrscaled eusb10}{}
  \DeclareMathAlphabet{\mathscr}  {U}{eus}{\mathalfa@scrm}{n}
  \ifmathalfa@bscr\else%
    \SetMathAlphabet{\mathscr}{bold}{U}{eus}{b}{n}
    \DeclareMathAlphabet{\mathbfscr} {U}{eus}{b}{n}
  \fi
\or % rsfso
   \ifmathalfa@bscr\mathalpha@boldError{rsfso}{scr}\fi
   \DeclareFontFamily{U}{rsfso}{\skewchar \font =45}
   \DeclareFontShape{U}{rsfso}{m}{n}{
     &lt;-6&gt; \mathalfa@scrscaled  rsfso5
     &lt;6-8&gt; \mathalfa@scrscaled  rsfso7
     &lt;8-&gt; \mathalfa@scrscaled  rsfso10}{}
   \DeclareMathAlphabet{\mathscr}{U}{rsfso}{m}{n}
\or % rsfs
   \ifmathalfa@bscr\mathalpha@boldError{rsfs}{scr}\fi
   \DeclareFontFamily{U}{rsfs}{\skewchar\font127 }
   \DeclareFontShape{U}{rsfs}{m}{n}{%
     &lt;-6&gt;\mathalfa@scrscaled rsfs5%
     &lt;6-8&gt;\mathalfa@scrscaled rsfs7%
     &lt;8-&gt;\mathalfa@scrscaled rsfs10}{}
   \DeclareMathAlphabet{\mathscr}{U}{rsfs}{m}{n}
\or % lucida
  \iflucid@loaded \PackageError{mathalpha}{Do not use lucida as an option to mathalpha after loading a lucida package}{}\fi
  \DeclareFontFamily{OMS}{lbm}{\skewchar\font48}
  \DeclareFontShape{OMS}{lbm}{m}{n}{&lt;-&gt;\mathalfa@scrscaled hlcry}{}
  \DeclareFontShape{OMS}{lbm}{b}{n}{&lt;-&gt;\mathalfa@scrscaled hlcdy}{}  
  \DeclareMathAlphabet{\mathscr}  {OMS}{lbm}{\mathalfa@scrm}{n}
  \ifmathalfa@bscr\else%
    \SetMathAlphabet{\mathscr}{bold}{OMS}{lbm}{b}{n}
    \DeclareMathAlphabet{\mathbfscr} {OMS}{lbm}{b}{n}
  \fi
\or % mathpi
  \ifmathalfa@bscr\mathalpha@boldError{mathpi}{scr}\fi
  \DeclareFontFamily{U}{mathpiscr}{\skewchar \font =45}
  \DeclareFontShape{U}{mathpiscr}{m}{n}{
     &lt;-&gt; \mathalfa@scrscaled  mathpical}{}
  \DeclareMathAlphabet{\mathscr}{U}{mathpiscr}{m}{n}
\or % mma
   \DeclareFontFamily{U}{mmamscr}{\skewchar \font =45}
   \DeclareFontShape{U}{mmamscr}{m}{n}{
      &lt;-&gt; \mathalfa@scrscaled  mmamcal}{}
   \DeclareFontShape{U}{mmamscr}{b}{n}{
      &lt;-&gt; \mathalfa@scrscaled  mmambcal}{}
  \DeclareMathAlphabet{\mathscr}{U}{mmamscr}{\mathalfa@scrm}{n}
  \ifmathalfa@bscr\else%
    \SetMathAlphabet{\mathscr}{bold}{U}{mmamscr}{b}{n}
    \DeclareMathAlphabet{\mathbfscr} {U}{mmamscr}{b}{n}
  \fi
\or % mt
   \@ifpackageloaded{mtpro2}{\mtp@loadedError}{}
   \DeclareFontFamily{U}{mt2msc}{\skewchar\font42}%
%   \DeclareFontShape{U}{mt2msc}{m}{n}{&lt;-7&gt;\mathalfa@scrscaled mt2mcf%
%     &lt;7-9&gt;\mathalfa@scrscaled mt2mcs%
%      &lt;9-&gt;\mathalfa@scrscaled mt2mct}{}%
   \DeclareFontShape{U}{mt2msc}{m}{it}{&lt;-7&gt;\mathalfa@scrscaled mt2msf%
     &lt;7-9&gt;\mathalfa@scrscaled mt2mss%
     &lt;9-&gt;\mathalfa@scrscaled mt2mst}{}%
   \DeclareFontShape{U}{mt2msc}{b}{it}{&lt;-7&gt;\mathalfa@scrscaled mt2bmsf%
     &lt;7-9&gt;\mathalfa@scrscaled mt2bmss%
     &lt;9-&gt;\mathalfa@scrscaled mt2bmst}{}%
   \DeclareMathAlphabet{\mathscr}  {U}{mt2msc}{\mathalfa@scrm}{it}
   \ifmathalfa@bscr\else%
     \SetMathAlphabet{\mathscr}{bold}{U}{mt2msc}{b}{it}
     \DeclareMathAlphabet{\mathbfscr} {U}{mt2msc}{b}{it} 
   \fi 
\or % mtc
   \ifmathalfa@bscr\mathalpha@boldError{mtc}{scr}\fi
   \@ifpackageloaded{mtpro2}{\mtp@loadedError}{}
   \DeclareFontFamily{U}{mt2msc}{\skewchar\font42}%
   \DeclareFontShape{U}{mt2msc}{m}{n}{&lt;-7&gt;\mathalfa@scrscaled mt2mcf%
     &lt;7-9&gt;\mathalfa@scrscaled mt2mcs%
     &lt;9-&gt;\mathalfa@scrscaled mt2mct}{}%
   \DeclareMathAlphabet{\mathscr}  {U}{mt2msc}{m}{n}
\or % zapfc
  \ifmathalfa@bscr\mathalpha@boldError{zapfc}{scr}\fi
  \DeclareFontFamily{U}{urwchanscr}{\skewchar \font =45}
  \DeclareFontShape{U}{urwchanscr}{m}{n}{%
     &lt;-&gt; \mathalfa@scrscaled  urwchancal}{}
  \DeclareMathAlphabet{\mathscr}{U}{urwchanscr}{m}{n}%
\or % esstix
   \ifmathalfa@bscr\mathalpha@boldError{esstix}{scr}\fi
   \DeclareFontFamily{U}{esstixscr}{\skewchar \font =45}
   \DeclareFontShape{U}{esstixscr}{m}{n}{
     &lt;-&gt; \mathalfa@scrscaled  esstixcal}{}
   \DeclareMathAlphabet{\mathscr}{U}{esstixscr}{m}{n}
\or %boondox
  \DeclareFontFamily{U}{BOONDOX-scr}{\skewchar \font =45}
  \DeclareFontShape{U}{BOONDOX-scr}{m}{n}{
    &lt;-&gt; \mathalfa@scrscaled  BOONDOX-r-cal}{}
  \DeclareFontShape{U}{BOONDOX-scr}{b}{n}{
    &lt;-&gt; \mathalfa@scrscaled  BOONDOX-b-cal}{}
  \DeclareMathAlphabet{\mathscr}{U}{BOONDOX-scr}{\mathalfa@scrm}{n}
  \ifmathalfa@bscr\else%
    \SetMathAlphabet{\mathscr}{bold}{U}{BOONDOX-scr}{b}{n}
    \DeclareMathAlphabet{\mathbfscr} {U}{BOONDOX-scr}{b}{n}
  \fi
\or %boondoxo
  \DeclareFontFamily{U}{BOONDOX-scro}{\skewchar \font =45}
  \DeclareFontShape{U}{BOONDOX-scro}{m}{n}{
    &lt;-&gt; \mathalfa@scrscaled  BOONDOX-r-calo}{}
  \DeclareFontShape{U}{BOONDOX-scro}{b}{n}{
    &lt;-&gt; \mathalfa@scrscaled  BOONDOX-b-calo}{}
  \DeclareMathAlphabet{\mathscr}{U}{BOONDOX-scro}{\mathalfa@scrm}{n}
  \ifmathalfa@bscr\else%
    \SetMathAlphabet{\mathscr}{bold}{U}{BOONDOX-scro}{b}{n}
    \DeclareMathAlphabet{\mathbfscr} {U}{BOONDOX-scro}{b}{n}
  \fi
\or %dutchcal
  \DeclareFontFamily{U}{dutchscr}{\skewchar \font =45}
  \DeclareFontShape{U}{dutchscr}{m}{n}{
    &lt;-&gt; \mathalfa@scrscaled  dutchcal-r}{}
  \DeclareFontShape{U}{dutchscr}{b}{n}{
    &lt;-&gt; \mathalfa@scrscaled  dutchcal-b}{}
  \DeclareMathAlphabet{\mathscr}{U}{dutchscr}{\mathalfa@scrm}{n}
  \ifmathalfa@bscr\else%
     \SetMathAlphabet{\mathscr}{bold}{U}{dutchscr}{b}{n}
     \DeclareMathAlphabet{\mathbfscr} {U}{dutchscr}{b}{n}
   \fi
\or %pxtx
  \DeclareFontFamily{U}{txscr}{\skewchar \font =45}
  \DeclareFontShape{U}{txscr}{m}{n}{
    &lt;-&gt; \mathalfa@scrscaled  txr-cal}{}
  \DeclareFontShape{U}{txscr}{b}{n}{
    &lt;-&gt; \mathalfa@scrscaled  txb-cal}{}
  \DeclareMathAlphabet{\mathscr}{U}{txscr}{\mathalfa@scrm}{n}
  \ifmathalfa@bscr\else%
    \SetMathAlphabet{\mathscr}{bold}{U}{txscr}{b}{n}
    \DeclareMathAlphabet{\mathbfscr} {U}{txscr}{b}{n}
  \fi
\or %bickham
  \DeclareFontFamily{U}{bickhamscr}{\skewchar \font =45}
  \DeclareFontShape{U}{bickhamscr}{m}{n}{
    &lt;-&gt; \mathalfa@scrscaled  bickham-r}{}
  \DeclareFontShape{U}{bickhamscr}{b}{n}{
    &lt;-&gt; \mathalfa@scrscaled  bickham-b}{}
  \DeclareMathAlphabet{\mathscr}{U}{bickhamscr}{\mathalfa@scrm}{n}
  \ifmathalfa@bscr\else%
    \SetMathAlphabet{\mathscr}{bold}{U}{bickhamscr}{b}{n}
    \DeclareMathAlphabet{\mathbfscr} {U}{bickhamscr}{b}{n}
  \fi
\or %bickhams
  %\let\bickham@scale=\mathalfa@scrscaled
  \DeclareFontFamily{U}{bickhamscr}{\skewchar \font =45}
  \DeclareFontShape{U}{bickhamscr}{m}{n}{
    &lt;-&gt; \mathalfa@scrscaled  bickham-s}{}
  \DeclareFontShape{U}{bickhamscr}{b}{n}{
    &lt;-&gt; \mathalfa@scrscaled  bickham-b}{}
  \DeclareMathAlphabet{\mathscr}{U}{bickhamscr}{\mathalfa@scrm}{n}
  \ifmathalfa@bscr\else%
    \SetMathAlphabet{\mathscr}{bold}{U}{bickhamscr}{b}{n}
    \DeclareMathAlphabet{\mathbfscr} {U}{bickhamscr}{b}{n}
  \fi
\or %stix
  \DeclareFontFamily{U}{stixscr}{\skewchar\font127 }
  \DeclareFontShape{U}{stixscr}{m}{n} {&lt;-&gt; \mathalfa@scrscaled stix-mathcal}{}
  \DeclareFontShape{U}{stixscr}{b}{n} {&lt;-&gt; \mathalfa@scrscaled stix-mathcal-bold}{}
  \DeclareMathAlphabet{\mathscr}{U}{stixscr}{\mathalfa@scrm}{n}
  \ifmathalfa@bscr\else%
    \SetMathAlphabet{\mathscr}{bold}{U}{stixscr}{b}{n}
    \DeclareMathAlphabet{\mathbfscr} {U}{stixscr}{b}{n}
  \fi
\or %txupr
  \DeclareFontFamily{U}{txuprscr}{\skewchar \font =45}
  \DeclareFontShape{U}{txuprscr}{m}{n}{
    &lt;-&gt; \mathalfa@scrscaled  txUprCal-Regular}{}
  \DeclareFontShape{U}{txuprscr}{b}{n}{
    &lt;-&gt; \mathalfa@scrscaled  txUprCal-Bold}{}
  \DeclareMathAlphabet{\mathscr}{U}{txuprscr}{\mathalfa@scrm}{n}
  \ifmathalfa@bscr\else%
    \SetMathAlphabet{\mathscr}{bold}{U}{txuprscr}{b}{n}
    \DeclareMathAlphabet{\mathbfscr}{U}{txuprscr}{b}{n}
  \fi
\or %boondoxupr
  \DeclareFontFamily{U}{boondoxuprs}{\skewchar \font =45}
  \DeclareFontShape{U}{boondoxuprs}{m}{n}{
    &lt;-&gt; \mathalfa@scrscaled  BOONDOXUprScr-Regular}{}
  \DeclareFontShape{U}{boondoxuprs}{b}{n}{
    &lt;-&gt; \mathalfa@scrscaled  BOONDOXUprScr-Bold}{}
  \DeclareMathAlphabet{\mathscr}{U}{boondoxuprs}{\mathalfa@scrm}{n}
  \ifmathalfa@bscr\else%
    \SetMathAlphabet{\mathscr}{bold}{U}{boondoxuprs}{b}{n}
    \DeclareMathAlphabet{\mathbfscr}{U}{boondoxuprs}{b}{n}
  \fi
\or % kp
  \DeclareFontFamily{U}{jkpsyd}{\skewchar\font =0}
  \DeclareFontShape{U}{jkpsyd}{m}{n}{
   &lt;-&gt; \mathalfa@scrscaled  jkpsyd%
  }{}
  \DeclareFontShape{U}{jkpsyd}{b}{n}{
   &lt;-&gt; \mathalfa@scrscaled  jkpbsyd%
  }{}
  \DeclareMathAlphabet{\mathscr}{U}{jkpsyd}{\mathalfa@scrm}{n}
  \ifmathalfa@bscr\else%
    \SetMathAlphabet{\mathscr}{bold}{U}{jkpsyd}{b}{n}
    \DeclareMathAlphabet{\mathbfscr}{U}{jkpsyd}{b}{n}
  \fi
\or % stixplain
  \DeclareFontFamily{U}{stixplains}{\skewchar\font =127}
  \DeclareFontShape{U}{stixplains}{m}{n} {
	&lt;-&gt; \mathalfa@scrscaled stix-mathcal}{}
  \DeclareFontShape{U}{stixplains}{b}{n} {
	&lt;-&gt; \mathalfa@scrscaled stix-mathcal-bold}{}
  \DeclareMathAlphabet{\mathscr}{U}{stixplains}{\mathalfa@scrm}{n}
  \ifmathalfa@bscr\else%
    \SetMathAlphabet{\mathscr}{bold}{U}{stixplains}{b}{n}
    \DeclareMathAlphabet{\mathbfscr}{U}{stixplains}{b}{n}
  \fi
\or % stixfancy
  \DeclareFontFamily{U}{stixfancys}{\skewchar\font =127}
  \DeclareFontShape{U}{stixfancys}{m}{n} {
	&lt;-&gt; \mathalfa@scrscaled stix-mathscr}{}
  \DeclareFontShape{U}{stixfancys}{b}{n} {
	&lt;-&gt; \mathalfa@scrscaled stix-mathscr-bold}{}
  \DeclareMathAlphabet{\mathscr}{U}{stixfancys}{\mathalfa@scrm}{n}
  \ifmathalfa@bscr\else%
    \SetMathAlphabet{\mathscr}{bold}{U}{stixfancys}{b}{n}
    \DeclareMathAlphabet{\mathbfscr}{U}{stixfancys}{b}{n}
  \fi
\or % stixtwoplain
  \DeclareFontFamily{U}{stixtwoplains}{\skewchar\font =127}
  \DeclareFontShape{U}{stixtwoplains}{m}{n} {
	&lt;-&gt; \mathalfa@scrscaled stix2-mathcal}{}
  \DeclareFontShape{U}{stixtwoplains}{b}{n} {
	&lt;-&gt; \mathalfa@scrscaled stix2-mathcal-bold}{}
  \DeclareMathAlphabet{\mathscr}{U}{stixtwoplains}{\mathalfa@scrm}{n}
  \ifmathalfa@bscr\else%
    \SetMathAlphabet{\mathscr}{bold}{U}{stixtwoplains}{b}{n}
    \DeclareMathAlphabet{\mathbfscr}{U}{stixtwoplains}{b}{n}
  \fi
\or % stixtwofancys
  \DeclareFontFamily{U}{stixtwofancys}{\skewchar\font =127}
  \DeclareFontShape{U}{stixtwofancys}{m}{n} {
	&lt;-&gt; \mathalfa@scrscaled stix2-mathscr}{}
  \DeclareFontShape{U}{stixtwofancys}{b}{n} {
	&lt;-&gt; \mathalfa@scrscaled stix2-mathscr-bold}{}
  \DeclareMathAlphabet{\mathscr}{U}{stixtwofancys}{\mathalfa@scrm}{n}
  \ifmathalfa@bscr\else%
    \SetMathAlphabet{\mathscr}{bold}{U}{stixtwofancys}{b}{n}
    \DeclareMathAlphabet{\mathbfscr}{U}{stixtwofancys}{b}{n}
  \fi
\fi
%%%%%%%%%%%%%%%%%% END \mathscr

\ifmathalfa@bfrak\let\mathbffrak\mathfrak\fi
\ifmathalfa@bbb\let\mathbfbb\mathbb\fi
\ifmathalfa@bcal\let\mathbfcal\mathcal\fi
\ifmathalfa@bscr\let\mathbfscr\mathscr\fi

\ifmathalfa@oldbold\let\mathbbb\mathbfbb \let\mathbfrak\mathbffrak \let\mathbcal\mathbfcal \let\mathbscr\mathbfscr\fi

%%%%%%%%%%%%%%%%%% START old \mathscr
%
%\ifcase\mathalfa@scrnr\relax% item 0 of {cm, euler, rsfso, rsfs, lucida, mathpi, mma, mt, mtc, zapfc, esstix, boondox, boondoxo, dutchcal, pxtx, bickham, bickhams, stix, txupr, boondoxupr, kp}
%% was {rsfs, rsfso, euler, lucida, mathpi, mma, mtc, zapfc, esstix, boondox, boondoxo, dutchcal,pxtx, bickham, bickhams, txupr,boondoxupr}
%   %rsfs--avoid using mathrsfs so as to avoid rounding of sizes and to get scaling
%  \DeclareFontFamily{U}{cmsy}{\skewchar\font48 }
%  \DeclareFontShape{U}{cmsy}{m}{n}{%
%      &lt;-5.5&gt;\mathalfa@scrscaled cmsy5%
%      &lt;5.5-6.5&gt;\mathalfa@scrscaled cmsy6%
%      &lt;6.5-7.5&gt;\mathalfa@scrscaled cmsy7%
%      &lt;7.5-8.5&gt;\mathalfa@scrscaled cmsy8%
%      &lt;8.5-9.5&gt;\mathalfa@scrscaled cmsy9%
%      &lt;9.5-&gt;\mathalfa@scrscaled cmsy10}{}
%  \DeclareFontShape{U}{cmsy}{b}{n}{%
%      &lt;-5.5&gt;\mathalfa@scrscaled cmbsy5%
%      &lt;5.5-6.5&gt;\mathalfa@scrscaled cmbsy6%
%      &lt;6.5-7.5&gt;\mathalfa@scrscaled cmbsy7%
%      &lt;7.5-8.5&gt;\mathalfa@scrscaled cmbsy8%
%      &lt;8.5-9.5&gt;\mathalfa@scrscaled cmbsy9%
%      &lt;9.5-&gt;\mathalfa@scrscaled cmbsy10}{}
%  \DeclareMathAlphabet{\mathscr}  {U}{cmsy}{m}{n}
%  \SetMathAlphabet{\mathscr}{bold}{U}{cmsy}{b}{n}
%  \DeclareMathAlphabet{\mathbfscr} {U}{cmsy}{b}{n}
%\or % euler
%  \DeclareFontFamily{U}{eus}{\skewchar\font'60}
%  \DeclareFontShape{U}{eus}{m}{n}{&lt;-6&gt;\mathalfa@scrscaled eusm5
%    &lt;6-8&gt;\mathalfa@scrscaled eusm7
%    &lt;8-&gt;\mathalfa@scrscaled eusm10}{}
%  \DeclareFontShape{U}{eus}{b}{n}{\mathalfa@scrscaled&lt;-6&gt;eusb5&lt;6-8&gt;eusb7&lt;8-&gt;eusb10}{}
%  \DeclareMathAlphabet{\mathscr}  {U}{eus}{m}{n}
%  \SetMathAlphabet{\mathscr}{bold}{U}{eus}{b}{n}
%  \DeclareMathAlphabet{\mathbfscr} {U}{eus}{b}{n}
%\or % rsfso
%   \DeclareFontFamily{U}{rsfso}{\skewchar \font =45}
%   \DeclareFontShape{U}{rsfso}{m}{n}{
%     &lt;-6&gt; \mathalfa@scrscaled  rsfso5
%     &lt;6-8&gt; \mathalfa@scrscaled  rsfso7
%     &lt;8-&gt; \mathalfa@scrscaled  rsfso10}{}
%   \DeclareMathAlphabet{\mathscr}{U}{rsfso}{m}{n}
%\or % rsfs
%   \DeclareFontFamily{U}{rsfs}{\skewchar\font127 }
%   \DeclareFontShape{U}{rsfs}{m}{n}{%
%   &lt;-6&gt;\mathalfa@scrscaled rsfs5%
%   &lt;6-8&gt;\mathalfa@scrscaled rsfs7%
%   &lt;8-&gt;\mathalfa@scrscaled rsfs10}{}
%   %\DeclareSymbolFont{rsfs}{U}{rsfs}{m}{n}
%   \DeclareMathAlphabet{\mathscr}{U}{rsfs}{m}{n}
%\or % lucida
%  \iflucid@loaded \PackageError{mathalpha}{Do not use lucida as an option to mathalpha after loading a lucida package}{}\fi
%  \DeclareFontFamily{OMS}{lbm}{\skewchar\font48}
%  \DeclareFontShape{OMS}{lbm}{m}{n}{&lt;-&gt;\mathalfa@scrscaled hlcry}{}
%  \DeclareFontShape{OMS}{lbm}{b}{n}{&lt;-&gt;\mathalfa@scrscaled hlcdy}{}  
%  \DeclareMathAlphabet{\mathscr}  {OMS}{lbm}{m}{n}
%  \SetMathAlphabet{\mathscr}{bold}{OMS}{lbm}{b}{n}
%  \DeclareMathAlphabet{\mathbfscr} {OMS}{lbm}{b}{n}
%\or % mathpi
%   \DeclareFontFamily{U}{mathpical}{\skewchar \font =45}
%   \DeclareFontShape{U}{mathpical}{m}{n}{
%     &lt;-&gt; \mathalfa@scrscaled  mathpical}{}
%   \DeclareMathAlphabet{\mathscr}{U}{mathpical}{m}{n}
%\or % mma
%   \DeclareFontFamily{U}{mmamcal}{\skewchar \font =45}
%   \DeclareFontShape{U}{mmamcal}{m}{n}{
%      &lt;-&gt; \mathalfa@scrscaled  mmamcal}{}
%   \DeclareFontShape{U}{mmamcal}{b}{n}{
%      &lt;-&gt; \mathalfa@scrscaled  mmambcal}{}
%   \DeclareMathAlphabet{\mathscr}{U}{mmacal}{m}{n}
%  \SetMathAlphabet{\mathscr}{bold}{U}{mmacal}{b}{n}
%  \DeclareMathAlphabet{\mathbfscr} {U}{mmacal}{b}{n}
%\or % mt
%   \@ifpackageloaded{mtpro2}{\mtp@loadedError}{}
%   \DeclareFontFamily{U}{mt2ms}{\skewchar\font42}%
%%   \DeclareFontShape{U}{mt2ms}{m}{n}{&lt;-7&gt;\mathalfa@calscaled mt2mcf%
%%     &lt;7-9&gt;\mathalfa@calscaled mt2mcs%
%%      &lt;9-&gt;\mathalfa@calscaled mt2mct}{}%
%   \DeclareFontShape{U}{mt2ms}{m}{it}{&lt;-7&gt;\mathalfa@scrscaled mt2msf%
%     &lt;7-9&gt;\mathalfa@scrscaled mt2mss%
%     &lt;9-&gt;\mathalfa@scrscaled mt2mst}{}%
%   \DeclareFontShape{U}{mt2ms}{b}{it}{&lt;-7&gt;\mathalfa@scrscaled mt2bmsf%
%     &lt;7-9&gt;\mathalfa@scrscaled mt2bmss%
%     &lt;9-&gt;\mathalfa@scrscaled mt2bmst}{}%
%   \DeclareMathAlphabet{\mathscr}  {U}{mt2ms}{m}{it}
%   \SetMathAlphabet{\mathscr}{bold}{U}{mt2ms}{b}{it}
%   \DeclareMathAlphabet{\mathbfscr} {U}{mt2ms}{b}{it}  
%\or % mtc
%   \@ifpackageloaded{mtpro2}{\mtp@loadedError}{}
%   \DeclareFontFamily{U}{mt2msc}{\skewchar\font42}%
%   \DeclareFontShape{U}{mt2msc}{m}{n}{&lt;-7&gt;\mathalfa@scrscaled mt2mcf%
%     &lt;7-9&gt;\mathalfa@scrscaled mt2mcs%
%     &lt;9-&gt;\mathalfa@scrscaled mt2mct}{}%
%   \DeclareMathAlphabet{\mathscr}  {U}{mt2msc}{m}{n}
%\or % zapfc-&gt;urwchancal
%  \DeclareFontFamily{U}{urwchanscr}{\skewchar \font =45}
%  \DeclareFontShape{U}{urwchanscr}{m}{n}{%
%     &lt;-&gt; \mathalfa@scrscaled  urwchancal}{}
%  \DeclareMathAlphabet{\mathscr}{U}{urwchanscr}{m}{n}%
%\or % esstix
%   \DeclareFontFamily{U}{esstixscr}{\skewchar \font =45}
%   \DeclareFontShape{U}{esstixscr}{m}{n}{
%     &lt;-&gt; \mathalfa@scrscaled  esstixcal}{}
%   \DeclareMathAlphabet{\mathscr}{U}{esstixscr}{m}{n}
%\or %boondox
%  \DeclareFontFamily{U}{BOONDOX-scr}{\skewchar \font =45}
%  \DeclareFontShape{U}{BOONDOX-scr}{m}{n}{
%    &lt;-&gt; \mathalfa@scrscaled  BOONDOX-r-cal}{}
%  \DeclareFontShape{U}{BOONDOX-scr}{b}{n}{
%    &lt;-&gt; \mathalfa@scrscaled  BOONDOX-b-cal}{}
%  \DeclareMathAlphabet{\mathscr}{U}{BOONDOX-scr}{m}{n}
%  \SetMathAlphabet{\mathscr}{bold}{U}{BOONDOX-scr}{b}{n}
%  \DeclareMathAlphabet{\mathbfscr} {U}{BOONDOX-scr}{b}{n}
%\or %boondoxo
%  \DeclareFontFamily{U}{BOONDOX-scro}{\skewchar \font =45}
%  \DeclareFontShape{U}{BOONDOX-scro}{m}{n}{
%    &lt;-&gt; \mathalfa@scrscaled  BOONDOX-r-calo}{}
%  \DeclareFontShape{U}{BOONDOX-scro}{b}{n}{
%    &lt;-&gt; \mathalfa@scrscaled  BOONDOX-b-calo}{}
%  \DeclareMathAlphabet{\mathscr}{U}{BOONDOX-scro}{m}{n}
%  \SetMathAlphabet{\mathscr}{bold}{U}{BOONDOX-scro}{b}{n}
%  \DeclareMathAlphabet{\mathbfscr} {U}{BOONDOX-scro}{b}{n}
%\or %dutchcal
%  \DeclareFontFamily{U}{dutchscr}{\skewchar \font =45}
%  \DeclareFontShape{U}{dutchscr}{m}{n}{
%    &lt;-&gt; \mathalfa@scrscaled  dutchcal-r}{}
%  \DeclareFontShape{U}{dutchscr}{b}{n}{
%    &lt;-&gt; \mathalfa@scrscaled  dutchcal-b}{}
%  \DeclareMathAlphabet{\mathscr}{U}{dutchscr}{m}{n}
%  \SetMathAlphabet{\mathscr}{bold}{U}{dutchscr}{b}{n}
%  \DeclareMathAlphabet{\mathbfscr}{U}{dutchscr}{b}{n}
%\or %pxtx
%  \DeclareFontFamily{U}{txscr}{\skewchar \font =45}
%  \DeclareFontShape{U}{txscr}{m}{n}{
%    &lt;-&gt; \mathalfa@scrscaled  txr-cal}{}
%  \DeclareFontShape{U}{txscr}{b}{n}{
%    &lt;-&gt; \mathalfa@scrscaled  txb-cal}{}
%  \DeclareMathAlphabet{\mathscr}{U}{txscr}{m}{n}
%  \SetMathAlphabet{\mathscr}{bold}{U}{txscr}{b}{n}
%  \DeclareMathAlphabet{\mathbfscr} {U}{txscr}{b}{n}
%\or %bickham
%  \DeclareFontFamily{U}{bickhamscr}{\skewchar \font =45}
%  \DeclareFontShape{U}{bickhamscr}{m}{n}{
%    &lt;-&gt; \mathalfa@scrscaled  bickham-r}{}
%  \DeclareFontShape{U}{bickhamscr}{b}{n}{
%    &lt;-&gt; \mathalfa@scrscaled  bickham-b}{}
%  \DeclareMathAlphabet{\mathscr}{U}{bickhamscr}{m}{n}
%  \SetMathAlphabet{\mathscr}{bold}{U}{bickhamscr}{b}{n}
%  \DeclareMathAlphabet{\mathbfscr} {U}{bickhamscr}{b}{n}
%\or %bickhams
%  \DeclareFontFamily{U}{bickhamscr}{\skewchar \font =45}
%  \DeclareFontShape{U}{bickhamscr}{m}{n}{
%    &lt;-&gt; \mathalfa@scrscaled  bickham-s}{}
%  \DeclareFontShape{U}{bickhamscr}{b}{n}{
%    &lt;-&gt; \mathalfa@scrscaled  bickham-b}{}
%  \DeclareMathAlphabet{\mathscr}{U}{bickhamscr}{m}{n}
%  \SetMathAlphabet{\mathscr}{bold}{U}{bickhamscr}{b}{n}
%  \DeclareMathAlphabet{\mathbfscr} {U}{bickhamscr}{b}{n}
%\or %stix
%  \DeclareFontFamily{U}{stixscr}{\skewchar\font127 }
%  \DeclareFontShape{U}{stixscr}{m}{n} {&lt;-&gt; \mathalfa@scrscaled stix-mathcal}{}
%  \DeclareFontShape{U}{stixscr}{b}{n} {&lt;-&gt; \mathalfa@scrscaled stix-mathcal-bold}{}
%  \DeclareMathAlphabet{\mathscr}{U}{stixscr}{m}{n}
%  \SetMathAlphabet{\mathscr}{bold}{U}{stixscr}{b}{n}
%  \DeclareMathAlphabet{\mathbfscr} {U}{stixscr}{b}{n}
%\or %txupr
%  \DeclareFontFamily{U}{txuprscr}{\skewchar \font =45}
%  \DeclareFontShape{U}{txuprscr}{m}{n}{
%    &lt;-&gt; \mathalfa@scrscaled  txUprCal-Regular}{}
%  \DeclareFontShape{U}{txuprscr}{b}{n}{
%    &lt;-&gt; \mathalfa@scrscaled  txUprCal-Bold}{}
%  \DeclareMathAlphabet{\mathscr}{U}{txuprscr}{m}{n}
%  \SetMathAlphabet{\mathscr}{bold}{U}{txuprscr}{b}{n}
%  \DeclareMathAlphabet{\mathbfscr}{U}{txuprscr}{b}{n}
%\or %boondoxupr
%  \DeclareFontFamily{U}{Boondoxuprs}{\skewchar \font =45}
%  \DeclareFontShape{U}{Boondoxuprs}{m}{n}{
%    &lt;-&gt; \mathalfa@scrscaled  BOONDOXUprScr-Regular}{}
%  \DeclareFontShape{U}{Boondoxuprs}{b}{n}{
%    &lt;-&gt; \mathalfa@scrscaled  BOONDOXUprScr-Bold}{}
%  \DeclareMathAlphabet{\mathscr}{U}{Boondoxuprs}{m}{n}
%  \SetMathAlphabet{\mathscr}{bold}{U}{Boondoxuprs}{b}{n}
%  \DeclareMathAlphabet{\mathbfscr}{U}{Boondoxuprs}{b}{n}
%\or % kp
%  \DeclareFontFamily{U}{jkpsyd}{\skewchar\font =0}
%  \DeclareFontShape{U}{jkpsyd}{m}{n}{
%   &lt;-&gt; \mathalfa@scrscaled  jkpsyd%
%  }{}
%  \DeclareFontShape{U}{jkpsyd}{b}{n}{
%   &lt;-&gt; \mathalfa@scrscaled  jkpbsyd%
%  }{}
%  \DeclareMathAlphabet{\mathscr}{U}{jkpsyd}{m}{n}
%  \SetMathAlphabet{\mathscr}{bold}{U}{jkpsyd}{b}{n}
%  \DeclareMathAlphabet{\mathbfscr}{U}{jkpsyd}{b}{n}
%\or % stixplain
%  \DeclareFontFamily{U}{stixplains}{\skewchar\font =127}
%  \DeclareFontShape{U}{stixplains}{m}{n} {
%	&lt;-&gt; \mathalfa@scrscaled stix-mathcal}{}
%  \DeclareFontShape{U}{stixplains}{b}{n} {
%	&lt;-&gt; \mathalfa@scrscaled stix-mathcal-bold}{}
%  \DeclareMathAlphabet{\mathscr}{U}{stixplains}{m}{n}
%  \SetMathAlphabet{\mathscr}{bold}{U}{stixplains}{b}{n}
%  \DeclareMathAlphabet{\mathbfscr}{U}{stixplains}{b}{n}
%\or % stixfancy
%  \DeclareFontFamily{U}{stixfancys}{\skewchar\font =127}
%  \DeclareFontShape{U}{stixfancys}{m}{n} {
%	&lt;-&gt; \mathalfa@scrscaled stix-mathscr}{}
%  \DeclareFontShape{U}{stixfancys}{b}{n} {
%	&lt;-&gt; \mathalfa@scrscaled stix-mathscr-bold}{}
%  \DeclareMathAlphabet{\mathscr}{U}{stixfancys}{m}{n}
%  \SetMathAlphabet{\mathscr}{bold}{U}{stixfancys}{b}{n}
%  \DeclareMathAlphabet{\mathbfscr}{U}{stixfancys}{b}{n}
%\or % stixtwoplain
%  \DeclareFontFamily{U}{stixtwoplains}{\skewchar\font =127}
%  \DeclareFontShape{U}{stixtwoplains}{m}{n} {
%	&lt;-&gt; \mathalfa@scrscaled stix2-mathcal}{}
%  \DeclareFontShape{U}{stixtwoplains}{b}{n} {
%	&lt;-&gt; \mathalfa@scrscaled stix2-mathcal-bold}{}
%  \DeclareMathAlphabet{\mathscr}{U}{stixtwoplains}{m}{n}
%  \SetMathAlphabet{\mathscr}{bold}{U}{stixtwoplains}{b}{n}
%  \DeclareMathAlphabet{\mathbfscr}{U}{stixtwoplains}{b}{n}
%\or % stixtwofancy
%  \DeclareFontFamily{U}{stixtwofancys}{\skewchar\font =127}
%  \DeclareFontShape{U}{stixtwofancys}{m}{n} {
%	&lt;-&gt; \mathalfa@scrscaled stix2-mathscr}{}
%  \DeclareFontShape{U}{stixtwofancys}{b}{n} {
%	&lt;-&gt; \mathalfa@scrscaled stix2-mathscr-bold}{}
%  \DeclareMathAlphabet{\mathscr}{U}{stixtwofancys}{m}{n}
%  \SetMathAlphabet{\mathscr}{bold}{U}{stixtwofancys}{b}{n}
%  \DeclareMathAlphabet{\mathbfscr}{U}{stixtwofancys}{b}{n}
%\fi

%\ifx\mathbfcal\@undefined\def\mathbfcal{\PackageError{mathalpha}
%    {There is no bold variant of the calligraphic font}
%    {Type &lt;return&gt; to proceed; \protect\mathbfcal\space will be ignored.}
%  }\fi%
%\ifx\mathbfbb\@undefined\def\mathbfbb{\PackageError{mathalpha}
%    {There is no bold variant of the blackboard bold font}
%    {Type &lt;return&gt; to proceed; \protect\mathbfbb\space will be ignored.}
%  }\fi%
%\ifx\mathbffrak\@undefined\def\mathbffrak{\PackageError{mathalpha}
%    {There is no bold variant of the fraktur font}
%    {Type &lt;return&gt; to proceed; \protect\mathbffrak\space will be ignored.}
%  }\fi%
%\ifx\mathbfscr\@undefined\def\mathbfscr{\PackageError{mathalpha}
%    {There is no bold variant of the script font}
%    {Type &lt;return&gt; to proceed; \protect\mathbfscr\space will be ignored.}
%  }\fi%

\endinput
</pre></body></html>