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

doclicense: Token not allowed in a PDF string (Unicode):(hyperref) removing `\enquote' #80

Closed
thbde opened this issue Jun 28, 2021 · 1 comment

Comments

@thbde
Copy link

thbde commented Jun 28, 2021

Following the documentation https://ftp.rrzn.uni-hannover.de/pub/mirror/tex-archive/macros/latex/contrib/doclicense/doclicense.pdf
image
I create a new document:

\documentclass[a4paper]{report}
\usepackage{
	babel,
}
\usepackage[
type={CC},
modifier={by-sa},
version={4.0},
]{doclicense}
\begin{document}
Thanks for your great work with doclicense!
\end{document}

Which produces the warning:

Token not allowed in a PDF string (Unicode):(hyperref) removing `\enquote'

\listfiles output:

Package: doclicense 2021/03/13 v2.3.0

Expectation: I get no warning following the documentation.

The warning goes away if I explicitly load the hyperref package (or the hyperxmp package which may also load the hyperref package):

\documentclass[a4paper]{report}
\usepackage{
	babel,
}
\usepackage[
type={CC},
modifier={by-sa},
version={4.0},
]{doclicense}
%the following line is new
\usepackage{hyperref}
\begin{document}
Thanks for your great work with doclicense!
\end{document}
@ypid
Copy link
Owner

ypid commented Jun 28, 2021

https://tex.stackexchange.com/questions/312935/i-need-some-help-ordering-these-imports-so-the-hyperref-package-works-properly says csquotes before hyperref. General rule as I remember it is hyperref should be last. But same as in your case, loading csquotes after hyperref avoids the warning. So lets go with that.

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