Skip to content

Equation numbers on aligned/splitted equation numbers do not work properly #7

@StatProofBook

Description

@StatProofBook

When a block of aligned equations appears within a proof, there is supposed to be one equation number that may be used for referencing this block. Unfortunately, there seems to be no configuration which results in this behavior.

When using \begin{split}...\end{split}, no equation number is shown. When using \begin{align}...\end{split}, every line in the aligned block gets a number. This shouldn't be, because (i) there is just one equation label per such block, so referencing does not work anymore and (ii) sometimes multiple lines do not represent multiple equations, but just multiple parts of a sum or product.

Below comes an example from Proofs/mvn-ltt.md and a screenshot of what it generates:

$$ \label{eq:y-mgf-s1}
\begin{split}
M_y(t) &= \mathbb{E} \left( \exp \left[ t^\mathrm{T} (Ax + b) \right] \right) \\
&= \mathbb{E} \left( \exp \left[ t^\mathrm{T} A x \right] \cdot \exp \left[ t^\mathrm{T} b \right] \right) \\
&= \exp \left[ t^\mathrm{T} b \right] \cdot \mathbb{E} \left( \exp \left[ t^\mathrm{T} A x \right] \right) \\
&= \exp \left[ t^\mathrm{T} b \right] \cdot M_x(At) \; .
\end{split}
$$
$$ \label{eq:y-mgf-s2}
\begin{align}
M_y(t) &= \exp \left[ t^\mathrm{T} b \right] \cdot M_x(At) \\
&= \exp \left[ t^\mathrm{T} b \right] \cdot \exp \left[ t^\mathrm{T} A \mu + \frac{1}{2} t^\mathrm{T} A \Sigma A^\mathrm{T} t \right] \\
&= \exp \left[ t^\mathrm{T} \left( A \mu + b \right) + \frac{1}{2} t^\mathrm{T} A \Sigma A^\mathrm{T} t \right] \; .
\end{align}
$$

Issue_7_edit

How can we solve this problem? Any suggestions appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions