Skip to content

Commit

Permalink
fix: put \hypersetup inside of \AtBeginDocument to ensure fully loaded
Browse files Browse the repository at this point in the history
Closes: #104
  • Loading branch information
ypid committed Sep 6, 2023
1 parent 6c2d9c7 commit b86475c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions doclicense/doclicense.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -722,9 +722,11 @@ corresponds to \PackageName\nobreakspace\fileversion, dated \printdateTeX{\filed
}
\@ifpackageloaded{hyperxmp}{%
% The following options are only defined when the hyperxmp package was loaded.
\hypersetup{%
pdfcopyright = {\doclicenseLongTextForHyperref},
pdflicenseurl = {\doclicenseURL},
\AtBeginDocument{%
\hypersetup{%
pdfcopyright = {\doclicenseLongTextForHyperref},
pdflicenseurl = {\doclicenseURL},
}
}
}{}
}
Expand Down

0 comments on commit b86475c

Please sign in to comment.