[latex3-commits] [latex3/latex2e] latex-lab/uf-review-05: clean up code (2c2ef6c5)

github at latex-project.org github at latex-project.org
Wed Nov 29 20:44:21 CET 2023


Repository : https://github.com/latex3/latex2e
On branch  : latex-lab/uf-review-05
Link       : https://github.com/latex3/latex2e/commit/2c2ef6c5b3d2e41202147944ed60bba3c121bf35

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

commit 2c2ef6c5b3d2e41202147944ed60bba3c121bf35
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Wed Nov 29 20:44:21 2023 +0100

    clean up code


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

2c2ef6c5b3d2e41202147944ed60bba3c121bf35
 required/latex-lab/latex-lab-math.dtx | 32 +++++++++-----------------------
 1 file changed, 9 insertions(+), 23 deletions(-)

diff --git a/required/latex-lab/latex-lab-math.dtx b/required/latex-lab/latex-lab-math.dtx
index da6afa5c..cc79fb3d 100644
--- a/required/latex-lab/latex-lab-math.dtx
+++ b/required/latex-lab/latex-lab-math.dtx
@@ -984,13 +984,6 @@
 %
     \ExpandArgs { nne } \RenewDocumentEnvironment {#1} { b }
       {
-%        \bool_set_true:N \exp_not:N \l_@@_collected_bool
-%        \cs_if_exist:cTF { @@_env #1 _aux: }
-%          {
-%            \exp_not:c { @@_env #1 _aux: }
-%              ##1 \exp_not:N \@@_env_end: {#1}
-%          }
-%          { \exp_not:N \@@_process:nn {#1} {##1} }
         \exp_not:N \bool_if:NTF \exp_not:N \l_@@_collected_bool
           {
 %            \typeout{===>B1}
@@ -1010,12 +1003,10 @@
         \exp_not:c { @@_env_ #1 _begin: }
         ##1
         \exp_not:c { @@_env_ #1 _end: }
-%        \exp_not:c { @@_env_ #1 _end: }
 %        \exp_not:N \tracingnone
-%        \exp_not:n { \@kernel at math@registered at end }
      }
-      {
-      }
+     {
+     }
   }
 
 \cs_new_protected:Npn \math_register_halign_env:nn #1#2
@@ -1027,13 +1018,6 @@
 %
     \ExpandArgs { nnee } \RenewDocumentEnvironment {#1} { b }
       {
-%        \bool_set_true:N \exp_not:N \l_@@_collected_bool
-%        \cs_if_exist:cTF { @@_env #1 _aux: }
-%          {
-%            \exp_not:c { @@_env #1 _aux: }
-%              ##1 \exp_not:N \@@_env_end: {#1}
-%          }
-%          { \exp_not:N \@@_process:nn {#1} {##1} }
         \exp_not:N \bool_if:NTF \exp_not:N \l_@@_collected_bool
           {
 %            \typeout{===>B1}
@@ -1052,14 +1036,15 @@
 %        \exp_not:N \tracingall
         \exp_not:c { @@_env_ #1 _begin: }
         ##1
-%        \exp_not:c { @@_env_ #1 _end: }
 %        \exp_not:N \tracingnone
      }
-      {
-        \exp_not:c { @@_env_ #1 _end: }
-      }
+     {
+       \exp_not:c { @@_env_ #1 _end: }
+     }
   }
-
+%    \end{macrocode}
+% TODO: the following command is neither documented nor used. Is is needed?
+%    \begin{macrocode}
 \cs_new_protected:Npn \math_register_odd_env:nn #1#2
   {
     \tl_set:Nn \l_@@_env_name_tl {#1}
@@ -1153,6 +1138,7 @@
 
 \cs_new_protected:Npn \math_register_env:n #1
   { \math_register_env:nn {#1} { } }
+  
 \NewDocumentCommand \RegisterMathEnvironment { O{} m }
   { \math_register_env:nn {#2} {#1} }
 %    \end{macrocode}





More information about the latex3-commits mailing list.