WoodcoreMake the numbers vibe

Commands › Calculating in the report

#from-level Calculating in the report

Prints what it holds from a level on only: a figure only the most detailed report shows.

#from-level()[]

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

The essentials

The level of the placeThat of the nearest #domain stating one, else the report's.
Below, nothingBelow the level given, nothing is printed, not even a blank line.
The figure stays its ownIts width, caption and label are kept; the tab's preview shows it pale.

Arguments

ArgumentStatusWhat it does, and examples
The line's arguments
required
The lowest level the content is printed at: 1, 2 or 3.
#from-level(3)[ … ]at level 3 alone
#from-level(2)[ … ]at levels 2 and 3
required
What it holds, a figure on its line.
[#figure(image("/Images/wind.png"), caption: [Pression du vent]) <wl-figure>]a figure and its label
[Le tableau 6 de la norme s'applique.]a sentence too

Lines to copy

Minimal call

#from-level(3)[#figure(rect(width: 2cm, height: 1cm), caption: [Figure])]

Examples

Example 1
#domain("WL-01", label: "Charge de vent", level: 3)[
  #from-level(3)[#figure(rect(width: 3cm, height: 1cm), caption: [Printed at level 3]) <wl-figure>]
]
The page from-level produces, level 2
Example 2
#domain("WL-02", label: "Charge de vent", level: 2)[
  #from-level(3)[#figure(rect(width: 3cm, height: 1cm), caption: [Not printed at level 2])]
  #var("q_p", 0.98, "kN/m²")
]
The page from-level produces, level 2

Defined in lib/formula.typ:2020