Commands › Printing a drawing or an object
#image-legend Printing a drawing or an object
Prints a sheet's legend as an image: the symbols of the sheet's plans, each once, in a frame.
#image-legend(
: ,
: , : ,
:
)Hover an argument: what it does. Hover its value: every possible value. A click keeps the bubble open.
plansoptional · default autoThe plans whose symbols are listed.
plansoptional · default autoautoevery plan the sheet's viewports show"id"one plan("a", "b")several plansHover a value: its call and what it prints.
#image-legend(width: 60mm)
What it prints
#image-legend(plans: "Velo-Unterstand", width: 60mm)
What it prints
Prints the same as ("a", "b").
#image-legend(plans: ("Pavillon", "Velo-Unterstand"), width: 60mm)What it prints
Prints the same as "id".
Compiled once by Woodcore's engine, on the examples' frozen data.
kindoptional · default "position"The position plans' symbols, or the fire-protection plans' lines.
kindoptional · default "position""position"the position plans' symbols"fire"the fire-protection plans' linesHover a value: its call and what it prints.
#image-legend(plans: "Velo-Unterstand", width: 60mm)
What it prints
#image-legend(plans: "Treppenhaus", kind: "fire", width: 80mm)
What it prints
Compiled once by Woodcore's engine, on the examples' frozen data.
widthoptional · default 120mmThe width its columns share.
widthoptional · default 120mm120mmFree text, for example:
width: 60mmtitleoptional · default autoThe title above the legend.
titleoptional · default autoauto«Legend» in the report's languagenoneno title[…]your titleHover a value: its call and what it prints.
#image-legend(plans: "Velo-Unterstand", width: 60mm)
What it prints
#image-legend(plans: "Velo-Unterstand", width: 60mm, title: none)
What it prints
#image-legend(plans: "Velo-Unterstand", width: 60mm, title: [Symbole])
What it prints
Compiled once by Woodcore's engine, on the examples' frozen data.
The essentials
For an export sheetWoodcore sets it with a
#place of the sheet; it prints on its own too.Each symbol onceTwo plans drawing one symbol add their quantities.
Positions or fire
kind: "fire" gives the fire-protection plans' lines.Arguments
| Argument | Status | What it does, and examples |
|---|---|---|
| The line's arguments | ||
| optional | The plans whose symbols are listed. plans: "Velo-Unterstand"one planplans: ("Pavillon", "Geratehaus")several plans | |
| What is printed | ||
| optional | The position plans' symbols, or the fire-protection plans' lines. kind: "fire"the fire legendkind: "position"the positions' legend | |
| optional | The width its columns share. width: 60mma lengthwidth: 80millimetres | |
| Label and description | ||
| optional | The title above the legend. title: [Symbole]your titletitle: noneno title | |
Lines to copy
Minimal call
#image-legend()Complete call
#image-legend(plans: auto, kind: "position", width: 120mm, title: auto)Examples
#show: sheet.with(format: "A6", landscape: true)
#place(top + left, dx: 10mm, dy: 10mm, image-positions-plan("Velo-Unterstand", width: 60mm, title: auto)) <sheet-viewport>
#place(top + left, dx: 75mm, dy: 10mm, image-legend(width: 25mm)) <sheet-legend>#show: sheet.with(format: "A6", landscape: true, kind: "fire")
#place(top + left, dx: 10mm, dy: 10mm, image-legend(plans: "Treppenhaus", kind: "fire", width: 80mm)) <sheet-fire-legend>Defined in lib/sheet.typ:217