[latex3-commits] [git/LaTeX3-latex3-latex2e] gh373: Make \@carcube \long (5c6c8cc0)

PhelypeOleinik tex.phelype at gmail.com
Fri Aug 21 06:53:16 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : gh373
Link       : https://github.com/latex3/latex2e/commit/5c6c8cc0be9445165b65aec90a1bc7967ebf0e4c

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

commit 5c6c8cc0be9445165b65aec90a1bc7967ebf0e4c
Author: PhelypeOleinik <tex.phelype at gmail.com>
Date:   Fri Aug 21 01:53:16 2020 -0300

    Make \@carcube \long
    
    \@truckcube?


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

5c6c8cc0be9445165b65aec90a1bc7967ebf0e4c
 base/ltdefns.dtx               | 3 ++-
 base/testfiles/github-0239.lvt | 3 +++
 base/testfiles/github-0239.tlg | 5 +++++
 base/testfiles/github-0373.lvt | 2 ++
 base/testfiles/github-0373.tlg | 6 ++++++
 5 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/base/ltdefns.dtx b/base/ltdefns.dtx
index 23fcbd44..ae9febb2 100644
--- a/base/ltdefns.dtx
+++ b/base/ltdefns.dtx
@@ -392,8 +392,9 @@
 %
 %  \begin{macro}{\@carcube}
 % |\@carcube T1 ... Tn\@nil| = |T1| |T2| |T3| , $n > 3$
+% \changes{v1.5k}{2020/08/19}{Made \cs{long} \cs{NewCommandCopy}}
 %    \begin{macrocode}
-\def\@carcube#1#2#3#4\@nil{#1#2#3}
+\long\def\@carcube#1#2#3#4\@nil{#1#2#3}
 %    \end{macrocode}
 %  \end{macro}
 %
diff --git a/base/testfiles/github-0239.lvt b/base/testfiles/github-0239.lvt
index 00d30217..dfaa9002 100644
--- a/base/testfiles/github-0239.lvt
+++ b/base/testfiles/github-0239.lvt
@@ -135,5 +135,8 @@
 \testt\mycmd{mycmd}\cmd
   {\DeclareRobustCommand\cmd[9][default]{(#1#2#3#4#5#6#7#8#9)}}
 
+\DeclareCommandCopy\tmp\goodbreak
+{\let\protect\show\tmp}
+
 \end{document}
 
diff --git a/base/testfiles/github-0239.tlg b/base/testfiles/github-0239.tlg
index 15c293d0..31277ac5 100644
--- a/base/testfiles/github-0239.tlg
+++ b/base/testfiles/github-0239.tlg
@@ -107,4 +107,9 @@ l. ...{\let\protect\show\myfrac
 \mycmd =macro:->\@protected at testopt \mycmd  \\mycmd  {default}|
 \\mycmd=\relax|
 \\mycmd =\long macro:[#1]#2#3#4#5#6#7#8#9->(#1#2#3#4#5#6#7#8#9)|
+> \tmp =macro:
+->\par \penalty -500 .
+\tmp ->\protect \tmp  
+l. ...{\let\protect\show\tmp
+                            }
 (github-0239.aux)
diff --git a/base/testfiles/github-0373.lvt b/base/testfiles/github-0373.lvt
index f77dae77..dbefea3e 100644
--- a/base/testfiles/github-0373.lvt
+++ b/base/testfiles/github-0373.lvt
@@ -136,5 +136,7 @@
 
 \ShowCommand\frac
 
+\ShowCommand\goodbreak
+
 \end{document}
 
diff --git a/base/testfiles/github-0373.tlg b/base/testfiles/github-0373.tlg
index e8987dc7..15991739 100644
--- a/base/testfiles/github-0373.tlg
+++ b/base/testfiles/github-0373.tlg
@@ -162,4 +162,10 @@ l. ...\ShowCommand\cmda
 #1#2->{\begingroup #1\endgroup \over #2}.
 <argument> \frac  
 l. ...\ShowCommand\frac
+> \goodbreak=robust macro:
+->\protect \goodbreak  .
+> \goodbreak =macro:
+->\par \penalty -500 .
+<argument> \goodbreak  
+l. ...\ShowCommand\goodbreak
 (github-0373.aux)





More information about the latex3-commits mailing list.