WoodcoreMake the numbers vibe

Commands › The document and its citations

#doc-tables The document and its citations

Sets hand-written tables the engine's way: only the rules the table writes, the caption above.

#doc-tables()

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

The essentials

A show rule#show: doc-tables; woodcore-document applies it already.
The three rulesThick above the header, thin under it, thick under the last row: table.hline.
Like Woodcore'sA table by hand and one Woodcore wrote read alike.

Arguments

ArgumentStatusWhat it does, and examples
The line's arguments
required
The document whose tables are set.
#show: doc-tablesevery table that follows
#table(columns: 3, [Last], [2.5], [kN/m²])cells padded as the engine's

Lines to copy

Minimal call

#show: doc-tables

Examples

Example 1
#show: doc-tables
#figure(
  table(
    columns: (auto, 1fr),
    table.hline(stroke: 1pt),
    table.header([*Bauteil*], [*Beschreibung*]),
    table.hline(stroke: 0.5pt),
    [Dach], [Flachdach, extensiv begrünt],
    table.hline(stroke: 1pt),
  ),
  caption: [Bauteile],
)
The page doc-tables produces, level 2
Example 2
#show: doc-tables
#table(columns: 3, align: (left, right, right), [Last], [2.5], [kN/m²])
The page doc-tables produces, level 2

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