WoodcoreMake the numbers vibe

Commands › Writing templates

#render-symbol Writing templates

Sets a var object's symbol as real math: a subscript, a Greek letter.

#render-symbol()

Hover an argument: what it does. Hover its value: every possible value. A click keeps the bubble open.

The essentials

A template's building blockWhat Woodcore's own commands use; a report seldom needs it.
Real mathA subscript, a Greek letter: set, not copied as text.
Typst sourceThe symbol field must be valid math source.

Arguments

ArgumentStatusWhat it does, and examples
The line's arguments
required
A var object whose symbol field is Typst math source.
#render-symbol((symbol: "q_(k,1)"))q with the subscripts k,1
#render-symbol((symbol: "gamma_M"))γ with the subscript M

Lines to copy

Minimal call

#render-symbol((value: 1.115292, unit: "kN/m²", symbol: "q_k", label: "Charakteristische Schneelast"))

Examples

Example 1
#render-symbol((symbol: "q_(k,1)"))
The page render-symbol produces, level 2
Example 2
#for s in ("h_\"ref\"", "C_e", "s_k") [ #render-symbol((symbol: s)) #h(1em) ]
The page render-symbol produces, level 2

Defined in lib/calc-engine-core.typ:826