豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

keywords are enumerated wrongly in PDF #11528

@jonassmedegaard

Description

@jonassmedegaard

The default template data/templates/hypersetup.latex enumerates keywords using simple comma. That fails to properly encode keywords that contains a comma.

Please replace this line:

  pdfkeywords={$for(keywords)$$keywords$$sep$, $endfor$},

with these:

  pdfkeywords={$for(keywords)$
    \xmpquote{$keywords$}$sep$, $endfor$},

The difference can be seen when generating a tagged PDF and extracting the embedded XMP metadata (a crude way to do that is to open the PDF file in a text editor, because the XMP data is uncompressed).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions