diff --git a/fancycom.sty b/fancycom.sty index cc6c92c..d8a1cd7 100644 --- a/fancycom.sty +++ b/fancycom.sty @@ -2,7 +2,7 @@ %Not checked for conflicts with other packages. %Mostly for personal use. %Will not always be backwards compatible, although every effort will be made so that this is so. -%Written by Adam Walsh +%Written by Holonomy %Version 1.0 (will not upgrade version numbers for minor command editions) \ProvidesPackage{fancycom}[2018/02/03 v1.0 Fancy maths common commands package] @@ -34,38 +34,17 @@ \newcommand{\what}[1]{& \qquad &\begin{sloppy}\textit{\small\mbox{#1}\small}\end{sloppy}} %Little comment for an align block. Memento of 2007. %Basic symbol extensions - \def\bA{\mathbb{A}} - \def\bF{\mathbb{F}} - \def\bN{\mathbb{N}} - \def\bR{\mathbb{R}} - \def\bZ{\mathbb{Z}} - \def\bQ{\mathbb{Q}} - \def\bC{\mathbb{C}} - \def\bO{\mathbb{O}} - \def\bP{\mathbb{P}} - \def\bS{\mathbb{S}} - \def\fR{\mathfrak{R}} - \def\fZ{\mathfrak{Z}} - \def\fQ{\mathfrak{Q}} - \def\fC{\mathfrak{C}} - \def\fO{\mathfrak{O}} - \def\sC{\mathscr{C}} - \def\sD{\mathscr{D}} - \def\sP{\mathscr{P}} - \def\sF{\mathscr{F}} - \def\sH{\mathscr{H}} - \def\sM{\mathscr{M}} - \def\sT{\mathscr{T}} - \def\cA{\mathcal{A}} - \def\cB{\mathcal{B}} - \def\cO{\mathcal{O}} - \def\cF{\mathcal{F}} - \def\cG{\mathcal{G}} - \def\cC{\mathcal{C}} - \def\cD{\mathcal{D}} - \def\cT{\mathcal{T}} - \def\cP{\mathcal{P}} - \def\cS{\mathcal{S}} +\makeatletter +\def \mapoveras#1#2#3{ +\def\@mydefall##1{\ifx##1\@mydefall\else\expandafter\def\csname #1##1\endcsname{#2{##1}}\expandafter\@mydefall\fi}% +\@mydefall #3\@mydefall +} +\makeatother + +\mapoveras{c}{\mathcal}{ABCDEFGHIJKLMNOPQRSTUVWXYZ} +\mapoveras{s}{\mathfrak}{ABCDEFGHIJKLMNOPQRSTUVWXYZ} +\mapoveras{f}{\mathfrak}{ABCDEFGHIJKLMNOPQRSTUVWXYZ} +\mapoveras{b}{\mathbb}{ABCDEFGHIJKLMNOPQRSTUVWXYZ} \def\bfz{\mathbf{0}} diff --git a/fancymath.sty b/fancymath.sty index 4892d1e..8869af3 100644 --- a/fancymath.sty +++ b/fancymath.sty @@ -1,7 +1,7 @@ %LaTeX package for writing fancy mathematics fast, specifically tailored to writing assignments and course notes. %Requires and integrates with the fancycom package, which defines many mathematical command shortcuts. %Not carefully checked for integration with other packages. -%Written by Adam Walsh +%Written by Holonomy %Version 1.0 %----------Identification------------