Skip to content

Fix hyperref label mismatch for tech/def cross-references in LaTeX#565

Open
wilbowma wants to merge 1 commit into
racket:masterfrom
wilbowma:master
Open

Fix hyperref label mismatch for tech/def cross-references in LaTeX#565
wilbowma wants to merge 1 commit into
racket:masterfrom
wilbowma:master

Conversation

@wilbowma

@wilbowma wilbowma commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

When rendering @tech links with #:tag-prefixes, the resolved destination tag (e.g. (tech "chp1:" "book:" "widget")) differs from the raw link-element tag (e.g. (tech ("book:" "chp1:" "widget"))), causing \hyperref to reference a label that does not exist.

The section/part rendering path appears to handle this by using (vector-ref dest 1) from the resolved destination rather than (link-element-tag e). Adapt the same pattern for tech/def refs.

When rendering `@tech` links with `#:tag-prefixes`, the resolved destination
tag (e.g. `(tech "chp1:" "book:" "widget")`) differs from the raw
link-element tag (e.g. `(tech ("book:" "chp1:" "widget"))`), causing
`\hyperref` to reference a label that does not exist.

The section/part rendering path appears to handle this by using
`(vector-ref dest 1)` from the resolved destination rather than
`(link-element-tag e)`. Adapt the same pattern for tech/def refs.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resyntax analyzed 2 files in this pull request and found no issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant