Skip to content

Inconsitent behavior with #link in different PDF viewers with 0.14-rc1 #7129

@yjcui

Description

@yjcui

First of all, the issue being reported here is a very tricky combination of configurations. The issue is only present with SumatraPDF viewer, but everything is normal in Adobe Reader. Besides, this issue is only noticed with recent Typst builds (including 0.14-rc1) as everything was fine up to Tinymist 0.13.31 (released on 09/24/2025). So I assume some changes after 09/24 are causing this subtle issue.

Issue Description

The issue was noticed when working with slides created with Touying package. I was trying to include a link to an external slides deck (created by Touying) with #link("touying_slides.pdf")[#image("touying_slides.pdf")] by using the first page of slides as the thumbnail. If I have a background image on the slides, the link won't work under SumatraPDF. By removing the background image, the link is clickable.

I did a second try with normal PDF files (not using Touying package) directly generated by Typst. Everying works with either SumatraPDF or Adobe Reader, no matter I have background image or not.

Attached is a file I created to demo the issue (target files are not uploaded as they will not impact the demo). As shown below, the top right link does not work under SumatraPDF.

Image

doc.pdf

Reproduction URL

No response

Operating system

Windows

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpdfRelated to PDF export or PDF embedding.urgentShould be fixed before the next release.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions