WoodcoreMake the numbers vibe

Woodcore 0.121.0

0.121 — The Typst commands rebuilt: a uniform core, one file per domain, native figures

What changes in your reports

  • ⚠️ #unit now holds for the next value only. #unit("N") changes the unit of the next result of that dimension, then the default unit comes back. For the rest of a domain write #unit("N", scope: "domain"), for the rest of the document scope: "document" (the former behaviour). A #unit( without scope: is reported at the export.
  • The Typst commands are rebuilt. A calculation of Woodcore's — a timber or steel check, a load, a connector, a polar moment, a script — is written out whole into a file of its own and printed by #include domain-file(kind, id). A drawing is an image in a numbered Typst figure: #figure(image-positions-plan("Pavillon"), kind: image, caption: [Plan]) <fig-pav>, cited by @fig-pav (likewise image-fire-plan, image-static-model, image-schema, image-extract). A position is named by #position("T001"). #var is the one command that prints a value: #var("s_k", domain: ("snow-load", "SL")) reads a value of the export. What a line prints is set by fine arguments (display, label-position, descr-position, norm-position), the level being only a preset of them, and #calc-defaults(…, scope:) sets them for a line, a domain or the document. The documents and the export sheets are written in raw Typst: a table is a #table the window edits cell by cell.
  • The retired commands — #show-calc, #show-input, #val, #var-unit, #var-line, #var-domain (now #domain), #member, #calc-block, the verify-*, #show-plan and the other show-*, the doc-* and sheet-* objects — stop the export at the line that calls them, saying what to write instead; the full table is in the commands' documentation. Your projects are not rewritten automatically.
  • What is no longer printed: the torsion of a timber check, the manual selection level: -1, shown:, an excerpt's automatic caption (the caption is your figure's); a sheet's list of the positions and its quantities are the whole project's.
  • A ratio without a unit, in per cent or in per mille: without unit: a ratio such as η stays a number (0.741), unit: "%" prints it in per cent (74.1 %), unit: "%%" — two % signs one after the other — in per mille, printed ‰ (741 ‰).
  • The force arrows on a polar moment's figure are back, through a new command, #image-polar-moment, in a numbered figure: the file Woodcore writes for a polar moment sets it right after N, V and M, and the arrows follow the values you write there (a number, or an #eq of your forces such as #eq("N", N_Ed)). Elsewhere: #figure(image-polar-moment("VU-MP-1", N: 7.5, V: 25, M: 6.6), kind: image, caption: […]).
  • #distance: label: is each table's title (auto the norm's, none none, a text replaces it); tab:, title: and norm-ref: are no longer read: write table:, label: and norm-section: (the export says so at the line).

What to do

  • Replace the retired commands in your sections: the export names each file and each line, with what to write. The window's «Copy» buttons already write the new forms.
  • Add scope: "document" to the #unit(…) that were meant for the whole report.
  • A polar moment already exported carries its figure at its head and shows the red «form» line: click «Régénérer» in the Formules tab to get the figure with its arrows after the forces; your own lines (an #eq in place of N, V or M) are kept.