texlive[48283] Master: mathfont (26jul18)

commits+karl at tug.org commits+karl at tug.org
Fri Jul 27 00:49:15 CEST 2018


Revision: 48283
          http://tug.org/svn/texlive?view=revision&revision=48283
Author:   karl
Date:     2018-07-27 00:49:15 +0200 (Fri, 27 Jul 2018)
Log Message:
-----------
mathfont (26jul18)

Modified Paths:
--------------
    trunk/Master/tlpkg/bin/tlpkg-ctan-check
    trunk/Master/tlpkg/libexec/ctan2tds
    trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/mathfont/
    trunk/Master/texmf-dist/doc/latex/mathfont/README.TEXLIVE
    trunk/Master/texmf-dist/doc/latex/mathfont/README.txt
    trunk/Master/texmf-dist/doc/latex/mathfont/mathfont.pdf
    trunk/Master/texmf-dist/source/latex/mathfont/
    trunk/Master/texmf-dist/source/latex/mathfont/mathfont.drv
    trunk/Master/texmf-dist/source/latex/mathfont/mathfont.dtx
    trunk/Master/texmf-dist/source/latex/mathfont/mathfont.ins
    trunk/Master/texmf-dist/tex/latex/mathfont/
    trunk/Master/texmf-dist/tex/latex/mathfont/mathfont.sty
    trunk/Master/tlpkg/tlpsrc/mathfont.tlpsrc

Added: trunk/Master/texmf-dist/doc/latex/mathfont/README.TEXLIVE
===================================================================
--- trunk/Master/texmf-dist/doc/latex/mathfont/README.TEXLIVE	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/mathfont/README.TEXLIVE	2018-07-26 22:49:15 UTC (rev 48283)
@@ -0,0 +1,7 @@
+The following files have been removed in the TeX Live installation of
+the current package, typically due to duplication, lack of space, or
+missing source code.  You can find these files on CTAN at
+	http://mirror.ctan.org/macros/latex/contrib/mathfont
+If questions or concerns, email tex-live at tug.org.
+
+	mathfont_greek.pdf


Property changes on: trunk/Master/texmf-dist/doc/latex/mathfont/README.TEXLIVE
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/mathfont/README.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/mathfont/README.txt	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/mathfont/README.txt	2018-07-26 22:49:15 UTC (rev 48283)
@@ -0,0 +1,32 @@
+This file contains information about the mathfont LaTeX package
+installation. Besides this README, the installation contains the
+following files:
+
+1. mathfont.dtx: the main package file. Typeset this file to generate
+the corresponding .sty file and complete the installation.
+
+2. mathfont.pdf: the package documentation.
+
+3. mathfont.ind: the index file. Include this file in the same
+directory as mathfont.dtx when compiling to generate a code index.
+
+4. mathfont_greek.pdf: a table of Greek characters provided by
+mathfont.
+
+The mathfont package is Copyright 2018 by Conrad Kosowsky.
+
+This work may be distributed and modified under the terms
+of the LaTeX Public Project License, version 1.3c or any later version.
+The most recent version of this license is available online at
+
+         https://www.latex-project.org/lppl/.
+
+This work has the LPPL status "maintained," and the current maintainer
+is the package author, Conrad Kosowsky. He can be reached at 
+kosowsky.latex at gmail.com.  The work consists of the file mathfont.dtx,
+the derived files mathfont.ins, mathfont.drv, and mathfont.sty, and
+all other files created through the configuration process such as 
+mathfont.pdf, mathfont.idx, and mathfont.ind.
+
+To install mathfont, run mathfont.dtx through LaTeX and move
+the generated file mathfont.sty into a directory searchable by TeX.


Property changes on: trunk/Master/texmf-dist/doc/latex/mathfont/README.txt
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/mathfont/mathfont.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/mathfont/mathfont.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/mathfont/mathfont.pdf	2018-07-26 21:47:48 UTC (rev 48282)
+++ trunk/Master/texmf-dist/doc/latex/mathfont/mathfont.pdf	2018-07-26 22:49:15 UTC (rev 48283)

Property changes on: trunk/Master/texmf-dist/doc/latex/mathfont/mathfont.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/source/latex/mathfont/mathfont.drv
===================================================================
--- trunk/Master/texmf-dist/source/latex/mathfont/mathfont.drv	                        (rev 0)
+++ trunk/Master/texmf-dist/source/latex/mathfont/mathfont.drv	2018-07-26 22:49:15 UTC (rev 48283)
@@ -0,0 +1,45 @@
+%%
+%% This is file `mathfont.drv',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% mathfont.dtx  (with options: `driver')
+%% 
+%% Copyright 2018 by Conrad Kosowsky
+%% 
+%% This file may be distributed and modified under the terms
+%% of the LaTeX Public Project License, version 1.3c or any later version.
+%% The most recent version of this license is available online at
+%% 
+%%          https://www.latex-project.org/lppl/.
+%% 
+%% This work has the LPPL status "maintained," and the current maintainer
+%% is the package author, Conrad Kosowsky. He can be reached at
+%% kosowsky.latex at gmail.com. The work consists of the file mathfont.dtx,
+%% the derived files mathfont.ins, mathfont.drv, and mathfont.sty, and
+%% all other files created through the configuration process such as
+%% mathfont.pdf, mathfont.idx, and mathfont.ind. For more
+%% information, see the original mathfont.dtx file.
+%% 
+\ProvidesFile{mathfont.drv}
+\documentclass[12pt]{ltxdoc}
+\makeatletter
+\usepackage[margin=72.27pt]{geometry}
+\usepackage[factor=600,stretch=14,shrink=14,step=1]{microtype}
+\usepackage{booktabs}
+\usepackage{graphicx}
+\hyphenpenalty=10
+\exhyphenpenalty=5
+\pretolerance=50
+\finalhyphendemerits=500
+\c at IndexColumns=2
+\EnableCrossrefs
+\CodelineIndex
+\begin{document}
+  \DocInput{mathfont.dtx}\eject
+  \PrintIndex
+\end{document}
+\endinput
+%%
+%% End of file `mathfont.drv'.


Property changes on: trunk/Master/texmf-dist/source/latex/mathfont/mathfont.drv
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/source/latex/mathfont/mathfont.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/mathfont/mathfont.dtx	                        (rev 0)
+++ trunk/Master/texmf-dist/source/latex/mathfont/mathfont.dtx	2018-07-26 22:49:15 UTC (rev 48283)
@@ -0,0 +1,1267 @@
+% \iffalse meta-comment
+% 
+% This file is  mathfont.dtx. It is used to typeset documentation and
+% files for the LaTeX2e package "mathfont," to be used in conjunction
+% with the XeTeX or LuaTeX engine. Users should run this file through
+% LaTeX to generate the files and documentation.
+% 
+% Copyright 2018 by Conrad Kosowsky
+% 
+% This work may be distributed and modified under the terms
+% of the LaTeX Public Project License, version 1.3c or any later version.
+% The most recent version of this license is available online at
+% 
+%          https://www.latex-project.org/lppl/.
+% 
+% This work has the LPPL status "maintained," and the current maintainer
+% is the package author, Conrad Kosowsky. He can be reached at 
+% kosowsky.latex at gmail.com.  The work consists of the file mathfont.dtx,
+% the derived files mathfont.ins, mathfont.drv, and mathfont.sty, and
+% all other files created through the configuration process such as 
+% mathfont.pdf, mathfont.idx, and mathfont.ind.
+% 
+% To install mathfont, run mathfont.dtx through LaTeX and move
+% the generated file mathfont.sty into a directory searchable by TeX.
+% 
+% \fi
+% 
+% \iffalse
+%<*batchfile>
+\begingroup
+\input docstrip.tex
+\keepsilent
+\preamble
+
+Copyright 2018 by Conrad Kosowsky
+
+This file may be distributed and modified under the terms
+of the LaTeX Public Project License, version 1.3c or any later version.
+The most recent version of this license is available online at
+
+         https://www.latex-project.org/lppl/.
+
+This work has the LPPL status "maintained," and the current maintainer
+is the package author, Conrad Kosowsky. He can be reached at 
+kosowsky.latex at gmail.com. The work consists of the file mathfont.dtx,
+the derived files mathfont.ins, mathfont.drv, and mathfont.sty, and
+all other files created through the configuration process such as 
+mathfont.pdf, mathfont.idx, and mathfont.ind. For more
+information, see the original mathfont.dtx file.
+
+\endpreamble
+\generate{
+  \file{mathfont.ins}{\from{mathfont.dtx}{batchfile}}
+  \file{mathfont.drv}{\from{mathfont.dtx}{driver}}
+  \file{mathfont.sty}{\from{mathfont.dtx}{package}}}
+\bgroup
+\catcode`\ =\active
+\def {\space}
+\message{^^J^^J
+******************************************^^J
+*                                        *^^J
+* To finish the installation, move the   *^^J
+* following file into a directory        *^^J
+* searchable by TeX once mathfont.dtx    *^^J
+* finishes compiling:                    *^^J
+*                                        *^^J
+*              mathfont.sty              *^^J
+*                                        *^^J
+******************************************^^J^^J}
+\egroup\endgroup
+%</batchfile>
+%<*driver>
+\ProvidesFile{mathfont.drv}
+\documentclass[12pt]{ltxdoc}
+\makeatletter
+\usepackage[margin=72.27pt]{geometry}
+\usepackage[factor=600,stretch=14,shrink=14,step=1]{microtype}
+\usepackage{booktabs}
+\usepackage{graphicx}
+\hyphenpenalty=10
+\exhyphenpenalty=5
+\pretolerance=50
+\finalhyphendemerits=500
+\c at IndexColumns=2
+\EnableCrossrefs
+\CodelineIndex
+\begin{document}
+  \DocInput{mathfont.dtx}\eject
+  \PrintIndex
+\end{document}
+%</driver>
+%<*package>
+% \fi
+% 
+% \CheckSum{2256}
+% 
+% \makeatother\CharacterTable
+%  {Upper-case    \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
+%   Lower-case    \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
+%   Digits        \0\1\2\3\4\5\6\7\8\9
+%   Exclamation     \!      Double quote  \"      Hash (number)  \#
+%   Dollar            \$     Percent        \%     Ampersand      \&
+%   Acute accent    \'      Left paren     \(      Right paren     \)
+%   Asterisk         \*      Plus            \+      Comma           \,
+%   Minus            \-      Point           \.      Solidus           \/
+%   Colon             \:      Semicolon      \;      Less than        \<
+%   Equals           \=      Greater than  \>     Question mark   \?
+%   Commercial at  \@     Left bracket  \[      Backslash         \\
+%   Right bracket   \]      Circumflex     \^     Underscore       \_
+%   Grave accent    \`      Left brace     \{      Vertical bar      \|
+%   Right brace      \}     Tilde            \~}
+% \makeatletter
+% 
+% \DoNotIndex{\NeedsTeXFormat,\ProvidesPackage,\DeclareOption,\ProcessOptions}
+% \DoNotIndex{\def,\edef,\global,\let,\csname,\endcsname,\expandafter,\relax}
+% \DoNotIndex{\newcount,\newif,\z@,\@ne,\ifx,\ifcat,\ifnum,\else,\fi,\noexpand}
+% \DoNotIndex{\PackageInfo,\PackageWarning,\PackageError}
+% \DoNotIndex{\space,\MessageBreak,\string,\define at x,\M at count}
+% \DoNotIndex{\@tempa,\@tempb,\@tempc,\@i,\@j,\@k,\count,\tw@,\@empty}
+% \DoNotIndex{\do,\DeclareMathSymbol,\the,\mathalpha,\mathord}
+%^^A \DoNotIndex{\M at lower,\M at upper,\M at greeklower,\M at greekupper,\M at digits}
+% \DoNotIndex{\M at bb,\M at cal,\M at frak,\M at bcal,\M at bfrak}
+% \DoNotIndex{\M at bb@A,\M at bb@B,\M at bb@C,\M at bb@D,\M at bb@E,\M at bb@F}
+% \DoNotIndex{\M at bb@G,\M at bb@H,\M at bb@I,\M at bb@J,\M at bb@K,\M at bb@L}
+% \DoNotIndex{\M at bb@M,\M at bb@N,\M at bb@O,\M at bb@P,\M at bb@Q,\M at bb@R}
+% \DoNotIndex{\M at bb@S,\M at bb@T,\M at bb@U,\M at bb@V,\M at bb@W,\M at bb@X}
+% \DoNotIndex{\M at bb@Y,\M at bb@Z,\M at bb@a,\M at bb@b,\M at bb@c,\M at bb@d}
+% \DoNotIndex{\M at bb@e,\M at bb@f,\M at bb@g,\M at bb@h,\M at bb@i,\M at bb@j}
+% \DoNotIndex{\M at bb@k,\M at bb@l,\M at bb@m,\M at bb@n,\M at bb@o,\M at bb@p}
+% \DoNotIndex{\M at bb@q,\M at bb@r,\M at bb@s,\M at bb@t,\M at bb@u,\M at bb@v}
+% \DoNotIndex{\M at bb@w,\M at bb@x,\M at bb@y,\M at bb@z}
+% \DoNotIndex{\M at cal@A,\M at cal@B,\M at cal@C,\M at cal@D,\M at cal@E,\M at cal@F}
+% \DoNotIndex{\M at cal@G,\M at cal@H,\M at cal@I,\M at cal@J,\M at cal@K,\M at cal@L}
+% \DoNotIndex{\M at cal@M,\M at cal@N,\M at cal@O,\M at cal@P,\M at cal@Q,\M at cal@R}
+% \DoNotIndex{\M at cal@S,\M at cal@T,\M at cal@U,\M at cal@V,\M at cal@W,\M at cal@X}
+% \DoNotIndex{\M at cal@Y,\M at cal@Z,\M at cal@a,\M at cal@b,\M at cal@c,\M at cal@d}
+% \DoNotIndex{\M at cal@e,\M at cal@f,\M at cal@g,\M at cal@h,\M at cal@i,\M at cal@j}
+% \DoNotIndex{\M at cal@k,\M at cal@l,\M at cal@m,\M at cal@n,\M at cal@o,\M at cal@p}
+% \DoNotIndex{\M at cal@q,\M at cal@r,\M at cal@s,\M at cal@t,\M at cal@u,\M at cal@v}
+% \DoNotIndex{\M at cal@w,\M at cal@x,\M at cal@y,\M at cal@z}
+% \DoNotIndex{\M at frak@A,\M at frak@B,\M at frak@C,\M at frak@D,\M at frak@E,\M at frak@F}
+% \DoNotIndex{\M at frak@G,\M at frak@H,\M at frak@I,\M at frak@J,\M at frak@K,\M at frak@L}
+% \DoNotIndex{\M at frak@M,\M at frak@N,\M at frak@O,\M at frak@P,\M at frak@Q,\M at frak@R}
+% \DoNotIndex{\M at frak@S,\M at frak@T,\M at frak@U,\M at frak@V,\M at frak@W,\M at frak@X}
+% \DoNotIndex{\M at frak@Y,\M at frak@Z,\M at frak@a,\M at frak@b,\M at frak@c,\M at frak@d}
+% \DoNotIndex{\M at frak@e,\M at frak@f,\M at frak@g,\M at frak@h,\M at frak@i,\M at frak@j}
+% \DoNotIndex{\M at frak@k,\M at frak@l,\M at frak@m,\M at frak@n,\M at frak@o,\M at frak@p}
+% \DoNotIndex{\M at frak@q,\M at frak@r,\M at frak@s,\M at frak@t,\M at frak@u,\M at frak@v}
+% \DoNotIndex{\M at frak@w,\M at frak@x,\M at frak@y,\M at frak@z}
+% \DoNotIndex{\M at bcal@A,\M at bcal@B,\M at bcal@C,\M at bcal@D,\M at bcal@E,\M at bcal@F}
+% \DoNotIndex{\M at bcal@G,\M at bcal@H,\M at bcal@I,\M at bcal@J,\M at bcal@K,\M at bcal@L}
+% \DoNotIndex{\M at bcal@M,\M at bcal@N,\M at bcal@O,\M at bcal@P,\M at bcal@Q,\M at bcal@R}
+% \DoNotIndex{\M at bcal@S,\M at bcal@T,\M at bcal@U,\M at bcal@V,\M at bcal@W,\M at bcal@X}
+% \DoNotIndex{\M at bcal@Y,\M at bcal@Z,\M at bcal@a,\M at bcal@b,\M at bcal@c,\M at bcal@d}
+% \DoNotIndex{\M at bcal@e,\M at bcal@f,\M at bcal@g,\M at bcal@h,\M at bcal@i,\M at bcal@j}
+% \DoNotIndex{\M at bcal@k,\M at bcal@l,\M at bcal@m,\M at bcal@n,\M at bcal@o,\M at bcal@p}
+% \DoNotIndex{\M at bcal@q,\M at bcal@r,\M at bcal@s,\M at bcal@t,\M at bcal@u,\M at bcal@v}
+% \DoNotIndex{\M at bcal@w,\M at bcal@x,\M at bcal@y,\M at bcal@z}
+% \DoNotIndex{\M at bfrak@A,\M at bfrak@B,\M at bfrak@C,\M at bfrak@D,\M at bfrak@E}
+% \DoNotIndex{\M at bfrak@F,\M at bfrak@G,\M at bfrak@H,\M at bfrak@I,\M at bfrak@J}
+% \DoNotIndex{\M at bfrak@K,\M at bfrak@L,\M at bfrak@M,\M at bfrak@N,\M at bfrak@O}
+% \DoNotIndex{\M at bfrak@P,\M at bfrak@Q,\M at bfrak@R,\M at bfrak@S,\M at bfrak@T}
+% \DoNotIndex{\M at bfrak@U,\M at bfrak@V,\M at bfrak@W,\M at bfrak@X,\M at bfrak@Y}
+% \DoNotIndex{\M at bfrak@Z,\M at bfrak@a,\M at bfrak@b,\M at bfrak@c,\M at bfrak@d}
+% \DoNotIndex{\M at bfrak@e,\M at bfrak@f,\M at bfrak@g,\M at bfrak@h,\M at bfrak@i}
+% \DoNotIndex{\M at bfrak@j,\M at bfrak@k,\M at bfrak@l,\M at bfrak@m,\M at bfrak@n}
+% \DoNotIndex{\M at bfrak@o,\M at bfrak@p,\M at bfrak@q,\M at bfrak@r,\M at bfrak@s}
+% \DoNotIndex{\M at bfrak@t,\M at bfrak@u,\M at bfrak@v,\M at bfrak@w,\M at bfrak@x}
+% \DoNotIndex{\M at bfrak@y,\M at bfrak@z}
+% 
+% \newenvironment{code}
+%   {\strut\vadjust\bgroup\medskip\parindent=4em\relax\indent\strut\ignorespaces}
+%   {\strut\par\medskip\egroup\hfill\break\strut\ignorespacesafterend}
+% \def\argtext#1{\ensuremath{\langle$\textit{#1}$\rangle}}
+% 
+% \def\XeTeX{X\kern-0.1em
+%   \raise-0.5ex\hbox{\rotatebox[origin=c]{180}{E}}\kern-0.15em
+%   \TeX}
+% \def\XeLaTeX{X\kern-0.1em
+%   \raise-0.5ex\hbox{\rotatebox[origin=c]{180}{E}}\kern-0.13em
+%    \LaTeX}
+% \renewcommand\topfraction{0.9}
+% 
+% {\large
+% \centerline{\Large Package \textsf{mathfont} v.\ 1.1b Documentation}\par
+% \centerline{Conrad Kosowsky}\par
+% \centerline{July 2018}\par
+% \centerline{\ttfamily kosowsky.latex at gmail.com}\par}
+% 
+% \bigskip
+%  
+%  \begin{abstract}
+%  The \textsf{mathfont} package provides a flexible interface for changing the font of math mode characters. The package allows the user to specify a default unicode font for each of six basic classes of Latin and Greek characters, and it provides additional support for unicode alphanumeric symbols. Crucially, \textsf{mathfont} is compatible with both Lua\LaTeX\ and \XeLaTeX, and it provides several font-loading commands that allow the user to change fonts locally or for individual symbols within math mode.
+%  \end{abstract}
+%  
+%  Handling fonts in \TeX\ and \LaTeX\ is a notoriously difficult task. The \TeX\ engine originally supported only fonts designed with Donald Knuth's Metafont, and while subsequent versions of \TeX\ extended this functionality to postscript fonts, Plain \TeX's font-loading capabilities remain limited. Many, if not most, \LaTeX\ users are unfamiliar with the |.fd| files that must be used in font declaration, and the minutiae of \TeX's |\font| primitive can be esoteric and confusing. \LaTeXe's New Font Selection System (\textsc{nfss}) implemented a straightforward syntax for loading and managing fonts, but \LaTeX\ macros overlaying a \TeX\ core face the same versatility issues as Plain \TeX\ itself. Fonts in math mode present a double challenge: even if the user successfully loads a font either in Plain \TeX\ or through the \textsc{nfss}, defining math symbols can be unintuitive for users who are unfamiliar with \TeX's |\mathcode| primitive. Again, \LaTeXe\ simplifies much of the coding challenges with its |\DeclareMathSymbol| macro, but the fundamental aspects of the task remain the same.
+%  
+%  More recent engines such as Jonathan Kew's \XeTeX\ and Hans Hagen, et al.'s Lua\TeX\ significantly extend the font-loading capabilities of \TeX. Both support TrueType and OpenType font formats and provide many additional primitives for managing fonts. The \textsf{fontspec} package by Will Robertson and Khaled Hosny acts as a front-end for the font management built into these two engines. It allows users to easily load new fonts and transition between those ones already in memory, and users who are interested in changing text fonts should consult the documentation for that package. Notably, \textsf{fontspec} provides users with the tools to manually adjust OpenType features of the fonts they load, so the package gives equivalent or in some cases superior font management capabilities to a modern WYSIWYG word processor. (Of course, the efficiency depends on the skill of the \LaTeX\ user.) In situations where a font's OpenType features are unclear or difficult to access, \textsf{fontspec}'s typographical advantages can significantly outweigh the accessibility of a word processor.
+%  
+%  \section*{Basic Functionality}
+%  
+%  The \textsf{mathfont} package uses \textsf{fontspec} as a back end to load fonts for use in math mode, and it provides two ways to do this: (1) changing the default font for certain classes of math mode characters; and (2) defining new commands that change the font locally for the so-called ``math alphabet'' characters. (The math alphabet characters are all Latin letters, all Arabic numerals, and any Greek letters that \textsf{mathfont} has set the font for.) The package can change the math font for Latin and Greek letters, Arabic numerals, and unicode alphanumeric symbols to any unicode OpenType or TrueType font. Tables~1 and 2 display the individual classes of characters that \textsf{mathfont}'s default font-change command acts on, and currently, \textsf{mathfont} does not support font changes for any mathematical symbols beyond those in both tables, although it does provide control sequences to typeset several ancient Greek characters that are typically unavailable.
+%  
+%  The package can be loaded with the standard |\usepackage| syntax. The only valid option for \textsf{mathfont} is ``|packages|,'' and this option determines when \textsf{mathfont} resets two \LaTeX\ internal commands used in declaring math characters. During loading, \textsf{mathfont} redefines two \LaTeX\ internal macros so that \LaTeX can declare math symbols from unicode fonts. The |\mathfont| command works only with these redefinitions, and the package will issue an error if the user calls the command without them. If the user loads the package without the |packages| option, \textsf{mathfont} will reset these two \LaTeX\ kernel macros just before the user loads another package, and at that point, the user will not be able to call the |\mathfont| control sequence any more. The advantage of this behavior is that it makes \textsf{mathfont} less likely to disturb the functionality of other packages, particularly those that define any math symbols. With |packages|, \textsf{mathfont} does nto reset the kernel automatically, so users can call |\mathfont| any time in the document preamble. The command |\restoremathinternals| manually restores the kernal, and users who load \textsf{mathfont} without |packages| should use this command to avoid clashes with other packages. In any event, it is best practice to include all |\mathfont| commands immediately after loading the package.
+%  
+%  The functionality of \textsf{mathfont} is most closely related to that of the \textsf{mathspec} package by Andrew Gilbert Moschou. These two packages incorporate the use of individual unicode characters into math mode, and their symbol declaration process is similar. Both use \textsf{fontspec} as a back end. Both create font-changing commands for math mode characters. However, the functionality differs in two crucial respects: \textsf{mathfont} is compatible with Lua\LaTeX, and its local math-font-changing mechanisms provide a slightly greater level of flexibility than what users can achieve with \textsf{mathspec}. Further, as far as I am aware, this package is the first to provide robust support for the unicode alphanumeric symbols listed in Table~2, even in the context of fonts without built-in math support. (Please let me know if this is incorrect!) In this way \textsf{mathfont}, like \textsf{mathspec}, is significantly more versatile than the \textsf{unicode-math} package, although its impact is less far-reaching. Unlike the \textsf{mathastext} package, \textsf{mathfont} preserves \TeX's traditional mathematics spacing.
+%  
+%  The package loads \textsf{fontspec} with the ``|no-math|'' option if and only if the user has not already loaded \textsf{fontspec}. Users who want \textsf{fontspec} without |no-math| or with other options in place should manually load it before requiring \textsf{mathfont}. It is strongly recommended that users who manually load \textsf{fontspec} do so with the |no-math| option. Alternatively, users who want to pass options to \textsf{fontspec} without having to load it themselves can use \LaTeX's |\PassOptionsToPackage| command.
+%  
+%  Compatibility with Lua\LaTeX\ comes at the expense of \textsf{mathspec}'s convenient space-adjustment character |"|, so spacing-conscientious users should either manually add |\kern| or |\muskip| to their equations or redefine an active version of |"|. For example, the code
+%  \begin{code}
+%  \begingroup\obeylines|\catcode`\"=\active|
+%  |\def"#1{\ifmmode|
+%  |    \kern|\argtext{dimension}| #1\kern|\argtext{other dimension}
+%  |  \else|
+%  |    \char`\"%|
+%  |  \fi}|\endgroup
+%  \end{code}
+%  will serve as a hack that very roughly approximates \textsf{mathspec}'s |"|. This code will redefine |"| to typeset a right double quotation mark in horizontal mode, but in math mode, the character will insert \textit{dimension} and \textit{other dimension} of white space on either side respectively of the following character. More advanced users can automate the dimensions by using \TeX's |\if| conditional to test whether the following character needs a particular spacing adjustment. (For example, Computer Modern's math-mode $f$ is notorious for being significantly wider than its italic counterpart.) Future versions of \textsf{mathfont} may provide an automated space-adjustment command, but it is not a priority.
+%  
+%  \section*{Setting the Default Font}
+%  
+%  The |\mathfont| command sets the default font for certain classes of characters, and it can be called any number of times in the document preamble. Its structure is
+%  \begin{code}
+%  |\mathfont[|\argtext{optional character classes}|]{|\argtext{font name}|}|,
+%  \end{code}
+%  where the \textit{optional character classes} can be any set of keywords from Table~1 or Table~2, and the \textit{font name} can be any OpenType or TrueType font in a directory searchable by \TeX. Specifically, \textsf{fontspec} must be able to recognize and load the font specified in the mandatory argument of |\mathfont|. Advanced users will note that |\mathfont| uses the |\fontspec_set_family:Nnn| command and therefore loads fonts in the same way as all the |\fontspec| and related macros from that package. Currently, \textsf{mathfont} does not support the use of OpenType features in math mode.
+%  
+%  The user should specify any keyword optional arguments for |\mathfont| as entries in a comma-separated list. The order is irrelevant, and for each item in the list, the package will change the math font for that class of characters to the font specified in the mandatory argument. If the user does not specify an optional argument for |\mathfont|, the macro will insert all keywords from Table~1 as the optional argument. By default, \textsf{mathfont} will use either an upright or italic shape corresponding to each character-class keyword, but the user can override this setting by writing an equals sign next to the keyword and a shape suboption---either ``|roman|'' or ``|italic|''---following that. Table~1 contains the default shapes for the keywords listed there, while the default shape for all classes of characters in Table~2 is upright. The package interprets the |roman| suboption as specifying an upright shape---normal shape in the language of the \textsc{nfss}---and the |italic| suboption as specifying an italic shape. Currently \textsf{mathfont} does not support default font shapes beyond these two. For example, the command
+%  \begin{code}
+%  |\mathfont[upper=roman,lower=roman]{Times New Roman}|
+%  \end{code}
+%  would change all math-mode Latin letters to Times New Roman with upright shape. The optional argument for |\mathfont| should not contain any spaces because \textsf{mathfont} will not be able to parse the text correctly, and if the user mistakenly includes a space after a comma or around an equals sign, the package will issue an ``Invalid option" error. Future versions of \textsf{mathfont} may address this limitation, but it is not a priority. Users should be aware that, in order to limit the number of symbol fonts in memory, |\mathfont| will not change the default font for a class of symbols once it has already done so.
+%  
+%  \begin{figure}
+%  \centering
+%  Table~1: Math Alphabet Characters\par\penalty\@M\smallskip
+%  \begin{tabular}{lll}
+%  \toprule
+%  Keyword & Meaning & Default shape\\
+%  \midrule
+%  |upper| & Capital Latin letters & Italic\\
+%  |lower| & Minuscule Latin letters & Italic\\
+%  |greekupper| & Capital Greek letters & Upright\\
+%  |greeklower| & Minuscule Greek letters & Italic\\
+%  |digits| & Arabic numerals & Upright\\
+%  |operator| & Operator font & Upright\\
+%  \bottomrule
+%  \end{tabular}
+%  \end{figure}
+%  
+%  The Unicode Consortium designates the Mathematical Alphanumeric Symbols (U+1D400--U+1D7FF) code block for several classes of letters and letterlike symbols that appear frequently in math writing. The \textsf{mathfont} package provides easy access to these symbols through the |\mathfont| command, and Table~2 lists the corresponding keywords that should be used with |\mathfont| to do so. When the user calls |\mathfont| with a keyword from Table~2 in its optional argument, \textsf{mathfont} both declares the appropriate unicode characters as math symbols and defines the macro
+%  \begin{code}
+%  |\math|\argtext{keyword}|{|\argtext{argument}|}|.
+%  \end{code}
+%  The control sequence takes one argument, and it converts the characters in its argument into the corresponding style. For example, 
+%  \begin{code}
+%  |\mathfont[bcal]{STIXGeneral}|
+%  \end{code}
+%  will set STIXGeneral as the font for bold caligraphic characters and define the command |\mathbcal| to access them in math mode. The argument of the macro produced this way must be a single string of Latin letters without braces or control sequences, although in somewhat idiosyncratic fashion, the |\mathbb| command can also accept Arabic numerals in its argument. Spaces and any character of catcode 12 will be ignored. 
+%  
+%  \begin{figure}[h]
+%  \centering
+%  Table~2: Alphanumeric Symbols\par\penalty\@M\smallskip
+%  \begin{tabular}{ll}
+%  \toprule
+%  Keyword & Meaning\\
+%  \midrule
+%  |bb| & Blackboard Bold (Double-struck)\\
+%  |cal| & Caligraphic\\
+%  |frak| & Fraktur\\
+%  |bcal| & Bold Caligraphic\\
+%  |bfrak| & Bold Fraktur\\
+%  \bottomrule
+%  \end{tabular}
+%  \end{figure}
+%  
+%  Because these commands can handle capital and minuscule Latin letters, the \textsf{mathfont} package significantly extends the functionality of \TeX's standard |\mathcal| command and the |\mathbb| command from the \textsf{amssymb} package. Users should note that typesetting symbols from a class of characters in Table~2 will require a unicode font that actually contains those characters, such as Symbola or STIXGeneral. That being said, users who need only a few alphanumeric symbols may be able to use a less specialized font that contains for example the characters from the Letterlike Symbols (U+2100--U+214F) code block. This block contains the blackboard bold versions of C, N, Q, R, and Z, and the fonts providing these characters are significantly more common than those that contain the full blackboard bold alphabet.
+%  
+%  \section*{Local Font Changes}
+%  
+%  With \textsf{mathfont}, users can locally change the font in math mode by creating a new control sequence for each new font desired. The commands created this way function analogously to the standard math font macros from the \LaTeX\ kernel such as |\mathrm|, |\mathit|, and |\mathnormal|. The package includes four basic commands to produce these new control sequences. Table~3 lays them out, and they all have the same argument structure. As an example, the macro |\newmathrm| looks like
+%  \begin{code}
+%  |\newmathrm{|\argtext{control sequence}|}{|\argtext{font name}|}|.
+%  \end{code}
+%  It defines the \textit{control sequence} in its first argument to accept a string of characters that it then converts to the \textit{font name} in the second argument with upright shape and medium weight. Writing 
+%  \begin{code}
+%  |\newmathrm{\matharial}{Arial}|
+%  \end{code}
+%  would create the macro
+%  \begin{code}
+%  |\matharial{|\argtext{argument}|}|,
+%  \end{code}
+%  which can be used only in math mode and which converts the math alphabet characters in its \textit{argument} into the Arial font with upright shape and medium weight. The other three commands in Table~3 function in the same way except that they select different series or shape values for the font in question, and Table~3 lists this information. If the user specifies the font for Greek letters using |\mathfont|, the macros created with the commands from Table~3 will affect those characters; otherwise, they will not. \LaTeXe\ does not define Greek letters as math alphabet characters, and this switch to being math alphabet characters occurs only during a font change due to |\mathfont|. More specifically, \textsf{mathfont} defines Greek characters as |\mathalpha| type when it declares them as symbols. If the user doesn't change the |greekupper| or |greeklower| characters in a |\mathfont| command, the package won't change any Greek characters, and they will still be typeset as |\mathord| characters in Computer Modern (or potentially Latin Modern). In such a situation, any |\newmathfontcommand| or related macro will not be able to adjust Greek characters' font.
+%  
+%  \begin{figure}
+%  \centering
+%  Table 3: Font-changing Commands\par\penalty\@M\smallskip
+%  \begin{tabular}{ll}
+%  \toprule
+%  Command & Font Characteristics\\
+%  \midrule
+%  |\newmathrm| & Upright shape; medium weight\\
+%  |\newmathit| & Italic shape; medium weight\\
+%  |\newmathbold| & Upright shape; bold weight\\
+%  |\newmathboldit| & Italic shape; bold weight\\
+%  \bottomrule
+%  \end{tabular}
+%  \end{figure}
+%  
+%  Together these four commands will provide users with the tools for almost all desired local font changes, but they inevitably will be insufficient for some particular case. Accordingly, \textsf{mathfont} provides the more general |\newmathfontcommand| macro that functions similarly to the commands from Table~3 but allows the user to specify certain font characteristics. Its argument structure is
+%  \begin{code}
+%  |\newmathfontcommand{|\argtext{control sequence}|}{|\argtext{font name}|}{|\argtext{series}|}{|\argtext{shape}|}|,
+%  \end{code}
+%  where the font name again means any OpenType or TrueType font in a directory searchable by \TeX. The series and shape information refers to the \textsc{nfss} codes for these attributes, and the control sequence in the first argument becomes the command that allows the user to access the specified font. Advanced users will note that these five macros are essentially wrapped versions of \LaTeX's |\DeclareMathAlphabet|, so like |\mathfont|, they must be used in the document preamble.
+%  
+%  \section*{Greek Characters}
+%  
+%  Unlike Plain \TeX\ and \LaTeXe, \textsf{mathfont} defines control sequences for all characters in the Greek alphabet. (\TeX's OT encodings do not include the captial Greek characters that resemble Latin letters. Presumably Donald Knuth made this decision to conserve encoding slots.) All such control sequences instruct \LaTeX\ to typeset the corresponding unicode Greek character, and \textsf{mathfont} also provides control sequences for several ancient Greek letters. Table~4 lists all Greek character control sequences provided by \textsf{mathfont}. I do not include typeset versions of these characters in this documentation because I wanted to avoid potential problems with users being unable to compile \texttt{mathfont.dtx} properly. However, see the file \texttt{mathfont\char`\_greek.pdf}, which is included with the \textsf{mathfont} installation and is available on \textsc{ctan}.
+%  
+%  \begin{figure}[t]
+%  \centering
+%  Table 4: Greek Character Control Sequences\par\penalty\@M\smallskip
+%  \begin{tabular}{llll}
+%  \toprule
+%  \multicolumn{2}{c}{Modern Greek Characters} & \multicolumn{2}{c}{Ancient Greek Characters}\\
+% \cmidrule(r{3pt}){1-2}\cmidrule(l{3pt}){3-4}
+%  \hbox to 7em{Capital\hfil} & \hbox to 7em{Minuscule\hfil} & \hbox to 7em{Capital\hfil} & \hbox to 7em{Minuscule\hfil}\\
+% \midrule
+%  |\Alpha| & |\alpha| &  |\Heta| & |\heta| \\
+%  |\Beta| & |\beta| &  |\Sampi| & |\sampi| \\
+%  |\Gamma| & |\gamma| & |\Diagamma| & |\diagama| \\
+%  |\Delta| & |\delta| &  |\Koppa| & |\koppa| \\
+%  |\Epsilon| & |\epsilon| & |\Stigma| & |\stigma| \\ 
+%  |\Zeta| & |\zeta| &  |\Sho| & |\sho| \\
+%  |\Eta| & |\eta| &  |\San| & |\san| \\
+%  |\Theta| & |\theta| &  |\varSampi | & |\varsampi| \\
+%  |\Iota| & |\iota| &  |\varDiagamma| & |\vardiagamma| \\
+%  |\Kappa| & |\kappa| & |\varKoppa| & |\varkoppa| \\ 
+%  |\Lambda| & |\lambda| & & \\
+%  |\Mu| & |\mu| &  & \\
+%  |\Nu| & |\nu| &  & \\
+%  |\Xi| & |\xi| &  & \\
+%  |\Omicron| & |\omicron| &  & \\
+%  |\Pi| & |\pi| &  & \\
+%  |\Rho| & |\rho| &  & \\
+%  |\Sigma| & |\sigma| &  & \\
+%  |\Tau| & |\tau| &  & \\
+%  |\Upsilon| & |\upsilon| &  & \\
+%  |\Phi| & |\phi| &  & \\
+%  |\Chi| & |\chi| &  & \\
+%  |\Psi| & |\psi| &  & \\
+%  |\Omega| & |\omega| &  & \\
+%  |\varTheta| & |\varbeta| &  & \\
+%   & |\varepsilon| &  & \\
+%   & |\vartheta| &  & \\
+%   & |\varrho| &  & \\
+%   & |\varsigma| &  & \\
+%   & |\varphi| &  & \\
+%  \bottomrule
+%  \end{tabular}
+%  \end{figure}
+%  
+%  \section*{Handling Errors}
+%  
+%  Most of \textsf{mathfont}'s error messages are self-explanatory, and the help text will contain instructions for how to resolve the message. Nevertheless, some of the possible error messages warrant additional explanation.
+%  
+%  The most salient error is the ``Missing \XeTeX\ or Lua\TeX'' message. If a user tries to load \textsf{mathfont} without one of these two engines, \TeX\ will crash, either through \textsf{mathfont}'s fatal error message or when \textsf{fontspec} performs its own engine checks. Advanced users should note that \textsf{mathfont} doesn't actually determine the typesetting engine. Rather, it checks whether the \XeTeX\ and Lua\TeX\ primitives |\Umathcode| and |\Umathchardef| are defined, so if for some reason these control sequences have definitions when the user loads \textsf{mathfont}, \textsf{fontspec}'s more robust engine checks will cause \TeX\ to abort. The reasoning here is straightforward: \textsf{mathfont} verifies only that the current typesetting engine provides the commands that it directly needs, so its potential functionality remains as broad as possible. If \textsf{fontspec} becomes compatible with a third engine that also provides (analogues of) |\Umathcode| and |\Umathchardef|, there is no reason to prevent \textsf{mathfont} from working with that engine as well. The obvious corollary to this setup is that users with very old \XeTeX\ or Lua\TeX\ distributions could see this fatal error even when running one of these engines, and the solution is probably to upgrade a more recent version of the engine in question. Unfortunately, I do not know exactly when \XeTeX\ and Lua\TeX\ introduced these primitives.
+%  
+%  The \textsf{fontspec} package includes a ``|no-math|'' option, and \textsf{mathfont} expects \textsf{fontspec} to be loaded with this option. As mentioned previously, \textsf{mathfont} loads \textsf{fontspec} by default, but users can load \textsf{fontspec} before \textsf{mathfont} if they want to manually specify the package options. Alternatively, \LaTeX's |\PassOptionsToPackage| may be an even better way to proceed. If \textsf{mathfont} detects that \textsf{fontspec} was loaded without the |no-math| option, it will issue an error message saying so. This error is not paramount in the sense that the document will compile almost normally if a user ignores it, but \textsf{mathfont} will probably have trouble changing the font of certain math-mode characters in this situation. During development, Arabic numerals posed a particular issue in this regard.
+%  
+%  The ``internal commands restored'' error arises when the user calls |\mathfont| in a situation where \textsf{mathfont} has already restored the small portion of the \LaTeX\ kernel that it adjusts when loaded. Unless the user loads \textsf{mathfont} with the |packages| option, this process happens when the user loads an additional package after \textsf{mathfont}, and \textsf{mathfont} will not carry out a call to |\mathfont| at that point. As mentioned previously, users who want to manually restore the \LaTeX\ kernel can do so with the |\restoremathinternals| command.
+%  
+%  Users who receive an ``Invalid option'' error for |\mathfont| should make sure they removed any extra spaces from their list of keywords in the command's optional argument. It is also worth pointing out if the user tries to reset the default font for some characters with |\mathfont|, the package will issue a warning but will not halt the compilation process.
+%  
+%  
+%  What should you do if you can't resolve an error? First, always, always make sure that you spelled all of your commands correctly and closed all braces and brackets. Then check the \textsf{mathfont} documentation---you may be trying to do something outside the scope of the package, or you may be dealing with a special case. In particular, read all the sections of the documentation that relate to the command or commands you are having trouble with! It is possible (likely) that I have organized the information here differently from your ideal package documentation, so you may be looking in the wrong portions of the documentation for help. The internet is a great resource, and websites such as the \TeX\ StackExchange, Share\LaTeX, and Wikibooks's \LaTeX\ wiki are often invaluable in dealing with \TeX-related issues. Definitely ask another human as well! At that point, and only at that point, should you email the author about your code. If you believe that you have found a bug, please indicate that clearly in your email subject line! Please also include a minimal working example that demonstrates the problem in any such correspondence. I will make every effort to write back to emails about \textsf{mathfont}, but I cannot guarantee a timely response.
+%  
+%  
+% 
+% 
+% 
+% \eject\section*{Implementation}
+% 
+% 
+% 
+% \noindent First and foremost, the package needs to declare itself.
+% The \texttt{packages} option
+% changes the |\if at packages| boolean from false to true.
+% 
+%    \begin{macrocode}
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{mathfont}[2018/06/14 v. 1.1b Package mathfont]
+\newif\if at packages
+\DeclareOption{packages}{\@packagestrue}
+\DeclareOption*{\PackageError{mathfont}
+  {Option "\CurrentOption" unknown}
+  {I'm ignoring that option because\MessageBreak
+  I don't know what it means.}}
+\ProcessOptions\relax
+%    \end{macrocode}
+% Some error and informational messages.
+%    \begin{macrocode}
+\def\M at FontChangeInfo#1{\PackageInfo{mathfont}
+  {Changing #1 characters to\MessageBreak
+  math font \csname M at font\the\M at count\endcsname\MessageBreak
+  with \csname @#1 shape\endcsname\MessageBreak
+  shape}}
+\def\M at NewFontCommandInfo#1#2#3#4{\PackageInfo{mathfont}
+  {Creating math alphabet\MessageBreak
+  command \string#1 using #2\MessageBreak
+  with series #3 and shape\MessageBreak
+  #4}}
+\def\M at CommandInitializeInfo#1{\PackageInfo{mathfont}
+  {Initializing #1 font-change\MessageBreak
+  command}}
+\def\M at SetInternalsInfo{\PackageInfo{mathfont}
+  {Adjusting \string\set at mathchar\space and\MessageBreak
+  \string\set at mathcode}}
+\def\M at RestoreInternalsInfo{\PackageInfo{mathfont}
+  {Restoring \string\set at mathchar\space and\MessageBreak
+  \string\set at mathcode}}
+\def\M at CharsSetWarning#1{\PackageWarning{mathfont}
+  {Font for #1 chars has already\MessageBreak
+  been set}}
+\def\M at NoMathError{\PackageError{mathfont}
+  {Package fontspec was loaded\MessageBreak
+  without the "no-math" option}
+  {This isn't really an error--\MessageBreak
+  it's fine to load fontspec\MessageBreak
+  without "no-math." However,\MessageBreak
+  strange things could happen,\MessageBreak
+  so beware of any sudden and\MessageBreak
+  unexpected font changes. To\MessageBreak
+  resolve this error message,\MessageBreak
+  load fontspec with the "no-\MessageBreak
+  math" option. If you haven't\MessageBreak
+  loaded fontspec manually, try\MessageBreak
+  loading mathfont earlier in\MessageBreak
+  your preamble.}}
+\def\M at InvalidOptionError#1{\PackageError{mathfont}
+  {Invalid option "#1"\MessageBreak for \string\mathfont}
+  {Hm. Check that you spelled the\MessageBreak
+  option correctly and didn't include\MessageBreak
+  any extra spaces. Otherwise, I'm\MessageBreak
+  not sure what's wrong. Is this\MessageBreak
+  option listed in the package\MessageBreak
+  documentation?}}
+\def\M at InternalsRestoredError{\PackageError{mathfont}
+  {Internal commands restored}
+  {This package slightly changes two LaTeX\MessageBreak
+  internal commands, and you really shouldn't\MessageBreak
+  be loading new math fonts without those\MessageBreak
+  adjustments. What happened here is that you\MessageBreak
+  used \string\mathfont\space in a situation
+  where those\MessageBreak
+  two commands retain their original defini-\MessageBreak
+  tions. Presumably you used
+  \string\mathfont\space after\MessageBreak
+  loading another package or calling the\MessageBreak
+  \string\restoremathinternals\space
+  command, and in any\MessageBreak
+  event, I'm going to ignore this call to\MessageBreak
+  \string\mathfont. Try retypesetting this document\MessageBreak
+  with all \string\mathfont\space
+  commands immediately\MessageBreak
+  after \string\usepackage{mathfont}.}}
+\def\M at MissingControlSequenceError#1{\PackageError{mathfont}
+  {Improper argument\MessageBreak
+  for \string#1}
+  {Please use a control sequence as the\MessageBreak
+  first argument of \string#1.}}
+\def\M at HModeError#1{\PackageError{mathfont}
+  {Missing \string$ inserted.\MessageBreak
+  Command \string#1 must be used in\MessageBreak
+  math mode}
+  {I generated an error because\MessageBreak
+  you used \string#1 outside of\MessageBreak
+  math mode. I've inserted a \string$\MessageBreak
+  just before your \string#1, so\MessageBreak
+  we should be all good now.}}
+\def\M at XeTeXLuaTeXError{\PackageError{mathfont}
+  {!!FATAL ERROR!! : Missing XeTeX or LuaTeX}
+  {This package requires either\MessageBreak
+  XeLaTeX or LuaLaTeX. Please\MessageBreak
+  retypeset this document with\MessageBreak
+  one of those two engines. This\MessageBreak
+  error is fatal, so I'm going\MessageBreak
+  to stop processing once you\MessageBreak
+  push enter.}\@@end}
+%    \end{macrocode}
+% Check if the current engine has defined the necessary primitives.
+%    \begin{macrocode}
+\ifx\Umathcode\@undefined
+\else
+  \ifx\Umathchardef\@undefined
+  \else
+    \let\M at XeTeXLuaTeXError\relax
+  \fi
+\fi
+\M at XeTeXLuaTeXError
+%    \end{macrocode}
+% We load the \textsf{fontspec} package in order to use
+% its main font loading mechanism, and we |\let| the
+% macro |\@newfont| take on this function.
+% We also make sure that \textsf{fontspec} was loaded
+% with the |no-math| option because without it, \textsf{fontspec} may cause trouble
+% with some of the math characters. If |\g__fontspec_math_bool|
+% is equal to 1, \textsf{mathfont} will issue an error message.
+%    \begin{macrocode}
+\@ifpackageloaded{fontspec}
+  {\ifnum\csname g__fontspec_math_bool\endcsname=1
+    \M at NoMathError
+  \fi}{\RequirePackage[no-math]{fontspec}}
+\expandafter\let\expandafter\@newfont
+  \csname fontspec_set_family:Nnn\endcsname
+%    \end{macrocode}
+% We save |\set at mathchar| and |\set at mathsymbol| from the \LaTeX\ kernel 
+% so we can change their
+% definitions. We need to adapt these macros for use with unicode fonts, and we
+% replace |\mathcode| and |\mathchardef| respectively
+% with the \XeTeX\ and Lua\TeX primitives |\Umathcode| and |\Umathchardef|.
+% The unicode primitives support decimal input using 
+% a |+| sign, and we take advantage of that feature to avoid hexadecimal conversions.
+%    \begin{macrocode}
+\M at SetInternalsInfo
+\let\@@set at mathchar\set at mathchar
+\let\@@set at mathsymbol\set at mathsymbol
+\def\set at mathchar#1#2#3#4{%
+  \multiply\count\z@ by 16\relax
+  \advance\count\z@\count\tw@
+  \global\Umathcode`#2=\mathchar at type#3+#1+\count\z@}
+\def\set at mathsymbol#1#2#3#4{%
+  \multiply\count\z@ by 16\relax
+  \advance\count\z@\count\tw@
+  \global\Umathchardef#2\mathchar at type#3+#1+\count\z@}
+%    \end{macrocode}
+% We need to keep track of the number of times we have loaded a font.
+% The count |\M at count| fulfills this role.
+%    \begin{macrocode}
+\newcount\M at count
+\M at count\z@
+%    \end{macrocode}
+% We create necessary booleans and the default math font shapes.
+%    \begin{macrocode}
+\newif\if at upper
+\newif\if at lower
+\newif\if at greekupper
+\newif\if at greeklower
+\newif\if at operator
+\newif\if at digits
+\newif\if at bb
+\newif\if at cal
+\newif\if at frak
+\newif\if at bcal
+\newif\if at bfrak
+\newif\if at suboptionpresent
+\def\@uppershape{italic}
+\def\@lowershape{italic}
+\def\@greekuppershape{roman}
+\def\@greeklowershape{italic}
+\def\@digitsshape{roman}
+\def\@operatorshape{roman}
+\def\@bbshape{roman}
+\def\@calshape{roman}
+\def\@frakshape{roman}
+\def\@bcalshape{roman}
+\def\@bfrakshape{roman}
+%    \end{macrocode}
+% We want to allow the user to specify options using an
+% \textsf{xkeyval}-type syntax. However, we do not need the full package; a slim
+% 31 lines of code will suffice. The macro |\check at suboption| determines whether the
+% user specified a keyword option for |\mathfont| using a |key=value| input and stores both 
+% the option and corresponding suboption, if applicable,
+% in |\@tempa| and |\@tempb| respectively.
+%   \begin{macrocode}
+\def\strip at equals#1={#1}
+\def\check at suboption#1=#2\@nil{%
+  \def\@tempa{#1}
+  \def\@tempb{#2}
+  \check at option@valid\@tempa
+  \ifx\@tempb\@empty
+    \@suboptionpresentfalse
+  \else
+    \edef\@tempb{\expandafter\strip at equals\@tempb}
+    \check at suboption@valid\@tempb
+    \@suboptionpresenttrue
+  \fi}
+%    \end{macrocode}
+% The commands |\check at option@valid| and
+% |\check at suboption@valid| confirm that the keyword option and
+% suboption are legitimate. If not, \textsf{mathfont} issues an error.
+%    \begin{macrocode}
+\def\check at option@valid#1{%
+  \def\@temperror{\M at InvalidOptionError{#1}}
+  \@for\@j:=upper,lower,greekupper,greeklower,digits,operator\do{%
+    \ifx\@j#1
+      \let\@temperror\relax
+    \fi}
+%    \end{macrocode}
+% We have to initialize the blackboard, calligraphic, and fraktur commands separately
+% because they don't use the same encoding-alphabet system as the regular letters
+% and digits. The |\define@|\argtext{keyword} macro does this.
+%    \begin{macrocode}
+  \@for\@j:=bb,cal,frak,bcal,bfrak\do{%
+    \ifx\@j#1
+      \let\@temperror\relax
+      \csname define@\@j\endcsname
+    \fi}
+  \@temperror}
+\def\check at suboption@valid#1{%
+  \def\@temperror{\M at InvalidOptionError{#1}}
+  \@for\@j:=roman,italic\do{%
+    \ifx\@j#1
+      \let\@temperror\relax
+    \fi}
+  \@temperror}
+%    \end{macrocode}
+% 
+% \section*{Implementation of Default Font Changes}
+% 
+% The user-level command |\mathfont| passes 
+% its mandatory argument to |\@newfont| through the |\@mathfont| command. If the user 
+% includes |\mathfont| with an optional argument, |\@mathfont| will loop through
+% each item in the optional argument
+% using |\@for| and set the math font for each of those classes of
+% characters. If the user does not specify an optional argument, |\mathfont| calls |\@mathfont| with the list of entries from Table~1 in brackets. The |\@mathfont| macro proceeds in several steps. First, it checks if |\set at mathchar| has been reset, and if so, the current call to |\mathfont| will do nothing. If not, the macro loads the user's font with |\@newfont| and checks its keyword optional arguments. The command declares the appropriate symbol fonts if necessary, actually sets the math font by calling |\M@|\argtext{keyword}|@set|
+% command, and records that the font change occurred by switching the 
+% appropriate boolean to true. Finally, |\@mathfont| increments |\M at count| by one.
+% 
+% The package stores each new font in a macro of the form
+% |\M at font|\argtext{number}, where \textit{number} is given by the 
+% current value of |\M at count|. The name of the corresponding symbol fonts is
+% |M|\argtext{shape}\argtext{number}, where
+% \textit{shape} is either \texttt{roman} or \texttt{italic} and \textit{number} is again the value of |\M at count|. For each keyword from Tables~1 and 2, the
+% package originally defines |\@|\argtext{keyword}|shape| as the default shape
+% for that collection of characters. If the user specifies a suboption for any keyword in the 
+% optional argument of |\mathfont|, the package overrides the default shape by
+% redefining |\@|\argtext{keyword}|shape| to the value of the suboption. For
+% example, suppose the loads \textsf{mathfont} and then immediately writes
+% \begin{code}
+% |\mathfont[upper=roman]{Helvetica}|.
+% \end{code}
+% In this situation, \textsf{mathfont} would define |\M at font0| to be the internal name of Helvetica, and the corresponding symbol font names would be |Mroman0| and |Mitalic0|. Because the user specified a suboption, |\@mathfont| would redefine |\M at uppershape| to the token string ``\texttt{roman},'' and the package will use |\M at uppershape| later to specify the  symbol font for capital Latin characters.
+%    \begin{macrocode}
+\def\gobble at equals#1=#2\@nil{#1}
+\def\mathfont{\@ifnextchar[{\@mathfont}
+  {\@mathfont[upper,lower,greekupper,greeklower,digits,operator]}}
+\def\@mathfont[#1]#2{%
+  \ifx\@@set at mathchar\set at mathchar
+    \M at InternalsRestoredError
+  \else
+    \expandafter\@newfont\csname M at font\the\M at count\endcsname{}{#2}
+    \@for\@i:=#1\do{\expandafter\check at suboption\@i=\@nil
+%    \end{macrocode}
+% If the user calls |\mathfont| and tries
+% to reset the font for a certain class of characters, \textsf{mathfont} will issue a warning, 
+% and the package will not adjust the font for those characters. Notice the particularly awkward syntax with the |\csname|-|\endcsname| pairs. Without this construct, \TeX\ wouldn't realize that |\csname if@\@tempa\endcsname| matches the eventual |\fi|, and the |\@for| loop would break. (\TeX\ does not have a smart if-parser!)
+%    \begin{macrocode}
+      \expandafter\ifx\csname if@\@tempa\expandafter\endcsname
+                  \csname iftrue\endcsname
+        \M at CharsSetWarning{\@tempa}
+      \else
+%    \end{macrocode}
+% Handle the case with a suboption.
+%    \begin{macrocode}
+        \if at suboptionpresent
+          \expandafter\edef\csname @\@tempa shape\endcsname{\@tempb}
+        \fi
+%    \end{macrocode}
+% For both possible shapes, check whether the package has already declared that version of the current font for use in math mode using |\@ifundefined|. If not, do so.
+%    \begin{macrocode}
+        \def\@tempb{roman}
+        \expandafter\ifx\csname @\@tempa shape\endcsname\@tempb
+          \@ifundefined{symMroman\the\M at count}{%
+            \DeclareSymbolFont{Mroman\the\M at count}{TU}
+              {\csname M at font\the\M at count\endcsname}{m}{n}}{}
+        \fi
+        \def\@tempb{italic}
+        \expandafter\ifx\csname @\@tempa shape\endcsname\@tempb
+          \@ifundefined{symMitalic\the\M at count}{%
+            \DeclareSymbolFont{Mitalic\the\M at count}{TU}
+              {\csname M at font\the\M at count\endcsname}{m}{it}}{}
+        \fi
+%    \end{macrocode}
+% And now the magic happens.
+%    \begin{macrocode}
+        \M at FontChangeInfo{\@tempa}
+        \csname M@\@tempa @set\endcsname
+        \csname @\@tempa true\endcsname
+      \fi}
+    \advance\M at count\@ne\relax
+  \fi}
+\@onlypreamble\mathfont
+%    \end{macrocode}
+% 
+% \section*{Implementation of Local Font Changes}
+% 
+% The general |\newmathfontcommand| macro creates commands that locally change the math font. This macro creates a new math alphabet, and it stores that alphabet in the user-provided control sequence. First, we check to make sure that the user provided a control sequence for the first argument of |\newmathfontcommand|, and if the user did not, |\check at csarg| issues an error.
+%    \begin{macrocode}
+\def\check at csarg#1#2#3{%
+  \ifcat\relax\noexpand#2
+    \def\@tempa{#2}
+    \@newfont\@tempb{}{#3}
+    \expandafter\@newmathfontcommand
+  \else
+    \M at MissingControlSequenceError#1
+  \fi}
+%    \end{macrocode}
+% Now declare the math alphabet.
+%    \begin{macrocode}
+\def\@newmathfontcommand#1#2{\expandafter
+  \DeclareMathAlphabet\expandafter{\@tempa}{TU}{\@tempb}{#1}{#2}}
+\def\newmathfontcommand{\check at csarg\newmathfontcommand}
+\@onlypreamble\newmathfontcommand
+%    \end{macrocode}
+% Then provide the four default versions.
+%    \begin{macrocode}
+\def\newmathrm#1#2{\check at csarg\newmathrm{#1}{#2}{m}{n}}
+\def\newmathit#1#2{\check at csarg\newmathit{#1}{#2}{m}{it}}
+\def\newmathbold#1#2{\check at csarg\newmathbold{#1}{#2}{b}{n}}
+\def\newmathboldit#1#2{\check at csarg\newmathboldit{#1}{#2}{b}{it}}
+\@onlypreamble\newmathrm
+\@onlypreamble\newmathit
+\@onlypreamble\newmathbold
+\@onlypreamble\newmathboldit
+%    \end{macrocode}
+%
+% \section*{Implementation of Alphanumeric Symbols}
+% 
+% Each |\define@|\argtext{keyword} macro redefines one of the standard |\math|\argtext{keyword} commands. The new versions first check if they are in math mode using |\check at mmode| and then scan all tokens of their argument using |\@tfor|. For each token, the macro calls  |\M@|\argtext{keyword}|@|\argtext{token}, which evaluates to a |\mathord| symbol in the desired style. 
+%    \begin{macrocode}
+\def\check at mmode#1#2{%
+  \let\@tempa#2%
+  \ifmmode
+    \expandafter\@tempa
+  \else
+    \leavevmode\M at HModeError#1%
+    \expandafter$\expandafter\@tempa
+  \fi}
+\def\process at tokens#1#2{\@tfor\@k:=#1\do{\csname M@#2@\@k\endcsname}}
+\def\define at bb{%
+  \M at CommandInitializeInfo{blackboard bold}
+  \def\mathbb{\check at mmode\mathbb\@mathbb}
+  \def\@mathbb##1{\process at tokens{##1}{bb}}}
+\def\define at cal{%
+  \M at CommandInitializeInfo{calligraphic}
+  \def\mathcal{\check at mmode\mathcal\@mathcal}
+  \def\@mathcal##1{\process at tokens{##1}{cal}}}
+\def\define at frak{%
+  \M at CommandInitializeInfo{fraktur}
+  \def\mathcal{\check at mmode\mathfrak\@mathfrak}
+  \def\@mathfrak##1{\process at tokens{##1}{frak}}}
+\def\define at bcal{%
+  \M at CommandInitializeInfo{bold calligraphic}
+  \def\mathbcal{\check at mmode\mathbcal\@mathbcal}
+  \def\@mathbcal##1{\process at tokens{##1}{bcal}}}
+\def\define at bfrak{%
+  \M at CommandInitializeInfo{bold fraktur}
+  \def\mathbfrak{\check at mmode\mathbfrak\@mathbfrak}
+  \def\@mathbfrak##1{\process at tokens{##1}{bfrak}}}
+%    \end{macrocode}
+% 
+% \section*{Unicode Hex Values}
+% 
+% Set capital Latin characters. We use an |\edef| for |\M at upper| because
+% every expansion now will save \LaTeX\ twenty-six expansions later when it 
+% evaluates each |\DeclareMathSymbol|.
+%    \begin{macrocode}
+\def\M at upper@set{%
+  \edef\M at upper{M\@uppershape\the\M at count}
+  \DeclareMathSymbol{A}{\mathalpha}{\M at upper}{`A}
+  \DeclareMathSymbol{B}{\mathalpha}{\M at upper}{`B}
+  \DeclareMathSymbol{C}{\mathalpha}{\M at upper}{`C}
+  \DeclareMathSymbol{D}{\mathalpha}{\M at upper}{`D}
+  \DeclareMathSymbol{E}{\mathalpha}{\M at upper}{`E}
+  \DeclareMathSymbol{F}{\mathalpha}{\M at upper}{`F}
+  \DeclareMathSymbol{G}{\mathalpha}{\M at upper}{`G}
+  \DeclareMathSymbol{H}{\mathalpha}{\M at upper}{`H}
+  \DeclareMathSymbol{I}{\mathalpha}{\M at upper}{`I}
+  \DeclareMathSymbol{J}{\mathalpha}{\M at upper}{`J}
+  \DeclareMathSymbol{K}{\mathalpha}{\M at upper}{`K}
+  \DeclareMathSymbol{L}{\mathalpha}{\M at upper}{`L}
+  \DeclareMathSymbol{M}{\mathalpha}{\M at upper}{`M}
+  \DeclareMathSymbol{N}{\mathalpha}{\M at upper}{`N}
+  \DeclareMathSymbol{O}{\mathalpha}{\M at upper}{`O}
+  \DeclareMathSymbol{P}{\mathalpha}{\M at upper}{`P}
+  \DeclareMathSymbol{Q}{\mathalpha}{\M at upper}{`Q}
+  \DeclareMathSymbol{R}{\mathalpha}{\M at upper}{`R}
+  \DeclareMathSymbol{S}{\mathalpha}{\M at upper}{`S}
+  \DeclareMathSymbol{T}{\mathalpha}{\M at upper}{`T}
+  \DeclareMathSymbol{U}{\mathalpha}{\M at upper}{`U}
+  \DeclareMathSymbol{V}{\mathalpha}{\M at upper}{`V}
+  \DeclareMathSymbol{W}{\mathalpha}{\M at upper}{`W}
+  \DeclareMathSymbol{X}{\mathalpha}{\M at upper}{`X}
+  \DeclareMathSymbol{Y}{\mathalpha}{\M at upper}{`Y}
+  \DeclareMathSymbol{Z}{\mathalpha}{\M at upper}{`Z}}
+%    \end{macrocode}
+% Set minuscule Latin characters.
+%    \begin{macrocode}
+\def\M at lower@set{%
+  \edef\M at lower{M\@lowershape\the\M at count}
+  \DeclareMathSymbol{a}{\mathalpha}{\M at lower}{`a}
+  \DeclareMathSymbol{b}{\mathalpha}{\M at lower}{`b}
+  \DeclareMathSymbol{c}{\mathalpha}{\M at lower}{`c}
+  \DeclareMathSymbol{d}{\mathalpha}{\M at lower}{`d}
+  \DeclareMathSymbol{e}{\mathalpha}{\M at lower}{`e}
+  \DeclareMathSymbol{f}{\mathalpha}{\M at lower}{`f}
+  \DeclareMathSymbol{g}{\mathalpha}{\M at lower}{`g}
+  \DeclareMathSymbol{h}{\mathalpha}{\M at lower}{`h}
+  \DeclareMathSymbol{i}{\mathalpha}{\M at lower}{`i}
+  \DeclareMathSymbol{j}{\mathalpha}{\M at lower}{`j}
+  \DeclareMathSymbol{k}{\mathalpha}{\M at lower}{`k}
+  \DeclareMathSymbol{l}{\mathalpha}{\M at lower}{`l}
+  \DeclareMathSymbol{m}{\mathalpha}{\M at lower}{`m}
+  \DeclareMathSymbol{n}{\mathalpha}{\M at lower}{`n}
+  \DeclareMathSymbol{o}{\mathalpha}{\M at lower}{`o}
+  \DeclareMathSymbol{p}{\mathalpha}{\M at lower}{`p}
+  \DeclareMathSymbol{q}{\mathalpha}{\M at lower}{`q}
+  \DeclareMathSymbol{r}{\mathalpha}{\M at lower}{`r}
+  \DeclareMathSymbol{s}{\mathalpha}{\M at lower}{`s}
+  \DeclareMathSymbol{t}{\mathalpha}{\M at lower}{`t}
+  \DeclareMathSymbol{u}{\mathalpha}{\M at lower}{`u}
+  \DeclareMathSymbol{v}{\mathalpha}{\M at lower}{`v}
+  \DeclareMathSymbol{w}{\mathalpha}{\M at lower}{`w}
+  \DeclareMathSymbol{x}{\mathalpha}{\M at lower}{`x}
+  \DeclareMathSymbol{y}{\mathalpha}{\M at lower}{`y}
+  \DeclareMathSymbol{z}{\mathalpha}{\M at lower}{`z}}
+%    \end{macrocode}
+% Set capital Greek characters.
+%    \begin{macrocode}
+\def\M at greekupper@set{%
+  \edef\M at greekupper{M\@greekuppershape\the\M at count}
+  \DeclareMathSymbol{\Alpha}{\mathalpha}{\M at greekupper}{"391}
+  \DeclareMathSymbol{\Beta}{\mathalpha}{\M at greekupper}{"392}
+  \DeclareMathSymbol{\Gamma}{\mathalpha}{\M at greekupper}{"393}
+  \DeclareMathSymbol{\Delta}{\mathalpha}{\M at greekupper}{"394}
+  \DeclareMathSymbol{\Epsilon}{\mathalpha}{\M at greekupper}{"395}
+  \DeclareMathSymbol{\Zeta}{\mathalpha}{\M at greekupper}{"396}
+  \DeclareMathSymbol{\Eta}{\mathalpha}{\M at greekupper}{"397}
+  \DeclareMathSymbol{\Theta}{\mathalpha}{\M at greekupper}{"398}
+  \DeclareMathSymbol{\Iota}{\mathalpha}{\M at greekupper}{"399}
+  \DeclareMathSymbol{\Kappa}{\mathalpha}{\M at greekupper}{"39A}
+  \DeclareMathSymbol{\Lambda}{\mathalpha}{\M at greekupper}{"39B}
+  \DeclareMathSymbol{\Mu}{\mathalpha}{\M at greekupper}{"39C}
+  \DeclareMathSymbol{\Nu}{\mathalpha}{\M at greekupper}{"39D}
+  \DeclareMathSymbol{\Xi}{\mathalpha}{\M at greekupper}{"39E}
+  \DeclareMathSymbol{\Omicron}{\mathalpha}{\M at greekupper}{"39F}
+  \DeclareMathSymbol{\Pi}{\mathalpha}{\M at greekupper}{"3A0}
+  \DeclareMathSymbol{\Rho}{\mathalpha}{\M at greekupper}{"3A1}
+  \DeclareMathSymbol{\Sigma}{\mathalpha}{\M at greekupper}{"3A3}
+  \DeclareMathSymbol{\Tau}{\mathalpha}{\M at greekupper}{"3A4}
+  \DeclareMathSymbol{\Upsilon}{\mathalpha}{\M at greekupper}{"3A5}
+  \DeclareMathSymbol{\Phi}{\mathalpha}{\M at greekupper}{"3A6}
+  \DeclareMathSymbol{\Chi}{\mathalpha}{\M at greekupper}{"3A7}
+  \DeclareMathSymbol{\Psi}{\mathalpha}{\M at greekupper}{"3A8}
+  \DeclareMathSymbol{\Omega}{\mathalpha}{\M at greekupper}{"3A9}
+  \DeclareMathSymbol{\varTheta}{\mathalpha}{\M at greekupper}{"3F4}
+  \DeclareMathSymbol{\Heta}{\mathalpha}{\M at greekupper}{"370}
+  \DeclareMathSymbol{\Sampi}{\mathalpha}{\M at greekupper}{"3E0}
+  \DeclareMathSymbol{\Diagamma}{\mathalpha}{\M at greekupper}{"3DC}
+  \DeclareMathSymbol{\Koppa}{\mathalpha}{\M at greekupper}{"3D8}
+  \DeclareMathSymbol{\Stigma}{\mathalpha}{\M at greekupper}{"3DA}
+  \DeclareMathSymbol{\Sho}{\mathalpha}{\M at greekupper}{"3F7}
+  \DeclareMathSymbol{\San}{\mathalpha}{\M at greekupper}{"3FA}
+  \DeclareMathSymbol{\varSampi}{\mathalpha}{\M at greekupper}{"372}
+  \DeclareMathSymbol{\varDiagamma}{\mathalpha}{\M at greekupper}{"376}
+  \DeclareMathSymbol{\varKoppa}{\mathalpha}{\M at greekupper}{"3DE}}
+%    \end{macrocode}
+% Set minuscule Greek characters.
+%    \begin{macrocode}
+\def\M at greeklower@set{%
+  \edef\M at greeklower{M\@greeklowershape\the\M at count}
+  \DeclareMathSymbol{\alpha}{\mathalpha}{\M at greeklower}{"3B1}
+  \DeclareMathSymbol{\beta}{\mathalpha}{\M at greeklower}{"3B2}
+  \DeclareMathSymbol{\gamma}{\mathalpha}{\M at greeklower}{"3B3}
+  \DeclareMathSymbol{\delta}{\mathalpha}{\M at greeklower}{"3B4}
+  \DeclareMathSymbol{\epsilon}{\mathalpha}{\M at greeklower}{"3F5}
+  \DeclareMathSymbol{\zeta}{\mathalpha}{\M at greeklower}{"3B6}
+  \DeclareMathSymbol{\eta}{\mathalpha}{\M at greeklower}{"3B7}
+  \DeclareMathSymbol{\theta}{\mathalpha}{\M at greeklower}{"3B8}
+  \DeclareMathSymbol{\iota}{\mathalpha}{\M at greeklower}{"3B9}
+  \DeclareMathSymbol{\kappa}{\mathalpha}{\M at greeklower}{"3BA}
+  \DeclareMathSymbol{\lambda}{\mathalpha}{\M at greeklower}{"3BB}
+  \DeclareMathSymbol{\mu}{\mathalpha}{\M at greeklower}{"3BC}
+  \DeclareMathSymbol{\nu}{\mathalpha}{\M at greeklower}{"3BD}
+  \DeclareMathSymbol{\xi}{\mathalpha}{\M at greeklower}{"3BE}
+  \DeclareMathSymbol{\omicron}{\mathalpha}{\M at greeklower}{"3BF}
+  \DeclareMathSymbol{\pi}{\mathalpha}{\M at greeklower}{"3C0}
+  \DeclareMathSymbol{\rho}{\mathalpha}{\M at greeklower}{"3C1}
+  \DeclareMathSymbol{\sigma}{\mathalpha}{\M at greeklower}{"3C3}
+  \DeclareMathSymbol{\tau}{\mathalpha}{\M at greeklower}{"3C4}
+  \DeclareMathSymbol{\upsilon}{\mathalpha}{\M at greeklower}{"3C5}
+  \DeclareMathSymbol{\phi}{\mathalpha}{\M at greeklower}{"3D5}
+  \DeclareMathSymbol{\chi}{\mathalpha}{\M at greeklower}{"3C7}
+  \DeclareMathSymbol{\psi}{\mathalpha}{\M at greeklower}{"3C8}
+  \DeclareMathSymbol{\omega}{\mathalpha}{\M at greeklower}{"3C9}
+  \DeclareMathSymbol{\varbeta}{\mathalpha}{\M at greeklower}{"3D0}
+  \DeclareMathSymbol{\varepsilon}{\mathalpha}{\M at greeklower}{"3B5}
+  \DeclareMathSymbol{\vartheta}{\mathalpha}{\M at greeklower}{"3D1}
+  \DeclareMathSymbol{\varrho}{\mathalpha}{\M at greeklower}{"3F1}
+  \DeclareMathSymbol{\varsigma}{\mathalpha}{\M at greeklower}{"3C2}
+  \DeclareMathSymbol{\varphi}{\mathalpha}{\M at greeklower}{"3C6}
+  \DeclareMathSymbol{\heta}{\mathalpha}{\M at greeklower}{"371}
+  \DeclareMathSymbol{\sampi}{\mathalpha}{\M at greeklower}{"3E1}
+  \DeclareMathSymbol{\diagamma}{\mathalpha}{\M at greeklower}{"3DD}
+  \DeclareMathSymbol{\koppa}{\mathalpha}{\M at greeklower}{"3D9}
+  \DeclareMathSymbol{\stigma}{\mathalpha}{\M at greeklower}{"3DB}
+  \DeclareMathSymbol{\sho}{\mathalpha}{\M at greeklower}{"3F8}
+  \DeclareMathSymbol{\san}{\mathalpha}{\M at greeklower}{"3FB}
+  \DeclareMathSymbol{\varsampi}{\mathalpha}{\M at greeklower}{"373}
+  \DeclareMathSymbol{\vardiagamma}{\mathalpha}{\M at greeklower}{"377}
+  \DeclareMathSymbol{\varkoppa}{\mathalpha}{\M at greeklower}{"3DF}}
+%    \end{macrocode}
+% Set digits.
+%    \begin{macrocode}
+\def\M at digits@set{%
+  \edef\M at digits{M\@digitsshape\the\M at count}
+  \DeclareMathSymbol{0}{\mathalpha}{\M at digits}{`0}
+  \DeclareMathSymbol{1}{\mathalpha}{\M at digits}{`1}
+  \DeclareMathSymbol{2}{\mathalpha}{\M at digits}{`2}
+  \DeclareMathSymbol{3}{\mathalpha}{\M at digits}{`3}
+  \DeclareMathSymbol{4}{\mathalpha}{\M at digits}{`4}
+  \DeclareMathSymbol{5}{\mathalpha}{\M at digits}{`5}
+  \DeclareMathSymbol{6}{\mathalpha}{\M at digits}{`6}
+  \DeclareMathSymbol{7}{\mathalpha}{\M at digits}{`7}
+  \DeclareMathSymbol{8}{\mathalpha}{\M at digits}{`8}
+  \DeclareMathSymbol{9}{\mathalpha}{\M at digits}{`9}}
+%    \end{macrocode}
+% Set new operator font.
+%    \begin{macrocode}
+\def\M at operator@set{%
+  \edef\operator at font{\noexpand\mathgroup
+  \expandafter\noexpand
+    \csname symM\@operatorshape\the\M at count\endcsname}}
+%    \end{macrocode}
+% Set blackboard bold characters.
+%    \begin{macrocode}
+\def\M at bb@set{%
+  \edef\M at bb{M\@bbshape\the\M at count}
+  \DeclareMathSymbol{\M at bb@A}{\mathord}{\M at bb}{"1D538}
+  \DeclareMathSymbol{\M at bb@B}{\mathord}{\M at bb}{"1D539}
+  \DeclareMathSymbol{\M at bb@C}{\mathord}{\M at bb}{"2102}
+  \DeclareMathSymbol{\M at bb@D}{\mathord}{\M at bb}{"1D53B}
+  \DeclareMathSymbol{\M at bb@E}{\mathord}{\M at bb}{"1D53C}
+  \DeclareMathSymbol{\M at bb@F}{\mathord}{\M at bb}{"1D53D}
+  \DeclareMathSymbol{\M at bb@G}{\mathord}{\M at bb}{"1D53E}
+  \DeclareMathSymbol{\M at bb@H}{\mathord}{\M at bb}{"210D}
+  \DeclareMathSymbol{\M at bb@I}{\mathord}{\M at bb}{"1D540}
+  \DeclareMathSymbol{\M at bb@J}{\mathord}{\M at bb}{"1D541}
+  \DeclareMathSymbol{\M at bb@K}{\mathord}{\M at bb}{"1D542}
+  \DeclareMathSymbol{\M at bb@L}{\mathord}{\M at bb}{"1D543}
+  \DeclareMathSymbol{\M at bb@M}{\mathord}{\M at bb}{"1D544}
+  \DeclareMathSymbol{\M at bb@N}{\mathord}{\M at bb}{"2115}
+  \DeclareMathSymbol{\M at bb@O}{\mathord}{\M at bb}{"1D546}
+  \DeclareMathSymbol{\M at bb@P}{\mathord}{\M at bb}{"2119}
+  \DeclareMathSymbol{\M at bb@Q}{\mathord}{\M at bb}{"211A}
+  \DeclareMathSymbol{\M at bb@R}{\mathord}{\M at bb}{"211D}
+  \DeclareMathSymbol{\M at bb@S}{\mathord}{\M at bb}{"1D54A}
+  \DeclareMathSymbol{\M at bb@T}{\mathord}{\M at bb}{"1D54B}
+  \DeclareMathSymbol{\M at bb@U}{\mathord}{\M at bb}{"1D54C}
+  \DeclareMathSymbol{\M at bb@V}{\mathord}{\M at bb}{"1D54D}
+  \DeclareMathSymbol{\M at bb@W}{\mathord}{\M at bb}{"1D54E}
+  \DeclareMathSymbol{\M at bb@X}{\mathord}{\M at bb}{"1D43F}
+  \DeclareMathSymbol{\M at bb@Y}{\mathord}{\M at bb}{"1D550}
+  \DeclareMathSymbol{\M at bb@Z}{\mathord}{\M at bb}{"2124}
+  \DeclareMathSymbol{\M at bb@a}{\mathord}{\M at bb}{"1D552}
+  \DeclareMathSymbol{\M at bb@b}{\mathord}{\M at bb}{"1D553}
+  \DeclareMathSymbol{\M at bb@c}{\mathord}{\M at bb}{"1D554}
+  \DeclareMathSymbol{\M at bb@d}{\mathord}{\M at bb}{"1D555}
+  \DeclareMathSymbol{\M at bb@e}{\mathord}{\M at bb}{"1D556}
+  \DeclareMathSymbol{\M at bb@f}{\mathord}{\M at bb}{"1D557}
+  \DeclareMathSymbol{\M at bb@g}{\mathord}{\M at bb}{"1D558}
+  \DeclareMathSymbol{\M at bb@h}{\mathord}{\M at bb}{"1D559}
+  \DeclareMathSymbol{\M at bb@i}{\mathord}{\M at bb}{"1D55A}
+  \DeclareMathSymbol{\M at bb@j}{\mathord}{\M at bb}{"1D55B}
+  \DeclareMathSymbol{\M at bb@k}{\mathord}{\M at bb}{"1D55C}
+  \DeclareMathSymbol{\M at bb@l}{\mathord}{\M at bb}{"1D55D}
+  \DeclareMathSymbol{\M at bb@m}{\mathord}{\M at bb}{"1D55E}
+  \DeclareMathSymbol{\M at bb@n}{\mathord}{\M at bb}{"1D55F}
+  \DeclareMathSymbol{\M at bb@o}{\mathord}{\M at bb}{"1D560}
+  \DeclareMathSymbol{\M at bb@p}{\mathord}{\M at bb}{"1D561}
+  \DeclareMathSymbol{\M at bb@q}{\mathord}{\M at bb}{"1D562}
+  \DeclareMathSymbol{\M at bb@r}{\mathord}{\M at bb}{"1D563}
+  \DeclareMathSymbol{\M at bb@s}{\mathord}{\M at bb}{"1D564}
+  \DeclareMathSymbol{\M at bb@t}{\mathord}{\M at bb}{"1D565}
+  \DeclareMathSymbol{\M at bb@u}{\mathord}{\M at bb}{"1D566}
+  \DeclareMathSymbol{\M at bb@v}{\mathord}{\M at bb}{"1D567}
+  \DeclareMathSymbol{\M at bb@w}{\mathord}{\M at bb}{"1D568}
+  \DeclareMathSymbol{\M at bb@x}{\mathord}{\M at bb}{"1D569}
+  \DeclareMathSymbol{\M at bb@y}{\mathord}{\M at bb}{"1D56A}
+  \DeclareMathSymbol{\M at bb@z}{\mathord}{\M at bb}{"1D56B}
+  \expandafter\DeclareMathSymbol\expandafter
+    {\csname M at bb@0\endcsname}{\mathord}{\M at bb}{"1D7D8}
+  \expandafter\DeclareMathSymbol\expandafter
+    {\csname M at bb@1\endcsname}{\mathord}{\M at bb}{"1D7D9}
+  \expandafter\DeclareMathSymbol\expandafter
+    {\csname M at bb@2\endcsname}{\mathord}{\M at bb}{"1D7DA}
+  \expandafter\DeclareMathSymbol\expandafter
+    {\csname M at bb@3\endcsname}{\mathord}{\M at bb}{"1D7DB}
+  \expandafter\DeclareMathSymbol\expandafter
+    {\csname M at bb@4\endcsname}{\mathord}{\M at bb}{"1D7DC}
+  \expandafter\DeclareMathSymbol\expandafter
+    {\csname M at bb@5\endcsname}{\mathord}{\M at bb}{"1D7DD}
+  \expandafter\DeclareMathSymbol\expandafter
+    {\csname M at bb@6\endcsname}{\mathord}{\M at bb}{"1D7DE}
+  \expandafter\DeclareMathSymbol\expandafter
+    {\csname M at bb@7\endcsname}{\mathord}{\M at bb}{"1D7DF}
+  \expandafter\DeclareMathSymbol\expandafter
+    {\csname M at bb@8\endcsname}{\mathord}{\M at bb}{"1D7E0}
+  \expandafter\DeclareMathSymbol\expandafter
+    {\csname M at bb@9\endcsname}{\mathord}{\M at bb}{"1D7E1}}
+%    \end{macrocode}
+% Set caligraphic characters.
+%    \begin{macrocode}
+\def\M at cal@set{%
+  \edef\M at cal{M\@calshape\the\M at count}
+  \DeclareMathSymbol{\M at cal@A}{\mathord}{\M at cal}{"1D49C}
+  \DeclareMathSymbol{\M at cal@B}{\mathord}{\M at cal}{"212C}
+  \DeclareMathSymbol{\M at cal@C}{\mathord}{\M at cal}{"1D49E}
+  \DeclareMathSymbol{\M at cal@D}{\mathord}{\M at cal}{"1D49F}
+  \DeclareMathSymbol{\M at cal@E}{\mathord}{\M at cal}{"2130}
+  \DeclareMathSymbol{\M at cal@F}{\mathord}{\M at cal}{"2131}
+  \DeclareMathSymbol{\M at cal@G}{\mathord}{\M at cal}{"1D4A2}
+  \DeclareMathSymbol{\M at cal@H}{\mathord}{\M at cal}{"210B}
+  \DeclareMathSymbol{\M at cal@I}{\mathord}{\M at cal}{"2110}
+  \DeclareMathSymbol{\M at cal@J}{\mathord}{\M at cal}{"1D4A5}
+  \DeclareMathSymbol{\M at cal@K}{\mathord}{\M at cal}{"1D4A6}
+  \DeclareMathSymbol{\M at cal@L}{\mathord}{\M at cal}{"2112}
+  \DeclareMathSymbol{\M at cal@M}{\mathord}{\M at cal}{"2133}
+  \DeclareMathSymbol{\M at cal@N}{\mathord}{\M at cal}{"1D4A9}
+  \DeclareMathSymbol{\M at cal@O}{\mathord}{\M at cal}{"1D4AA}
+  \DeclareMathSymbol{\M at cal@P}{\mathord}{\M at cal}{"1D4AB}
+  \DeclareMathSymbol{\M at cal@Q}{\mathord}{\M at cal}{"1D4AC}
+  \DeclareMathSymbol{\M at cal@R}{\mathord}{\M at cal}{"211B}
+  \DeclareMathSymbol{\M at cal@S}{\mathord}{\M at cal}{"1D4AE}
+  \DeclareMathSymbol{\M at cal@T}{\mathord}{\M at cal}{"1D4AF}
+  \DeclareMathSymbol{\M at cal@U}{\mathord}{\M at cal}{"1D4B0}
+  \DeclareMathSymbol{\M at cal@V}{\mathord}{\M at cal}{"1D4B1}
+  \DeclareMathSymbol{\M at cal@W}{\mathord}{\M at cal}{"1D4B2}
+  \DeclareMathSymbol{\M at cal@X}{\mathord}{\M at cal}{"1D4B3}
+  \DeclareMathSymbol{\M at cal@Y}{\mathord}{\M at cal}{"1D4B4}
+  \DeclareMathSymbol{\M at cal@Z}{\mathord}{\M at cal}{"1D4B5}
+  \DeclareMathSymbol{\M at cal@a}{\mathord}{\M at cal}{"1D4B6}
+  \DeclareMathSymbol{\M at cal@b}{\mathord}{\M at cal}{"1D4B7}
+  \DeclareMathSymbol{\M at cal@c}{\mathord}{\M at cal}{"1D4B8}
+  \DeclareMathSymbol{\M at cal@d}{\mathord}{\M at cal}{"1D4B9}
+  \DeclareMathSymbol{\M at cal@e}{\mathord}{\M at cal}{"212F}
+  \DeclareMathSymbol{\M at cal@f}{\mathord}{\M at cal}{"1D4BB}
+  \DeclareMathSymbol{\M at cal@g}{\mathord}{\M at cal}{"210A}
+  \DeclareMathSymbol{\M at cal@h}{\mathord}{\M at cal}{"1D4BD}
+  \DeclareMathSymbol{\M at cal@i}{\mathord}{\M at cal}{"1D4BE}
+  \DeclareMathSymbol{\M at cal@j}{\mathord}{\M at cal}{"1D4BF}
+  \DeclareMathSymbol{\M at cal@k}{\mathord}{\M at cal}{"1D4C0}
+  \DeclareMathSymbol{\M at cal@l}{\mathord}{\M at cal}{"1D4C1}
+  \DeclareMathSymbol{\M at cal@m}{\mathord}{\M at cal}{"1D4C2}
+  \DeclareMathSymbol{\M at cal@n}{\mathord}{\M at cal}{"1D4C3}
+  \DeclareMathSymbol{\M at cal@o}{\mathord}{\M at cal}{"2134}
+  \DeclareMathSymbol{\M at cal@p}{\mathord}{\M at cal}{"1D4C5}
+  \DeclareMathSymbol{\M at cal@q}{\mathord}{\M at cal}{"1D4C6}
+  \DeclareMathSymbol{\M at cal@r}{\mathord}{\M at cal}{"1D4C7}
+  \DeclareMathSymbol{\M at cal@s}{\mathord}{\M at cal}{"1D4C8}
+  \DeclareMathSymbol{\M at cal@t}{\mathord}{\M at cal}{"1D4C9}
+  \DeclareMathSymbol{\M at cal@u}{\mathord}{\M at cal}{"1D4CA}
+  \DeclareMathSymbol{\M at cal@v}{\mathord}{\M at cal}{"1D4CB}
+  \DeclareMathSymbol{\M at cal@w}{\mathord}{\M at cal}{"1D4CC}
+  \DeclareMathSymbol{\M at cal@x}{\mathord}{\M at cal}{"1D4CD}
+  \DeclareMathSymbol{\M at cal@y}{\mathord}{\M at cal}{"1D4CE}
+  \DeclareMathSymbol{\M at cal@z}{\mathord}{\M at cal}{"1D4CF}}
+%    \end{macrocode}
+% Set fraktur characters.
+%    \begin{macrocode}
+\def\M at frak@set{%
+  \edef\M at frak{M\@frakshape\the\M at count}
+  \DeclareMathSymbol{\M at frak@A}{\mathord}{\M at frak}{"1D504}
+  \DeclareMathSymbol{\M at frak@B}{\mathord}{\M at frak}{"1D505}
+  \DeclareMathSymbol{\M at frak@C}{\mathord}{\M at frak}{"212D}
+  \DeclareMathSymbol{\M at frak@D}{\mathord}{\M at frak}{"1D507}
+  \DeclareMathSymbol{\M at frak@E}{\mathord}{\M at frak}{"1D508}
+  \DeclareMathSymbol{\M at frak@F}{\mathord}{\M at frak}{"1D509}
+  \DeclareMathSymbol{\M at frak@G}{\mathord}{\M at frak}{"1D50A}
+  \DeclareMathSymbol{\M at frak@H}{\mathord}{\M at frak}{"210C}
+  \DeclareMathSymbol{\M at frak@I}{\mathord}{\M at frak}{"2111}
+  \DeclareMathSymbol{\M at frak@J}{\mathord}{\M at frak}{"1D50D}
+  \DeclareMathSymbol{\M at frak@K}{\mathord}{\M at frak}{"1D50E}
+  \DeclareMathSymbol{\M at frak@L}{\mathord}{\M at frak}{"1D50F}
+  \DeclareMathSymbol{\M at frak@M}{\mathord}{\M at frak}{"1D510}
+  \DeclareMathSymbol{\M at frak@N}{\mathord}{\M at frak}{"1D511}
+  \DeclareMathSymbol{\M at frak@O}{\mathord}{\M at frak}{"1D512}
+  \DeclareMathSymbol{\M at frak@P}{\mathord}{\M at frak}{"1D513}
+  \DeclareMathSymbol{\M at frak@Q}{\mathord}{\M at frak}{"1D514}
+  \DeclareMathSymbol{\M at frak@R}{\mathord}{\M at frak}{"212C}
+  \DeclareMathSymbol{\M at frak@S}{\mathord}{\M at frak}{"1D516}
+  \DeclareMathSymbol{\M at frak@T}{\mathord}{\M at frak}{"1D517}
+  \DeclareMathSymbol{\M at frak@U}{\mathord}{\M at frak}{"1D518}
+  \DeclareMathSymbol{\M at frak@V}{\mathord}{\M at frak}{"1D519}
+  \DeclareMathSymbol{\M at frak@W}{\mathord}{\M at frak}{"1D51A}
+  \DeclareMathSymbol{\M at frak@X}{\mathord}{\M at frak}{"1D51B}
+  \DeclareMathSymbol{\M at frak@Y}{\mathord}{\M at frak}{"1D51C}
+  \DeclareMathSymbol{\M at frak@Z}{\mathord}{\M at frak}{"2128}
+  \DeclareMathSymbol{\M at frak@a}{\mathord}{\M at frak}{"1D51E}
+  \DeclareMathSymbol{\M at frak@b}{\mathord}{\M at frak}{"1D51F}
+  \DeclareMathSymbol{\M at frak@c}{\mathord}{\M at frak}{"1D520}
+  \DeclareMathSymbol{\M at frak@d}{\mathord}{\M at frak}{"1D521}
+  \DeclareMathSymbol{\M at frak@e}{\mathord}{\M at frak}{"1D522}
+  \DeclareMathSymbol{\M at frak@f}{\mathord}{\M at frak}{"1D523}
+  \DeclareMathSymbol{\M at frak@g}{\mathord}{\M at frak}{"1D524}
+  \DeclareMathSymbol{\M at frak@h}{\mathord}{\M at frak}{"1D525}
+  \DeclareMathSymbol{\M at frak@i}{\mathord}{\M at frak}{"1D526}
+  \DeclareMathSymbol{\M at frak@j}{\mathord}{\M at frak}{"1D527}
+  \DeclareMathSymbol{\M at frak@k}{\mathord}{\M at frak}{"1D528}
+  \DeclareMathSymbol{\M at frak@l}{\mathord}{\M at frak}{"1D529}
+  \DeclareMathSymbol{\M at frak@m}{\mathord}{\M at frak}{"1D52A}
+  \DeclareMathSymbol{\M at frak@n}{\mathord}{\M at frak}{"1D52B}
+  \DeclareMathSymbol{\M at frak@o}{\mathord}{\M at frak}{"1D52C}
+  \DeclareMathSymbol{\M at frak@p}{\mathord}{\M at frak}{"1D52D}
+  \DeclareMathSymbol{\M at frak@q}{\mathord}{\M at frak}{"1D52E}
+  \DeclareMathSymbol{\M at frak@r}{\mathord}{\M at frak}{"1D52F}
+  \DeclareMathSymbol{\M at frak@s}{\mathord}{\M at frak}{"1D530}
+  \DeclareMathSymbol{\M at frak@t}{\mathord}{\M at frak}{"1D531}
+  \DeclareMathSymbol{\M at frak@u}{\mathord}{\M at frak}{"1D532}
+  \DeclareMathSymbol{\M at frak@v}{\mathord}{\M at frak}{"1D533}
+  \DeclareMathSymbol{\M at frak@w}{\mathord}{\M at frak}{"1D534}
+  \DeclareMathSymbol{\M at frak@x}{\mathord}{\M at frak}{"1D535}
+  \DeclareMathSymbol{\M at frak@y}{\mathord}{\M at frak}{"1D536}
+  \DeclareMathSymbol{\M at frak@z}{\mathord}{\M at frak}{"1D537}}
+%    \end{macrocode}
+% Set bold caligraphic characters.
+%    \begin{macrocode}
+\def\M at bcal@set{%
+  \edef\M at bcal{M\@bcalshape\the\M at count}
+  \DeclareMathSymbol{\M at bcal@A}{\mathord}{\M at bcal}{"1D4D0}
+  \DeclareMathSymbol{\M at bcal@B}{\mathord}{\M at bcal}{"1D4D1}
+  \DeclareMathSymbol{\M at bcal@C}{\mathord}{\M at bcal}{"1D4D2}
+  \DeclareMathSymbol{\M at bcal@D}{\mathord}{\M at bcal}{"1D4D3}
+  \DeclareMathSymbol{\M at bcal@E}{\mathord}{\M at bcal}{"1D4D4}
+  \DeclareMathSymbol{\M at bcal@F}{\mathord}{\M at bcal}{"1D4D5}
+  \DeclareMathSymbol{\M at bcal@G}{\mathord}{\M at bcal}{"1D4D6}
+  \DeclareMathSymbol{\M at bcal@H}{\mathord}{\M at bcal}{"1D4D7}
+  \DeclareMathSymbol{\M at bcal@I}{\mathord}{\M at bcal}{"1D4D8}
+  \DeclareMathSymbol{\M at bcal@J}{\mathord}{\M at bcal}{"1D4D9}
+  \DeclareMathSymbol{\M at bcal@K}{\mathord}{\M at bcal}{"1D4DA}
+  \DeclareMathSymbol{\M at bcal@L}{\mathord}{\M at bcal}{"1D4DB}
+  \DeclareMathSymbol{\M at bcal@M}{\mathord}{\M at bcal}{"1D4DC}
+  \DeclareMathSymbol{\M at bcal@N}{\mathord}{\M at bcal}{"1D4DD}
+  \DeclareMathSymbol{\M at bcal@O}{\mathord}{\M at bcal}{"1D4DE}
+  \DeclareMathSymbol{\M at bcal@P}{\mathord}{\M at bcal}{"1D4DF}
+  \DeclareMathSymbol{\M at bcal@Q}{\mathord}{\M at bcal}{"1D4E0}
+  \DeclareMathSymbol{\M at bcal@R}{\mathord}{\M at bcal}{"1D4E1}
+  \DeclareMathSymbol{\M at bcal@S}{\mathord}{\M at bcal}{"1D4E2}
+  \DeclareMathSymbol{\M at bcal@T}{\mathord}{\M at bcal}{"1D4E3}
+  \DeclareMathSymbol{\M at bcal@U}{\mathord}{\M at bcal}{"1D4E4}
+  \DeclareMathSymbol{\M at bcal@V}{\mathord}{\M at bcal}{"1D4E5}
+  \DeclareMathSymbol{\M at bcal@W}{\mathord}{\M at bcal}{"1D4E6}
+  \DeclareMathSymbol{\M at bcal@X}{\mathord}{\M at bcal}{"1D4E7}
+  \DeclareMathSymbol{\M at bcal@Y}{\mathord}{\M at bcal}{"1D4E8}
+  \DeclareMathSymbol{\M at bcal@Z}{\mathord}{\M at bcal}{"1D4E9}
+  \DeclareMathSymbol{\M at bcal@a}{\mathord}{\M at bcal}{"1D4EA}
+  \DeclareMathSymbol{\M at bcal@b}{\mathord}{\M at bcal}{"1D4EB}
+  \DeclareMathSymbol{\M at bcal@c}{\mathord}{\M at bcal}{"1D4EC}
+  \DeclareMathSymbol{\M at bcal@d}{\mathord}{\M at bcal}{"1D4ED}
+  \DeclareMathSymbol{\M at bcal@e}{\mathord}{\M at bcal}{"1D4EE}
+  \DeclareMathSymbol{\M at bcal@f}{\mathord}{\M at bcal}{"1D4EF}
+  \DeclareMathSymbol{\M at bcal@g}{\mathord}{\M at bcal}{"1D4F0}
+  \DeclareMathSymbol{\M at bcal@h}{\mathord}{\M at bcal}{"1D4F1}
+  \DeclareMathSymbol{\M at bcal@i}{\mathord}{\M at bcal}{"1D4F2}
+  \DeclareMathSymbol{\M at bcal@j}{\mathord}{\M at bcal}{"1D4F3}
+  \DeclareMathSymbol{\M at bcal@k}{\mathord}{\M at bcal}{"1D4F4}
+  \DeclareMathSymbol{\M at bcal@l}{\mathord}{\M at bcal}{"1D4F5}
+  \DeclareMathSymbol{\M at bcal@m}{\mathord}{\M at bcal}{"1D4F6}
+  \DeclareMathSymbol{\M at bcal@n}{\mathord}{\M at bcal}{"1D4F7}
+  \DeclareMathSymbol{\M at bcal@o}{\mathord}{\M at bcal}{"1D4F8}
+  \DeclareMathSymbol{\M at bcal@p}{\mathord}{\M at bcal}{"1D4F9}
+  \DeclareMathSymbol{\M at bcal@q}{\mathord}{\M at bcal}{"1D4FA}
+  \DeclareMathSymbol{\M at bcal@r}{\mathord}{\M at bcal}{"1D4FB}
+  \DeclareMathSymbol{\M at bcal@s}{\mathord}{\M at bcal}{"1D4FC}
+  \DeclareMathSymbol{\M at bcal@t}{\mathord}{\M at bcal}{"1D4FD}
+  \DeclareMathSymbol{\M at bcal@u}{\mathord}{\M at bcal}{"1D4FE}
+  \DeclareMathSymbol{\M at bcal@v}{\mathord}{\M at bcal}{"1D4FF}
+  \DeclareMathSymbol{\M at bcal@w}{\mathord}{\M at bcal}{"1D500}
+  \DeclareMathSymbol{\M at bcal@x}{\mathord}{\M at bcal}{"1D501}
+  \DeclareMathSymbol{\M at bcal@y}{\mathord}{\M at bcal}{"1D502}
+  \DeclareMathSymbol{\M at bcal@z}{\mathord}{\M at bcal}{"1D503}}
+%    \end{macrocode}
+% Set bold fraktur characters.
+%    \begin{macrocode}
+\def\M at bfrak@set{%
+  \edef\M at bfrak{M\@bfrakshape\the\M at count}
+  \DeclareMathSymbol{\M at bfrak@A}{\mathord}{\M at bfrak}{"1D56C}
+  \DeclareMathSymbol{\M at bfrak@B}{\mathord}{\M at bfrak}{"1D56D}
+  \DeclareMathSymbol{\M at bfrak@C}{\mathord}{\M at bfrak}{"1D56E}
+  \DeclareMathSymbol{\M at bfrak@D}{\mathord}{\M at bfrak}{"1D56F}
+  \DeclareMathSymbol{\M at bfrak@E}{\mathord}{\M at bfrak}{"1D570}
+  \DeclareMathSymbol{\M at bfrak@F}{\mathord}{\M at bfrak}{"1D571}
+  \DeclareMathSymbol{\M at bfrak@G}{\mathord}{\M at bfrak}{"1D572}
+  \DeclareMathSymbol{\M at bfrak@H}{\mathord}{\M at bfrak}{"1D573}
+  \DeclareMathSymbol{\M at bfrak@I}{\mathord}{\M at bfrak}{"1D574}
+  \DeclareMathSymbol{\M at bfrak@J}{\mathord}{\M at bfrak}{"1D575}
+  \DeclareMathSymbol{\M at bfrak@K}{\mathord}{\M at bfrak}{"1D576}
+  \DeclareMathSymbol{\M at bfrak@L}{\mathord}{\M at bfrak}{"1D577}
+  \DeclareMathSymbol{\M at bfrak@M}{\mathord}{\M at bfrak}{"1D578}
+  \DeclareMathSymbol{\M at bfrak@N}{\mathord}{\M at bfrak}{"1D579}
+  \DeclareMathSymbol{\M at bfrak@O}{\mathord}{\M at bfrak}{"1D57A}
+  \DeclareMathSymbol{\M at bfrak@P}{\mathord}{\M at bfrak}{"1D57B}
+  \DeclareMathSymbol{\M at bfrak@Q}{\mathord}{\M at bfrak}{"1D57C}
+  \DeclareMathSymbol{\M at bfrak@R}{\mathord}{\M at bfrak}{"1D57D}
+  \DeclareMathSymbol{\M at bfrak@S}{\mathord}{\M at bfrak}{"1D57E}
+  \DeclareMathSymbol{\M at bfrak@T}{\mathord}{\M at bfrak}{"1D57F}
+  \DeclareMathSymbol{\M at bfrak@U}{\mathord}{\M at bfrak}{"1D580}
+  \DeclareMathSymbol{\M at bfrak@V}{\mathord}{\M at bfrak}{"1D581}
+  \DeclareMathSymbol{\M at bfrak@W}{\mathord}{\M at bfrak}{"1D582}
+  \DeclareMathSymbol{\M at bfrak@X}{\mathord}{\M at bfrak}{"1D583}
+  \DeclareMathSymbol{\M at bfrak@Y}{\mathord}{\M at bfrak}{"1D584}
+  \DeclareMathSymbol{\M at bfrak@Z}{\mathord}{\M at bfrak}{"1D585}
+  \DeclareMathSymbol{\M at bfrak@a}{\mathord}{\M at bfrak}{"1D586}
+  \DeclareMathSymbol{\M at bfrak@b}{\mathord}{\M at bfrak}{"1D587}
+  \DeclareMathSymbol{\M at bfrak@c}{\mathord}{\M at bfrak}{"1D588}
+  \DeclareMathSymbol{\M at bfrak@d}{\mathord}{\M at bfrak}{"1D589}
+  \DeclareMathSymbol{\M at bfrak@e}{\mathord}{\M at bfrak}{"1D58A}
+  \DeclareMathSymbol{\M at bfrak@f}{\mathord}{\M at bfrak}{"1D58B}
+  \DeclareMathSymbol{\M at bfrak@g}{\mathord}{\M at bfrak}{"1D58C}
+  \DeclareMathSymbol{\M at bfrak@h}{\mathord}{\M at bfrak}{"1D58D}
+  \DeclareMathSymbol{\M at bfrak@i}{\mathord}{\M at bfrak}{"1D58E}
+  \DeclareMathSymbol{\M at bfrak@j}{\mathord}{\M at bfrak}{"1D58F}
+  \DeclareMathSymbol{\M at bfrak@k}{\mathord}{\M at bfrak}{"1D590}
+  \DeclareMathSymbol{\M at bfrak@l}{\mathord}{\M at bfrak}{"1D591}
+  \DeclareMathSymbol{\M at bfrak@m}{\mathord}{\M at bfrak}{"1D592}
+  \DeclareMathSymbol{\M at bfrak@n}{\mathord}{\M at bfrak}{"1D593}
+  \DeclareMathSymbol{\M at bfrak@o}{\mathord}{\M at bfrak}{"1D594}
+  \DeclareMathSymbol{\M at bfrak@p}{\mathord}{\M at bfrak}{"1D595}
+  \DeclareMathSymbol{\M at bfrak@q}{\mathord}{\M at bfrak}{"1D596}
+  \DeclareMathSymbol{\M at bfrak@r}{\mathord}{\M at bfrak}{"1D597}
+  \DeclareMathSymbol{\M at bfrak@s}{\mathord}{\M at bfrak}{"1D598}
+  \DeclareMathSymbol{\M at bfrak@t}{\mathord}{\M at bfrak}{"1D599}
+  \DeclareMathSymbol{\M at bfrak@u}{\mathord}{\M at bfrak}{"1D59A}
+  \DeclareMathSymbol{\M at bfrak@v}{\mathord}{\M at bfrak}{"1D59B}
+  \DeclareMathSymbol{\M at bfrak@w}{\mathord}{\M at bfrak}{"1D59C}
+  \DeclareMathSymbol{\M at bfrak@x}{\mathord}{\M at bfrak}{"1D59D}
+  \DeclareMathSymbol{\M at bfrak@y}{\mathord}{\M at bfrak}{"1D59E}
+  \DeclareMathSymbol{\M at bfrak@z}{\mathord}{\M at bfrak}{"1D59F}}
+%    \end{macrocode}
+% Provide the command to reset macros and conclude. 
+%    \begin{macrocode}
+\def\restoremathinternals{%
+  \M at RestoreInternalsInfo
+  \let\set at mathchar\@@set at mathchar
+  \let\set at mathsymbol\@@set at mathsymbol}
+%    \end{macrocode}
+% Unless the user specified the \texttt{packages} option,
+% \textsf{mathfont} will reset the internal math symbol commands when the user
+% loads another package.
+%    \begin{macrocode}
+\if at packages
+\else
+  \let\@@usepackage\usepackage
+  \def\usepackage{\restoremathinternals
+    \let\usepackage\@@usepackage
+    \usepackage}
+\fi
+%    \end{macrocode}
+% 
+% \iffalse
+%</package>
+% \fi
+% 
+% \Finale
+\endinput


Property changes on: trunk/Master/texmf-dist/source/latex/mathfont/mathfont.dtx
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/source/latex/mathfont/mathfont.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/mathfont/mathfont.ins	                        (rev 0)
+++ trunk/Master/texmf-dist/source/latex/mathfont/mathfont.ins	2018-07-26 22:49:15 UTC (rev 48283)
@@ -0,0 +1,68 @@
+%%
+%% This is file `mathfont.ins',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% mathfont.dtx  (with options: `batchfile')
+%% 
+%% Copyright 2018 by Conrad Kosowsky
+%% 
+%% This file may be distributed and modified under the terms
+%% of the LaTeX Public Project License, version 1.3c or any later version.
+%% The most recent version of this license is available online at
+%% 
+%%          https://www.latex-project.org/lppl/.
+%% 
+%% This work has the LPPL status "maintained," and the current maintainer
+%% is the package author, Conrad Kosowsky. He can be reached at
+%% kosowsky.latex at gmail.com. The work consists of the file mathfont.dtx,
+%% the derived files mathfont.ins, mathfont.drv, and mathfont.sty, and
+%% all other files created through the configuration process such as
+%% mathfont.pdf, mathfont.idx, and mathfont.ind. For more
+%% information, see the original mathfont.dtx file.
+%% 
+\begingroup
+\input docstrip.tex
+\keepsilent
+\preamble
+
+Copyright 2018 by Conrad Kosowsky
+
+This file may be distributed and modified under the terms
+of the LaTeX Public Project License, version 1.3c or any later version.
+The most recent version of this license is available online at
+
+         https://www.latex-project.org/lppl/.
+
+This work has the LPPL status "maintained," and the current maintainer
+is the package author, Conrad Kosowsky. He can be reached at
+kosowsky.latex at gmail.com. The work consists of the file mathfont.dtx,
+the derived files mathfont.ins, mathfont.drv, and mathfont.sty, and
+all other files created through the configuration process such as
+mathfont.pdf, mathfont.idx, and mathfont.ind. For more
+information, see the original mathfont.dtx file.
+
+\endpreamble
+\generate{
+  \file{mathfont.ins}{\from{mathfont.dtx}{batchfile}}
+  \file{mathfont.drv}{\from{mathfont.dtx}{driver}}
+  \file{mathfont.sty}{\from{mathfont.dtx}{package}}}
+\bgroup
+\catcode`\ =\active
+\def {\space}
+\message{^^J^^J
+******************************************^^J
+*                                        *^^J
+* To finish the installation, move the   *^^J
+* following file into a directory        *^^J
+* searchable by TeX once mathfont.dtx    *^^J
+* finishes compiling:                    *^^J
+*                                        *^^J
+*              mathfont.sty              *^^J
+*                                        *^^J
+******************************************^^J^^J}
+\egroup\endgroup
+\endinput
+%%
+%% End of file `mathfont.ins'.

Added: trunk/Master/texmf-dist/tex/latex/mathfont/mathfont.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/mathfont/mathfont.sty	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/mathfont/mathfont.sty	2018-07-26 22:49:15 UTC (rev 48283)
@@ -0,0 +1,740 @@
+%%
+%% This is file `mathfont.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% mathfont.dtx  (with options: `package')
+%% 
+%% Copyright 2018 by Conrad Kosowsky
+%% 
+%% This file may be distributed and modified under the terms
+%% of the LaTeX Public Project License, version 1.3c or any later version.
+%% The most recent version of this license is available online at
+%% 
+%%          https://www.latex-project.org/lppl/.
+%% 
+%% This work has the LPPL status "maintained," and the current maintainer
+%% is the package author, Conrad Kosowsky. He can be reached at
+%% kosowsky.latex at gmail.com. The work consists of the file mathfont.dtx,
+%% the derived files mathfont.ins, mathfont.drv, and mathfont.sty, and
+%% all other files created through the configuration process such as
+%% mathfont.pdf, mathfont.idx, and mathfont.ind. For more
+%% information, see the original mathfont.dtx file.
+%% 
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{mathfont}[2018/06/14 v. 1.1b Package mathfont]
+\newif\if at packages
+\DeclareOption{packages}{\@packagestrue}
+\DeclareOption*{\PackageError{mathfont}
+  {Option "\CurrentOption" unknown}
+  {I'm ignoring that option because\MessageBreak
+  I don't know what it means.}}
+\ProcessOptions\relax
+\def\M at FontChangeInfo#1{\PackageInfo{mathfont}
+  {Changing #1 characters to\MessageBreak
+  math font \csname M at font\the\M at count\endcsname\MessageBreak
+  with \csname @#1 shape\endcsname\MessageBreak
+  shape}}
+\def\M at NewFontCommandInfo#1#2#3#4{\PackageInfo{mathfont}
+  {Creating math alphabet\MessageBreak
+  command \string#1 using #2\MessageBreak
+  with series #3 and shape\MessageBreak
+  #4}}
+\def\M at CommandInitializeInfo#1{\PackageInfo{mathfont}
+  {Initializing #1 font-change\MessageBreak
+  command}}
+\def\M at SetInternalsInfo{\PackageInfo{mathfont}
+  {Adjusting \string\set at mathchar\space and\MessageBreak
+  \string\set at mathcode}}
+\def\M at RestoreInternalsInfo{\PackageInfo{mathfont}
+  {Restoring \string\set at mathchar\space and\MessageBreak
+  \string\set at mathcode}}
+\def\M at CharsSetWarning#1{\PackageWarning{mathfont}
+  {Font for #1 chars has already\MessageBreak
+  been set}}
+\def\M at NoMathError{\PackageError{mathfont}
+  {Package fontspec was loaded\MessageBreak
+  without the "no-math" option}
+  {This isn't really an error--\MessageBreak
+  it's fine to load fontspec\MessageBreak
+  without "no-math." However,\MessageBreak
+  strange things could happen,\MessageBreak
+  so beware of any sudden and\MessageBreak
+  unexpected font changes. To\MessageBreak
+  resolve this error message,\MessageBreak
+  load fontspec with the "no-\MessageBreak
+  math" option. If you haven't\MessageBreak
+  loaded fontspec manually, try\MessageBreak
+  loading mathfont earlier in\MessageBreak
+  your preamble.}}
+\def\M at InvalidOptionError#1{\PackageError{mathfont}
+  {Invalid option "#1"\MessageBreak for \string\mathfont}
+  {Hm. Check that you spelled the\MessageBreak
+  option correctly and didn't include\MessageBreak
+  any extra spaces. Otherwise, I'm\MessageBreak
+  not sure what's wrong. Is this\MessageBreak
+  option listed in the package\MessageBreak
+  documentation?}}
+\def\M at InternalsRestoredError{\PackageError{mathfont}
+  {Internal commands restored}
+  {This package slightly changes two LaTeX\MessageBreak
+  internal commands, and you really shouldn't\MessageBreak
+  be loading new math fonts without those\MessageBreak
+  adjustments. What happened here is that you\MessageBreak
+  used \string\mathfont\space in a situation
+  where those\MessageBreak
+  two commands retain their original defini-\MessageBreak
+  tions. Presumably you used
+  \string\mathfont\space after\MessageBreak
+  loading another package or calling the\MessageBreak
+  \string\restoremathinternals\space
+  command, and in any\MessageBreak
+  event, I'm going to ignore this call to\MessageBreak
+  \string\mathfont. Try retypesetting this document\MessageBreak
+  with all \string\mathfont\space
+  commands immediately\MessageBreak
+  after \string\usepackage{mathfont}.}}
+\def\M at MissingControlSequenceError#1{\PackageError{mathfont}
+  {Improper argument\MessageBreak
+  for \string#1}
+  {Please use a control sequence as the\MessageBreak
+  first argument of \string#1.}}
+\def\M at HModeError#1{\PackageError{mathfont}
+  {Missing \string$ inserted.\MessageBreak
+  Command \string#1 must be used in\MessageBreak
+  math mode}
+  {I generated an error because\MessageBreak
+  you used \string#1 outside of\MessageBreak
+  math mode. I've inserted a \string$\MessageBreak
+  just before your \string#1, so\MessageBreak
+  we should be all good now.}}
+\def\M at XeTeXLuaTeXError{\PackageError{mathfont}
+  {!!FATAL ERROR!! : Missing XeTeX or LuaTeX}
+  {This package requires either\MessageBreak
+  XeLaTeX or LuaLaTeX. Please\MessageBreak
+  retypeset this document with\MessageBreak
+  one of those two engines. This\MessageBreak
+  error is fatal, so I'm going\MessageBreak
+  to stop processing once you\MessageBreak
+  push enter.}\@@end}
+\ifx\Umathcode\@undefined
+\else
+  \ifx\Umathchardef\@undefined
+  \else
+    \let\M at XeTeXLuaTeXError\relax
+  \fi
+\fi
+\M at XeTeXLuaTeXError
+\@ifpackageloaded{fontspec}
+  {\ifnum\csname g__fontspec_math_bool\endcsname=1
+    \M at NoMathError
+  \fi}{\RequirePackage[no-math]{fontspec}}
+\expandafter\let\expandafter\@newfont
+  \csname fontspec_set_family:Nnn\endcsname
+\M at SetInternalsInfo
+\let\@@set at mathchar\set at mathchar
+\let\@@set at mathsymbol\set at mathsymbol
+\def\set at mathchar#1#2#3#4{%
+  \multiply\count\z@ by 16\relax
+  \advance\count\z@\count\tw@
+  \global\Umathcode`#2=\mathchar at type#3+#1+\count\z@}
+\def\set at mathsymbol#1#2#3#4{%
+  \multiply\count\z@ by 16\relax
+  \advance\count\z@\count\tw@
+  \global\Umathchardef#2\mathchar at type#3+#1+\count\z@}
+\newcount\M at count
+\M at count\z@
+\newif\if at upper
+\newif\if at lower
+\newif\if at greekupper
+\newif\if at greeklower
+\newif\if at operator
+\newif\if at digits
+\newif\if at bb
+\newif\if at cal
+\newif\if at frak
+\newif\if at bcal
+\newif\if at bfrak
+\newif\if at suboptionpresent
+\def\@uppershape{italic}
+\def\@lowershape{italic}
+\def\@greekuppershape{roman}
+\def\@greeklowershape{italic}
+\def\@digitsshape{roman}
+\def\@operatorshape{roman}
+\def\@bbshape{roman}
+\def\@calshape{roman}
+\def\@frakshape{roman}
+\def\@bcalshape{roman}
+\def\@bfrakshape{roman}
+\def\strip at equals#1={#1}
+\def\check at suboption#1=#2\@nil{%
+  \def\@tempa{#1}
+  \def\@tempb{#2}
+  \check at option@valid\@tempa
+  \ifx\@tempb\@empty
+    \@suboptionpresentfalse
+  \else
+    \edef\@tempb{\expandafter\strip at equals\@tempb}
+    \check at suboption@valid\@tempb
+    \@suboptionpresenttrue
+  \fi}
+\def\check at option@valid#1{%
+  \def\@temperror{\M at InvalidOptionError{#1}}
+  \@for\@j:=upper,lower,greekupper,greeklower,digits,operator\do{%
+    \ifx\@j#1
+      \let\@temperror\relax
+    \fi}
+  \@for\@j:=bb,cal,frak,bcal,bfrak\do{%
+    \ifx\@j#1
+      \let\@temperror\relax
+      \csname define@\@j\endcsname
+    \fi}
+  \@temperror}
+\def\check at suboption@valid#1{%
+  \def\@temperror{\M at InvalidOptionError{#1}}
+  \@for\@j:=roman,italic\do{%
+    \ifx\@j#1
+      \let\@temperror\relax
+    \fi}
+  \@temperror}
+\def\gobble at equals#1=#2\@nil{#1}
+\def\mathfont{\@ifnextchar[{\@mathfont}
+  {\@mathfont[upper,lower,greekupper,greeklower,digits,operator]}}
+\def\@mathfont[#1]#2{%
+  \ifx\@@set at mathchar\set at mathchar
+    \M at InternalsRestoredError
+  \else
+    \expandafter\@newfont\csname M at font\the\M at count\endcsname{}{#2}
+    \@for\@i:=#1\do{\expandafter\check at suboption\@i=\@nil
+      \expandafter\ifx\csname if@\@tempa\expandafter\endcsname
+                  \csname iftrue\endcsname
+        \M at CharsSetWarning{\@tempa}
+      \else
+        \if at suboptionpresent
+          \expandafter\edef\csname @\@tempa shape\endcsname{\@tempb}
+        \fi
+        \def\@tempb{roman}
+        \expandafter\ifx\csname @\@tempa shape\endcsname\@tempb
+          \@ifundefined{symMroman\the\M at count}{%
+            \DeclareSymbolFont{Mroman\the\M at count}{TU}
+              {\csname M at font\the\M at count\endcsname}{m}{n}}{}
+        \fi
+        \def\@tempb{italic}
+        \expandafter\ifx\csname @\@tempa shape\endcsname\@tempb
+          \@ifundefined{symMitalic\the\M at count}{%
+            \DeclareSymbolFont{Mitalic\the\M at count}{TU}
+              {\csname M at font\the\M at count\endcsname}{m}{it}}{}
+        \fi
+        \M at FontChangeInfo{\@tempa}
+        \csname M@\@tempa @set\endcsname
+        \csname @\@tempa true\endcsname
+      \fi}
+    \advance\M at count\@ne\relax
+  \fi}
+\@onlypreamble\mathfont
+\def\check at csarg#1#2#3{%
+  \ifcat\relax\noexpand#2
+    \def\@tempa{#2}
+    \@newfont\@tempb{}{#3}
+    \expandafter\@newmathfontcommand
+  \else
+    \M at MissingControlSequenceError#1
+  \fi}
+\def\@newmathfontcommand#1#2{\expandafter
+  \DeclareMathAlphabet\expandafter{\@tempa}{TU}{\@tempb}{#1}{#2}}
+\def\newmathfontcommand{\check at csarg\newmathfontcommand}
+\@onlypreamble\newmathfontcommand
+\def\newmathrm#1#2{\check at csarg\newmathrm{#1}{#2}{m}{n}}
+\def\newmathit#1#2{\check at csarg\newmathit{#1}{#2}{m}{it}}
+\def\newmathbold#1#2{\check at csarg\newmathbold{#1}{#2}{b}{n}}
+\def\newmathboldit#1#2{\check at csarg\newmathboldit{#1}{#2}{b}{it}}
+\@onlypreamble\newmathrm
+\@onlypreamble\newmathit
+\@onlypreamble\newmathbold
+\@onlypreamble\newmathboldit
+\def\check at mmode#1#2{%
+  \let\@tempa#2%
+  \ifmmode
+    \expandafter\@tempa
+  \else
+    \leavevmode\M at HModeError#1%
+    \expandafter$\expandafter\@tempa
+  \fi}
+\def\process at tokens#1#2{\@tfor\@k:=#1\do{\csname M@#2@\@k\endcsname}}
+\def\define at bb{%
+  \M at CommandInitializeInfo{blackboard bold}
+  \def\mathbb{\check at mmode\mathbb\@mathbb}
+  \def\@mathbb##1{\process at tokens{##1}{bb}}}
+\def\define at cal{%
+  \M at CommandInitializeInfo{calligraphic}
+  \def\mathcal{\check at mmode\mathcal\@mathcal}
+  \def\@mathcal##1{\process at tokens{##1}{cal}}}
+\def\define at frak{%
+  \M at CommandInitializeInfo{fraktur}
+  \def\mathcal{\check at mmode\mathfrak\@mathfrak}
+  \def\@mathfrak##1{\process at tokens{##1}{frak}}}
+\def\define at bcal{%
+  \M at CommandInitializeInfo{bold calligraphic}
+  \def\mathbcal{\check at mmode\mathbcal\@mathbcal}
+  \def\@mathbcal##1{\process at tokens{##1}{bcal}}}
+\def\define at bfrak{%
+  \M at CommandInitializeInfo{bold fraktur}
+  \def\mathbfrak{\check at mmode\mathbfrak\@mathbfrak}
+  \def\@mathbfrak##1{\process at tokens{##1}{bfrak}}}
+\def\M at upper@set{%
+  \edef\M at upper{M\@uppershape\the\M at count}
+  \DeclareMathSymbol{A}{\mathalpha}{\M at upper}{`A}
+  \DeclareMathSymbol{B}{\mathalpha}{\M at upper}{`B}
+  \DeclareMathSymbol{C}{\mathalpha}{\M at upper}{`C}
+  \DeclareMathSymbol{D}{\mathalpha}{\M at upper}{`D}
+  \DeclareMathSymbol{E}{\mathalpha}{\M at upper}{`E}
+  \DeclareMathSymbol{F}{\mathalpha}{\M at upper}{`F}
+  \DeclareMathSymbol{G}{\mathalpha}{\M at upper}{`G}
+  \DeclareMathSymbol{H}{\mathalpha}{\M at upper}{`H}
+  \DeclareMathSymbol{I}{\mathalpha}{\M at upper}{`I}
+  \DeclareMathSymbol{J}{\mathalpha}{\M at upper}{`J}
+  \DeclareMathSymbol{K}{\mathalpha}{\M at upper}{`K}
+  \DeclareMathSymbol{L}{\mathalpha}{\M at upper}{`L}
+  \DeclareMathSymbol{M}{\mathalpha}{\M at upper}{`M}
+  \DeclareMathSymbol{N}{\mathalpha}{\M at upper}{`N}
+  \DeclareMathSymbol{O}{\mathalpha}{\M at upper}{`O}
+  \DeclareMathSymbol{P}{\mathalpha}{\M at upper}{`P}
+  \DeclareMathSymbol{Q}{\mathalpha}{\M at upper}{`Q}
+  \DeclareMathSymbol{R}{\mathalpha}{\M at upper}{`R}
+  \DeclareMathSymbol{S}{\mathalpha}{\M at upper}{`S}
+  \DeclareMathSymbol{T}{\mathalpha}{\M at upper}{`T}
+  \DeclareMathSymbol{U}{\mathalpha}{\M at upper}{`U}
+  \DeclareMathSymbol{V}{\mathalpha}{\M at upper}{`V}
+  \DeclareMathSymbol{W}{\mathalpha}{\M at upper}{`W}
+  \DeclareMathSymbol{X}{\mathalpha}{\M at upper}{`X}
+  \DeclareMathSymbol{Y}{\mathalpha}{\M at upper}{`Y}
+  \DeclareMathSymbol{Z}{\mathalpha}{\M at upper}{`Z}}
+\def\M at lower@set{%
+  \edef\M at lower{M\@lowershape\the\M at count}
+  \DeclareMathSymbol{a}{\mathalpha}{\M at lower}{`a}
+  \DeclareMathSymbol{b}{\mathalpha}{\M at lower}{`b}
+  \DeclareMathSymbol{c}{\mathalpha}{\M at lower}{`c}
+  \DeclareMathSymbol{d}{\mathalpha}{\M at lower}{`d}
+  \DeclareMathSymbol{e}{\mathalpha}{\M at lower}{`e}
+  \DeclareMathSymbol{f}{\mathalpha}{\M at lower}{`f}
+  \DeclareMathSymbol{g}{\mathalpha}{\M at lower}{`g}
+  \DeclareMathSymbol{h}{\mathalpha}{\M at lower}{`h}
+  \DeclareMathSymbol{i}{\mathalpha}{\M at lower}{`i}
+  \DeclareMathSymbol{j}{\mathalpha}{\M at lower}{`j}
+  \DeclareMathSymbol{k}{\mathalpha}{\M at lower}{`k}
+  \DeclareMathSymbol{l}{\mathalpha}{\M at lower}{`l}
+  \DeclareMathSymbol{m}{\mathalpha}{\M at lower}{`m}
+  \DeclareMathSymbol{n}{\mathalpha}{\M at lower}{`n}
+  \DeclareMathSymbol{o}{\mathalpha}{\M at lower}{`o}
+  \DeclareMathSymbol{p}{\mathalpha}{\M at lower}{`p}
+  \DeclareMathSymbol{q}{\mathalpha}{\M at lower}{`q}
+  \DeclareMathSymbol{r}{\mathalpha}{\M at lower}{`r}
+  \DeclareMathSymbol{s}{\mathalpha}{\M at lower}{`s}
+  \DeclareMathSymbol{t}{\mathalpha}{\M at lower}{`t}
+  \DeclareMathSymbol{u}{\mathalpha}{\M at lower}{`u}
+  \DeclareMathSymbol{v}{\mathalpha}{\M at lower}{`v}
+  \DeclareMathSymbol{w}{\mathalpha}{\M at lower}{`w}
+  \DeclareMathSymbol{x}{\mathalpha}{\M at lower}{`x}
+  \DeclareMathSymbol{y}{\mathalpha}{\M at lower}{`y}
+  \DeclareMathSymbol{z}{\mathalpha}{\M at lower}{`z}}
+\def\M at greekupper@set{%
+  \edef\M at greekupper{M\@greekuppershape\the\M at count}
+  \DeclareMathSymbol{\Alpha}{\mathalpha}{\M at greekupper}{"391}
+  \DeclareMathSymbol{\Beta}{\mathalpha}{\M at greekupper}{"392}
+  \DeclareMathSymbol{\Gamma}{\mathalpha}{\M at greekupper}{"393}
+  \DeclareMathSymbol{\Delta}{\mathalpha}{\M at greekupper}{"394}
+  \DeclareMathSymbol{\Epsilon}{\mathalpha}{\M at greekupper}{"395}
+  \DeclareMathSymbol{\Zeta}{\mathalpha}{\M at greekupper}{"396}
+  \DeclareMathSymbol{\Eta}{\mathalpha}{\M at greekupper}{"397}
+  \DeclareMathSymbol{\Theta}{\mathalpha}{\M at greekupper}{"398}
+  \DeclareMathSymbol{\Iota}{\mathalpha}{\M at greekupper}{"399}
+  \DeclareMathSymbol{\Kappa}{\mathalpha}{\M at greekupper}{"39A}
+  \DeclareMathSymbol{\Lambda}{\mathalpha}{\M at greekupper}{"39B}
+  \DeclareMathSymbol{\Mu}{\mathalpha}{\M at greekupper}{"39C}
+  \DeclareMathSymbol{\Nu}{\mathalpha}{\M at greekupper}{"39D}
+  \DeclareMathSymbol{\Xi}{\mathalpha}{\M at greekupper}{"39E}
+  \DeclareMathSymbol{\Omicron}{\mathalpha}{\M at greekupper}{"39F}
+  \DeclareMathSymbol{\Pi}{\mathalpha}{\M at greekupper}{"3A0}
+  \DeclareMathSymbol{\Rho}{\mathalpha}{\M at greekupper}{"3A1}
+  \DeclareMathSymbol{\Sigma}{\mathalpha}{\M at greekupper}{"3A3}
+  \DeclareMathSymbol{\Tau}{\mathalpha}{\M at greekupper}{"3A4}
+  \DeclareMathSymbol{\Upsilon}{\mathalpha}{\M at greekupper}{"3A5}
+  \DeclareMathSymbol{\Phi}{\mathalpha}{\M at greekupper}{"3A6}
+  \DeclareMathSymbol{\Chi}{\mathalpha}{\M at greekupper}{"3A7}
+  \DeclareMathSymbol{\Psi}{\mathalpha}{\M at greekupper}{"3A8}
+  \DeclareMathSymbol{\Omega}{\mathalpha}{\M at greekupper}{"3A9}
+  \DeclareMathSymbol{\varTheta}{\mathalpha}{\M at greekupper}{"3F4}
+  \DeclareMathSymbol{\Heta}{\mathalpha}{\M at greekupper}{"370}
+  \DeclareMathSymbol{\Sampi}{\mathalpha}{\M at greekupper}{"3E0}
+  \DeclareMathSymbol{\Diagamma}{\mathalpha}{\M at greekupper}{"3DC}
+  \DeclareMathSymbol{\Koppa}{\mathalpha}{\M at greekupper}{"3D8}
+  \DeclareMathSymbol{\Stigma}{\mathalpha}{\M at greekupper}{"3DA}
+  \DeclareMathSymbol{\Sho}{\mathalpha}{\M at greekupper}{"3F7}
+  \DeclareMathSymbol{\San}{\mathalpha}{\M at greekupper}{"3FA}
+  \DeclareMathSymbol{\varSampi}{\mathalpha}{\M at greekupper}{"372}
+  \DeclareMathSymbol{\varDiagamma}{\mathalpha}{\M at greekupper}{"376}
+  \DeclareMathSymbol{\varKoppa}{\mathalpha}{\M at greekupper}{"3DE}}
+\def\M at greeklower@set{%
+  \edef\M at greeklower{M\@greeklowershape\the\M at count}
+  \DeclareMathSymbol{\alpha}{\mathalpha}{\M at greeklower}{"3B1}
+  \DeclareMathSymbol{\beta}{\mathalpha}{\M at greeklower}{"3B2}
+  \DeclareMathSymbol{\gamma}{\mathalpha}{\M at greeklower}{"3B3}
+  \DeclareMathSymbol{\delta}{\mathalpha}{\M at greeklower}{"3B4}
+  \DeclareMathSymbol{\epsilon}{\mathalpha}{\M at greeklower}{"3F5}
+  \DeclareMathSymbol{\zeta}{\mathalpha}{\M at greeklower}{"3B6}
+  \DeclareMathSymbol{\eta}{\mathalpha}{\M at greeklower}{"3B7}
+  \DeclareMathSymbol{\theta}{\mathalpha}{\M at greeklower}{"3B8}
+  \DeclareMathSymbol{\iota}{\mathalpha}{\M at greeklower}{"3B9}
+  \DeclareMathSymbol{\kappa}{\mathalpha}{\M at greeklower}{"3BA}
+  \DeclareMathSymbol{\lambda}{\mathalpha}{\M at greeklower}{"3BB}
+  \DeclareMathSymbol{\mu}{\mathalpha}{\M at greeklower}{"3BC}
+  \DeclareMathSymbol{\nu}{\mathalpha}{\M at greeklower}{"3BD}
+  \DeclareMathSymbol{\xi}{\mathalpha}{\M at greeklower}{"3BE}
+  \DeclareMathSymbol{\omicron}{\mathalpha}{\M at greeklower}{"3BF}
+  \DeclareMathSymbol{\pi}{\mathalpha}{\M at greeklower}{"3C0}
+  \DeclareMathSymbol{\rho}{\mathalpha}{\M at greeklower}{"3C1}
+  \DeclareMathSymbol{\sigma}{\mathalpha}{\M at greeklower}{"3C3}
+  \DeclareMathSymbol{\tau}{\mathalpha}{\M at greeklower}{"3C4}
+  \DeclareMathSymbol{\upsilon}{\mathalpha}{\M at greeklower}{"3C5}
+  \DeclareMathSymbol{\phi}{\mathalpha}{\M at greeklower}{"3D5}
+  \DeclareMathSymbol{\chi}{\mathalpha}{\M at greeklower}{"3C7}
+  \DeclareMathSymbol{\psi}{\mathalpha}{\M at greeklower}{"3C8}
+  \DeclareMathSymbol{\omega}{\mathalpha}{\M at greeklower}{"3C9}
+  \DeclareMathSymbol{\varbeta}{\mathalpha}{\M at greeklower}{"3D0}
+  \DeclareMathSymbol{\varepsilon}{\mathalpha}{\M at greeklower}{"3B5}
+  \DeclareMathSymbol{\vartheta}{\mathalpha}{\M at greeklower}{"3D1}
+  \DeclareMathSymbol{\varrho}{\mathalpha}{\M at greeklower}{"3F1}
+  \DeclareMathSymbol{\varsigma}{\mathalpha}{\M at greeklower}{"3C2}
+  \DeclareMathSymbol{\varphi}{\mathalpha}{\M at greeklower}{"3C6}
+  \DeclareMathSymbol{\heta}{\mathalpha}{\M at greeklower}{"371}
+  \DeclareMathSymbol{\sampi}{\mathalpha}{\M at greeklower}{"3E1}
+  \DeclareMathSymbol{\diagamma}{\mathalpha}{\M at greeklower}{"3DD}
+  \DeclareMathSymbol{\koppa}{\mathalpha}{\M at greeklower}{"3D9}
+  \DeclareMathSymbol{\stigma}{\mathalpha}{\M at greeklower}{"3DB}
+  \DeclareMathSymbol{\sho}{\mathalpha}{\M at greeklower}{"3F8}
+  \DeclareMathSymbol{\san}{\mathalpha}{\M at greeklower}{"3FB}
+  \DeclareMathSymbol{\varsampi}{\mathalpha}{\M at greeklower}{"373}
+  \DeclareMathSymbol{\vardiagamma}{\mathalpha}{\M at greeklower}{"377}
+  \DeclareMathSymbol{\varkoppa}{\mathalpha}{\M at greeklower}{"3DF}}
+\def\M at digits@set{%
+  \edef\M at digits{M\@digitsshape\the\M at count}
+  \DeclareMathSymbol{0}{\mathalpha}{\M at digits}{`0}
+  \DeclareMathSymbol{1}{\mathalpha}{\M at digits}{`1}
+  \DeclareMathSymbol{2}{\mathalpha}{\M at digits}{`2}
+  \DeclareMathSymbol{3}{\mathalpha}{\M at digits}{`3}
+  \DeclareMathSymbol{4}{\mathalpha}{\M at digits}{`4}
+  \DeclareMathSymbol{5}{\mathalpha}{\M at digits}{`5}
+  \DeclareMathSymbol{6}{\mathalpha}{\M at digits}{`6}
+  \DeclareMathSymbol{7}{\mathalpha}{\M at digits}{`7}
+  \DeclareMathSymbol{8}{\mathalpha}{\M at digits}{`8}
+  \DeclareMathSymbol{9}{\mathalpha}{\M at digits}{`9}}
+\def\M at operator@set{%
+  \edef\operator at font{\noexpand\mathgroup
+  \expandafter\noexpand
+    \csname symM\@operatorshape\the\M at count\endcsname}}
+\def\M at bb@set{%
+  \edef\M at bb{M\@bbshape\the\M at count}
+  \DeclareMathSymbol{\M at bb@A}{\mathord}{\M at bb}{"1D538}
+  \DeclareMathSymbol{\M at bb@B}{\mathord}{\M at bb}{"1D539}
+  \DeclareMathSymbol{\M at bb@C}{\mathord}{\M at bb}{"2102}
+  \DeclareMathSymbol{\M at bb@D}{\mathord}{\M at bb}{"1D53B}
+  \DeclareMathSymbol{\M at bb@E}{\mathord}{\M at bb}{"1D53C}
+  \DeclareMathSymbol{\M at bb@F}{\mathord}{\M at bb}{"1D53D}
+  \DeclareMathSymbol{\M at bb@G}{\mathord}{\M at bb}{"1D53E}
+  \DeclareMathSymbol{\M at bb@H}{\mathord}{\M at bb}{"210D}
+  \DeclareMathSymbol{\M at bb@I}{\mathord}{\M at bb}{"1D540}
+  \DeclareMathSymbol{\M at bb@J}{\mathord}{\M at bb}{"1D541}
+  \DeclareMathSymbol{\M at bb@K}{\mathord}{\M at bb}{"1D542}
+  \DeclareMathSymbol{\M at bb@L}{\mathord}{\M at bb}{"1D543}
+  \DeclareMathSymbol{\M at bb@M}{\mathord}{\M at bb}{"1D544}
+  \DeclareMathSymbol{\M at bb@N}{\mathord}{\M at bb}{"2115}
+  \DeclareMathSymbol{\M at bb@O}{\mathord}{\M at bb}{"1D546}
+  \DeclareMathSymbol{\M at bb@P}{\mathord}{\M at bb}{"2119}
+  \DeclareMathSymbol{\M at bb@Q}{\mathord}{\M at bb}{"211A}
+  \DeclareMathSymbol{\M at bb@R}{\mathord}{\M at bb}{"211D}
+  \DeclareMathSymbol{\M at bb@S}{\mathord}{\M at bb}{"1D54A}
+  \DeclareMathSymbol{\M at bb@T}{\mathord}{\M at bb}{"1D54B}
+  \DeclareMathSymbol{\M at bb@U}{\mathord}{\M at bb}{"1D54C}
+  \DeclareMathSymbol{\M at bb@V}{\mathord}{\M at bb}{"1D54D}
+  \DeclareMathSymbol{\M at bb@W}{\mathord}{\M at bb}{"1D54E}
+  \DeclareMathSymbol{\M at bb@X}{\mathord}{\M at bb}{"1D43F}
+  \DeclareMathSymbol{\M at bb@Y}{\mathord}{\M at bb}{"1D550}
+  \DeclareMathSymbol{\M at bb@Z}{\mathord}{\M at bb}{"2124}
+  \DeclareMathSymbol{\M at bb@a}{\mathord}{\M at bb}{"1D552}
+  \DeclareMathSymbol{\M at bb@b}{\mathord}{\M at bb}{"1D553}
+  \DeclareMathSymbol{\M at bb@c}{\mathord}{\M at bb}{"1D554}
+  \DeclareMathSymbol{\M at bb@d}{\mathord}{\M at bb}{"1D555}
+  \DeclareMathSymbol{\M at bb@e}{\mathord}{\M at bb}{"1D556}
+  \DeclareMathSymbol{\M at bb@f}{\mathord}{\M at bb}{"1D557}
+  \DeclareMathSymbol{\M at bb@g}{\mathord}{\M at bb}{"1D558}
+  \DeclareMathSymbol{\M at bb@h}{\mathord}{\M at bb}{"1D559}
+  \DeclareMathSymbol{\M at bb@i}{\mathord}{\M at bb}{"1D55A}
+  \DeclareMathSymbol{\M at bb@j}{\mathord}{\M at bb}{"1D55B}
+  \DeclareMathSymbol{\M at bb@k}{\mathord}{\M at bb}{"1D55C}
+  \DeclareMathSymbol{\M at bb@l}{\mathord}{\M at bb}{"1D55D}
+  \DeclareMathSymbol{\M at bb@m}{\mathord}{\M at bb}{"1D55E}
+  \DeclareMathSymbol{\M at bb@n}{\mathord}{\M at bb}{"1D55F}
+  \DeclareMathSymbol{\M at bb@o}{\mathord}{\M at bb}{"1D560}
+  \DeclareMathSymbol{\M at bb@p}{\mathord}{\M at bb}{"1D561}
+  \DeclareMathSymbol{\M at bb@q}{\mathord}{\M at bb}{"1D562}
+  \DeclareMathSymbol{\M at bb@r}{\mathord}{\M at bb}{"1D563}
+  \DeclareMathSymbol{\M at bb@s}{\mathord}{\M at bb}{"1D564}
+  \DeclareMathSymbol{\M at bb@t}{\mathord}{\M at bb}{"1D565}
+  \DeclareMathSymbol{\M at bb@u}{\mathord}{\M at bb}{"1D566}
+  \DeclareMathSymbol{\M at bb@v}{\mathord}{\M at bb}{"1D567}
+  \DeclareMathSymbol{\M at bb@w}{\mathord}{\M at bb}{"1D568}
+  \DeclareMathSymbol{\M at bb@x}{\mathord}{\M at bb}{"1D569}
+  \DeclareMathSymbol{\M at bb@y}{\mathord}{\M at bb}{"1D56A}
+  \DeclareMathSymbol{\M at bb@z}{\mathord}{\M at bb}{"1D56B}
+  \expandafter\DeclareMathSymbol\expandafter
+    {\csname M at bb@0\endcsname}{\mathord}{\M at bb}{"1D7D8}
+  \expandafter\DeclareMathSymbol\expandafter
+    {\csname M at bb@1\endcsname}{\mathord}{\M at bb}{"1D7D9}
+  \expandafter\DeclareMathSymbol\expandafter
+    {\csname M at bb@2\endcsname}{\mathord}{\M at bb}{"1D7DA}
+  \expandafter\DeclareMathSymbol\expandafter
+    {\csname M at bb@3\endcsname}{\mathord}{\M at bb}{"1D7DB}
+  \expandafter\DeclareMathSymbol\expandafter
+    {\csname M at bb@4\endcsname}{\mathord}{\M at bb}{"1D7DC}
+  \expandafter\DeclareMathSymbol\expandafter
+    {\csname M at bb@5\endcsname}{\mathord}{\M at bb}{"1D7DD}
+  \expandafter\DeclareMathSymbol\expandafter
+    {\csname M at bb@6\endcsname}{\mathord}{\M at bb}{"1D7DE}
+  \expandafter\DeclareMathSymbol\expandafter
+    {\csname M at bb@7\endcsname}{\mathord}{\M at bb}{"1D7DF}
+  \expandafter\DeclareMathSymbol\expandafter
+    {\csname M at bb@8\endcsname}{\mathord}{\M at bb}{"1D7E0}
+  \expandafter\DeclareMathSymbol\expandafter
+    {\csname M at bb@9\endcsname}{\mathord}{\M at bb}{"1D7E1}}
+\def\M at cal@set{%
+  \edef\M at cal{M\@calshape\the\M at count}
+  \DeclareMathSymbol{\M at cal@A}{\mathord}{\M at cal}{"1D49C}
+  \DeclareMathSymbol{\M at cal@B}{\mathord}{\M at cal}{"212C}
+  \DeclareMathSymbol{\M at cal@C}{\mathord}{\M at cal}{"1D49E}
+  \DeclareMathSymbol{\M at cal@D}{\mathord}{\M at cal}{"1D49F}
+  \DeclareMathSymbol{\M at cal@E}{\mathord}{\M at cal}{"2130}
+  \DeclareMathSymbol{\M at cal@F}{\mathord}{\M at cal}{"2131}
+  \DeclareMathSymbol{\M at cal@G}{\mathord}{\M at cal}{"1D4A2}
+  \DeclareMathSymbol{\M at cal@H}{\mathord}{\M at cal}{"210B}
+  \DeclareMathSymbol{\M at cal@I}{\mathord}{\M at cal}{"2110}
+  \DeclareMathSymbol{\M at cal@J}{\mathord}{\M at cal}{"1D4A5}
+  \DeclareMathSymbol{\M at cal@K}{\mathord}{\M at cal}{"1D4A6}
+  \DeclareMathSymbol{\M at cal@L}{\mathord}{\M at cal}{"2112}
+  \DeclareMathSymbol{\M at cal@M}{\mathord}{\M at cal}{"2133}
+  \DeclareMathSymbol{\M at cal@N}{\mathord}{\M at cal}{"1D4A9}
+  \DeclareMathSymbol{\M at cal@O}{\mathord}{\M at cal}{"1D4AA}
+  \DeclareMathSymbol{\M at cal@P}{\mathord}{\M at cal}{"1D4AB}
+  \DeclareMathSymbol{\M at cal@Q}{\mathord}{\M at cal}{"1D4AC}
+  \DeclareMathSymbol{\M at cal@R}{\mathord}{\M at cal}{"211B}
+  \DeclareMathSymbol{\M at cal@S}{\mathord}{\M at cal}{"1D4AE}
+  \DeclareMathSymbol{\M at cal@T}{\mathord}{\M at cal}{"1D4AF}
+  \DeclareMathSymbol{\M at cal@U}{\mathord}{\M at cal}{"1D4B0}
+  \DeclareMathSymbol{\M at cal@V}{\mathord}{\M at cal}{"1D4B1}
+  \DeclareMathSymbol{\M at cal@W}{\mathord}{\M at cal}{"1D4B2}
+  \DeclareMathSymbol{\M at cal@X}{\mathord}{\M at cal}{"1D4B3}
+  \DeclareMathSymbol{\M at cal@Y}{\mathord}{\M at cal}{"1D4B4}
+  \DeclareMathSymbol{\M at cal@Z}{\mathord}{\M at cal}{"1D4B5}
+  \DeclareMathSymbol{\M at cal@a}{\mathord}{\M at cal}{"1D4B6}
+  \DeclareMathSymbol{\M at cal@b}{\mathord}{\M at cal}{"1D4B7}
+  \DeclareMathSymbol{\M at cal@c}{\mathord}{\M at cal}{"1D4B8}
+  \DeclareMathSymbol{\M at cal@d}{\mathord}{\M at cal}{"1D4B9}
+  \DeclareMathSymbol{\M at cal@e}{\mathord}{\M at cal}{"212F}
+  \DeclareMathSymbol{\M at cal@f}{\mathord}{\M at cal}{"1D4BB}
+  \DeclareMathSymbol{\M at cal@g}{\mathord}{\M at cal}{"210A}
+  \DeclareMathSymbol{\M at cal@h}{\mathord}{\M at cal}{"1D4BD}
+  \DeclareMathSymbol{\M at cal@i}{\mathord}{\M at cal}{"1D4BE}
+  \DeclareMathSymbol{\M at cal@j}{\mathord}{\M at cal}{"1D4BF}
+  \DeclareMathSymbol{\M at cal@k}{\mathord}{\M at cal}{"1D4C0}
+  \DeclareMathSymbol{\M at cal@l}{\mathord}{\M at cal}{"1D4C1}
+  \DeclareMathSymbol{\M at cal@m}{\mathord}{\M at cal}{"1D4C2}
+  \DeclareMathSymbol{\M at cal@n}{\mathord}{\M at cal}{"1D4C3}
+  \DeclareMathSymbol{\M at cal@o}{\mathord}{\M at cal}{"2134}
+  \DeclareMathSymbol{\M at cal@p}{\mathord}{\M at cal}{"1D4C5}
+  \DeclareMathSymbol{\M at cal@q}{\mathord}{\M at cal}{"1D4C6}
+  \DeclareMathSymbol{\M at cal@r}{\mathord}{\M at cal}{"1D4C7}
+  \DeclareMathSymbol{\M at cal@s}{\mathord}{\M at cal}{"1D4C8}
+  \DeclareMathSymbol{\M at cal@t}{\mathord}{\M at cal}{"1D4C9}
+  \DeclareMathSymbol{\M at cal@u}{\mathord}{\M at cal}{"1D4CA}
+  \DeclareMathSymbol{\M at cal@v}{\mathord}{\M at cal}{"1D4CB}
+  \DeclareMathSymbol{\M at cal@w}{\mathord}{\M at cal}{"1D4CC}
+  \DeclareMathSymbol{\M at cal@x}{\mathord}{\M at cal}{"1D4CD}
+  \DeclareMathSymbol{\M at cal@y}{\mathord}{\M at cal}{"1D4CE}
+  \DeclareMathSymbol{\M at cal@z}{\mathord}{\M at cal}{"1D4CF}}
+\def\M at frak@set{%
+  \edef\M at frak{M\@frakshape\the\M at count}
+  \DeclareMathSymbol{\M at frak@A}{\mathord}{\M at frak}{"1D504}
+  \DeclareMathSymbol{\M at frak@B}{\mathord}{\M at frak}{"1D505}
+  \DeclareMathSymbol{\M at frak@C}{\mathord}{\M at frak}{"212D}
+  \DeclareMathSymbol{\M at frak@D}{\mathord}{\M at frak}{"1D507}
+  \DeclareMathSymbol{\M at frak@E}{\mathord}{\M at frak}{"1D508}
+  \DeclareMathSymbol{\M at frak@F}{\mathord}{\M at frak}{"1D509}
+  \DeclareMathSymbol{\M at frak@G}{\mathord}{\M at frak}{"1D50A}
+  \DeclareMathSymbol{\M at frak@H}{\mathord}{\M at frak}{"210C}
+  \DeclareMathSymbol{\M at frak@I}{\mathord}{\M at frak}{"2111}
+  \DeclareMathSymbol{\M at frak@J}{\mathord}{\M at frak}{"1D50D}
+  \DeclareMathSymbol{\M at frak@K}{\mathord}{\M at frak}{"1D50E}
+  \DeclareMathSymbol{\M at frak@L}{\mathord}{\M at frak}{"1D50F}
+  \DeclareMathSymbol{\M at frak@M}{\mathord}{\M at frak}{"1D510}
+  \DeclareMathSymbol{\M at frak@N}{\mathord}{\M at frak}{"1D511}
+  \DeclareMathSymbol{\M at frak@O}{\mathord}{\M at frak}{"1D512}
+  \DeclareMathSymbol{\M at frak@P}{\mathord}{\M at frak}{"1D513}
+  \DeclareMathSymbol{\M at frak@Q}{\mathord}{\M at frak}{"1D514}
+  \DeclareMathSymbol{\M at frak@R}{\mathord}{\M at frak}{"212C}
+  \DeclareMathSymbol{\M at frak@S}{\mathord}{\M at frak}{"1D516}
+  \DeclareMathSymbol{\M at frak@T}{\mathord}{\M at frak}{"1D517}
+  \DeclareMathSymbol{\M at frak@U}{\mathord}{\M at frak}{"1D518}
+  \DeclareMathSymbol{\M at frak@V}{\mathord}{\M at frak}{"1D519}
+  \DeclareMathSymbol{\M at frak@W}{\mathord}{\M at frak}{"1D51A}
+  \DeclareMathSymbol{\M at frak@X}{\mathord}{\M at frak}{"1D51B}
+  \DeclareMathSymbol{\M at frak@Y}{\mathord}{\M at frak}{"1D51C}
+  \DeclareMathSymbol{\M at frak@Z}{\mathord}{\M at frak}{"2128}
+  \DeclareMathSymbol{\M at frak@a}{\mathord}{\M at frak}{"1D51E}
+  \DeclareMathSymbol{\M at frak@b}{\mathord}{\M at frak}{"1D51F}
+  \DeclareMathSymbol{\M at frak@c}{\mathord}{\M at frak}{"1D520}
+  \DeclareMathSymbol{\M at frak@d}{\mathord}{\M at frak}{"1D521}
+  \DeclareMathSymbol{\M at frak@e}{\mathord}{\M at frak}{"1D522}
+  \DeclareMathSymbol{\M at frak@f}{\mathord}{\M at frak}{"1D523}
+  \DeclareMathSymbol{\M at frak@g}{\mathord}{\M at frak}{"1D524}
+  \DeclareMathSymbol{\M at frak@h}{\mathord}{\M at frak}{"1D525}
+  \DeclareMathSymbol{\M at frak@i}{\mathord}{\M at frak}{"1D526}
+  \DeclareMathSymbol{\M at frak@j}{\mathord}{\M at frak}{"1D527}
+  \DeclareMathSymbol{\M at frak@k}{\mathord}{\M at frak}{"1D528}
+  \DeclareMathSymbol{\M at frak@l}{\mathord}{\M at frak}{"1D529}
+  \DeclareMathSymbol{\M at frak@m}{\mathord}{\M at frak}{"1D52A}
+  \DeclareMathSymbol{\M at frak@n}{\mathord}{\M at frak}{"1D52B}
+  \DeclareMathSymbol{\M at frak@o}{\mathord}{\M at frak}{"1D52C}
+  \DeclareMathSymbol{\M at frak@p}{\mathord}{\M at frak}{"1D52D}
+  \DeclareMathSymbol{\M at frak@q}{\mathord}{\M at frak}{"1D52E}
+  \DeclareMathSymbol{\M at frak@r}{\mathord}{\M at frak}{"1D52F}
+  \DeclareMathSymbol{\M at frak@s}{\mathord}{\M at frak}{"1D530}
+  \DeclareMathSymbol{\M at frak@t}{\mathord}{\M at frak}{"1D531}
+  \DeclareMathSymbol{\M at frak@u}{\mathord}{\M at frak}{"1D532}
+  \DeclareMathSymbol{\M at frak@v}{\mathord}{\M at frak}{"1D533}
+  \DeclareMathSymbol{\M at frak@w}{\mathord}{\M at frak}{"1D534}
+  \DeclareMathSymbol{\M at frak@x}{\mathord}{\M at frak}{"1D535}
+  \DeclareMathSymbol{\M at frak@y}{\mathord}{\M at frak}{"1D536}
+  \DeclareMathSymbol{\M at frak@z}{\mathord}{\M at frak}{"1D537}}
+\def\M at bcal@set{%
+  \edef\M at bcal{M\@bcalshape\the\M at count}
+  \DeclareMathSymbol{\M at bcal@A}{\mathord}{\M at bcal}{"1D4D0}
+  \DeclareMathSymbol{\M at bcal@B}{\mathord}{\M at bcal}{"1D4D1}
+  \DeclareMathSymbol{\M at bcal@C}{\mathord}{\M at bcal}{"1D4D2}
+  \DeclareMathSymbol{\M at bcal@D}{\mathord}{\M at bcal}{"1D4D3}
+  \DeclareMathSymbol{\M at bcal@E}{\mathord}{\M at bcal}{"1D4D4}
+  \DeclareMathSymbol{\M at bcal@F}{\mathord}{\M at bcal}{"1D4D5}
+  \DeclareMathSymbol{\M at bcal@G}{\mathord}{\M at bcal}{"1D4D6}
+  \DeclareMathSymbol{\M at bcal@H}{\mathord}{\M at bcal}{"1D4D7}
+  \DeclareMathSymbol{\M at bcal@I}{\mathord}{\M at bcal}{"1D4D8}
+  \DeclareMathSymbol{\M at bcal@J}{\mathord}{\M at bcal}{"1D4D9}
+  \DeclareMathSymbol{\M at bcal@K}{\mathord}{\M at bcal}{"1D4DA}
+  \DeclareMathSymbol{\M at bcal@L}{\mathord}{\M at bcal}{"1D4DB}
+  \DeclareMathSymbol{\M at bcal@M}{\mathord}{\M at bcal}{"1D4DC}
+  \DeclareMathSymbol{\M at bcal@N}{\mathord}{\M at bcal}{"1D4DD}
+  \DeclareMathSymbol{\M at bcal@O}{\mathord}{\M at bcal}{"1D4DE}
+  \DeclareMathSymbol{\M at bcal@P}{\mathord}{\M at bcal}{"1D4DF}
+  \DeclareMathSymbol{\M at bcal@Q}{\mathord}{\M at bcal}{"1D4E0}
+  \DeclareMathSymbol{\M at bcal@R}{\mathord}{\M at bcal}{"1D4E1}
+  \DeclareMathSymbol{\M at bcal@S}{\mathord}{\M at bcal}{"1D4E2}
+  \DeclareMathSymbol{\M at bcal@T}{\mathord}{\M at bcal}{"1D4E3}
+  \DeclareMathSymbol{\M at bcal@U}{\mathord}{\M at bcal}{"1D4E4}
+  \DeclareMathSymbol{\M at bcal@V}{\mathord}{\M at bcal}{"1D4E5}
+  \DeclareMathSymbol{\M at bcal@W}{\mathord}{\M at bcal}{"1D4E6}
+  \DeclareMathSymbol{\M at bcal@X}{\mathord}{\M at bcal}{"1D4E7}
+  \DeclareMathSymbol{\M at bcal@Y}{\mathord}{\M at bcal}{"1D4E8}
+  \DeclareMathSymbol{\M at bcal@Z}{\mathord}{\M at bcal}{"1D4E9}
+  \DeclareMathSymbol{\M at bcal@a}{\mathord}{\M at bcal}{"1D4EA}
+  \DeclareMathSymbol{\M at bcal@b}{\mathord}{\M at bcal}{"1D4EB}
+  \DeclareMathSymbol{\M at bcal@c}{\mathord}{\M at bcal}{"1D4EC}
+  \DeclareMathSymbol{\M at bcal@d}{\mathord}{\M at bcal}{"1D4ED}
+  \DeclareMathSymbol{\M at bcal@e}{\mathord}{\M at bcal}{"1D4EE}
+  \DeclareMathSymbol{\M at bcal@f}{\mathord}{\M at bcal}{"1D4EF}
+  \DeclareMathSymbol{\M at bcal@g}{\mathord}{\M at bcal}{"1D4F0}
+  \DeclareMathSymbol{\M at bcal@h}{\mathord}{\M at bcal}{"1D4F1}
+  \DeclareMathSymbol{\M at bcal@i}{\mathord}{\M at bcal}{"1D4F2}
+  \DeclareMathSymbol{\M at bcal@j}{\mathord}{\M at bcal}{"1D4F3}
+  \DeclareMathSymbol{\M at bcal@k}{\mathord}{\M at bcal}{"1D4F4}
+  \DeclareMathSymbol{\M at bcal@l}{\mathord}{\M at bcal}{"1D4F5}
+  \DeclareMathSymbol{\M at bcal@m}{\mathord}{\M at bcal}{"1D4F6}
+  \DeclareMathSymbol{\M at bcal@n}{\mathord}{\M at bcal}{"1D4F7}
+  \DeclareMathSymbol{\M at bcal@o}{\mathord}{\M at bcal}{"1D4F8}
+  \DeclareMathSymbol{\M at bcal@p}{\mathord}{\M at bcal}{"1D4F9}
+  \DeclareMathSymbol{\M at bcal@q}{\mathord}{\M at bcal}{"1D4FA}
+  \DeclareMathSymbol{\M at bcal@r}{\mathord}{\M at bcal}{"1D4FB}
+  \DeclareMathSymbol{\M at bcal@s}{\mathord}{\M at bcal}{"1D4FC}
+  \DeclareMathSymbol{\M at bcal@t}{\mathord}{\M at bcal}{"1D4FD}
+  \DeclareMathSymbol{\M at bcal@u}{\mathord}{\M at bcal}{"1D4FE}
+  \DeclareMathSymbol{\M at bcal@v}{\mathord}{\M at bcal}{"1D4FF}
+  \DeclareMathSymbol{\M at bcal@w}{\mathord}{\M at bcal}{"1D500}
+  \DeclareMathSymbol{\M at bcal@x}{\mathord}{\M at bcal}{"1D501}
+  \DeclareMathSymbol{\M at bcal@y}{\mathord}{\M at bcal}{"1D502}
+  \DeclareMathSymbol{\M at bcal@z}{\mathord}{\M at bcal}{"1D503}}
+\def\M at bfrak@set{%
+  \edef\M at bfrak{M\@bfrakshape\the\M at count}
+  \DeclareMathSymbol{\M at bfrak@A}{\mathord}{\M at bfrak}{"1D56C}
+  \DeclareMathSymbol{\M at bfrak@B}{\mathord}{\M at bfrak}{"1D56D}
+  \DeclareMathSymbol{\M at bfrak@C}{\mathord}{\M at bfrak}{"1D56E}
+  \DeclareMathSymbol{\M at bfrak@D}{\mathord}{\M at bfrak}{"1D56F}
+  \DeclareMathSymbol{\M at bfrak@E}{\mathord}{\M at bfrak}{"1D570}
+  \DeclareMathSymbol{\M at bfrak@F}{\mathord}{\M at bfrak}{"1D571}
+  \DeclareMathSymbol{\M at bfrak@G}{\mathord}{\M at bfrak}{"1D572}
+  \DeclareMathSymbol{\M at bfrak@H}{\mathord}{\M at bfrak}{"1D573}
+  \DeclareMathSymbol{\M at bfrak@I}{\mathord}{\M at bfrak}{"1D574}
+  \DeclareMathSymbol{\M at bfrak@J}{\mathord}{\M at bfrak}{"1D575}
+  \DeclareMathSymbol{\M at bfrak@K}{\mathord}{\M at bfrak}{"1D576}
+  \DeclareMathSymbol{\M at bfrak@L}{\mathord}{\M at bfrak}{"1D577}
+  \DeclareMathSymbol{\M at bfrak@M}{\mathord}{\M at bfrak}{"1D578}
+  \DeclareMathSymbol{\M at bfrak@N}{\mathord}{\M at bfrak}{"1D579}
+  \DeclareMathSymbol{\M at bfrak@O}{\mathord}{\M at bfrak}{"1D57A}
+  \DeclareMathSymbol{\M at bfrak@P}{\mathord}{\M at bfrak}{"1D57B}
+  \DeclareMathSymbol{\M at bfrak@Q}{\mathord}{\M at bfrak}{"1D57C}
+  \DeclareMathSymbol{\M at bfrak@R}{\mathord}{\M at bfrak}{"1D57D}
+  \DeclareMathSymbol{\M at bfrak@S}{\mathord}{\M at bfrak}{"1D57E}
+  \DeclareMathSymbol{\M at bfrak@T}{\mathord}{\M at bfrak}{"1D57F}
+  \DeclareMathSymbol{\M at bfrak@U}{\mathord}{\M at bfrak}{"1D580}
+  \DeclareMathSymbol{\M at bfrak@V}{\mathord}{\M at bfrak}{"1D581}
+  \DeclareMathSymbol{\M at bfrak@W}{\mathord}{\M at bfrak}{"1D582}
+  \DeclareMathSymbol{\M at bfrak@X}{\mathord}{\M at bfrak}{"1D583}
+  \DeclareMathSymbol{\M at bfrak@Y}{\mathord}{\M at bfrak}{"1D584}
+  \DeclareMathSymbol{\M at bfrak@Z}{\mathord}{\M at bfrak}{"1D585}
+  \DeclareMathSymbol{\M at bfrak@a}{\mathord}{\M at bfrak}{"1D586}
+  \DeclareMathSymbol{\M at bfrak@b}{\mathord}{\M at bfrak}{"1D587}
+  \DeclareMathSymbol{\M at bfrak@c}{\mathord}{\M at bfrak}{"1D588}
+  \DeclareMathSymbol{\M at bfrak@d}{\mathord}{\M at bfrak}{"1D589}
+  \DeclareMathSymbol{\M at bfrak@e}{\mathord}{\M at bfrak}{"1D58A}
+  \DeclareMathSymbol{\M at bfrak@f}{\mathord}{\M at bfrak}{"1D58B}
+  \DeclareMathSymbol{\M at bfrak@g}{\mathord}{\M at bfrak}{"1D58C}
+  \DeclareMathSymbol{\M at bfrak@h}{\mathord}{\M at bfrak}{"1D58D}
+  \DeclareMathSymbol{\M at bfrak@i}{\mathord}{\M at bfrak}{"1D58E}
+  \DeclareMathSymbol{\M at bfrak@j}{\mathord}{\M at bfrak}{"1D58F}
+  \DeclareMathSymbol{\M at bfrak@k}{\mathord}{\M at bfrak}{"1D590}
+  \DeclareMathSymbol{\M at bfrak@l}{\mathord}{\M at bfrak}{"1D591}
+  \DeclareMathSymbol{\M at bfrak@m}{\mathord}{\M at bfrak}{"1D592}
+  \DeclareMathSymbol{\M at bfrak@n}{\mathord}{\M at bfrak}{"1D593}
+  \DeclareMathSymbol{\M at bfrak@o}{\mathord}{\M at bfrak}{"1D594}
+  \DeclareMathSymbol{\M at bfrak@p}{\mathord}{\M at bfrak}{"1D595}
+  \DeclareMathSymbol{\M at bfrak@q}{\mathord}{\M at bfrak}{"1D596}
+  \DeclareMathSymbol{\M at bfrak@r}{\mathord}{\M at bfrak}{"1D597}
+  \DeclareMathSymbol{\M at bfrak@s}{\mathord}{\M at bfrak}{"1D598}
+  \DeclareMathSymbol{\M at bfrak@t}{\mathord}{\M at bfrak}{"1D599}
+  \DeclareMathSymbol{\M at bfrak@u}{\mathord}{\M at bfrak}{"1D59A}
+  \DeclareMathSymbol{\M at bfrak@v}{\mathord}{\M at bfrak}{"1D59B}
+  \DeclareMathSymbol{\M at bfrak@w}{\mathord}{\M at bfrak}{"1D59C}
+  \DeclareMathSymbol{\M at bfrak@x}{\mathord}{\M at bfrak}{"1D59D}
+  \DeclareMathSymbol{\M at bfrak@y}{\mathord}{\M at bfrak}{"1D59E}
+  \DeclareMathSymbol{\M at bfrak@z}{\mathord}{\M at bfrak}{"1D59F}}
+\def\restoremathinternals{%
+  \M at RestoreInternalsInfo
+  \let\set at mathchar\@@set at mathchar
+  \let\set at mathsymbol\@@set at mathsymbol}
+\if at packages
+\else
+  \let\@@usepackage\usepackage
+  \def\usepackage{\restoremathinternals
+    \let\usepackage\@@usepackage
+    \usepackage}
+\fi
+\endinput
+%%
+%% End of file `mathfont.sty'.


Property changes on: trunk/Master/texmf-dist/tex/latex/mathfont/mathfont.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check	2018-07-26 21:47:48 UTC (rev 48282)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check	2018-07-26 22:49:15 UTC (rev 48283)
@@ -418,7 +418,7 @@
     matc3 matc3mem match_parens
     math-e math-into-latex-4 mathabx mathabx-type1 mathalfa mathastext
     mathcomp mathdesign mathdots mathexam
-    mathfam256 mathfixs mathpartir mathpunctspace
+    mathfam256 mathfixs mathfont mathpartir mathpunctspace
     mathspec mathtools matlab-prettifier mathspic maths-symbols
     mattens maybemath mbenotes
     mcaption mceinleger mcexam mcf2graph mcite mciteplus mcmthesis

Modified: trunk/Master/tlpkg/libexec/ctan2tds
===================================================================
--- trunk/Master/tlpkg/libexec/ctan2tds	2018-07-26 21:47:48 UTC (rev 48282)
+++ trunk/Master/tlpkg/libexec/ctan2tds	2018-07-26 22:49:15 UTC (rev 48283)
@@ -2558,7 +2558,7 @@
  'luaindex'     => 'lualatex --shell-escape',
  'luatexja'     => 'lualatex',
  'mandi'	=> 'pdflatex-preserve-pdf',
- 'mathfont'	=> 'tex',
+ 'mathfont'	=> 'latex',
  'mcmthesis'	=> 'tex',    # requires interaction
  'mversion'     => 'latex',  # requires interaction
  'minitoc'      => 'latex',  # requires interaction and 1000q instead of 10q
@@ -3118,6 +3118,7 @@
  'latexmk'	 => '(sweave_|tex4ht-)latexmkrc',	# case-folding clash
  'maker'	 => 'maker_manual.pdf',			# no source
  'math-into-latex-4' => 'video.*zip|S.*\.pdf',          # nonfree
+ 'mathfont'	 => 'mathfont_greek.pdf',		# no source
  'numericplots'  => '.*\.m',                            # matlab
  'oinuit'        => 'cmssbxo10.tfm',                    # should not be here
  'padauk'	 => '\.pdf$',				# no source
@@ -3550,10 +3551,12 @@
     &runjob ("yes | sed 1000q | $env_mktex $insrunner $_");
     
     # bbold.dtx generates bbold.ins, and then does "low level hacks" to
-    # run the .ins itself.  We don't want to do anything.
-    next if $package eq "bbold";
+    # run the .ins itself.  mathfont.dtx generates mathfont.ins to no
+    # purpose (and it doesn't work). We don't want to do anything in
+    # either case.
+    next if $package =~ /^(bbold|mathfont)$/;
 
-    # in the case of fullblck (et al.?), the .dtx creates the .ins (so the
+    # in the case of fullblck (et al.), the .dtx creates the .ins (so the
     # .ins is not in @filenames), and the .ins creates the .sty.
     # So we have to run the .ins.
     if (! grep (/$package\.ins$/, @filenames) && -r "$package.ins") {

Modified: trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2018-07-26 21:47:48 UTC (rev 48282)
+++ trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2018-07-26 22:49:15 UTC (rev 48283)
@@ -673,6 +673,7 @@
 depend mathastext
 depend mathexam
 depend mathfam256
+depend mathfont
 depend maybemath
 depend mbenotes
 depend mcaption

Added: trunk/Master/tlpkg/tlpsrc/mathfont.tlpsrc
===================================================================


More information about the tex-live-commits mailing list