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.
idrequiredThe domain's name, which
#var(…, domain:) reads.bodyrequiredIts lines, in square brackets.
labeloptional · default noneIts title.
labeloptional · default nonenoneFree text, for example:
label: "Vérification à la traction"label-positionoptional · default autoWhere the title goes. Before, from level 1.
label-positionoptional · default autoautoleft to the level: before, from level 1"none"no title"before"a heading before the domain"after"the same heading after"footnote"as a footnoteHover a value: its call and what it prints.
#domain("traction", label: "Tension check", descr: "Member in tension, net section", norm: "SIA 265", norm-section: "4.2.1", label-position: auto)[
#var("N_t_d", 50, "kN")
]What it prints
Prints the same as "before".
#domain("traction", label: "Tension check", descr: "Member in tension, net section", norm: "SIA 265", norm-section: "4.2.1", label-position: "none")[
#var("N_t_d", 50, "kN")
]What it prints
#domain("traction", label: "Tension check", descr: "Member in tension, net section", norm: "SIA 265", norm-section: "4.2.1", label-position: "before")[
#var("N_t_d", 50, "kN")
]What it prints
Prints the same as auto.
#domain("traction", label: "Tension check", descr: "Member in tension, net section", norm: "SIA 265", norm-section: "4.2.1", label-position: "after")[
#var("N_t_d", 50, "kN")
]What it prints
#domain("traction", label: "Tension check", descr: "Member in tension, net section", norm: "SIA 265", norm-section: "4.2.1", label-position: "footnote")[
#var("N_t_d", 50, "kN")
]What it prints
Compiled once by Woodcore's engine, on the examples' frozen data.
descroptional · default noneWhat the domain is about.
descroptional · default nonenoneFree text, for example:
descr: "Barre tendue, section nette"descr-positionoptional · default autoWhere the description goes. After the title, from level 2.
descr-positionoptional · default autoautoleft to the level: after the title, from level 2"none"no description"after"a paragraph after the title"footnote"as a footnote on the titleHover a value: its call and what it prints.
#domain("traction", label: "Tension check", descr: "Member in tension, net section", norm: "SIA 265", norm-section: "4.2.1", descr-position: auto)[
#var("N_t_d", 50, "kN")
]What it prints
Prints the same as "after".
#domain("traction", label: "Tension check", descr: "Member in tension, net section", norm: "SIA 265", norm-section: "4.2.1", descr-position: "none")[
#var("N_t_d", 50, "kN")
]What it prints
#domain("traction", label: "Tension check", descr: "Member in tension, net section", norm: "SIA 265", norm-section: "4.2.1", descr-position: "after")[
#var("N_t_d", 50, "kN")
]What it prints
Prints the same as auto.
#domain("traction", label: "Tension check", descr: "Member in tension, net section", norm: "SIA 265", norm-section: "4.2.1", descr-position: "footnote")[
#var("N_t_d", 50, "kN")
]What it prints
Compiled once by Woodcore's engine, on the examples' frozen data.
normoptional · default noneThe norm the domain follows.
normoptional · default nonenoneFree text, for example:
norm: "SIA 265"norm-sectionoptional · default noneThe clause the domain follows.
norm-sectionoptional · default nonenoneFree text, for example:
norm-section: "4.2.1"norm-positionoptional · default autoWhere the citation goes. Right of the title at level 3.
norm-positionoptional · default autoautoleft to the level: on the right at level 3"none"no citation"in-line"after the title, in grey"line-right"level with the title, in the right-hand column"footnote"as a footnote on the titleHover a value: its call and what it prints.
#domain("traction", label: "Tension check", descr: "Member in tension, net section", norm: "SIA 265", norm-section: "4.2.1", norm-position: auto)[
#var("N_t_d", 50, "kN")
]What it prints
Prints the same as "none".
#domain("traction", label: "Tension check", descr: "Member in tension, net section", norm: "SIA 265", norm-section: "4.2.1", norm-position: "none")[
#var("N_t_d", 50, "kN")
]What it prints
Prints the same as auto.
#domain("traction", label: "Tension check", descr: "Member in tension, net section", norm: "SIA 265", norm-section: "4.2.1", norm-position: "in-line")[
#var("N_t_d", 50, "kN")
]What it prints
#domain("traction", label: "Tension check", descr: "Member in tension, net section", norm: "SIA 265", norm-section: "4.2.1", norm-position: "line-right")[
#var("N_t_d", 50, "kN")
]What it prints
#domain("traction", label: "Tension check", descr: "Member in tension, net section", norm: "SIA 265", norm-section: "4.2.1", norm-position: "footnote")[
#var("N_t_d", 50, "kN")
]What it prints
Compiled once by Woodcore's engine, on the examples' frozen data.
leveloptional · default autoThe level of every line of the domain that states none.
leveloptional · default autoautofollows the domain around it, else the report0nothing printed; its variables are stored1the title and the lines2also the description3also the citation, and every line in fullHover a value: its call and what it prints.
#domain("traction", label: "Tension check", descr: "Member in tension, net section", norm: "SIA 265", norm-section: "4.2.1", level: auto)[
#var("N_t_d", 50, "kN")
]What it prints
Prints the same as 2.
#domain("traction", label: "Tension check", descr: "Member in tension, net section", norm: "SIA 265", norm-section: "4.2.1", level: 0)[
#var("N_t_d", 50, "kN")
]What it prints
Nothing is printed.
#domain("traction", label: "Tension check", descr: "Member in tension, net section", norm: "SIA 265", norm-section: "4.2.1", level: 1)[
#var("N_t_d", 50, "kN")
]What it prints
#domain("traction", label: "Tension check", descr: "Member in tension, net section", norm: "SIA 265", norm-section: "4.2.1", level: 2)[
#var("N_t_d", 50, "kN")
]What it prints
Prints the same as auto.
#domain("traction", label: "Tension check", descr: "Member in tension, net section", norm: "SIA 265", norm-section: "4.2.1", level: 3)[
#var("N_t_d", 50, "kN")
]What it prints
Compiled once by Woodcore's engine, on the examples' frozen data.
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 level
level: holds for every line that states none.Arguments
| Argument | Status | What 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 lineslabel: "Ende"a short title | |
| optional | Where the title goes. Before, from level 1. label-position: "after"the title after the lineslabel-position: "none"a domain without a title | |
| optional | What the domain is about. descr: "Barre tendue, section nette"a paragraph under the titledescr: "Zugstab, Nettoquerschnitt"from level 2 | |
| optional | Where the description goes. After the title, from level 2. descr-position: "footnote"as a footnote on the titledescr-position: "none"no description | |
| Citation | ||
| optional | The norm the domain follows. norm: "SIA 265"the domain's normnorm: "SIA 261"a norm of actions | |
| optional | The clause the domain follows. norm-section: "4.2.1"a clausenorm-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 greynorm-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 domainlevel: 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
#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
#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`)
]Defined in lib/formula.typ:1934