swaits 725f657f49 feat(glossy): adds format-term customizability
Idea [from Discord
conversation](https://discord.com/channels/1054443721975922748/1318670789150642246/1319338465757757562).

Let's users more precisely control how short-form and long-form terms
are used based on the mode ("short", "long", or "both").

Defaults to `__default-format-term()` as below:

```typst
// Formats a term string based on the specified mode.
//
// Given mode, long-form, and short-form, this function returns the formatted
// term based on the mode. When mode is ...
//
// - "short" -> returns "short-form"
// - "long" -> returns "long-form"
// - "both" -> returns "short-form (long-form)"
//
// Parameters:
//   mode (string): The mode in which to format the term. Possible values are "short", "long", or "both".
//   short-form (string): The short form of the term.
//   long-form (string): The long form of the term.
//
// Returns:
//   string: The formatted term based on the specified mode.
//
#let __default-format-term(mode, short-form, long-form) = {
    if mode == "short" {
      short-form
    } else if mode == "long" {
      long-form
    } else {
      // mode assumed to be "both"
      long-form + " (" + short-form + ")"
    }
}
```
2024-12-20 11:28:32 -07:00
2024-12-18 06:05:11 -07:00
2024-10-18 16:14:20 -06:00
2024-12-17 21:42:51 -07:00

typst-collection

A collection of typst templates and packages by swaits.

Everything in this collection is available for use at the typst universe. For details on each, please visit the links below to their main page.

Packages

  • codly-languages: A set of language configurations for use with codly.
  • glossy: A very simple glossary system with easily customizable output.
  • rfc-vibe: Bring RFC language into everyday docs.
  • swank-tex: Render those funky logos for TeX, LaTeX, and friends.

Templates

  • finely-crafted-cv: A modern résumé/curriculum vitæ template with high attention to detail.
  • pro-letter: A formal business letter template.

License

All content licensed under the MIT license.

S
Description
⚠️ MOVED - See individual packages below ⚠️
Readme MIT
32 MiB
0 Stars 1 Watchers 0 Forks
Languages
Typst 96.3%
Shell 2%
Just 1.7%