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

Overlapping/ghost line numbers with some equations #22

Open
CarlinLiao opened this issue Jul 25, 2019 · 1 comment
Open

Overlapping/ghost line numbers with some equations #22

CarlinLiao opened this issue Jul 25, 2019 · 1 comment

Comments

@CarlinLiao
Copy link

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants