[latex3-commits] [git/LaTeX3-latex3-mathtools] master: Simpler def for \Framebox by muzimuzhi (5510b57)
daleif
daleif at math.au.dk
Mon Jan 3 17:36:39 CET 2022
Repository : https://github.com/latex3/mathtools
On branch : master
Link : https://github.com/latex3/mathtools/commit/5510b57d45f2a1cd2573ac8557942f058f8f76ce
>---------------------------------------------------------------
commit 5510b57d45f2a1cd2573ac8557942f058f8f76ce
Author: daleif <daleif at math.au.dk>
Date: Mon Jan 3 17:36:39 2022 +0100
Simpler def for \Framebox by muzimuzhi
>---------------------------------------------------------------
5510b57d45f2a1cd2573ac8557942f058f8f76ce
mathtools.dtx | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/mathtools.dtx b/mathtools.dtx
index 344feaa..705f859 100644
--- a/mathtools.dtx
+++ b/mathtools.dtx
@@ -295,15 +295,11 @@ and the derived files
\def\theindex{\MTtheindex\MakePrivateLetters}
-\NewDocumentCommand\Framebox{ O{} O{} m }{%
+\NewDocumentCommand\Framebox{ o O{c} m }{%
\IfNoValueTF{#1}{%
\framebox{\footnotesize\strut #3}%
}{%
- \IfNoValueTF{#2}{%
- \framebox[#1][#2]{\footnotesize\strut #3}%
- }{%
- \framebox[#1]{\footnotesize\strut #3}%
- }%
+ \framebox[#1][#2]{\footnotesize\strut #3}%
}%
}
More information about the latex3-commits
mailing list.