b

booktabs

@preview

Table styling, inspired by LaTeX's Booktabs package.

v0.0.4
LGPL-3.0-or-later

Package Information

Last Updated
Minimum Typst Version
0.13.1
Categories
componentslayout

1. Get the package

Download the package using the TPIX CLI:

tpix get @preview/booktabs:0.0.4

2. Import in your Typst file

Add this to your .typ file:

#import "@preview/booktabs:0.0.4": *

Version History

0.0.40.13.1
2a30c67aee74...
0.0.30.13.1
a17e796dd2ce...
0.0.20.13.1
130283fba2e1...
0.0.10.13.1
ab4ef120264e...

Booktabs

Booktabs is a Typst package inspired by the fabulous LaTeX's Booktabs package.

Usage

For information, see the online manual.

To use this package, simply add the following code to your document:

#import "@preview/booktabs:0.0.4": *
#show: booktabs-default-table-style

#table(
  columns: 3,
  align: (left, center, center),
  toprule(), // added by this package
  table.header(
    [Substance],
    [Subcritical \ °C],
    [Supercritical \ °C],
  ),
  midrule(), // added by this package
  [Hydrochloric Acid],
  [12.0],
  [92.1],
  [Potassium Hydroxide],
  table.cell(colspan: 2)[24.7],
  cmidrule(start: 1, end: -1), // added by this package
  [Sodium Myreth Sulfate],
  [16.6],
  [104],
  bottomrule() // added by this package
)

Contributing

See https://github.com/bzindovic/booktabs/blob/main/docs/CONTRIBUTING.md.