-
Notifications
You must be signed in to change notification settings - Fork 249
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
Load hyperref before hyperxmp ? #505
Comments
I also encountered the same issue using the latest version of My current workaround: revert back |
I am facing this issue too. Can we get an official fix @borisveytsman ? |
I confirm that reverting back |
I, too, reverted |
I think it is important that packages work on a fresh and up to date install of the TeXLive distribution, so i do not plan to downgrade anything (as this will make it harder for my collaborators to get their own installation working!). I locally patched acmart, but hopefully there can be a proper fix distributed soon. |
Having this error when building a paper through the use of github actions CI (builds just started failing without doing anything). Is there a suggested way to solve this problem? |
@melkyades You can edit the cls as suggested in the original post, or you can revert hyperxmp. |
I use MikTeX with VSCode's LaTeX Workshop plugin on Windows and also hit this snag. The PDF gets built, but latexmk is borked and there are lots of side effects and errors from the hyperref before hyperxmp problem. I sync via git with Overleaf, (builds there don't show any problems, probably because of the version of latex/hyperxmp) for now). Changing the .cls file as OP did solves the problem in my config. |
I experienced the same issue, and would appreciate a fix. Especially shortly before the deadline, this is really unfortunate and it's also difficult to find a solution online about how to fix the issue. It took me several hours until I stumbled upon this issue |
well the comment in the hyperxmp code documentation that recent changes in hyperref and the LaTeX kernel ... are causing the problem and now force hyperxmp to be loaded after hyperref is not really true. The method hyperxmp used to hook into hyperref's option handling was flawed from the begin on. See e.g. https://tex.stackexchange.com/a/694606/2388. An alternative is to load the LaTeX PDF-management with
This will suppress hyperxmp and create the xmp-metadata with the in-built LaTeX code. |
It seems that this issue has been fixed in the recent v1.92 update. Thanks for the help! |
@scottkosty Can you confirm that it has been fixed, and close this issue, please? |
@Rimole I couldn't reproduce the issue after a tlmgr update. I'm not sure if we should close this though. Maybe we should let the developer take a look and close since they know more? For example, sometimes developers want to close after they add a regression test. @borisveytsman can we close? |
I found the same issue with a fresh MixTeX and TeXstudio installation. TeXstudio 4.7.2 (git 4.7.2). Using Qt Version 6.6.1, compiled with Qt 6.6.1 R. I changed the order of hyperref and hyperxmp as suggested by the error message and apparently everthing is fine. |
Found the same issue on a fresh TeXLive install (on Linux). @u-fischer's solution worked. |
I see this too now after updating texlive 2024.0 on Arch Linux. @u-fischer solution works, but this should probably be fixed asap... |
I'm getting it with TeX Live 2023 on NixOS unstable. A big problem of the workaround with |
@ulysses4ever yes you need a current system if you want to use the xmp-support of the LaTeX kernel after all it is new. But if you can't do that: simply ensure what the error message say: load hyperref first. With a current version of acmart this should happen automatically, so if you can update the class. |
@u-fischer, I don't know what xmp-support means and I doubt I need it. I simply wish that acmart worked across a couple of consecutive versions of TeX Live. Your comment prompted me to update acmart in our repo, and indeed it seemed to solve the issue (waiting on my friends with older TeX Live's to check). I wonder how one is supposed to get "a current version" of acmart. I never tried to build acmart.cls manually, and the README in this repo is not helping. I tried to call
And then couple more. But in the end, it produced acmart.cls that seems to work. Alternatively, I noticed that https://www.acm.org/publications/proceedings-template has a very recent version of the class. Maybe I should just always go there first before even searching the bug tracker... |
Well you need them. A PDF must contain metadata like the title and the author, and this is done now in the XMP-metadata. acmart loads the hyperxmp package for this.
In the same way you got the newer hyperxmp version which brought the problems: By using the update manager of your tex system. I got it with |
i confirm that this works for me! |
After a tlmgr update, with acmart I now get:
Indeed, it seems this was an intentional change if you look at the the change log in the documentation of hyperxmp: http://mirrors.ctan.org/macros/latex/contrib/hyperxmp/hyperxmp.pdf
In acmart.cls, if I manually change:
to:
I no longer get the error. That said, I have no idea what I'm doing.
Unfortunately, I wonder if the following issue is still relevant, which is also related to the ordering: #425.
The text was updated successfully, but these errors were encountered: