AMSmath subequation enviroment
I hate to be a bother since I know that there are many issues and a lot of work to be done, but there is one thing that I would love to have for mathjax. Will there be support in the future for the AMSmath subequation enviroment? Has it been considered yet or it is too hard to implement at the moment? For now, my latex documents contain blocks like this:
\begin{subequations}
\label{eq1}
\begin{align}
a & = b \label{eq11} \\
c & = d \label{eq12}
\end{align}
\end{subequations}
I can get rid of the subequation enviroment and just have a new number for each of the subequations but now in my text I have to get rid of every reference to the main label eq1. Is there any workaround for now to the lack of support to subequations?
If every subequation environment has a label, then you could use something like
\newcommand{\eatLabel}[2]{}
\newenvironment{subequations}{\eatLabel}{}
to handle it. If only some have labels, then this won't work. In that case, a prefilter on the TeX input jax could do the trick.
Unfortunately, however, there is a bug (#691) where the align environment (and others) can't have multiple labels, so even if you do this, you'll get a different error. Sorry! Currently there is no work-around for the multiple-label issue.
My statement about multiple labels turns out to be not quite right. The bug only occurs when there are labels that don't have any equation number or tag associated with them. For automatically numbered equations, this will not be the case, so my suggestion above might work for you after all.
Thank you for looking into this. I will check it out soon.
Any news on that?
@tdehaeze, I'm not sure what "that" refers to. The subequations environment? The issue with multiple labels for for align environment? I believe that the latter is fixed (see #691). There is a v2 implementation for a (limited) subequations environment listed in this post.
I'd like to +1 on adding support for subequations environment. Or any syntax that allows automatic grouping tags (e.g., (3.1), (3.2)) for equations.
@shengchao-lin, this issue discusses implementing section numbers using the v3 tagformat package. A similar approach could be used to get sub equation numbers. Something like the code in the post linked in myth previous message could be implemented in v3 as well, though the API is different. but the same idea could be used.