-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Glossary | ||
|
||
## glossarium | ||
|
||
>[Link to the universe](https://typst.app/universe/package/glossarium) | ||
Package to manage glossary and abbreviations. | ||
|
||
<div class="info">One of the very first cool packages of Typst, made specially for (probably) the first thesis written in Typst.<div> | ||
|
||
```typ | ||
#import "@preview/glossarium:0.4.1": make-glossary, print-glossary, gls, glspl | ||
#show: make-glossary | ||
// for better link visibility | ||
#show link: set text(fill: blue.darken(60%)) | ||
#print-glossary( | ||
( | ||
// minimal term | ||
(key: "kuleuven", short: "KU Leuven"), | ||
// a term with a long form and a group | ||
(key: "unamur", short: "UNamur", long: "Namur University", group: "Universities"), | ||
// a term with a markup description | ||
( | ||
key: "oidc", | ||
short: "OIDC", | ||
long: "OpenID Connect", | ||
desc: [OpenID is an open standard and decentralized authentication protocol promoted by the non-profit | ||
#link("https://en.wikipedia.org/wiki/OpenID#OpenID_Foundation")[OpenID Foundation].], | ||
group: "Accronyms", | ||
), | ||
// a term with a short plural | ||
( | ||
key: "potato", | ||
short: "potato", | ||
// "plural" will be used when "short" should be pluralized | ||
plural: "potatoes", | ||
desc: [#lorem(10)], | ||
), | ||
// a term with a long plural | ||
( | ||
key: "dm", | ||
short: "DM", | ||
long: "diagonal matrix", | ||
// "longplural" will be used when "long" should be pluralized | ||
longplural: "diagonal matrices", | ||
desc: "Probably some math stuff idk", | ||
), | ||
) | ||
) | ||
// referencing the OIDC term using gls | ||
#gls("oidc") | ||
// displaying the long form forcibly | ||
#gls("oidc", long: true) | ||
// referencing the OIDC term using the reference syntax | ||
@oidc | ||
Plural: #glspl("potato") | ||
#gls("oidc", display: "whatever you want") | ||
``` |