add separate package for mathfonts
This commit is contained in:
parent
04a322a54c
commit
7c143a6427
2 changed files with 27 additions and 4 deletions
|
@ -106,10 +106,6 @@
|
|||
% Always put limits under \limit
|
||||
\let\oldlim\lim\def\lim{\oldlim\limits}
|
||||
|
||||
\RequirePackage[mathscr]{eucal} % \mathscr alphabet
|
||||
\newcommand{\cat}[1]{ \mathscr{#1} }
|
||||
|
||||
|
||||
\if@mkessler@math@english
|
||||
\RequirePackage[english]{mkessler-operators}
|
||||
\else
|
||||
|
|
27
mkessler-mathfonts.sty
Normal file
27
mkessler-mathfonts.sty
Normal file
|
@ -0,0 +1,27 @@
|
|||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesPackage{mkessler-mathfonts}[2021-09-06 - Collects several math fonts together]
|
||||
|
||||
|
||||
%%% 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
|
||||
\let\mathcom\mkessler@mathfonts@eucal@optionmathscr@mathscr % Set \mathcom (for comic) to \mathscr from [mathscr]{eucal} package
|
||||
}
|
||||
|
||||
\AtBeginDocument{\mkessler@mathfonts@restorefonts}
|
Loading…
Reference in a new issue