Typst Feature Demo

Blog posts are written in Typst. This is a demo of what we can do with it.

Typst Feature Demo

Here’s some text. Hello, World!

Rust is better than C++.

This is a Subheading

Here is some more text.

This is Another Subheading

With some more text inside it!

Code Blocks

Here is a code block.

fn add(a: &[f32], b: &[f32], out: &mut [f32]) {
for i in 0..a.len() {
out[i] = a[i] + b[i];
}
}

Equations

For a polynomial of degree two with coefficients , and , the roots of the polynomial are given by

Cetz Diagrams

Here is a diagram from the docs.

Here is a Lorenz Attractor made in pure Typst!

Callouts

Note: This is a note.
Tip: This is a tip.
Warning: This is a warning.
Success: Great success!

Tables

This is a table. At the time of writing, I don’t think this looks very good.

Backend M2 MacBook Pro Ryzen 9 7950X
Scalar 312 ns 289 ns
NEON 48 ns
AVX2 38 ns
AVX-512 21 ns