WoodcoreMake the numbers vibe

Commands › Writing templates

#render-prose Writing templates

Prints a sentence of the data with its symbols as real math, written between dollars.

#render-prose()

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.
Between dollars$c_"red"$ prints c subscript red; the rest stays words.
Nothing else interpretedAn _ stays an _, a # a #: safe for a text typed in Excel.
The minus signA hyphen before a number becomes a minus sign: «Δh = −200 m».

Arguments

ArgumentStatusWhat it does, and examples
The line's arguments
required
The sentence to print; an unpaired dollar leaves it as it is.
#render-prose("$c_\"red\"$ ist der Reduktionsfaktor der Bezugsfläche.")a symbol in the sentence
#render-prose("Δh = -200 m")the hyphen becomes a minus sign

Lines to copy

Minimal call

#render-prose("$c_\"red\"$ ist der Reduktionsfaktor")

Examples

Example 1
#render-prose("$c_\"red\"$ ist der Reduktionsfaktor der Bezugsfläche.")
The page render-prose produces, level 2
Example 2
#var("ce", domain: ("snow-load", "SL"), level: 0)
#context render-prose(tl-str(get("ce", "description")))
The page render-prose produces, level 2

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