[latex3-commits] [latex3/latex2e] latex-lab/uf-review-05: use grabbing with \[ always (157a9efb)
github at latex-project.org
github at latex-project.org
Wed Nov 29 20:44:10 CET 2023
Repository : https://github.com/latex3/latex2e
On branch : latex-lab/uf-review-05
Link : https://github.com/latex3/latex2e/commit/157a9efb623a47d7d779444b753de85e8c2a1f29
>---------------------------------------------------------------
commit 157a9efb623a47d7d779444b753de85e8c2a1f29
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Wed Nov 29 20:44:10 2023 +0100
use grabbing with \[ always
>---------------------------------------------------------------
157a9efb623a47d7d779444b753de85e8c2a1f29
required/latex-lab/latex-lab-math.dtx | 14 ++++----
required/latex-lab/testfiles-math/mtag-002.tlg | 45 ++++++++++++++++++--------
2 files changed, 40 insertions(+), 19 deletions(-)
diff --git a/required/latex-lab/latex-lab-math.dtx b/required/latex-lab/latex-lab-math.dtx
index cbafc0cf..da6afa5c 100644
--- a/required/latex-lab/latex-lab-math.dtx
+++ b/required/latex-lab/latex-lab-math.dtx
@@ -1239,15 +1239,17 @@
{
\cs_gset_protected:Npn \[ % \]
{
- \bool_if:NTF \l_@@_collected_bool
- { \begin { equation* } }
- { \@@_grab_eqn:w }
+ \@@_grab_eqn:w
+ % \bool_if:NTF \l_@@_collected_bool
+% { \begin { equation* } }
+% { \@@_grab_eqn:w }
} % \[
\cs_gset_protected:Npn \]
{
- \bool_if:NTF \l_@@_collected_bool
- { \end{ equation* } }
- { \@badmath }
+ \@badmath
+% \bool_if:NTF \l_@@_collected_bool
+% { \end{ equation* } }
+% { \@badmath }
}
}
% \end{macrocode}
diff --git a/required/latex-lab/testfiles-math/mtag-002.tlg b/required/latex-lab/testfiles-math/mtag-002.tlg
index 2fefbed0..18d5802d 100644
--- a/required/latex-lab/testfiles-math/mtag-002.tlg
+++ b/required/latex-lab/testfiles-math/mtag-002.tlg
@@ -325,16 +325,14 @@ Package tagpdf Info: Parent-Child 'Formula' --> 'MC'.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
-l. ...\[ a \[ b \]
- c \]
+l. ...\[ a \[ b \] c \]
Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.
! Missing \endgroup inserted.
<inserted text>
\endgroup
-l. ...\[ a \[ b \]
- c \]
+l. ...\[ a \[ b \] c \]
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
@@ -345,8 +343,7 @@ Package tagpdf Info: closing structure 34 tagged /Formula
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
-l. ...\[ a \[ b \]
- c \]
+l. ...\[ a \[ b \] c \]
Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.
@@ -362,8 +359,7 @@ Package tagpdf Info: Parent-Child 'P' --> 'MC'.
! Missing $ inserted.
<inserted text>
$
-l. ...\[ a \[ b \]
- c \]
+l. ...\[ a \[ b \] c \]
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
@@ -372,8 +368,7 @@ my insertion and my current dilemma will both disappear.
! Display math should end with $$.
<to be read again>
\endgroup
-l. ...\[ a \[ b \]
- c \]
+l. ...\[ a \[ b \] c \]
The `$' that I just saw supposedly matches a previous `$$'.
So I shall assume that you typed `$$' both times.
Package tagpdf Info: closing structure 35 tagged /text
@@ -386,7 +381,7 @@ Package tagpdf Info: Parent-Child 'Document' --> 'P'.
Package tagpdf Info: Parent-Child 'P' --> 'MC'.
(tagpdf) Relation is 1 (='0..n')
(tagpdf) Rolemapped from 'P/pdf2' --> 'MC' on line ...
-! LaTeX Error: Bad math environment delimiter.
+! LaTeX Error: \begin{document} ended by \end{equation*}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
@@ -394,9 +389,16 @@ l. ...\[ a \[ b \] c \]
Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.
-==> increment /P on input line ...
+! Extra \endgroup.
+<recently read> \endgroup
+l. ...\[ a \[ b \] c \]
+Things are pretty mixed up, but I think the worst is over.
+==> flattened=false on input line ...
+==> Structure-end text-unit after displayblock on input line ...
Package tagpdf Info: closing structure 36 tagged /text
+==> increment /P on input line ...
Package tagpdf Info: closing structure 32 tagged /text-unit
+Package tagpdf Info: closing structure 1 tagged /Document
The sequence \g__tag_mc_main_marks_seq contains the items (without outer
braces):
> {b+}
@@ -404,10 +406,27 @@ braces):
> {19}
> {Formula}.
[2] (mtag-002.aux)
+! Package tagpdf Error: The number of automatic begin (8) and end (9)
+(tagpdf) text-unit para hooks differ!
+For immediate help type H <return>.
+ ...
+l. ...\end{document}
+This quite probably a coding error and the structure will be wrong!
! Package tagpdf Error: The number of automatic begin (11) and end (10) text
(tagpdf) para hooks differ!
For immediate help type H <return>.
...
l. ...\end{document}
This quite probably a coding error and the structure will be wrong!
-Package tagpdf Info: closing structure 1 tagged /Document
+Package tagpdf Info: closing structure 0 tagged /StructTreeRoot
+! Package tagpdf Error: there is no open structure on the stack
+Type <return> to continue.
+ ...
+l. ...\end{document}
+LaTeX does not know anything more about this error, sorry.
+Try typing <return> to proceed.
+If that doesn't work, type X <return> to quit.
+Package tagpdf Warning: There are still open structures on the stack!
+(tagpdf) The stack contains .
+(tagpdf) The structures are automatically closed,
+(tagpdf) but their nesting can be wrong.
More information about the latex3-commits
mailing list.