Compare commits

..

5 Commits

Author SHA1 Message Date
Greg Shuflin
e78c0f36f1 Bump package version to 0.3.0 2024-08-18 23:03:21 -07:00
Greg Shuflin
226dfe75f8 Update contributors 2024-08-18 22:41:08 -07:00
Greg Shuflin
c3acc895d7 Some tweaks to the label-ing functionality 2024-08-18 22:41:01 -07:00
Greg Shuflin
393603ae2d
Merge pull request #6 from rwmpelstilzchen/references
Add reference capability
2024-08-18 22:39:42 -07:00
Júda Ronén
7774532264 Add reference capability
This adds a new argument, `label`, and makes use of the referencing mechanism of Typst.
2024-08-17 19:21:54 +03:00
3 changed files with 4 additions and 5 deletions

View File

@ -2,7 +2,6 @@
## 0.3.0
* Added `label` and `label-supplement` arguments to `gloss` function
* Added borders around code + rendered example in documentation pdf
## 0.2.0
* renamed `numbered_gloss` to `numbered-gloss`, `gloss_count` to `gloss-count`, in light of the

Binary file not shown.

View File

@ -3,6 +3,8 @@
#show link: x => underline[*#x*]
#let codeblock-old(contents) = block(fill: luma(230), inset: 8pt, radius: 4pt, breakable: false, contents)
#let codeblock(contents, addl-bindings: (:), unevaled-first-line: none) = {
let full-contents = if unevaled-first-line != none {
unevaled-first-line + "\n" + contents
@ -10,10 +12,8 @@
contents
}
block(stroke: 0.5pt + black, inset: 4pt, width: 100%, breakable: false)[
#eval(contents, mode: "markup", scope: (gloss: gloss, numbered-gloss: numbered-gloss) + addl-bindings)
#block(fill: luma(230), inset: 8pt, radius: 4pt, breakable: false, width: 100%, raw(full-contents, lang: "typst"))
]
eval(contents, mode: "markup", scope: (gloss: gloss, numbered-gloss: numbered-gloss) + addl-bindings)
block(fill: luma(230), inset: 8pt, radius: 4pt, breakable: false, raw(full-contents, lang: "typst"))
}
// Abbreviations used in this document