Commands › Reading the project's data
#sync Reading the project's data
Keeps a value in step in a document written in raw Typst: Woodcore finds it by its id and rewrites it.
#sync()[]Hover an argument: what it does. Hover its value: every possible value. A click keeps the bubble open.
idrequiredWhat Woodcore finds the value by: «domain/case/variable». Once per file.
bodyrequiredThe value as it is printed.
The essentials
Nothing around itIt prints its content alone; Woodcore touches nothing else.
Read rather than writeA
#var(…, domain:) inside prints the export's value at every compile.A gap is saidA literal is compared with the export, never overwritten; taking the tag away gives the value back to the engineer.
Arguments
| Argument | Status | What it does, and examples |
|---|---|---|
| The line's arguments | ||
| required | What Woodcore finds the value by: «domain/case/variable». Once per file. #sync("live-load/A1/q_k")[3 kN/m²]an imposed load, written"live-load/A1/category"the same case's category | |
| required | The value as it is printed. [3 kN/m²]a literal, compared with the export[#var("q_k", domain: ("live-load", "A1"), display: "value-unit")]the value read, always the export's | |
Lines to copy
Minimal call
#sync("live-load/A1/q_k")[
]Examples
#table(columns: 3,
[Nutzlast], [#sync("live-load/A1/category")[A1]], [#sync("live-load/A1/q_k")[#var("q_k", domain: ("live-load", "A1"), display: "value-unit")]],
)Die Nutzlast der Kategorie #sync("live-load/A1/category")[A1] beträgt #sync("live-load/A1/q_k")[3 kN/m²].Defined in lib/calc-engine-core.typ:466