chiehrosswang / TRB_LaTeX_tex

A LaTeX template for Transportation Research Board Annual Meeting papers
MIT License
45 stars 22 forks source link

Overlapping/ghost line numbers with some equations #22

Open CarlinLiao opened 5 years ago

CarlinLiao commented 5 years ago

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.

chiehrosswang commented 5 years ago

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