TRB_LaTeX_tex icon indicating copy to clipboard operation
TRB_LaTeX_tex copied to clipboard

Overlapping/ghost line numbers with some equations

Open CarlinLiao opened this issue 5 years ago • 1 comments

For some math statements, the line numbering appears to count an overlapping ghost line somewhere around the end of the align/gather/alignat statement.

\begin{linenomath}
\begin{alignat*}{3}
    &\min_{x,h} \qquad && \sum_{(i,j) \in A} \int_0^{x_{ij}} t_{ij}(x) dx \\
    &\text{subject to} \qquad && x_{ij} = \sum_{\pi \in \Pi} h^\pi \delta_{ij}^\pi  &&\forall (i,j) \in A\\
    & && \sum_{\pi \in \Pi^{rs}} h^\pi = d^{rs}  &&\forall(r,s) \in Z^2 \\
    & && h^\pi \geq 0  &&\forall \pi \in \Pi
\end{alignat*}
\end{linenomath}
where $A$ is the set of all links $(i,j)$ in the network

image

I've tested this with a few different equation environments (e.g. align, flalign), by dropping \\, \hfill, and \break around the \end{alignat*} and \end{linenomath} statements, and commenting out the lines referenced in #13, but it didn't fix the issue.

CarlinLiao avatar Jul 25 '19 05:07 CarlinLiao

Thanks for creating the issue - will need to get back to this after the submission 😅

chiehrosswang avatar Jul 31 '19 03:07 chiehrosswang