|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## 0.5.7 |
| 4 | + |
| 5 | +> [!IMPORTANT] |
| 6 | +> Glossarium entries now accept a `custom` attribute by @ToppDev in #137. |
| 7 | +> This attribute can be used to store any data you want. |
| 8 | +> In order to use it, you need to specify custom functions in `print-glossary`. |
| 9 | +> Some documentation can be found [here](advanced-docs/main.pdf). |
| 10 | +> For contextual content, you can use `#context gls-custom("lorem", ctx: false)` to display |
| 11 | +> your custom data. |
| 12 | +> ```typ |
| 13 | +> #let entry-list = ( |
| 14 | +> ( |
| 15 | +> key: "c", |
| 16 | +> short: $c$, |
| 17 | +> description: "Speed of light in vacuum", |
| 18 | +> custom: (unit: "m s^-1", other: 1), |
| 19 | +> ), |
| 20 | +> ) |
| 21 | +> #register-glossary(entry-list) |
| 22 | +> #show: make-glossary |
| 23 | +> |
| 24 | +> - gls-custom: #context gls-custom("c", ctx: false) |
| 25 | +> - member access: #context gls-custom("c", ctx: false).unit |
| 26 | +> ``` |
| 27 | +
|
| 28 | +> [!IMPORTANT] |
| 29 | +> Glossarium will now detect ambiguous capitalization and raise an error in your |
| 30 | +> registered entries by @q-wertz in #140. |
| 31 | +
|
| 32 | +> [!TIP] |
| 33 | +> You can now override the default `capitalize` and `plural` functions in `make-glossary` and individual |
| 34 | +> `gls` calls. |
| 35 | +> ```typ |
| 36 | +> #show: make-glossary.with( |
| 37 | +> user-capitalize: txt => { |
| 38 | +> if type(txt) == content and txt.func() == math.equation { |
| 39 | +> txt.body.children.filter(x => x != [ ]).join("-") |
| 40 | +> } else if type(txt) == str { |
| 41 | +> upper(txt.at(0)) + txt.slice(1) |
| 42 | +> } else if type(txt) == none { |
| 43 | +> txt |
| 44 | +> } |
| 45 | +> }, |
| 46 | +> ) |
| 47 | +> ``` |
| 48 | +> |
| 49 | +> ```typ |
| 50 | +> #show: make-glossary.with( |
| 51 | +> user-plural: txt => txt + "z", |
| 52 | +> ) |
| 53 | +> ``` |
| 54 | +
|
| 55 | +> [!TIP] |
| 56 | +> You can now enable `deduplicate-back-references` in `print-glossary`. |
| 57 | +
|
| 58 | +> [!TIP] |
| 59 | +> You can now customize group headings with `user-print-group-heading` in `print-glossary`. |
| 60 | +
|
| 61 | +> [!NOTE] |
| 62 | +> Documentation for customizing `print-glossary` has been added to the README. |
| 63 | +
|
| 64 | +> [!NOTE] |
| 65 | +> `Gls` and `Glspl` are now exported by @q-wertz in #133. |
| 66 | +
|
| 67 | +> [!NOTE] |
| 68 | +> CI/CD has been re-enabled after adding support for Tytanic tests. |
| 69 | +
|
| 70 | +> [!NOTE] |
| 71 | +> You can style attributes with a new utility `style-entries`. |
| 72 | +
|
| 73 | +## 0.5.6 |
| 74 | +
|
| 75 | +> [!TIP] |
| 76 | +> The `short` attribute is now correctly marked as either string or content in the README.md (@otytlandsvik in #131) |
| 77 | +
|
| 78 | +> [!NOTE] |
| 79 | +> An example for styling attributes was added [here](examples/styling-attributes/). |
| 80 | +
|
3 | 81 | ## 0.5.5 |
4 | 82 |
|
5 | 83 | > [!WARNING] |
|
0 commit comments