-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from ENIB-Community/example-for-groups
feat(examples): add example for groups
- Loading branch information
Showing
7 changed files
with
57 additions
and
16 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
Binary file not shown.
Binary file not shown.
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,52 @@ | ||
#import "../../glossarium.typ": make-glossary, print-glossary, gls, glspl | ||
// Replace the local import with a import to the preview namespace. | ||
// If you don't know what that mean, please go read typst documentation on how to import packages at https://typst.app/docs/packages/. | ||
|
||
#show: make-glossary | ||
|
||
#set page(numbering: "1", paper: "a5") | ||
|
||
//I recommend setting a show rule for the links to that your reader understand that they can click on the references to go to the term in the glossary. | ||
#show link: set text(fill: blue.darken(60%)) | ||
|
||
= Groups example | ||
|
||
Reference to @ntc \ | ||
Reference to @bor | ||
|
||
#pagebreak() | ||
= Glossary with group enabled | ||
#print-glossary( | ||
( | ||
( | ||
key: "ntc", | ||
short: "NTC", | ||
long: "Linear Transform Coding", | ||
desc: [This is the opposite of @ltc.], | ||
group: "Nonlinear", | ||
), | ||
( | ||
key: "ltc", | ||
short: "LTC", | ||
long: "This is the opposite of @ltc.", | ||
desc: [ Transform Coding constraint to linear transforms.], | ||
group: "Linear", | ||
), | ||
( | ||
key: "bor", | ||
short: "DEF", | ||
long: "Default", | ||
desc: lorem(25), | ||
), | ||
( | ||
key: "bor2", | ||
short: "DEF2", | ||
long: "Default2", | ||
desc: lorem(25), | ||
group: "", // Please note that an empty group has the same effect as no group | ||
), | ||
|
||
), | ||
show-all: true, | ||
group-pagebreak: true, // break page for each group | ||
) |
Binary file not shown.
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