t

tbl

@preview

Complex tables, written concisely.

v0.1.1
MPL-2.0

Package Information

Last Updated
Minimum Typst Version
0.13.1
Authors
Max Rees
Categories
components

1. Get the package

Download the package using the TPIX CLI:

tpix get @preview/tbl:0.1.1

2. Import in your Typst file

Add this to your .typ file:

#import "@preview/tbl:0.1.1": *

Version History

0.1.10.13.1
c757de43a40d...
0.1.00.13.1
7e641a13a80a...
0.0.4
de30b544e9dc...
0.0.3
4302fb0b5829...

tbl.typ

This Typst library facilitates the creation of complex
tables in Typst using a compact syntax based on the tbl preprocessor for the
traditional UNIX TROFF typesetting system. There are also some novel features
that are not currently offered by Typst itself, namely:

  • Decimal point alignment (using the decimalpoint region option and
    N-classified columns)
  • Columns of equal width (using the e column modifier)
  • Columns with a guaranteed minimum width (using the w column modifier)
  • Cells that are ignored when calculating column widths (using the z column
    modifier)
  • Equation tables (using the mode: "math" region option)

Many other features exist to condense common configurations to a concise syntax.

For example:

#import "@preview/tbl:0.1.1"
#show: tbl.template.with(box: true, tab: "|")

```tbl
      R | L
      R   N.
software|version
_
     AFL|2.39b
    Mutt|1.8.0
    Ruby|1.8.7.374
TeX Live|2015
```

Many other examples and copious documentation are provided in the
README.pdf file.

The source repository also includes a
test suite based on those examples, which can be ran using the GNU make
command. See make help for details.