Format strings with case control and math
mainHayagriva uses Formattable Strings which can be transformed by citation styles (e.g., case folding).
Case Control
- Default: Strings may be case-folded by the style.
- Partial Preservation: Use braces
{}to protect specific parts. Wrap the whole string in quotes. - Verbatim: To disable all formatting and preserve exact casing, use the
valuesub-field withverbatim: true.
Math and Short Forms
- Math: Wrap Typst mathematical markup in
$. - Short Forms: Provide a
shortsub-field for citation styles to use instead of the fullvalue.
Note: Title and sentence case folding are automatically disabled if the language key is set to something other than English.
# Case folding
publisher: UN World Food Programme
# Partial preservation
publisher: "{imagiNary} Publishing"
# Verbatim (no formatting)
publisher:
value: UN World Food Programme
verbatim: true
# Short forms
journal:
value: International Proceedings of Customs
short: Int. Proc. Customs