WoodcoreMake the numbers vibe

Commands › Writing templates

#render-formula Writing templates

Sets the formula of a domain's step as real math.

#render-formula()

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.
As writtenNothing is computed: the formula is printed, not evaluated.

Arguments

ArgumentStatusWhat it does, and examples
The line's arguments
required
A step (a domain's steps[]) carrying a formula field.
#render-formula((formula: "sigma_m = M_\"Ed\" / W"))a bending stress
#render-formula((formula: "q_(k,11) = max(mu_11, 0.8) dot C_e dot C_T dot s_k"))a formula of the snow

Lines to copy

Minimal call

#render-formula((formula: "q_(k,11) = C_e dot C_T dot s_k"))

Examples

Example 1
#render-formula((formula: "q_(k,11) = max(mu_11, 0.8) dot C_e dot C_T dot s_k"))
The page render-formula produces, level 2
Example 2
#render-formula((formula: "sigma_m = M_\"Ed\" / W"))
The page render-formula produces, level 2

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