WoodcoreMake the numbers vibe

Commands › Calculating in the report

#domain Calculating in the report

Groups lines under a name: their variables stay apart, and readable further on with #var(…, domain:).

#domain(,
  : , : , : , : ,
  : , : , : ,
  : 
)[]

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

The essentials

No overwritingTwo F in two domains do not replace each other.
What is outsideA variable noted outside every domain is readable in all of them.
Its levellevel: holds for every line that states none.

Arguments

ArgumentStatusWhat it does, and examples
The line's arguments
required
The domain's name, which #var(…, domain:) reads.
#domain("ende")[#var("F", 0.55, "kN")]the domain «ende» and its variable F
#var("F", domain: "ende")reads F further on
required
Its lines, in square brackets.
[ #var("F", 0.55, "kN") ]one line
[ #var("l", 2.4, "m") #eq("M", `F dot l`) ]lines citing each other
Label and description
optional
Its title.
label: "Vérification à la traction"printed as a heading before its lines
label: "Ende"a short title
optional
Where the title goes. Before, from level 1.
label-position: "after"the title after the lines
label-position: "none"a domain without a title
optional
What the domain is about.
descr: "Barre tendue, section nette"a paragraph under the title
descr: "Zugstab, Nettoquerschnitt"from level 2
optional
Where the description goes. After the title, from level 2.
descr-position: "footnote"as a footnote on the title
descr-position: "none"no description
Citation
optional
The norm the domain follows.
norm: "SIA 265"the domain's norm
norm: "SIA 261"a norm of actions
optional
The clause the domain follows.
norm-section: "4.2.1"a clause
norm-section: "Tabelle 8"a table
optional
Where the citation goes. Right of the title at level 3.
norm-position: "in-line"after the title, in grey
norm-position: "line-right"level with the title, on the right
Other
optional
The level of every line of the domain that states none.
level: 3full detail in this domain
level: 0a domain stored, nothing printed: its variables are read further on

Lines to copy

Minimal call

#domain("poutre-p1")[
  
]

Complete call

#domain("poutre-p1", label: none, label-position: auto, descr: none, descr-position: auto, norm: none, norm-section: none, norm-position: auto, level: auto)[
  
]

Examples

Example 1
#var("l", 2.4, "m")
#domain("ende", label: "Ende")[
  #var("F", 0.55, "kN")
  #eq("M", `F dot l`)
]
Das massgebende Moment beträgt #var("M", domain: "ende").
Level of detail
The page domain produces, level 2
Example 2
#domain("traction", label: "Vérification à la traction", descr: "Barre tendue, section nette", norm: "SIA 265", norm-section: "4.2.1", norm-position: "line-right", level: 3)[
  #var("N_t_d", 50, "kN", label: "Effort de traction")
  #var("A", 56000, "mm²", level: 1)
  #eq("sigma_t_d", `N_t_d / A`)
]
The page domain produces, level 2

Defined in lib/formula.typ:1934