latex3 / latex2e

The LaTeX2e kernel
https://www.latex-project.org/
LaTeX Project Public License v1.3c
1.95k stars 267 forks source link

amsmath: \tag*{\eqref} exceeds TeX's capacity #557

Open gabor-braun opened 3 years ago

gabor-braun commented 3 years ago

Brief outline of the bug

The minimal example file does not compile: TeX stops with error TeX capacity exceeded, sorry [grouping levels=255].

Minimal example showing the bug

\RequirePackage{latexbug}
\documentclass[a4paper,12pt]{article}

\usepackage{amsmath}

\begin{document}
\begin{equation}
  \label{eq:1}
  A = B
\end{equation}

\begin{equation}
  \label{eq:2}
  C > D \tag*{[\eqref{eq:1}a]}
\end{equation}

Equations: \eqref{eq:1}, \eqref{eq:2}.
\end{document}

Log file (required) and possibly PDF file

This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2019/dev/Debian) (preloaded format=pdflatex 2019.5.15)  3 MAY 2021 09:23
entering extended mode
 restricted \write18 enabled.
 file:line:error style messages enabled.
 %&-line parsing enabled.
**\input test.tex
(./test.tex (/usr/share/texlive/texmf-dist/tex/latex/latexbug/latexbug.sty
Package: latexbug 2018/12/31 v1.0e Bug-classification
)
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2018/09/03 v1.4i Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size12.clo
File: size12.clo 2018/09/03 v1.4i Standard LaTeX file (size option)
)
\c@part=\count80
\c@section=\count81
\c@subsection=\count82
\c@subsubsection=\count83
\c@paragraph=\count84
\c@subparagraph=\count85
\c@figure=\count86
\c@table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
Package: amsmath 2018/12/01 v2.17b AMS math features
\@mathmargin=\skip43

For additional information on amsmath, use the `?' option.
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
Package: amstext 2000/06/29 v2.01 AMS text

(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks14
\ex@=\dimen103
))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
\pmbraise@=\dimen104
)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty
Package: amsopn 2016/03/08 v2.02 operator names
)
\inf@bad=\count88
LaTeX Info: Redefining \frac on input line 223.
\uproot@=\count89
\leftroot@=\count90
LaTeX Info: Redefining \overline on input line 385.
\classnum@=\count91
\DOTSCASE@=\count92
LaTeX Info: Redefining \ldots on input line 482.
LaTeX Info: Redefining \dots on input line 485.
LaTeX Info: Redefining \cdots on input line 606.
\Mathstrutbox@=\box27
\strutbox@=\box28
\big@size=\dimen105
LaTeX Font Info:    Redeclaring font encoding OML on input line 729.
LaTeX Font Info:    Redeclaring font encoding OMS on input line 730.
\macc@depth=\count93
\c@MaxMatrixCols=\count94
\dotsspace@=\muskip10
\c@parentequation=\count95
\dspbrk@lvl=\count96
\tag@help=\toks15
\row@=\count97
\column@=\count98
\maxfields@=\count99
\andhelp@=\toks16
\eqnshift@=\dimen106
\alignsep@=\dimen107
\tagshift@=\dimen108
\tagwidth@=\dimen109
\totwidth@=\dimen110
\lineht@=\dimen111
\@envbody=\toks17
\multlinegap=\skip44
\multlinetaggap=\skip45
\mathdisplay@stack=\toks18
LaTeX Info: Redefining \[ on input line 2844.
LaTeX Info: Redefining \] on input line 2845.
) (./test.aux)
\openout1 = `test.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 6.
LaTeX Font Info:    ... okay on input line 6.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 6.
LaTeX Font Info:    ... okay on input line 6.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 6.
LaTeX Font Info:    ... okay on input line 6.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 6.
LaTeX Font Info:    ... okay on input line 6.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 6.
LaTeX Font Info:    ... okay on input line 6.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 6.
LaTeX Font Info:    ... okay on input line 6.

./test.tex:15: TeX capacity exceeded, sorry [grouping levels=255].
\hmode@bgroup ->\leavevmode \bgroup 

l.15 \end{equation}

If you really absolutely need more capacity,
you can ask a wizard to enlarge me.

Here is how much of TeX's memory you used:
 1332 strings out of 493817
 19344 string characters out of 6156337
 75483 words of memory out of 5000000
 5117 multiletter control sequences out of 15000+600000
 7050 words of font info for 26 fonts, out of 8000000 for 9000
 417 hyphenation exceptions out of 8191
 765i,2n,260p,207b,3575s stack positions out of 5000i,500n,10000p,200000b,80000s
./test.tex:15:  ==> Fatal error occurred, no output PDF file produced!

Proposed solution

The following seems to compile correctly. The only change is that \tag@inädisplay@a from amsmath is redefined: the redefinition of \alt@tag removed. The definition \def\SK@tagform@{#2\@gobble} looks suspicious to me: what will \@gobble actually gobble? (The usefulness of \alt@tag has been already questioned in bug #118.)

\RequirePackage{latexbug}
\documentclass[a4paper,12pt]{article}

\usepackage{amsmath}
\makeatletter
\def\tag@in@display@a#1#2{%
  \iftag@
    \invalid@tag{Multiple \string\tag}\relax
  \else
    \global\tag@true \nonumber \reset@equation \st@rredtrue
    \if *\string#1%
      %% Comment out redefinition of \alt@tag
      % \gdef\alt@tag{\def\SK@tagform@{#2\@gobble}%
      %   \ifx\SK@@label\relax \let\tagform@\SK@tagform@ \fi
      % }%
      \make@df@tag@@{#2}%
    \else
      \make@df@tag@@@{#2}%
    \fi
  \fi
}
\makeatother

\begin{document}

\begin{equation}
  \label{eq:1}
  A = B
\end{equation}

\begin{equation}
  \label{eq:2}
  C > D \tag*{[\eqref{eq:1}a]}
\end{equation}

Equations: \eqref{eq:1}, \eqref{eq:2}.
\end{document}
daleif commented 3 years ago

Just FYI AFAIR the SK prefix is in relation to the showkeys package, so it is problably to better interact with the showkeys package.

FrankMittelbach commented 3 years ago

oh recursion :-) As Michael Downes mentioned in one of the comments from 1999 or so his solution is non-reentrant and with \eqrefwe reenter resulting in \tagform@ calling itself repeatedly, hence the stack overflow.

Without the showkey interaction sorted out a quick fix would be

\makeatletter
\let\@@tagform@\tagform@  
\renewcommand{\eqref}[1]{\textup{\@@tagform@{\ref{#1}}}}
\makeatletter
daleif commented 3 years ago

@FrankMittelbach any idea why the problem is not present if one uses align instead of equation?

FrankMittelbach commented 3 years ago

@daleif kind of: align doesn't alter \tag probably because it is really a table that pretends to be a display and not a normal mathdisplay in the TeX sense with leqno end eqno and the like. But I haven't looked very much. And since it doesn't alter \tagform@ there is no recursion issue.

FrankMittelbach commented 3 years ago

The definition \def\SK@tagform@{#2\@gobble} looks suspicious to me: what will \@gobble actually gobble?

@gabor-braun it is called with an argument and the \@gobble gobbles that. Short for \def\SK@tagform@##1{#2} Michael Downes saving 2 tokens (or even more) 30 years ago, that was a good thing to do.

gabor-braun commented 3 years ago

The definition \def\SK@tagform@{#2\@gobble} looks suspicious to me: what will \@gobble actually gobble? it is called with an argument and the \@gobble gobbles that. Short for \def\SK@tagform@##1{#2}

Thank you for the explanation! However, replacing the argument with a fixed one seems to be the wrong thing to do, leading to infinite recurson in this case. Schematically the equation tag expands:

[\eqref{eq:1}a] ==> [\tagform@{1}a] ==> [[\eqref{eq:1}a]a] ==> ...

(treating for simplicity \tagform@ as equal to \SK@tagform@).

To quote @biefloch from bug #118:

In amsmath.dtx itself, when \tag is used inside an equation (or equation) >environment, see \tag@in@display. Then two definitions occur: \alt@tag is >defined to change \tagform@ and \df@tag is defined to call >\maketag@@@. Elsewhere, the code runs \alt@tag \df@tag in this order: >the first redefines \tagform@ to not call \maketag@@@, but then the >\df@tag simply calls \maketag@@@. In fact, I cannot see how \alt@tag has any useful effect in this scenario.

FrankMittelbach commented 3 years ago

Thank you for the explanation! However, replacing the argument with a fixed one seems to be the wrong thing to do, leading to infinite recurson in this case. Schematically the equation tag expands:

sure, I wasn't commenting on this, even though that is also addressed by the simple fix I suggested. But midterm Bruno's approach should be taken. Hwever, neither will go into the next release as that is finalized and the dev version will hit the streets during the next days.

gabor-braun commented 3 years ago

I understand that it is too late to fix this for the upcoming release.

The simple fix unfortunately interferes with mathtools, which redefines \tagform@. The following still typesets some equation tags with parentheses instead of braces:

\documentclass[a4paper,12pt]{article}

\usepackage{amsmath}
\makeatletter
\let\@@tagform@\tagform@
\renewcommand{\eqref}[1]{\textup{\@@tagform@{\ref{#1}}}}
\makeatletter

\usepackage{mathtools}

\newtagform{braces}{\{}{\}}

\begin{document}

\usetagform{braces}

\begin{equation}
  \label{eq:1}
  A = B
\end{equation}

\begin{equation}
  \label{eq:2}
  C > D \tag*{[\eqref{eq:1}a]}
\end{equation}

Equations: \eqref{eq:1}, \eqref{eq:2}.
\end{document}

While the \alt@tag removal does not:

\documentclass[a4paper,12pt]{article}

\usepackage{amsmath}
\makeatletter
\def\tag@in@display@a#1#2{%
  \iftag@
    \invalid@tag{Multiple \string\tag}\relax
  \else
    \global\tag@true \nonumber \reset@equation \st@rredtrue
    \if *\string#1%
      %% Comment out redefinition of \alt@tag
      % \gdef\alt@tag{\def\SK@tagform@{#2\@gobble}%
      %   \ifx\SK@@label\relax \let\tagform@\SK@tagform@ \fi
      % }%
      \make@df@tag@@{#2}%
    \else
      \make@df@tag@@@{#2}%
    \fi
  \fi
}
\makeatother

\usepackage{mathtools}

\newtagform{braces}{\{}{\}}

\begin{document}

\usetagform{braces}

\begin{equation}
  \label{eq:1}
  A = B
\end{equation}

\begin{equation}
  \label{eq:2}
  C > D \tag*{[\eqref{eq:1}a]}
\end{equation}

Equations: \eqref{eq:1}, \eqref{eq:2}.
\end{document}
gabor-braun commented 3 years ago

For compatibility to showkeys, \eqref seems to be made robust.

Minimal file

\documentclass[a4paper,12pt]{article}

\usepackage{amsmath}
\makeatletter
\def\tag@in@display@a#1#2{%
  \iftag@
    \invalid@tag{Multiple \string\tag}\relax
  \else
    \global\tag@true \nonumber \reset@equation \st@rredtrue
    \if *\string#1%
      %% Comment out redefinition of \alt@tag
      % \gdef\alt@tag{\def\SK@tagform@{#2\@gobble}%
      %   \ifx\SK@@label\relax \let\tagform@\SK@tagform@ \fi
      % }%
      \make@df@tag@@{#2}%
    \else
      \make@df@tag@@@{#2}%
    \fi
  \fi
}
\makeatother

\usepackage{showkeys}

\begin{document}

\begin{equation}
  \label{eq:1}
  A = B
\end{equation}

\begin{equation}
  \label{eq:2}
  C > D \tag*{[\eqref{eq:1}a]}
\end{equation}

Equations: \eqref{eq:1}, \eqref{eq:2}.
\end{document}

Log file after first run, note the warnings about incomplete \if.

This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2019/dev/Debian) (preloaded format=pdflatex 2019.5.15)  5 MAY 2021 21:07
entering extended mode
 restricted \write18 enabled.
 file:line:error style messages enabled.
 %&-line parsing enabled.
**\input amsmath-tag-eqref.tex
(./amsmath-tag-eqref.tex
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2018/09/03 v1.4i Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size12.clo
File: size12.clo 2018/09/03 v1.4i Standard LaTeX file (size option)
)
\c@part=\count80
\c@section=\count81
\c@subsection=\count82
\c@subsubsection=\count83
\c@paragraph=\count84
\c@subparagraph=\count85
\c@figure=\count86
\c@table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
Package: amsmath 2018/12/01 v2.17b AMS math features
\@mathmargin=\skip43

For additional information on amsmath, use the `?' option.
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
Package: amstext 2000/06/29 v2.01 AMS text

(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks14
\ex@=\dimen103
))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
\pmbraise@=\dimen104
)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty
Package: amsopn 2016/03/08 v2.02 operator names
)
\inf@bad=\count88
LaTeX Info: Redefining \frac on input line 223.
\uproot@=\count89
\leftroot@=\count90
LaTeX Info: Redefining \overline on input line 385.
\classnum@=\count91
\DOTSCASE@=\count92
LaTeX Info: Redefining \ldots on input line 482.
LaTeX Info: Redefining \dots on input line 485.
LaTeX Info: Redefining \cdots on input line 606.
\Mathstrutbox@=\box27
\strutbox@=\box28
\big@size=\dimen105
LaTeX Font Info:    Redeclaring font encoding OML on input line 729.
LaTeX Font Info:    Redeclaring font encoding OMS on input line 730.
\macc@depth=\count93
\c@MaxMatrixCols=\count94
\dotsspace@=\muskip10
\c@parentequation=\count95
\dspbrk@lvl=\count96
\tag@help=\toks15
\row@=\count97
\column@=\count98
\maxfields@=\count99
\andhelp@=\toks16
\eqnshift@=\dimen106
\alignsep@=\dimen107
\tagshift@=\dimen108
\tagwidth@=\dimen109
\totwidth@=\dimen110
\lineht@=\dimen111
\@envbody=\toks17
\multlinegap=\skip44
\multlinetaggap=\skip45
\mathdisplay@stack=\toks18
LaTeX Info: Redefining \[ on input line 2844.
LaTeX Info: Redefining \] on input line 2845.
)
(/usr/share/texlive/texmf-dist/tex/latex/tools/showkeys.sty
Package: showkeys 2014/10/28 v3.17 Show cite and label keys (DPC, MH)
)
No file amsmath-tag-eqref.aux.
\openout1 = `amsmath-tag-eqref.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 25.
LaTeX Font Info:    ... okay on input line 25.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 25.
LaTeX Font Info:    ... okay on input line 25.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 25.
LaTeX Font Info:    ... okay on input line 25.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 25.
LaTeX Font Info:    ... okay on input line 25.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 25.
LaTeX Font Info:    ... okay on input line 25.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 25.
LaTeX Font Info:    ... okay on input line 25.

LaTeX Warning: Reference `eq:1' on page 1 undefined on input line 35.

LaTeX Warning: Reference `eq:1' on page 1 undefined on input line 37.

LaTeX Warning: Reference `eq:2' on page 1 undefined on input line 37.

[1

{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./amsmath-tag-eqref.aux)

LaTeX Warning: There were undefined references.

LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.

 )
(\end occurred when \ifvmode on line 35 was incomplete)
(\end occurred when \ifx on line 35 was incomplete)
(\end occurred when \ifx on line 35 was incomplete)
(\end occurred when \iffalse on line 35 was incomplete) 
Here is how much of TeX's memory you used:
 914 strings out of 493817
 10333 string characters out of 6156337
 69959 words of memory out of 5000000
 4695 multiletter control sequences out of 15000+600000
 7993 words of font info for 30 fonts, out of 8000000 for 9000
 417 hyphenation exceptions out of 8191
 35i,11n,25p,3258b,212s stack positions out of 5000i,500n,10000p,200000b,80000s
</usr/share/texlive/texm
f-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></usr/share/texlive/texmf-dist
/fonts/type1/public/amsfonts/cm/cmmi12.pfb></usr/share/texlive/texmf-dist/fonts
/type1/public/amsfonts/cm/cmr12.pfb></usr/share/texlive/texmf-dist/fonts/type1/
public/amsfonts/cm/cmtt10.pfb>
Output written on amsmath-tag-eqref.pdf (1 page, 36098 bytes).
PDF statistics:
 24 PDF objects out of 1000 (max. 8388607)
 16 compressed objects within 1 object stream
 0 named destinations out of 1000 (max. 500000)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)

.aux file: note spurious things like \let\gdef and \let \hbox.

\relax 
\newlabel{eq:1}{{1}{1}}
\newlabel{eq:2}{{[\textup  {\gdef \SK@lab {\smash {\SK@labelcolor \unhbox \voidb@x \setbox \@tempboxa \hbox {\color@begingroup \kern \fboxsep {\normalfont  \relax \GenericWarning  {(Font)              }{LaTeX Font Warning: Command \relax \fontsize  {10.95}{13.6}\selectfont  \abovedisplayskip 11\p@ plus3\p@ minus6\p@ \abovedisplayshortskip \z@ plus3\p@ \belowdisplayshortskip 6.5\p@ plus3.5\p@ minus3\p@ \def \leftmargin \leftmargini \parsep 5\p@ plus2.5\p@ minus\p@ \topsep 10\p@ plus4\p@ minus6\p@ \itemsep 5\p@ plus2.5\p@ minus\p@ {\leftmargin \leftmargini \topsep 9\p@ plus3\p@ minus5\p@ \parsep 4.5\p@ plus2\p@ minus\p@ \itemsep \parsep }\belowdisplayskip \abovedisplayskip invalid in math mode}\fontsize  {10.95}{13.6}\selectfont  \abovedisplayskip 11\p@ plus3\p@ minus6\p@ \abovedisplayshortskip \z@ plus3\p@ \belowdisplayshortskip 6.5\p@ plus3.5\p@ minus3\p@ \def \leftmargin \leftmargini \parsep 5\p@ plus2.5\p@ minus\p@ \topsep 10\p@ plus4\p@ minus6\p@ \itemsep 5\p@ plus2.5\p@ minus\p@ {\leftmargin \leftmargini \topsep 9\p@ plus3\p@ minus5\p@ \parsep 4.5\p@ plus2\p@ minus\p@ \itemsep \parsep }\belowdisplayskip \abovedisplayskip \ttfamily  eq:2}\kern \fboxsep \color@endgroup }\@tempdima \fboxrule \advance \@tempdima \fboxsep \advance \@tempdima \dp \@tempboxa \hbox {\lower \@tempdima \hbox {\vbox {\hrule height\fboxrule \hbox {\vrule width\fboxrule \relax \vbox {\vskip \fboxsep \box \@tempboxa \vskip \fboxsep }\relax \vrule width\fboxrule }\hrule height\fboxrule }}}}}\let \gdef \SK@lab {\smash {\SK@labelcolor \unhbox \voidb@x \setbox \@tempboxa \hbox {\color@begingroup \kern \fboxsep {\normalfont  \relax \GenericWarning  {(Font)              }{LaTeX Font Warning: Command \relax \fontsize  {10.95}{13.6}\selectfont  \abovedisplayskip 11\p@ plus3\p@ minus6\p@ \abovedisplayshortskip \z@ plus3\p@ \belowdisplayshortskip 6.5\p@ plus3.5\p@ minus3\p@ \def \leftmargin \leftmargini \parsep 5\p@ plus2.5\p@ minus\p@ \topsep 10\p@ plus4\p@ minus6\p@ \itemsep 5\p@ plus2.5\p@ minus\p@ {\leftmargin \leftmargini \topsep 9\p@ plus3\p@ minus5\p@ \parsep 4.5\p@ plus2\p@ minus\p@ \itemsep \parsep }\belowdisplayskip \abovedisplayskip invalid in math mode}\fontsize  {10.95}{13.6}\selectfont  \abovedisplayskip 11\p@ plus3\p@ minus6\p@ \abovedisplayshortskip \z@ plus3\p@ \belowdisplayshortskip 6.5\p@ plus3.5\p@ minus3\p@ \def \leftmargin \leftmargini \parsep 5\p@ plus2.5\p@ minus\p@ \topsep 10\p@ plus4\p@ minus6\p@ \itemsep 5\p@ plus2.5\p@ minus\p@ {\leftmargin \leftmargini \topsep 9\p@ plus3\p@ minus5\p@ \parsep 4.5\p@ plus2\p@ minus\p@ \itemsep \parsep }\belowdisplayskip \abovedisplayskip \ttfamily  eq:2}\kern \fboxsep \color@endgroup }\@tempdima \fboxrule \advance \@tempdima \fboxsep \advance \@tempdima \dp \@tempboxa \hbox {\lower \@tempdima \hbox {\vbox {\hrule height\fboxrule \hbox {\vrule width\fboxrule \relax \vbox {\vskip \fboxsep \box \@tempboxa \vskip \fboxsep }\relax \vrule width\fboxrule }\hrule height\fboxrule }}}}}\let \hbox {\mathsurround \z@ \normalfont  (\ignorespaces \ref  {eq:1}\unskip \@@italiccorr )}\hbox to\z@ {\kern \marginparsep \SK@lab \hss }\global \let \SK@lab \relax \hbox to\z@ {\kern \marginparsep \SK@lab \hss }\global \let \SK@lab \relax }a]}{1}}

Log file after the second LaTeX run:

This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2019/dev/Debian) (preloaded format=pdflatex 2019.5.15)  5 MAY 2021 21:14
entering extended mode
 restricted \write18 enabled.
 file:line:error style messages enabled.
 %&-line parsing enabled.
**\input amsmath-tag-eqref.tex
(./amsmath-tag-eqref.tex
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2018/09/03 v1.4i Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size12.clo
File: size12.clo 2018/09/03 v1.4i Standard LaTeX file (size option)
)
\c@part=\count80
\c@section=\count81
\c@subsection=\count82
\c@subsubsection=\count83
\c@paragraph=\count84
\c@subparagraph=\count85
\c@figure=\count86
\c@table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
Package: amsmath 2018/12/01 v2.17b AMS math features
\@mathmargin=\skip43

For additional information on amsmath, use the `?' option.
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
Package: amstext 2000/06/29 v2.01 AMS text

(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks14
\ex@=\dimen103
))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
\pmbraise@=\dimen104
)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty
Package: amsopn 2016/03/08 v2.02 operator names
)
\inf@bad=\count88
LaTeX Info: Redefining \frac on input line 223.
\uproot@=\count89
\leftroot@=\count90
LaTeX Info: Redefining \overline on input line 385.
\classnum@=\count91
\DOTSCASE@=\count92
LaTeX Info: Redefining \ldots on input line 482.
LaTeX Info: Redefining \dots on input line 485.
LaTeX Info: Redefining \cdots on input line 606.
\Mathstrutbox@=\box27
\strutbox@=\box28
\big@size=\dimen105
LaTeX Font Info:    Redeclaring font encoding OML on input line 729.
LaTeX Font Info:    Redeclaring font encoding OMS on input line 730.
\macc@depth=\count93
\c@MaxMatrixCols=\count94
\dotsspace@=\muskip10
\c@parentequation=\count95
\dspbrk@lvl=\count96
\tag@help=\toks15
\row@=\count97
\column@=\count98
\maxfields@=\count99
\andhelp@=\toks16
\eqnshift@=\dimen106
\alignsep@=\dimen107
\tagshift@=\dimen108
\tagwidth@=\dimen109
\totwidth@=\dimen110
\lineht@=\dimen111
\@envbody=\toks17
\multlinegap=\skip44
\multlinetaggap=\skip45
\mathdisplay@stack=\toks18
LaTeX Info: Redefining \[ on input line 2844.
LaTeX Info: Redefining \] on input line 2845.
)
(/usr/share/texlive/texmf-dist/tex/latex/tools/showkeys.sty
Package: showkeys 2014/10/28 v3.17 Show cite and label keys (DPC, MH)
)
(./amsmath-tag-eqref.aux)
\openout1 = `amsmath-tag-eqref.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 25.
LaTeX Font Info:    ... okay on input line 25.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 25.
LaTeX Font Info:    ... okay on input line 25.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 25.
LaTeX Font Info:    ... okay on input line 25.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 25.
LaTeX Font Info:    ... okay on input line 25.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 25.
LaTeX Font Info:    ... okay on input line 25.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 25.
LaTeX Font Info:    ... okay on input line 25.

LaTeX Font Warning: Command \relax \fontsize {10.95}{13.6}\selectfont \abovedis
playskip 11\p@ plus3\p@ minus6\p@ \abovedisplayshortskip \z@ plus3\p@ \belowdis
playshortskip 6.5\p@ plus3.5\p@ minus3\p@ \def \leftmargin \leftmargini \parsep
 5\p@ plus2.5\p@ minus\p@ \topsep 10\p@ plus4\p@ minus6\p@ \itemsep 5\p@ plus2.
5\p@ minus\p@ {\leftmargin \leftmargini \topsep 9\p@ plus3\p@ minus5\p@ \parsep
 4.5\p@ plus2\p@ minus\p@ \itemsep \parsep }\belowdisplayskip \abovedisplayskip
 invalid in math mode on input line 37.

./amsmath-tag-eqref.tex:37: Missing number, treated as zero.
<to be read again> 
                   {
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

./amsmath-tag-eqref.tex:37: Illegal unit of measure (pt inserted).
<to be read again> This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2019/dev/Debian) (preloaded format=pdflatex 2019.5.15)  5 MAY 2021 21:14
entering extended mode
 restricted \write18 enabled.
 file:line:error style messages enabled.
 %&-line parsing enabled.
**\input amsmath-tag-eqref.tex
(./amsmath-tag-eqref.tex
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2018/09/03 v1.4i Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size12.clo
File: size12.clo 2018/09/03 v1.4i Standard LaTeX file (size option)
)
\c@part=\count80
\c@section=\count81
\c@subsection=\count82
\c@subsubsection=\count83
\c@paragraph=\count84
\c@subparagraph=\count85
\c@figure=\count86
\c@table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
Package: amsmath 2018/12/01 v2.17b AMS math features
\@mathmargin=\skip43

For additional information on amsmath, use the `?' option.
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
Package: amstext 2000/06/29 v2.01 AMS text

(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks14
\ex@=\dimen103
))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
\pmbraise@=\dimen104
)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty
Package: amsopn 2016/03/08 v2.02 operator names
)
\inf@bad=\count88
LaTeX Info: Redefining \frac on input line 223.
\uproot@=\count89
\leftroot@=\count90
LaTeX Info: Redefining \overline on input line 385.
\classnum@=\count91
\DOTSCASE@=\count92
LaTeX Info: Redefining \ldots on input line 482.
LaTeX Info: Redefining \dots on input line 485.
LaTeX Info: Redefining \cdots on input line 606.
\Mathstrutbox@=\box27
\strutbox@=\box28
\big@size=\dimen105
LaTeX Font Info:    Redeclaring font encoding OML on input line 729.
LaTeX Font Info:    Redeclaring font encoding OMS on input line 730.
\macc@depth=\count93
\c@MaxMatrixCols=\count94
\dotsspace@=\muskip10
\c@parentequation=\count95
\dspbrk@lvl=\count96
\tag@help=\toks15
\row@=\count97
\column@=\count98
\maxfields@=\count99
\andhelp@=\toks16
\eqnshift@=\dimen106
\alignsep@=\dimen107
\tagshift@=\dimen108
\tagwidth@=\dimen109
\totwidth@=\dimen110
\lineht@=\dimen111
\@envbody=\toks17
\multlinegap=\skip44
\multlinetaggap=\skip45
\mathdisplay@stack=\toks18
LaTeX Info: Redefining \[ on input line 2844.
LaTeX Info: Redefining \] on input line 2845.
)
(/usr/share/texlive/texmf-dist/tex/latex/tools/showkeys.sty
Package: showkeys 2014/10/28 v3.17 Show cite and label keys (DPC, MH)
)
(./amsmath-tag-eqref.aux)
\openout1 = `amsmath-tag-eqref.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 25.
LaTeX Font Info:    ... okay on input line 25.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 25.
LaTeX Font Info:    ... okay on input line 25.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 25.
LaTeX Font Info:    ... okay on input line 25.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 25.
LaTeX Font Info:    ... okay on input line 25.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 25.
LaTeX Font Info:    ... okay on input line 25.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 25.
LaTeX Font Info:    ... okay on input line 25.

LaTeX Font Warning: Command \relax \fontsize {10.95}{13.6}\selectfont \abovedis
playskip 11\p@ plus3\p@ minus6\p@ \abovedisplayshortskip \z@ plus3\p@ \belowdis
playshortskip 6.5\p@ plus3.5\p@ minus3\p@ \def \leftmargin \leftmargini \parsep
 5\p@ plus2.5\p@ minus\p@ \topsep 10\p@ plus4\p@ minus6\p@ \itemsep 5\p@ plus2.
5\p@ minus\p@ {\leftmargin \leftmargini \topsep 9\p@ plus3\p@ minus5\p@ \parsep
 4.5\p@ plus2\p@ minus\p@ \itemsep \parsep }\belowdisplayskip \abovedisplayskip
 invalid in math mode on input line 37.

./amsmath-tag-eqref.tex:37: Missing number, treated as zero.
<to be read again> 
                   {
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

./amsmath-tag-eqref.tex:37: Illegal unit of measure (pt inserted).
<to be read again> 
                   {
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
Dimensions can be in units of em, ex, in, pt, pc,
cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one!
I'll assume that you meant to say pt, for printer's points.
To recover gracefully from this error, it's best to
delete the erroneous units; e.g., type `2' to delete
two letters. (See Chapter 27 of The TeXbook.)

./amsmath-tag-eqref.tex:37: A <box> was supposed to be here.
<to be read again> 
                   \hbox 
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
I was expecting to see \hbox or \vbox or \copy or \box or
something like that. So you might find something missing in
your output. But keep trying; you can fix this later.

./amsmath-tag-eqref.tex:37: A <box> was supposed to be here.
<to be read again> 
                   \hbox 
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
I was expecting to see \hbox or \vbox or \copy or \box or
something like that. So you might find something missing in
your output. But keep trying; you can fix this later.

LaTeX Font Warning: Command \footnotesize invalid in math mode on input line 37
.

./amsmath-tag-eqref.tex:37: A <box> was supposed to be here.
<to be read again> 
                   \hbox 
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
I was expecting to see \hbox or \vbox or \copy or \box or
something like that. So you might find something missing in
your output. But keep trying; you can fix this later.

./amsmath-tag-eqref.tex:37: LaTeX Error: Command \ttfamily invalid in math mode
.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
Please use the math alphabet \mathtt instead of the \ttfamily command. 

./amsmath-tag-eqref.tex:37: Missing } inserted.
<inserted text> 
                }
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:37: Missing } inserted.
<inserted text> 
                }
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:37: Missing } inserted.
<inserted text> 
                }
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:37: Missing number, treated as zero.
<to be read again> 
                   {
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

./amsmath-tag-eqref.tex:37: Illegal unit of measure (pt inserted).
<to be read again> 
                   {
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
Dimensions can be in units of em, ex, in, pt, pc,
cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one!
I'll assume that you meant to say pt, for printer's points.
To recover gracefully from this error, it's best to
delete the erroneous units; e.g., type `2' to delete
two letters. (See Chapter 27 of The TeXbook.)

./amsmath-tag-eqref.tex:37: A <box> was supposed to be here.
<to be read again> 
                   \hbox 
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
I was expecting to see \hbox or \vbox or \copy or \box or
something like that. So you might find something missing in
your output. But keep trying; you can fix this later.

./amsmath-tag-eqref.tex:37: A <box> was supposed to be here.
<to be read again> 
                   \hbox 
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
I was expecting to see \hbox or \vbox or \copy or \box or
something like that. So you might find something missing in
your output. But keep trying; you can fix this later.

LaTeX Font Warning: Command \relax \fontsize {10.95}{13.6}\selectfont \abovedis
playskip 11\p@ plus3\p@ minus6\p@ \abovedisplayshortskip \z@ plus3\p@ \belowdis
playshortskip 6.5\p@ plus3.5\p@ minus3\p@ \def \leftmargin \leftmargini \parsep
 5\p@ plus2.5\p@ minus\p@ \topsep 10\p@ plus4\p@ minus6\p@ \itemsep 5\p@ plus2.
5\p@ minus\p@ {\leftmargin \leftmargini \topsep 9\p@ plus3\p@ minus5\p@ \parsep
 4.5\p@ plus2\p@ minus\p@ \itemsep \parsep }\belowdisplayskip \abovedisplayskip
 invalid in math mode on input line 37.

./amsmath-tag-eqref.tex:37: A <box> was supposed to be here.
<to be read again> 
                   \hbox 
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
I was expecting to see \hbox or \vbox or \copy or \box or
something like that. So you might find something missing in
your output. But keep trying; you can fix this later.

./amsmath-tag-eqref.tex:37: A <box> was supposed to be here.
<to be read again> 
                   \hbox 
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
I was expecting to see \hbox or \vbox or \copy or \box or
something like that. So you might find something missing in
your output. But keep trying; you can fix this later.

./amsmath-tag-eqref.tex:37: Missing number, treated as zero.
<to be read again> 
                   {
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

./amsmath-tag-eqref.tex:37: Illegal unit of measure (pt inserted).
<to be read again> 
                   {
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
Dimensions can be in units of em, ex, in, pt, pc,
cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one!
I'll assume that you meant to say pt, for printer's points.
To recover gracefully from this error, it's best to
delete the erroneous units; e.g., type `2' to delete
two letters. (See Chapter 27 of The TeXbook.)

./amsmath-tag-eqref.tex:37: Missing number, treated as zero.
<to be read again> 
                   {
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

./amsmath-tag-eqref.tex:37: Illegal unit of measure (pt inserted).
<to be read again> 
                   {
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
Dimensions can be in units of em, ex, in, pt, pc,
cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one!
I'll assume that you meant to say pt, for printer's points.
To recover gracefully from this error, it's best to
delete the erroneous units; e.g., type `2' to delete
two letters. (See Chapter 27 of The TeXbook.)

./amsmath-tag-eqref.tex:37: Missing number, treated as zero.
<to be read again> 
                   {
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

./amsmath-tag-eqref.tex:37: Illegal unit of measure (pt inserted).
<to be read again> 
                   {
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
Dimensions can be in units of em, ex, in, pt, pc,
cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one!
I'll assume that you meant to say pt, for printer's points.
To recover gracefully from this error, it's best to
delete the erroneous units; e.g., type `2' to delete
two letters. (See Chapter 27 of The TeXbook.)

./amsmath-tag-eqref.tex:38: Infinite glue shrinkage found in a paragraph.
\newpage ...k \@nobreakfalse \everypar {}\fi \par 
                                                  \ifdim \prevdepth >\z@ \vs...
l.38 \end{document}

The paragraph just ended includes some glue that has
infinite shrinkability, e.g., `\hskip 0pt minus 1fil'.
Such glue doesn't belong there---it allows a paragraph
of any length to fit on one line. But it's safe to proceed,
since the offensive shrinkability has been made finite.

Overfull \hbox (114.24394pt too wide) in paragraph at lines 37--38
[]\OT1/cmr/m/n/12 to|$[]$ 1)to|\OT1/cmtt/m/n/10.95 eq:2[]
 []

(./amsmath-tag-eqref.aux)
./amsmath-tag-eqref.tex:38: You can't use `\end' in internal vertical mode.
\enddocument ... \endgroup \deadcycles \z@ \@@end 

l.38 \end{document}

Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.

./amsmath-tag-eqref.tex:38: Missing } inserted.
<inserted text> 
                }
l.38 \end{document}

I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:38: Missing } inserted.
<inserted text> 
                }
l.38 \end{document}

I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:38: Missing } inserted.
<inserted text> 
                }
l.38 \end{document}

I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:38: Missing } inserted.
<inserted text> 
                }
l.38 \end{document}

I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:38: Missing } inserted.
<inserted text> 
                }
l.38 \end{document}

I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:38: Missing } inserted.
<inserted text> 
                }
l.38 \end{document}

I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:38: Missing } inserted.
<inserted text> 
                }
l.38 \end{document}

I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:38: Missing } inserted.
<inserted text> 
                }
l.38 \end{document}

I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:38: Missing } inserted.
<inserted text> 
                }
l.38 \end{document}

I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:38: Missing } inserted.
<inserted text> 
                }
l.38 \end{document}

I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:38: Missing } inserted.
<inserted text> 
                }
l.38 \end{document}

I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:38: Missing } inserted.
<inserted text> 
                }
l.38 \end{document}

I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:38: Missing } inserted.
<inserted text> 
                }
l.38 \end{document}

I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:38: Extra \endgroup.
<recently read> \endgroup 

l.38 \end{document}

Things are pretty mixed up, but I think the worst is over.

)
! Emergency stop.
<*> \input amsmath-tag-eqref.tex

*** (job aborted, no legal \end found)

Here is how much of TeX's memory you used:
 912 strings out of 493817
 10325 string characters out of 6156337
 70043 words of memory out of 5000000
 4694 multiletter control sequences out of 15000+600000
 7686 words of font info for 29 fonts, out of 8000000 for 9000
 417 hyphenation exceptions out of 8191
 35i,11n,25p,3260b,212s stack positions out of 5000i,500n,10000p,200000b,80000s
!  ==> Fatal error occurred, no output PDF file produced!

                   {
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
Dimensions can be in units of em, ex, in, pt, pc,
cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one!
I'll assume that you meant to say pt, for printer's points.
To recover gracefully from this error, it's best to
delete the erroneous units; e.g., type `2' to delete
two letters. (See Chapter 27 of The TeXbook.)

./amsmath-tag-eqref.tex:37: A <box> was supposed to be here.
<to be read again> 
                   \hbox 
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
I was expecting to see \hbox or \vbox or \copy or \box or
something like that. So you might find something missing in
your output. But keep trying; you can fix this later.

./amsmath-tag-eqref.tex:37: A <box> was supposed to be here.
<to be read again> 
                   \hbox 
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
I was expecting to see \hbox or \vbox or \copy or \box or
something like that. So you might find something missing in
your output. But keep trying; you can fix this later.

LaTeX Font Warning: Command \footnotesize invalid in math mode on input line 37
.

./amsmath-tag-eqref.tex:37: A <box> was supposed to be here.
<to be read again> 
                   \hbox 
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
I was expecting to see \hbox or \vbox or \copy or \box or
something like that. So you might find something missing in
your output. But keep trying; you can fix this later.

./amsmath-tag-eqref.tex:37: LaTeX Error: Command \ttfamily invalid in math mode
.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
Please use the math alphabet \mathtt instead of the \ttfamily command. 

./amsmath-tag-eqref.tex:37: Missing } inserted.
<inserted text> 
                }
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:37: Missing } inserted.
<inserted text> 
                }
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:37: Missing } inserted.
<inserted text> 
                }
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:37: Missing number, treated as zero.
<to be read again> 
                   {
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

./amsmath-tag-eqref.tex:37: Illegal unit of measure (pt inserted).
<to be read again> 
                   {
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
Dimensions can be in units of em, ex, in, pt, pc,
cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one!
I'll assume that you meant to say pt, for printer's points.
To recover gracefully from this error, it's best to
delete the erroneous units; e.g., type `2' to delete
two letters. (See Chapter 27 of The TeXbook.)

./amsmath-tag-eqref.tex:37: A <box> was supposed to be here.
<to be read again> 
                   \hbox 
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
I was expecting to see \hbox or \vbox or \copy or \box or
something like that. So you might find something missing in
your output. But keep trying; you can fix this later.

./amsmath-tag-eqref.tex:37: A <box> was supposed to be here.
<to be read again> 
                   \hbox 
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
I was expecting to see \hbox or \vbox or \copy or \box or
something like that. So you might find something missing in
your output. But keep trying; you can fix this later.

LaTeX Font Warning: Command \relax \fontsize {10.95}{13.6}\selectfont \abovedis
playskip 11\p@ plus3\p@ minus6\p@ \abovedisplayshortskip \z@ plus3\p@ \belowdis
playshortskip 6.5\p@ plus3.5\p@ minus3\p@ \def \leftmargin \leftmargini \parsep
 5\p@ plus2.5\p@ minus\p@ \topsep 10\p@ plus4\p@ minus6\p@ \itemsep 5\p@ plus2.
5\p@ minus\p@ {\leftmargin \leftmargini \topsep 9\p@ plus3\p@ minus5\p@ \parsep
 4.5\p@ plus2\p@ minus\p@ \itemsep \parsep }\belowdisplayskip \abovedisplayskip
 invalid in math mode on input line 37.

./amsmath-tag-eqref.tex:37: A <box> was supposed to be here.
<to be read again> 
                   \hbox 
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
I was expecting to see \hbox or \vbox or \copy or \box or
something like that. So you might find something missing in
your output. But keep trying; you can fix this later.

./amsmath-tag-eqref.tex:37: A <box> was supposed to be here.
<to be read again> 
                   \hbox 
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
I was expecting to see \hbox or \vbox or \copy or \box or
something like that. So you might find something missing in
your output. But keep trying; you can fix this later.

./amsmath-tag-eqref.tex:37: Missing number, treated as zero.
<to be read again> 
                   {
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

./amsmath-tag-eqref.tex:37: Illegal unit of measure (pt inserted).
<to be read again> 
                   {
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
Dimensions can be in units of em, ex, in, pt, pc,
cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one!
I'll assume that you meant to say pt, for printer's points.
To recover gracefully from this error, it's best to
delete the erroneous units; e.g., type `2' to delete
two letters. (See Chapter 27 of The TeXbook.)

./amsmath-tag-eqref.tex:37: Missing number, treated as zero.
<to be read again> 
                   {
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

./amsmath-tag-eqref.tex:37: Illegal unit of measure (pt inserted).
<to be read again> 
                   {
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
Dimensions can be in units of em, ex, in, pt, pc,
cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one!
I'll assume that you meant to say pt, for printer's points.
To recover gracefully from this error, it's best to
delete the erroneous units; e.g., type `2' to delete
two letters. (See Chapter 27 of The TeXbook.)

./amsmath-tag-eqref.tex:37: Missing number, treated as zero.
<to be read again> 
                   {
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

./amsmath-tag-eqref.tex:37: Illegal unit of measure (pt inserted).
<to be read again> 
                   {
l.37 Equations: \eqref{eq:1}, \eqref{eq:2}
                                          .
Dimensions can be in units of em, ex, in, pt, pc,
cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one!
I'll assume that you meant to say pt, for printer's points.
To recover gracefully from this error, it's best to
delete the erroneous units; e.g., type `2' to delete
two letters. (See Chapter 27 of The TeXbook.)

./amsmath-tag-eqref.tex:38: Infinite glue shrinkage found in a paragraph.
\newpage ...k \@nobreakfalse \everypar {}\fi \par 
                                                  \ifdim \prevdepth >\z@ \vs...
l.38 \end{document}

The paragraph just ended includes some glue that has
infinite shrinkability, e.g., `\hskip 0pt minus 1fil'.
Such glue doesn't belong there---it allows a paragraph
of any length to fit on one line. But it's safe to proceed,
since the offensive shrinkability has been made finite.

Overfull \hbox (114.24394pt too wide) in paragraph at lines 37--38
[]\OT1/cmr/m/n/12 to|$[]$ 1)to|\OT1/cmtt/m/n/10.95 eq:2[]
 []

(./amsmath-tag-eqref.aux)
./amsmath-tag-eqref.tex:38: You can't use `\end' in internal vertical mode.
\enddocument ... \endgroup \deadcycles \z@ \@@end 

l.38 \end{document}

Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.

./amsmath-tag-eqref.tex:38: Missing } inserted.
<inserted text> 
                }
l.38 \end{document}

I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:38: Missing } inserted.
<inserted text> 
                }
l.38 \end{document}

I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:38: Missing } inserted.
<inserted text> 
                }
l.38 \end{document}

I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:38: Missing } inserted.
<inserted text> 
                }
l.38 \end{document}

I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:38: Missing } inserted.
<inserted text> 
                }
l.38 \end{document}

I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:38: Missing } inserted.
<inserted text> 
                }
l.38 \end{document}

I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:38: Missing } inserted.
<inserted text> 
                }
l.38 \end{document}

I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:38: Missing } inserted.
<inserted text> 
                }
l.38 \end{document}

I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:38: Missing } inserted.
<inserted text> 
                }
l.38 \end{document}

I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:38: Missing } inserted.
<inserted text> 
                }
l.38 \end{document}

I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:38: Missing } inserted.
<inserted text> 
                }
l.38 \end{document}

I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:38: Missing } inserted.
<inserted text> 
                }
l.38 \end{document}

I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:38: Missing } inserted.
<inserted text> 
                }
l.38 \end{document}

I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

./amsmath-tag-eqref.tex:38: Extra \endgroup.
<recently read> \endgroup 

l.38 \end{document}

Things are pretty mixed up, but I think the worst is over.

)
! Emergency stop.
<*> \input amsmath-tag-eqref.tex

*** (job aborted, no legal \end found)

Here is how much of TeX's memory you used:
 912 strings out of 493817
 10325 string characters out of 6156337
 70043 words of memory out of 5000000
 4694 multiletter control sequences out of 15000+600000
 7686 words of font info for 29 fonts, out of 8000000 for 9000
 417 hyphenation exceptions out of 8191
 35i,11n,25p,3260b,212s stack positions out of 5000i,500n,10000p,200000b,80000s
!  ==> Fatal error occurred, no output PDF file produced!

Whereas the following compiles without error. Even though the keys shown for \eqref{eq:2} overlap, and hence not very readable.

\documentclass[a4paper,12pt]{article}

\usepackage{amsmath}
\makeatletter
\def\tag@in@display@a#1#2{%
  \iftag@
    \invalid@tag{Multiple \string\tag}\relax
  \else
    \global\tag@true \nonumber \reset@equation \st@rredtrue
    \if *\string#1%
      %% Comment out redefinition of \alt@tag
      % \gdef\alt@tag{\def\SK@tagform@{#2\@gobble}%
      %   \ifx\SK@@label\relax \let\tagform@\SK@tagform@ \fi
      % }%
      \make@df@tag@@{#2}%
    \else
      \make@df@tag@@@{#2}%
    \fi
  \fi
}
\makeatother
\MakeRobust\eqref

\usepackage{showkeys}

\begin{document}

\begin{equation}
  \label{eq:1}
  A = B
\end{equation}

\begin{equation}
  \label{eq:2}
  C > D \tag*{[\eqref{eq:1}a]}
\end{equation}

Equations: \eqref{eq:1}, \eqref{eq:2}.
\end{document}
stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity.

github-actions[bot] commented 8 months ago

This issue has been automatically marked as stale because it has not had recent activity.