[latex3-commits] [git/LaTeX3-latex3-latex2e] everymath: test -014 has extra captures (abraces) (6ae2677a)

Frank Mittelbach frank.mittelbach at latex-project.org
Fri Jan 6 23:55:06 CET 2023


Repository : https://github.com/latex3/latex2e
On branch  : everymath
Link       : https://github.com/latex3/latex2e/commit/6ae2677aac200e7c9d3afca6aaa5a195ea43d5ae

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

commit 6ae2677aac200e7c9d3afca6aaa5a195ea43d5ae
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Fri Jan 6 23:55:06 2023 +0100

    test -014 has extra captures (abraces)


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

6ae2677aac200e7c9d3afca6aaa5a195ea43d5ae
 .../testfiles-mathcapture/mathcapture-014.lvt      | 97 ++++++++++++++++++++++
 .../testfiles-mathcapture/mathcapture-014.tlg      | 35 ++++++++
 2 files changed, 132 insertions(+)

diff --git a/required/latex-lab/testfiles-mathcapture/mathcapture-014.lvt b/required/latex-lab/testfiles-mathcapture/mathcapture-014.lvt
new file mode 100644
index 00000000..2acaa75d
--- /dev/null
+++ b/required/latex-lab/testfiles-mathcapture/mathcapture-014.lvt
@@ -0,0 +1,97 @@
+%
+
+\DocumentMetadata{testphase=phase-II}
+
+\documentclass{article}
+
+\input{regression-test}
+
+\RequirePackage[enable-debug ,check-declarations]{expl3}
+\ExplSyntaxOn
+\debug_on:n { deprecation }
+\ExplSyntaxOff
+
+\makeatletter
+\input{latex-lab-mathcapture.ltx}
+\makeatother
+
+
+\ExplSyntaxOn
+\math_processor:n
+  {
+    \TYPE {-----------------------------------}
+    \TYPE { Math~env~#1 }
+    \TYPE {\unexpanded{#2}}
+  }
+\ExplSyntaxOff
+
+\usepackage{mathtools,extarrows,mathdots,accents,mattens}
+
+ \usepackage[overload]{abraces}
+\newbracespec{M}{1U1}   \newbracespec{B}{LM}   \newbracespec{e}{1R}
+                        \newbracespec{b}{L1}   \newbracespec{E}{MR}
+\begin{document}
+
+\START
+
+11-4-3:
+\begin{gather}
+  A \xlongequal      [\text{characters}]{ +12 }
+  M \xLongrightarrow [\text{characters}]{\text{more}} Z \\
+  0 \xrightarrow{x} \epsilon  \xlongrightarrow{x} 1     \\
+  \xLongleftarrow{1} \xLongrightarrow{2} \xlongleftarrow{3}
+  \xlongrightarrow{4} \xlongleftrightarrow{5}
+\end{gather}
+
+11-4-32:
+$ \dot{S} \quad \ddot{P} \quad \dddot{Q} \quad \ddddot{R} $
+
+11-4-34:
+\[ \accentset{\ast}{X}                 \quad
+   \hat{\accentset{\star}{\tilde h}}   \quad
+   \underaccent{\diamond}{\mathcal{M}} \quad
+   \undertilde{C}\quad\undertilde{M}\quad\undertilde{ABC} \]
+
+11-4-38:
+\begin{gather}
+ \aSb{x} \neq \aSb*{x} \neq \aSb[\hat]{x} \neq \bSa{X} \\
+ \bS{\delta} \neq \bS*{\delta} \neq \bS[\hat]{\delta}  \\
+ \bCSb{a} \cdot \bS{c} = \bS{a} \times \bS{c}
+\end{gather}
+
+11-4-40:
+\[ \overset{*}{X} > \underset{*}{X}
+   \overunderset{\mathsf{def}}{\mathsf{loc.}}{\iff}
+   \sideset{}{'}\sum_{a,b \in \mathbf{R^*}}
+                       \overset{a}{\underset{b}{X}} = X \]
+
+11-4-41:
+\[ \sideset{_{i = 1}^n}{_{j = 2}^m}\prod_{k > 1}
+                                   \mathcal{T}_{i, j}^k \]
+
+11-4-42:
+\[       {}^{14}_{2} \mathbf{C} ^{5+}_{2} \quad
+   \prescript{14}{2}{\mathbf{C}}^{5+}_{2} \quad
+   \prescript{14}{} {\mathbf{C}}^{5+}_{2}        \]
+
+11-5-10:
+\begin{gather*}
+  \aoverbrace [L1U3R] {a^3 +3ab^2 + 3a^2b +b^3}           \\
+  \aunderbrace[l1U1D1U1r] {\text{Some text with a brace}} \\
+  \aunderbrace[l10@{\ldots}04r] {x_1,x_2,x_3,\dots,x_n}   \\
+  \aunderbrace['1'] {\smash[b]{(a+b)}}\nolimits^2
+    = \aunderbrace['1,[5pt]1'] {\smash[b]{\; a^2+2ab+b^2}}
+\end{gather*}
+
+11-5-16:
+\begin{multline*}
+  f(x)=a_0+a_1x+a_2x^2+
+  \overbrace[B]{a_3x^3 + a_4x^4 + \dots + a_{i-1}x^{i-1} + \enspace}
+               ^{\text{some explanation}}                                  \\
+  \overbrace[e]{\enspace a_ix^i + a_{i+1}x^{i+1}} + \dots + a_{n-1}x^{n-1}
+\end{multline*}
+
+\TYPE{==> some surplus capture with abraces}
+
+
+\end{document}
diff --git a/required/latex-lab/testfiles-mathcapture/mathcapture-014.tlg b/required/latex-lab/testfiles-mathcapture/mathcapture-014.tlg
new file mode 100644
index 00000000..c967d874
--- /dev/null
+++ b/required/latex-lab/testfiles-mathcapture/mathcapture-014.tlg
@@ -0,0 +1,35 @@
+This is a generated file for the l3build validation system.
+Don't change this file in any respect.
+-----------------------------------
+Math env gather
+A \xlongequal [\text {characters}]{ +12 } M \xLongrightarrow [\text {characters}]{\text {more}} Z \\ 0 \xrightarrow {x} \epsilon \xlongrightarrow {x} 1 \\ \xLongleftarrow {1} \xLongrightarrow {2} \xlongleftarrow {3} \xlongrightarrow {4} \xlongleftrightarrow {5}
+-----------------------------------
+Math env $
+\dot {S} \quad \ddot {P} \quad \dddot {Q} \quad \ddddot {R}
+-----------------------------------
+Math env equation*
+\accentset {\ast }{X} \quad \hat {\accentset {\star }{\tilde h}} \quad \underaccent {\diamond }{\mathcal {M}} \quad \undertilde {C}\quad \undertilde {M}\quad \undertilde {ABC}
+-----------------------------------
+Math env gather
+\aSb {x} \neq \aSb *{x} \neq \aSb [\hat ]{x} \neq \bSa {X} \\ \bS {\delta } \neq \bS *{\delta } \neq \bS [\hat ]{\delta } \\ \bCSb {a} \cdot \bS {c} = \bS {a} \times \bS {c}
+-----------------------------------
+Math env equation*
+\overset {*}{X} > \underset {*}{X} \overunderset {\mathsf {def}}{\mathsf {loc.}}{\iff } \sideset {}{'}\sum _{a,b \in \mathbf {R^*}} \overset {a}{\underset {b}{X}} = X
+-----------------------------------
+Math env equation*
+\sideset {_{i = 1}^n}{_{j = 2}^m}\prod _{k > 1} \mathcal {T}_{i, j}^k
+-----------------------------------
+Math env equation*
+{}^{14}_{2} \mathbf {C} ^{5+}_{2} \quad \prescript {14}{2}{\mathbf {C}}^{5+}_{2} \quad \prescript {14}{} {\mathbf {C}}^{5+}_{2}
+-----------------------------------
+Math env gather*
+\aoverbrace [L1U3R] {a^3 +3ab^2 + 3a^2b +b^3} \\ \aunderbrace [l1U1D1U1r] {\text {Some text with a brace}} \\ \aunderbrace [l10@{\ldots }04r] {x_1,x_2,x_3,\dots ,x_n} \\ \aunderbrace ['1'] {\smash [b]{(a+b)}}\nolimits ^2 = \aunderbrace ['1,[5pt]1'] {\smash [b]{\; a^2+2ab+b^2}}
+-----------------------------------
+Math env multline*
+f(x)=a_0+a_1x+a_2x^2+ \overbrace [B]{a_3x^3 + a_4x^4 + \dots + a_{i-1}x^{i-1} + \enspace } ^{\text {some explanation}} \\ \overbrace [e]{\enspace a_ix^i + a_{i+1}x^{i+1}} + \dots + a_{n-1}x^{n-1}
+-----------------------------------
+Math env $
+\bool_set_false:N \l__math_collected_bool \scriptstyle \text {some explanation}
+==> some surplus capture with abraces
+[1
+] (mathcapture-014.aux)





More information about the latex3-commits mailing list.