On this page

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++.

Does this change the commit hash correctly? Hmm.

This is a Subheading

Here is some more text.

This is Another Subheading

With some more text inside it!

Can I put images in here?

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

π‘₯=βˆ’π‘Β±π‘2βˆ’4π‘Žπ‘2π‘Ž.

Cetz Diagrams

Here is a diagram from the docs.

Removed to test build times

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. I think it looks ok.

BackendM2 MacBook ProRyzen 9 7950X
Scalar312 ns289 ns
NEON48 nsβ€”
AVX2β€”38 ns
AVX-512β€”21 ns