WoodcoreMake the numbers vibe

Documentation

Commands

Every command a Woodcore report can call, with its arguments, the calls to copy and compiled examples — the documentation of Woodcore's «Commands» tab.

#import "../commands.typ": *

Every file of the report starts with this line: it makes every command below available.

Calculating in the report

Write a calculation in the report itself: variables, formulas evaluated with their units, checks.

Printing a drawing or an object

Print what the project draws and describes: plans, static models, schemas, norm excerpts, title blocks, annexes and positions.

Reading the project's data

Read the project's exported data, to calculate with it, include it or loop over it.

The document and its citations

The document itself: its language and words, its citations and bibliography, its settings and its level.

show-bibliographyPrints every norm and document the report cites in full: designation, title, edition and publisher, in three blocks.cite-normCites a norm in the prose, as the right-hand column cites one, and registers it for the bibliography.show-norm-listPrints the norms and documents a section names in full: designation, title, publisher and edition.set-report-languageSets the language the engine prints its own words in: labels, captions, footnotes.report-languageThe state holding the report's language; every word of the engine follows it, the engineer's prose does not.report-langGives the language in force here: «de», «fr» or «en».woodcore-documentGives the PDF its metadata from the project: title, authors, Woodcore's version and the document's revision.caption-rulesSets the captions the office's way: «Table 1 — The reference documents».doc-tablesSets hand-written tables the engine's way: only the rules the table writes, the caption above.tPrints one of the engine's words in the report's language, for a caller in the text.tlPrints a word the data carries in the report's language, for a caller in the text.t-strGives one of the engine's words as a string, in the report's language: what the engine calls wherever it prints.tl-strGives a word the data carries as a string, in the report's language: for a formula or a drawing too.t-labelGives one of the engine's words followed by its colon, set as each language sets one.t-patternGives a glossary template with its holes left standing, to set math in them.t-ofGives one of the engine's words in the language given, whatever the report's.tl-ofGives a word of the data in the language given: a glossary term, else the word as it is.report-levelThe state holding the report's level of detail, 1, 2 or 3; a call wins with its level:.uniform-levelThe state forcing a level on every call, written level: included, or none.show-maskedThe state printing every line a domain hides all the same, pale and marked.

Writing templates

The building blocks of a template of your own: numbers, values, symbols, formulas and sentences, formatted as Woodcore prints them.