WoodcoreMake the numbers vibe

Commands › The document and its citations

#caption-rules The document and its citations

Sets the captions the office's way: «Table 1 — The reference documents».

#caption-rules()

Hover an argument: what it does. Hover its value: every possible value. A click keeps the bubble open.

The essentials

A show rule#show: caption-rules; woodcore-document applies it already.
Word, number, titleIts kind's word in the report's language, a long dash, the title.
The office's formatIt wins over a config.typ saying otherwise.

Arguments

ArgumentStatusWhat it does, and examples
The line's arguments
required
The document whose captions are set.
#show: caption-rulesevery figure and table that follows
#figure(rect(width: 2cm, height: 1cm), caption: [Système statique])«Figure 1 — Static system»

Lines to copy

Minimal call

#show: caption-rules

Examples

Example 1
#show: caption-rules
#figure(table(columns: 2)[A][B], caption: [Les documents de référence])
The page caption-rules produces, level 2
Example 2
#show: caption-rules
#figure(rect(width: 2cm, height: 1cm), caption: [Système statique])
The page caption-rules produces, level 2

Defined in lib/calc-engine-core.typ:248