Commands › Printing a drawing or an object
#image-schema Printing a drawing or an object
Prints a schema as an image: a detail drawn in Woodcore's «Schemas» tab.
#image-schema(,
: , : , :
)Hover an argument: what it does. Hover its value: every possible value. A click keeps the bubble open.
schemarequiredThe schema's id, as Woodcore saved it.
highlightoptional · default noneThe parts of the schema put under a halo, by id.
highlightoptional · default nonenoneFree text, for example:
highlight: "S001"widthoptional · default 100%The width the schema is printed at, all the room it is given by default.
widthoptional · default 100%100%Free text, for example:
width: 60%detail-figureoptional · default autoWhat the drawing of the schema shows.
detail-figureoptional · default autoautoits defaults: the drawing aids"aids"the drawing aids: dimensions and marks()the drawing alone, nothing moreHover a value: its call and what it prints.
#image-schema("VU-Skizze", width: 60%)What it prints
Prints the same as "aids".
#image-schema("VU-Skizze", width: 60%, detail-figure: "aids")What it prints
Prints the same as auto.
#image-schema("VU-Skizze", width: 60%, detail-figure: ())What it prints
Compiled once by Woodcore's engine, on the examples' frozen data.
The essentials
An image, not a figureIt goes in a native
#figure: the caption and the label are the document's own.Cited by its label
<label> after the figure, @label in the text: numbered by Typst.One element highlighted
highlight: puts one part of the detail under a halo, to talk about it.Arguments
| Argument | Status | What it does, and examples |
|---|---|---|
| The line's arguments | ||
| required | The schema's id, as Woodcore saved it. #image-schema("VU-Skizze")the connection's detail"SD_02"another schema of the project | |
| What is printed | ||
| optional | The parts of the schema put under a halo, by id. highlight: "S001"one parthighlight: ("S001", "S002")several parts | |
| optional | The width the schema is printed at, all the room it is given by default. width: 60%a little over half the columnwidth: 12cma fixed width | |
| optional | What the drawing of the schema shows. detail-figure: "aids"with its drawing aidsdetail-figure: ()the detail alone | |
Lines to copy
Minimal call
#image-schema("VU-Skizze")Complete call
#image-schema("VU-Skizze", highlight: none, width: 100%, detail-figure: auto)Examples
#figure(image-schema("VU-Skizze"), kind: image, caption: [Detail der Verbindung]) <fig-vu>#figure(image-schema("VU-Skizze", highlight: "E1", detail-figure: (), width: 60%), kind: image, caption: [Das Element E1])Defined in lib/calc-engine-drawings.typ:881