Skip to content

PDF outline/bookmarks don't use smart quotes in headings (v0.14) #7230

@TomBener

Description

@TomBener

Description

Related to #3662.

Headings rendered with smart quotes (via smartquote show rule or automatic smartening) display correctly in the body of the PDF, but the corresponding PDF outline/bookmark text still shows straight ASCII quotes.

Minimal example

#set text(font: ((name: "Palatino", covers: "latin-in-cjk"), "Noto Serif CJK SC"))
#show smartquote: set text(font: "Palatino")

= English "Quotes" in the heading and 中文“引号”

这是“引号”。“我叫,‘阿毛!’没有应。”

== "Double and 'Single' Quotes"

这是 'smartquote', "double" 和撇号 cha'DIch。

Steps to reproduce

  1. Save the file above as quotes.typ.
  2. Compile: typst compile quotes.typ.
  3. Open quotes.pdf in any PDF viewer and inspect the bookmarks/outline.

As shown in the screenshot below, the body text shows curly quotes as expected, but the outline/bookmarks show straight quotes like "Double and 'Single' Quotes".

Image

quotes.pdf

Version

  • Typst: 0.14
  • Platform: macOS 26.0.1
  • How compiled: Typst CLI
  • Fonts: Palatino + Noto Serif CJK SC

Reproduction URL

No response

Operating system

macOS

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions