2021-09-09 20:56:00 +02:00
|
|
|
\NeedsTeXFormat{LaTeX2e}
|
2021-09-11 17:22:13 +02:00
|
|
|
\ProvidesPackage{mkessler-mathfont}[2021/09/06 - Collects several math fonts together]
|
2021-09-09 20:56:00 +02:00
|
|
|
|
|
|
|
|
|
|
|
%%% Store away the several (partially conflicting) fonts in internal macros
|
|
|
|
|
|
|
|
\let\mkessler@mathfonts@none@mathcal\mathcal
|
|
|
|
|
|
|
|
\RequirePackage{mathrsfs}
|
|
|
|
\let\mkessler@mathfonts@mathrsfs@mathscr\mathscr
|
|
|
|
|
|
|
|
\RequirePackage[mathscr]{eucal}
|
|
|
|
\let\mkessler@mathfonts@eucal@optionmathscr@mathscr\mathscr
|
|
|
|
|
|
|
|
\RequirePackage{amsfonts}
|
|
|
|
\let\mkessler@mathfonts@amsfonts@mathfrak\mathfrak
|
|
|
|
|
|
|
|
%%% Provide user commands to internally stored macros
|
|
|
|
\def\mkessler@mathfonts@restorefonts{
|
|
|
|
\let\mathcal\mkessler@mathfonts@none@mathcal % Set \mathcal to default calligrapic
|
|
|
|
\let\mathfrak\mkessler@mathfonts@amsfonts@mathfrak % Set \mathfrak to mathfrak from amsfonts
|
|
|
|
\let\mathscr\mkessler@mathfonts@mathrsfs@mathscr % Set \mathscr to mathscript from mathrsfs package
|
|
|
|
\let\mathcat\mkessler@mathfonts@mathrsfs@mathscr % Set \mathcat to mathscript from mathrsfs package
|
2021-09-12 00:04:15 +02:00
|
|
|
\let\mathcalo\mkessler@mathfonts@eucal@optionmathscr@mathscr % Set \mathcom (for comic) to \mathscr from [mathscr]{eucal} package
|
2021-09-09 20:56:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
\AtBeginDocument{\mkessler@mathfonts@restorefonts}
|