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

multline env ignores \zlabel #272

Open
kia999 opened this issue Feb 10, 2020 · 3 comments
Open

multline env ignores \zlabel #272

kia999 opened this issue Feb 10, 2020 · 3 comments
Labels
category amsmath enhancement long-term issues (or enhancements) that will not be resolved any time soon but should be considered eventually report elsewhere

Comments

@kia999
Copy link

kia999 commented Feb 10, 2020

!! Please fill out all sections after reading CONTRIBUTING guidelines (and remove lines starting with !!)

Brief outline of the bug

I noted that \zlabel introduced by zref package is ignored inside multline environment, it does not write \zref@newlabel to aux file. MWE is given below. I reported this 'feature' to zref repository but was answered that this is bug (or a feature) in amsmath.

Minimal example showing the bug

\documentclass[a4paper]{article}
\usepackage{amsmath}
\usepackage[user]{zref}

\begin{document}

\begin{equation}
\zlabel{eq:01}
E=mc^{2}
\end{equation}

\begin{multline}
\zlabel{eq:02}
W = \int \vec{\xi}\cdot \vec{F}(\vec{\xi}) ,d^{3}x
=
\
\iint \ldots
\end{multline}

First Eq.\zref{eq:01}, second Eq.\zref{eq:02}.
\end{document}



## Log file (required) and possibly PDF file  

!! Use drag-and-dro
[test-zref.log](https://github.com/latex3/latex2e/files/4179097/test-zref.log)
[test-zref.log](https://github.com/latex3/latex2e/files/4179101/test-zref.log)
[test-zref.pdf](https://github.com/latex3/latex2e/files/4179103/test-zref.pdf)


p  (remember: .log file is required) !!

@davidcarlisle
Copy link
Member

For the record this is
ho-tex/zref#4

Note that as a core package amsmath can't really directly support a specific contributed package like zref (as would have been reported if the test file here had used the latexbug package as requested).

However it is (perhaps) possible that amsmath could make a hook available to make it easier for zref to detect when to write to the aux file. In the meantime a workaround as suggested by @u-fischer in the linked report is available.

@stale
Copy link

stale bot commented Apr 10, 2020

This issue has been automatically marked as stale because it has not had recent activity.

@stale stale bot added the stale label Apr 10, 2020
@FrankMittelbach FrankMittelbach added the long-term issues (or enhancements) that will not be resolved any time soon but should be considered eventually label Apr 10, 2020
@stale stale bot removed the stale label Apr 10, 2020
@FrankMittelbach
Copy link
Member

to look again when there is a new hook management for LaTeX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category amsmath enhancement long-term issues (or enhancements) that will not be resolved any time soon but should be considered eventually report elsewhere
Projects
None yet
Development

No branches or pull requests

3 participants