mathalias: add aliases for \mathbb{} in extended mode

Build branch topology-1 (8cc3232) from kesslermaximilian/LatexPackages
This commit is contained in:
Maximilian Keßler 2021-10-24 19:18:59 +00:00
parent bef4c0f537
commit 9b5ae77f03
4 changed files with 28 additions and 26 deletions

View file

@ -1,8 +1,8 @@
{
"build_time": "",
"source files": {
"version": "v2.2.2-3",
"commit": "1113e0ddd01036e5bad92b18c912e94bbc6f85c4",
"version": "v2.2.2-10",
"commit": "8cc3232462da2584cdfaee9fb32c3ee6f345876c",
"dirty": false
},
"pytex": {
@ -114,9 +114,9 @@
{
"name": "mkessler-mathalias.sty",
"source file": "mathalias.pysty",
"build time": "2021/10/24 08:55",
"source version": "v2.2.2-3",
"source commit hash": "1113e0ddd01036e5bad92b18c912e94bbc6f85c4",
"build time": "2021/10/24 19:18",
"source version": "v2.2.2-10",
"source commit hash": "8cc3232462da2584cdfaee9fb32c3ee6f345876c",
"pytex version": "v1.0.0-18",
"pytex commit hash": "126d420b7a6ed2d4b2a42d534ab2e12344869643",
"dirty": false
@ -144,9 +144,9 @@
{
"name": "mkessler-mathop.sty",
"source file": "mathop.pysty",
"build time": "2021/10/24 08:55",
"source version": "v2.2.2-3",
"source commit hash": "1113e0ddd01036e5bad92b18c912e94bbc6f85c4",
"build time": "2021/10/24 19:18",
"source version": "v2.2.2-10",
"source commit hash": "8cc3232462da2584cdfaee9fb32c3ee6f345876c",
"pytex version": "v1.0.0-18",
"pytex commit hash": "126d420b7a6ed2d4b2a42d534ab2e12344869643",
"dirty": false
@ -174,9 +174,9 @@
{
"name": "mkessler-faktor.sty",
"source file": "faktor.pysty",
"build time": "2021/10/24 08:55",
"source version": "v2.2.2-3",
"source commit hash": "1113e0ddd01036e5bad92b18c912e94bbc6f85c4",
"build time": "2021/10/24 19:18",
"source version": "v2.2.2-10",
"source commit hash": "8cc3232462da2584cdfaee9fb32c3ee6f345876c",
"pytex version": "v1.0.0-18",
"pytex commit hash": "126d420b7a6ed2d4b2a42d534ab2e12344869643",
"dirty": false

View file

@ -27,7 +27,7 @@
%
% Build details:
% PyTeX version: v1.0.0-18 (commit 126d420)
% Source code version: v2.2.2-3 (commit 1113e0d)
% Source code version: v2.2.2-10 (commit 8cc3232)
%
% This LaTeX package is free software and distributed under the MIT License. You
% may use it freely for your purposes. The latest version of the package can be
@ -61,26 +61,26 @@
\RequirePackage{mathtools}
\DeclareDocumentCommand{\faktor}{s m O{0.5} m O{-0.5}}{% \newfaktor[*]{#2}[#3]{#4}[#5] -> #2/#4
\setbox0=\hbox{\ensuremath{#2}}% Store numerator
\DeclareDocumentCommand{\faktor}{s O{0.5} m O{-0.5} m}{% \newfaktor[*][#2]{#3}[#4]{#5} -> #3/#5
\setbox0=\hbox{\ensuremath{#3}}% Store numerator
\setbox1=\hbox{\ensuremath{\diagup}}% Store slash /
\setbox2=\hbox{\ensuremath{#4}}% Store denominator
\raisebox{#3\ht1}{\usebox0}% Numerator
\setbox2=\hbox{\ensuremath{#5}}% Store denominator
\raisebox{#2\ht1}{\usebox0}% Numerator
\mkern-5mu\ifthenelse{\equal{#1}{\BooleanTrue}}% Slash /
{\diagup}% regular \faktor slash
{\rotatebox{-44}{\rule[#5\ht2]{0.4pt}{-#5\ht2+#3\ht0+\ht0}}}% tilted rule as a slash
{\rotatebox{-44}{\rule[#4\ht2]{0.4pt}{-#4\ht2+#2\ht0+\ht0}}}% tilted rule as a slash
\mkern-4mu%
\raisebox{#5\ht2}{\usebox2}% Denominator
\raisebox{#4\ht2}{\usebox2}% Denominator
}
\DeclareDocumentCommand{\cofaktor}{s m O{-0.5} m O{0.5}}{% \newfaktor[*]{#2}[#3]{#4}[#5] -> #2/#4
\setbox0=\hbox{\ensuremath{#2}}% Store numerator
\DeclareDocumentCommand{\cofaktor}{s m O{-0.5} m O{0.5}}{% \newfaktor[*][#2]{#3}[#4]{#5} -> #2\#4
\setbox0=\hbox{\ensuremath{#3}}% Store numerator
\setbox1=\hbox{\ensuremath{\diagdown}}% Store slash /
\setbox2=\hbox{\ensuremath{#4}}% Store denominator
\raisebox{#3\ht1}{\usebox0}% Numerator
\setbox2=\hbox{\ensuremath{#5}}% Store denominator
\raisebox{#2\ht1}{\usebox0}% Numerator
\mkern-5mu\ifthenelse{\equal{#1}{\BooleanTrue}}% Slash /
{\diagdown}% regular \faktor slash
{\rotatebox{44}{\rule[-#5\ht2]{0.4pt}{#5\ht2-#3\ht0+\ht0}}}% tilted rule as a slash
{\rotatebox{44}{\rule[-#4\ht2]{0.4pt}{#4\ht2-#2\ht0+\ht0}}}% tilted rule as a slash
\mkern-4mu%
\raisebox{#5\ht2}{\usebox2}% Denominator
\raisebox{#4\ht2}{\usebox2}% Denominator
}

View file

@ -27,7 +27,7 @@
%
% Build details:
% PyTeX version: v1.0.0-18 (commit 126d420)
% Source code version: v2.2.2-3 (commit 1113e0d)
% Source code version: v2.2.2-10 (commit 8cc3232)
%
% This LaTeX package is free software and distributed under the MIT License. You
% may use it freely for your purposes. The latest version of the package can be
@ -85,4 +85,5 @@
\ifmkessler@mathalias@extended
\expandafter\makealiasesforwith\expandafter\mathcal\expandafter{\expandafter c\expandafter}\expandafter{\mkessler@mathalias@all}
\expandafter\makealiasesforwith\expandafter\mathfrak\expandafter{\expandafter f\expandafter}\expandafter{\mkessler@mathalias@all}
\expandafter\makealiasesforwith\expandafter\mathbb\expandafter{\expandafter b\expandafter}\expandafter{\mkessler@mathalias@all}
\fi

View file

@ -27,7 +27,7 @@
%
% Build details:
% PyTeX version: v1.0.0-18 (commit 126d420)
% Source code version: v2.2.2-3 (commit 1113e0d)
% Source code version: v2.2.2-10 (commit 8cc3232)
%
% This LaTeX package is free software and distributed under the MIT License. You
% may use it freely for your purposes. The latest version of the package can be
@ -168,6 +168,7 @@
\DeclareSimpleMathOperator{pr}
\def\twedge{\vee} % Semantically correct macros for wedge product
\def\tsmash{\wedge} % Semantically correct macro for smash product
\DeclareSimpleMathOperator{sing}
%Category Theory
\DeclareSimpleMathOperator{Ob}