You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`key`| string | required | Case-sensitive, unique identifier used to reference the term. |
93
+
|`short`| string or content | semi-optional | The short form of the term replacing the term citation. |
94
+
|`long`| string or content | semi-optional | The long form of the term, displayed in the glossary and on the first citation of the term. |
95
+
|`description`| string or content | optional | The description of the term. |
96
+
|`plural`| string or content | optional | The pluralized short form of the term. |
97
+
|`longplural`| string or content | optional | The pluralized long form of the term. |
98
+
|`group`| string | optional | Case-sensitive group the term belongs to. The terms are displayed by groups in the glossary. |
99
+
|`custom`| any | optional | Custom content for usage in "user functions", e.g. `user-print-glossary` (see [advanced docs](./advanced-docs/main.pdf))|
100
100
101
101
102
102
```typ
@@ -187,15 +187,15 @@ Referencing terms can be done in different ways. The function with the largest f
187
187
```typ
188
188
// Referencing the OIDC term using gls
189
189
#gls("oidc")
190
-
// Displaying the long form forcibly
191
-
#gls("oidc", long: true)
190
+
// Displaying the first form forcibly
191
+
#gls("oidc", first: true)
192
192
// Do not add a link
193
193
#gls("oidc", link: false)
194
194
// Do not update the usage count. If done on first use, the next reference will trigger printing the full version.
195
195
#gls("oidc", update: false)
196
196
```
197
197
198
-
The graph below is an overview of the available interface groups and their individual functions/modifiers.
198
+
The graph below is an overview of the available interface groups and their individual functions/modifiers.
199
199
200
200
```mermaid
201
201
graph TD;
@@ -209,12 +209,12 @@ graph TD;
209
209
gls --> at-syntax;
210
210
```
211
211
212
-
Usually, you will want to use Typst reference syntax (`@` syntax). This is the most practical way to reference an entry. By default, some shorthands are made available: plural, capitalize, capitalized plural, short and long.
212
+
Usually, you will want to use Typst reference syntax (`@` syntax). This is the most practical way to reference an entry. By default, some shorthands are made available: plural, capitalize, capitalized plural, short and long.
213
213
214
214
```typ
215
215
// Prints the full version on first usage, short afterwards
216
216
@oidc
217
-
// Will always display the long version
217
+
// Will always display the long version
218
218
@oidc:long
219
219
// Display the plural form
220
220
@oidc:pl
@@ -233,11 +233,11 @@ print-glossary(
233
233
234
234
The different interfaces have different default parameters which you should keep in mind when using them. In most cases, you will not need to manually set `update: false`, unless you are using `gls` in situations that create ambiguity, e.g., using `gls` in other entries' description.
0 commit comments