Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

hyperxmp + xelatex bug: duplication of pdfkeywords

34 views
Skip to first unread message

Matthias Stevens

unread,
May 24, 2012, 12:56:49 PM5/24/12
to
Hallo everyone,

I found an annoying bug(?) relating to the pdfkeywords metadata field
which hyperref allows to set. When hyperref is used in combination
with hyperxmp AND the document is compiled with xelatex the keywords
are duplicated in the pdf metadata (both in the regular pdf properties
and the XMP metadata).

Here's an MWO:
------------------------------------------------------------------
\documentclass{article}

\usepackage[xetex]{hyperref}% remove "xetex" parameter when compiling
with pdflatex instead of xelatex
\hypersetup{
pdfauthor = {Matthias},
pdftitle = {MWO},
pdfkeywords = {Test, MWO, This is a test, Lipsum}
}
\usepackage{hyperxmp}

\usepackage{lipsum}

\begin{document}
\lipsum[1-3]
\end{document}
------------------------------------------------------------------

When I compile this with pdflatex (remove the xetex parameter in
\usepackage{hyperref}) I get:
- in the keywords field of the PDF properties: Test, MWO, This is a
test, Lipsum
- in the keywords field of the XMP metadata: Test; MWO; This is a
test; Lipsum
This is the intended behaviour (hyperxmp replaces commas with ; in the
XMP field, cf. hyperxmp documentation).

However, when compiling the MWO with xelatex I get:
- in the keywords field of the PDF properties: "Test, MWO, This is a
test, Lipsum"; Test; MWO; This is a test; Lipsum
- in the keywords field of the XMP metadata: "Test, MWO, This is a
test, Lipsum"; Test; MWO; This is a test; Lipsum
As you can see the keywords are repeated. First the ,-separated is put
between "" (and treated as a single keyword) and then the ;-separated
sequence follows.

I have tried changing the package loading order and compiling with
xelatex without specifying the xetex parameter on
\usepackage{hyperref}, all to no avail. Any ideas on how to fix or
work around this?
I posted this as a question tex.stackexchange as well:
http://tex.stackexchange.com/q/57097/3800

Thanks for any feedback,

Matthias

Heiko Oberdiek

unread,
Jul 30, 2012, 2:52:55 PM7/30/12
to
Matthias Stevens <mste...@vub.ac.be> wrote:

> I posted this as a question tex.stackexchange as well:
> http://tex.stackexchange.com/q/57097/3800

I have answered it there.
http://tex.stackexchange.com/questions/57097/hyperxmp-xelatex-bug-duplication-of-pdfkeywords/65271#65271

--
Heiko Oberdiek
0 new messages