I somehow came up with the idea of rendering math and all other things of typst into a terminal. After weeks of copying and modifying typst-layout,here is what I’ve achieved so far:
Math
This is taken from the demo of the physica package. My layout style of math in the terminal took inspiration from Diagon. While the visual style is inspired by Diagon’s ASCII art, I have adapted most of the code from typst-layout’s paged export to work within the terminal’s constraints.
Fibonacci
underover
1 + 2 + … + 5
─────────────
0 + 1 + ⋯ +n
╰─────🮦────╯
n + 1 numbers
n + 1 numbers
╭─────🮧────╮
0 + 1 + ⋯ +n
0 + 1 + ⋯ +n
└──────────┘
n + 1 numbers
n + 1 numbers
┌──────────┐
0 + 1 + ⋯ +n
0 + 1 + ⋯ +n
╰──────────╯
n + 1 numbers
0 + 1 + ⋯ +n
🮡──────────🮠
n + 1 numbers
(this one is not image as I can only put 2 embedded medias in a post.)
It can also handle cases, grid, query, reference, text style and more.
Though, not all the features of typst are supported and I need to polish it for while, so I’m not going to release it today. But I will surely make it open-source when I’m happy with it.

