ho-tex / oberdiek

Updating the oberdiek bundle
Other
16 stars 6 forks source link

`\today` as argument in pdfdate leads to an error #79

Closed LukasCBossert closed 4 years ago

LukasCBossert commented 4 years ago

Consider this MWE

\documentclass{article}
\usepackage{hyperxmp,hyperref}
\hypersetup{pdfdate={\today}}
\begin{document}
Hello World!
\end{document}

I get the message

! Argument of \hyxmp@pdf@to@xmp@date has an extra }.

\par l.3 \hypersetup{pdfdate={\today}}

Is it a bug?

I already posted this at TeX.SE: https://tex.stackexchange.com/q/519410/98739

u-fischer commented 4 years ago

no it is not a hyperref bug. The key is provided by hyperxmp ( and must have a specific format described in the hyperxmp documentation).