Commands › Calculating in the report
#distance Calculating in the report
Prints SIA 265:2021's minimum spacings and timber thicknesses for a fastener, computed in mm for its diameter.
#distance(, ,
: , : ,
: , : ,
: , : ,
: , :
)Hover an argument: what it does. Hover its value: every possible value. A click keeps the bubble open.
drequiredconnectorrequiredtableoptional · default autotableoptional · default autoautoevery table of the kind and diameter28one table(36, 38)those tables, in that order#distance(12, "dowel", level: 1)
#distance(3.1, "nail", table: 28, level: 1)
#distance(8, "screw", table: (36, 38), level: 1)
alphaoptional · default nonealphaoptional · default nonenonealpha: 30labeloptional · default autolabeloptional · default autoautothe norm's titlenoneno title"…"your title, for one table#distance(8, "screw", table: 38)
#distance(8, "screw", table: 38, label: none)
#distance(8, "screw", table: 38, label: "Rafter to purlin")
descroptional · default nonedescroptional · default nonenonedescr: "Vollgewindeschrauben, nicht vorgebohrt."normoptional · default autonormoptional · default autoauto«SIA 265»noneno citation#distance(8, "screw", table: 38)
#distance(8, "screw", table: 38, norm: none)
norm-sectionoptional · default autonorm-sectionoptional · default autoauto«Table 38»"…"your text#distance(8, "screw", table: 38)
#distance(8, "screw", table: 38, norm-section: "6.5.2.3")
idoptional · default noneidoptional · default nonenoneid: "dist-1"leveloptional · default autoleveloptional · default autoautofollows the report1the tables alone2with titles and citation3as 2: the citation is there already#distance(8, "screw", table: 38, label: "Rafter to purlin", descr: "Fully threaded screws, not predrilled.", level: auto)
#distance(8, "screw", table: 38, label: "Rafter to purlin", descr: "Fully threaded screws, not predrilled.", level: 1)
#distance(8, "screw", table: 38, label: "Rafter to purlin", descr: "Fully threaded screws, not predrilled.", level: 2)
#distance(8, "screw", table: 38, label: "Rafter to purlin", descr: "Fully threaded screws, not predrilled.", level: 3)
The essentials
table:, every table of the kind and diameter, one under the other.#var, with its unit.Arguments
| Argument | Status | What it does, and examples |
|---|---|---|
| The line's arguments | ||
| required | The diameter, in mm. For a ring, its outer diameter. #distance(8, "screw", table: 38)8 mm#distance("d", "dowel", label: none)the variable d, noted with #var in cm | |
| required | The kind of fastener, in English or by its German name. "Stabdübel"Woodcore's German name"staple"refused: no table in SIA 265 | |
| What is printed | ||
| optional | The table or tables printed. table: 28table 28 alonetable: (36, 38)those tables, in that order | |
| optional | The force–grain angle in degrees, for ring spacing (table 41). alpha: 30the spacing along the grain at 30°#distance(80, "ring", alpha: 30)rings of 80 mm, the force at 30° to the grain | |
| Label and description | ||
| optional | Each table's title. label: "Anschluss Sparren – Pfette"your title, for one tablelabel: nonethe tables without a title | |
| optional | A footnote on the first table's title. descr: "Vollgewindeschrauben, nicht vorgebohrt."what the table assumesdescr: "Vorgebohrt, Douglasie."a word on the timber | |
| Citation | ||
| optional | The citation on the right of the table. norm: nonewithout citationnorm: "SIA 265:2021"the norm with its edition | |
| optional | The table cited. norm-section: "6.5.2.3"a clause rather than the tablenorm-section: "Tab. 38"the table, shortened | |
| Other | ||
| optional | The name Woodcore finds this call by in a domain it wrote. id: "dist-1"the call Woodcore rewritesid: "abstand-SD10"found by typst query too | |
| optional | The tables' level of detail. level: 1the tables alone, no title and no citationlevel: 2with titles and citation | |
Lines to copy
Minimal call
#distance(8, "nail")Complete call
#distance(8, "nail", table: auto, label: auto, descr: none, norm: auto, norm-section: auto, alpha: none, id: none, level: auto)Examples
#distance(3.1, "nail", table: 28)This example's page sets a SIA standard's table in full; it is not published on this site. Woodcore's «Commands» tab shows it.
#distance(8, "screw", table: 38, label: "Anschluss Sparren – Pfette", descr: "Vollgewindeschrauben, nicht vorgebohrt.")This example's page sets a SIA standard's table in full; it is not published on this site. Woodcore's «Commands» tab shows it.
#distance(12, "Stabdübel")This example's page sets a SIA standard's table in full; it is not published on this site. Woodcore's «Commands» tab shows it.
#distance(80, "ring", alpha: 30)This example's page sets a SIA standard's table in full; it is not published on this site. Woodcore's «Commands» tab shows it.
#var("d", 1.6, "cm")
#distance("d", "dowel", label: none)This example's page sets a SIA standard's table in full; it is not published on this site. Woodcore's «Commands» tab shows it.
Defined in lib/distance.typ:265