[latex3-commits] [git/LaTeX3-latex3-latex3] l3text: Support \bmod and \pmod (204e16acb)

Joseph Wright joseph.wright at morningstar2.co.uk
Sun Dec 15 21:10:25 CET 2019


Repository : https://github.com/latex3/latex3
On branch  : l3text
Link       : https://github.com/latex3/latex3/commit/204e16acb0148d3912f454fa6b4b3134044cb0d2

>---------------------------------------------------------------

commit 204e16acb0148d3912f454fa6b4b3134044cb0d2
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sun Dec 15 20:10:25 2019 +0000

    Support \bmod and \pmod


>---------------------------------------------------------------

204e16acb0148d3912f454fa6b4b3134044cb0d2
 l3kernel/l3text.dtx | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/l3kernel/l3text.dtx b/l3kernel/l3text.dtx
index 5b84f7caa..e544eda7d 100644
--- a/l3kernel/l3text.dtx
+++ b/l3kernel/l3text.dtx
@@ -3826,6 +3826,25 @@
 % \end{macro}
 % \begin{macro}[rEXP]
 %   {
+%     \@@_purify_unimath_\bmod:nw ,
+%     \@@_purify_unimath_\pmod:nw
+%   }
+%    \begin{macrocode}
+%   A set of no-ops.
+\cs_new:cpn { @@_purify_unimath_ \token_to_str:N \bmod :nw } #1
+  {
+    \c_space_tl mod \c_space_tl
+    \@@_purify_unimath_loop:nw {#1}
+  }
+\cs_new:cpn { @@_purify_unimath_ \token_to_str:N \pmod :nw } #1#2
+  {
+    \c_space_tl ( mod \c_space_tl
+    \@@_purify_unimath_loop:nw {#1} #2 )
+  }
+%    \end{macrocode}
+% \end{macro}
+% \begin{macro}[rEXP]
+%   {
 %     \@@_purify_unimath_\big:nw ,
 %     \@@_purify_unimath_\Big:nw ,
 %     \@@_purify_unimath_\bigg:nw ,





More information about the latex3-commits mailing list