-
Notifications
You must be signed in to change notification settings - Fork 22
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
Hard to use doclicense in class file #104
Comments
Now that I see there is an option to \RequirePackage of hyperxmp=false, it's more clear how to proceed. The pdfmanagement-firstaid file now has a fix for this to set pdfcopyright and pdflicenseurl, so I think this can just be closed. You may still wish to wind back the integration of hyperxmp to be opt-in instead of opt-out, since hyperxmp is probably going bye-bye. |
Thanks for reporting. I am not actively using TeX anymore (sadly) so I am also not to active using and testing doclicense. I opened #105. Can you test that? |
I'm finding it impossible to use use
doclicense
in a cls file because of fact thatdoclicense
is so tightly dependent onhyperxmp
. I have attached stripped down files to illustrate the problem. Suppose you have a cls filetest.cls
that does this:Note that
hyperref
insists on being loaded last, which is why we have to put the load in\AtEndPreamble
(there are a few exceptions to this rule, but we handle those in a way that is extraneous to this issue). The following file exhibits the problem:If you compile this, it complains because
\doclicenseLongTextForHyperref
is defined after the calls to\hypersetup
in\AtEndPreamble
. I think this is caused by the fact that the\AtEndPreamble
gets executed immediately when it is within\AtEndPreamble
, and\doclicenseLongTextForHyperref
has not been defined yet.Note that the
acmart
cls file solved this problem by only having a dependency ondoclicense
for the images.I can think of two possible solutions:
\hypersetup
using\AtBeginDocument
so that the entiredoclicense
package can finish loading.doclicense
fromhyperxmp
. Thehyperxmp
package is in a troubled state, and the author is having a hard time maintaining it in the face of changes tohyperref
. Moreover,hyperxmp
is being slowly replaced by the newpdfmanagement
project in LaTeX.The text was updated successfully, but these errors were encountered: