Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

subequation reference (again) #2432

Open
HansOlsson opened this issue Oct 18, 2024 · 1 comment
Open

subequation reference (again) #2432

HansOlsson opened this issue Oct 18, 2024 · 1 comment

Comments

@HansOlsson
Copy link
Contributor

The following code:

\documentclass{article}
\usepackage{amsmath}
\begin{document}
System \eqref{eq:1}
Equations \eqref{eq:1a} and \eqref{eq:1b}
\begin{subequations}
\label{eq:1}
\begin{equation}
\label{eq:1a}
a = b +c
\end{equation}
\begin{equation}
g = h + i
\label{eq:1b}
\end{equation}
\end{subequations}

System \eqref{eqq:1}
Equations \eqref{eqq:1a} and \eqref{eqq:1b}
\begin{subequations}
\begin{equation}
\label{eqq:1a}
a = b +c
\end{equation}
\begin{equation}
g = h + i
\label{eqq:1b}
\end{equation}
\label{eqq:1}
\end{subequations}
\end{document}

Generates

System (1) Equations (1a) and (1b)
...
System (2b) Equations (2a) and (2b)
...

Note that the 2nd system says 2b - not 2 as intended, and that it seems to work for nested align; and it also works if the labels are before the equations as in System 1 (which provides a handy work-around).

I have not tested in the most recent version, but I could not find a matching issue.

@dginev
Copy link
Collaborator

dginev commented Oct 18, 2024

Thank you for the report. I have reproduced it with the latest latexml, screenshot attached:

image

@dginev dginev added this to the LaTeXML-0.8.9 milestone Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants