Files
typst-collection/glossy/tests/forward-links/test.typ
T
swaits f8085fc768 test(glossy): update glossarium version in test to latest
This was caught by a lint when pushing up to the typst-packages repo.
2025-10-26 16:00:24 -06:00

46 lines
831 B
Typst

#import "/lib.typ": *
#import "@preview/glossarium:0.5.9": *
#set page(height: auto, width: 4.5in)
#show link: set text(fill: red)
// -----------------------------------------------------------------------------
= `glossy`:
#box(
stroke: 1pt,
inset: 1em,
[
#show: init-glossary.with((WWW: "World Wide Web"), term-links: true)
This should be a link: @WWW
This should be a link, too: @WWW
#glossary()
],
)
// -----------------------------------------------------------------------------
= `glossarium`:
#box(
stroke: 1pt,
inset: 1em,
[
#show: make-glossary
#let entry-list = (
(key: "ML", short: "ML", long: "Machine Learning"),
)
#register-glossary(entry-list)
This should be a link: @ML
This should be a link, too: @ML
#print-glossary(entry-list)
],
)