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

zref doesn't work with include files #14

Closed
onatt opened this issue Apr 7, 2022 · 3 comments
Closed

zref doesn't work with include files #14

onatt opened this issue Apr 7, 2022 · 3 comments

Comments

@onatt
Copy link

onatt commented Apr 7, 2022

The following very simple LaTeX-document produces the error No counter 'zref@unique' defined. where filename.tex ist just an empty file.

\documentclass{article}
\usepackage{zref}
\begin{document}
\include{filename}
\end{document}

I am using latest version of texlive (2022) which includes zref (2022-03-08 v2.33). The error does not occur with texlive 2021 which includes zref (Version: 2020-07-03 v2.32). Of course, the problem can be fixed by adding \newcounter{zref@unique} but this should not be necessary. The problem seems to be related to issue #10 which should have been fixed in v2.33.

@u-fischer
Copy link
Contributor

hm right. The counter is only in the zref-perpage module. I will adjust. For now load the module too.

@bykhov
Copy link

bykhov commented Apr 7, 2022

The following very simple LaTeX-document produces the error No counter 'zref@unique' defined. where filename.tex ist just an empty file.

\documentclass{article}
\usepackage{zref}
\begin{document}
\include{filename}
\end{document}

I am using latest version of texlive (2022) which includes zref (2022-03-08 v2.33). The error does not occur with texlive 2021 which includes zref (Version: 2020-07-03 v2.32). Of course, the problem can be fixed by adding \newcounter{zref@unique} but this should not be necessary. The problem seems to be related to issue #10 which should have been fixed in v2.33.

Thanks for the turnaround!

@onatt
Copy link
Author

onatt commented Apr 7, 2022

hm right. The counter is only in the zref-perpage module. I will adjust. For now load the module too.

Great, thanks a lot. I am looking forward to the new version of zref. The example given above is actually the result of backtracking the same error that occurs when using the package mdframed which depends on zref.

Best regards
Oliver

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

3 participants