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

Document fails to build when importing dolicense: Package hyperxmp Error: hyperref must be loaded before hyperxmp. #111

Open
RalfJung opened this issue Nov 6, 2023 · 2 comments

Comments

@RalfJung
Copy link

RalfJung commented Nov 6, 2023

After a recent texlive update, the following trivial document now fails to build:

\documentclass[english]{article}

\usepackage[
    type={CC},
    modifier={by},
    version={4.0},
]{doclicense}

\begin{document}
This is the document.
\end{document}

When I run pdflatex, I get an error saying

Package hyperxmp Error: hyperref must be loaded before hyperxmp.

I am importing neither of these packets, so I am kind of at a loss about how to resolve this situation.

This is on Debian with texlive 2023.20231007-1.

@jonassmedegaard
Copy link

As I understand it, the intention is for the pacage to automatically load needed other packages, so seems there is a bug here.

A workaround is to manually load hyperref before, like this:

\documentclass[english]{article}

\usepackage{hyperref}
\usepackage[
    type={CC},
    modifier={by},
    version={4.0},
]{doclicense}

\begin{document}
This is the document.
\end{document}

@jonassmedegaard
Copy link

Another workaround is to avoid use of hyperxmp (read the documentation for details on when that might be suitable), like this:

\documentclass[english]{article}

\usepackage[
    type={CC},
    modifier={by},
    version={4.0},
    hyperxmp=false,
]{doclicense}

\begin{document}
This is the document.
\end{document}

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

2 participants