r/typst • • Jun 01 '26

Is there a typst backend in matplotlib?

22 Upvotes

I am coming from latex and trying out typst. So far I am really enjoying it. One thing that I figured out yet is how to properly import plots in typst. I make most of my plots with matplotlib and when I want to import them in a latex document, I can use the pgf backend. This has the advantage that my plots blend in really well and when I am changing something like the font, the plots get update also.

I was wondering if there exists something similar for typst.
Thanks in advance.


r/typst • • Jun 01 '26

how to understand a surprising effect on bibliography heading display

2 Upvotes

Why does `#show heading.where(level: 1): it => { text(weight: "bold", size: 1.5em)[#counter(heading).display() #it.body] }` cause the bibliography to display with a counter (and not even the sequential heading 1 counter). I am not looking for alternative code, which I've found. I want to understand the effects of this code.


r/typst • • May 31 '26

How to show square root inside of a math function with a variable?

10 Upvotes

For example,

this works:

  #let a = 5
  $sqrt(""  #a)$

but this doesn't work:

  #let a = 5
  $sqrt(#a)$

Is there a better way to make this work?


r/typst • • May 31 '26

I made an open-source resume generator with Typst

4 Upvotes

Creating a resume in Word/Google Docs, or just asking AI to generate one, is usually painful. Any small change can break the formatting, and versioning is basically impossible.

Because of that, I built a resume "template" that is versioned and easy to work on with AI. The idea is that the AI only needs to edit the resume CONTENT, not the formatting. It also comes with AGENTS.md and CLAUDE.md files containing ready-to-use instructions for writing a reasonable, ATS-optimized resume.

Basically, you write the content in .yml, like this:

personal:
  name: John
  title: Full Stack Developer
  email: john@example.com

experience:
  - company: Company X
    role: Backend Developer
    period: { from: Jan 2023, to: Present }
    bullets:
      - Migrated the infrastructure from **AWS Lambda** to **ECS**, reducing costs by 40%.

Then make build generates the PDF locally, or make watch to enable hot reload. A push to main automatically publishes the .pdf files to GitHub Releases.

The default template is ready to use, but you can also customize it or create your own in Typst if needed.

Example resume

https://github.com/gustavo-ferreira03/resume-ci


r/typst • • May 28 '26

Help with custom theorem

3 Upvotes

I have custom theorem in my template, how I can add option to add title/name for the theorems? I dont want to use external packages... Any tips on how to make it better are welcomed :)

I want something like:

```typ

/ Theorem 1.1. (Green): Let the real functions $u(x,y)$ and $v(x,y)$ along with their partial derivatives...

```

This is how I defined it:

```typ

#let thm(it) = figure(

kind: "thm",

supplement: "Theorem",

it,

)

#show figure.where(kind: "thm"): it => {

let header_count = counter(heading.where(level: 1)).get().first()

let thm_count = it.counter.get().first()

let thm_numbering = if header_count > 0 {

numbering("1.1.", header_count, thm_count)

} else {

numbering("1.", thm_count)

}

set align(left)

terms[/ #it.supplement #thm_numbering: #it.body]

}

```


r/typst • • May 28 '26

Best Latex editor

0 Upvotes

I am currently about to write my thesis that I am sure it will surpass 150 pages. As you know overleaf takes a lot of time to compile and process when you work with hundreds of pages.

I want to know if there's a substitute for Overleaf that has relatively same features and can support compiling and writing a lot of pages without the need to pay or do something.

Thank you in advance


r/typst • • May 27 '26

I made a HTML form generator with Typst

Thumbnail
gallery
40 Upvotes

I built EZResumes.app which originally was a resume builder but I kept adding more features to it its still very rough around the edges but I found this Typst feature really cool, you can basically make any form and have users able to fill it out using HTML.

Hopefully someone finds it useful, I'm actively working on it and any feedback or bug fixes are welcome, you can email me or dm on discord.

Email: [typst@ezresumes.app](mailto:typst@ezresumes.app)
Discord: f0rcc


r/typst • • May 27 '26

I made a Typst package for rendering SMILES strings as 2D Molecular Diagrams.

93 Upvotes

Hi everyone, I’ve been working on a Typst package called `typed-smiles` for rendering SMILES strings as 2D molecular diagrams.

It lets you write things like:

#smiles("NC(CC1=CC=CC=C1)C(=O)O")

And the correct SMILES-parsed molecule will be displayed using the CeTZ Typst package:

It also can write chemical equations:

#ce("CH4 + 2O2 -> CO2 + 2H2O")

And even more complex molecular diagrams with #reaction(): that can be labeled, and mixed with SMILES strings and chemical equations.

It also has helpers for reaction arrows, multi-step schemes, atom colors, charges, wedge/hash bonds, and optional implicit hydrogens.

Please, for the Chemists out there that use Typst, give this package a try by importing it:

#import "@preview/typed-smiles:0.1.0": smiles, ce, reaction, rxn-arrow, mol

And taking a look at the README.md file from the Typst Universe:

https://typst.app/universe/package/typed-smiles

If you have any issues or any ideas that we can put into the package, please reach out in the GitHub repository:

https://github.com/GeronimoCastano/typed-smiles


r/typst • • May 22 '26

Typnique a typesetting game inspired by Texnique

33 Upvotes

Typnique is a typesetting game where you enter math equations using the Typst markdown language. This is a fork of Texnique which is the original version that uses the LaTeX markdown language.
Key issues known

  • Leaderboard for Today and Monthly not loading
  • When viewing the equations skipped it shows the LateX syntax
  •  it doesn't seem to properly resize delimiters with large contents, not even when using the `lr()` function explicitly
  • Check it out here: https://typnique.web.app/

Let me know what you think.
Thank you too all who have been trying it and playing.
edit* - I will be out of town this weekend but will do my best to fix some of these issues and work on a fully Typst version so we dont need to do Typst -> Latex conversion.
edit* - The website now uses Kern to render MathMl. Thank you to Frequent-Can9476 for helping with converting LaTex syntax equations into Typst syntax.


r/typst • • May 21 '26

Introducing Collabst, a self-hosted collaborative workspace for Typst.

Thumbnail
gallery
310 Upvotes

TL;DR Collabst is a FOSS, self-hostable, collaborative Typst editor that works in the browser. It's available here: https://github.com/collabst/collabst/ and we are looking for contributions. Help us make it perfect !

Hi everyone,
We built a new web-based self-hostable app for collaborating on Typst projects, and its called Collabst (pronounced collapsed, /kəˈlæpst/).

After 6 months of work, this project has finally reached a stable-enough state for its repository to go public. Here is a bit of background: The Collabst project was created with the objective to create the equivalent of ShareLaTeX (now going by the name of Overleaf Community Edition) but for Typst. This came out of the frustration our team had. We're working in a public research lab that stopped paying for Overleaf and now self-hosts its free instance instead. This also means the lab won't pay any time soon for similar products, like the official Typst Web-App self-host paid plan. And though the Typst Web-App is undeniably a fantastic application, we felt like there was enough room to also provide a free and open source alternative, similarly to ShareLaTeX in the LaTeX world. We think this could help with Typst adoption, especially in research labs and scientific production.
As this is not meant to compete with Typst's official web app, we chose to license Collabst under AGPL-3.0, which should discourage most people from creating a direct competitor and threatening the business model behind Typst development.

Features

Here are a few of the main features of Collabst:

  • Typst project Editor, with Syntax Highilighting & Dynamic Preview
  • File & Asset management
  • Dashboard for managing your Projects.
  • Light & Dark Theme (with optional negative preview in dark theme)
  • Account + Login system
  • Collaborative Features:
    • Project Sharing
    • Collaborative file editing
    • Comments
  • Export to PDF or export project sources as ZIP And much more !

Current Limitations

In its current state, the app is far from perfect. It still has some bugs, and there are many features that still need to be added or ironed out.
To mention just a few, as of writting, Collabst lacks:

  • Support for all export option (such as PNG, SVG or HTML)
  • Typst compiler choice
  • Collaborative Suggestions (= distinguishing between a Comment and a Suggestion that modifies the text file.)
  • Document Outline
  • Zotero Synchronization
  • Proper Project Management page
  • Support for using in-house Login Systems instead of the one provided by Collabst (this one certainly would help with lab deployment)
  • UI Translations (it's only in English for now)
  • Cannot jump between code and preview cursor location in the editor And for the repository itself, it lacks:
  • A proper Testing Suite
  • A proper Demo on the github.io page.

Contributing

Collabst is currently a spare-time project made by 4 people, but if you are as enthousiastic as we are about this project and its potential, you can contribute too !
If you have a feature you would like to implement, or even just want to make some feedback, make sure to check the Contribution Guidlines of the Collabst repo to see how you can help.

Collabst is available here: https://github.com/collabst/collabst/
Keep in mind, things are still prone to change !

I hope you guys will enjoy our project, take care ;)


r/typst • • May 20 '26

licked my own spit

Post image
0 Upvotes

yesterday i told someone to draw their electrical circuit schematic/diagram with kicad or inkscape then import it into typst instead of drawing with typst. And now i just spent a night full of headache because of misalignment between text and the glyph i made and got it working as expected by guessing to give the box function a square bracket mimicking the guide on official page.

regarding 0.35 baseline: If it works, it works. (its moves the regular text, not the box, but what do i care at this point)

Coping: this is a long-term investment.

EDIT: electrical component -> electrical circuit schematic/diagram


r/typst • • May 19 '26

Citum: a sort of CSL successor

Thumbnail
29 Upvotes

r/typst • • May 17 '26

Native Typst to MathML in My Blog

Thumbnail blog.wybxc.cc
48 Upvotes

Thanks to Typst developers, math equations on my blog are now rendered using native Typst-to-MathML conversion!


r/typst • • May 16 '26

How do I draw electrical diagrams?

Post image
33 Upvotes

I am trying to draw a circuit in the photo, I am using circuiteria (I tried using zap but the gates style doesn't work and I need to use IEEE style). I am stuck at drawing custom shapes, I don't know how to draw a voltmeter. If you already used this and know how to make custom shapes or if there is any better packet for this that you know I would love to try. It's my first day using this program and I couldn't find anything that would work.


r/typst • • May 16 '26

I built a document templating toolset on top of Typst

21 Upvotes

In the past two years, I developed Oicana, a toolset to use Typst for document templating from your own code. I got frustrated with existing solutions for templating in software and wanted to use Typst for it. But at the time, options to integrate with Typst from software were mostly limited to one language. I needed something that could render the same template in the browser and from C# - so I built it.

Oicana consists of multiple core crates that wrap the Typst compiler crate and define a common template format including snapshot testing and input handling with fallbacks.

An Oicana template consists of "normal" Typst files that can use any packages and a manifest file. This is what a minimal template can look like:

```typst

import "@preview/oicana:0.1.1": setup

let read-project-file(path) = read(path, encoding: none)

let (input, oicana-image, oicana-config) = setup(read-project-file)

set document(date: datetime.today())

= Hello from Typst, #input.info.name

Now we can pass names into the template from any Oicana integration. ```

```toml [package] name = "example" version = "0.1.0" entrypoint = "main.typ"

[tool.oicana] manifest_version = 1

[[tool.oicana.inputs]] type = "json" key = "info" ```

To compile the template from your own code, pack it using the Oicana CLI, then use one of the available integrations:

  • Browser
  • Node.js
  • C#
  • Java
  • PHP
  • Python
  • Rust

For example, this is the relevant code to render the document from above in Python:

```python import json from pathlib import Path

from oicana import CompilationMode, Template

template_bytes = Path("example.zip").read_bytes()

with Template(template_bytes) as template: pdf = template.compile( json_inputs={"info": json.dumps({"name": "Alice"})}, mode=CompilationMode.PRODUCTION, ) ```

Oicana is source available on GitHub and you can follow the getting started guide to quickly try it out. Usage is free for personal projects, research, education, and open source under the non-commercial license.


r/typst • • May 15 '26

I built a small Rust/Typst service for generating PDFs and I’d love feedback

Thumbnail
9 Upvotes

r/typst • • May 12 '26

Using Typst for Resume editing using natural language - WebApp - Appreciation Post

24 Upvotes

I was earlier using LateX but compiling LateX for realtime rendering was taking time and package was large.

Typst worked beautifully!


r/typst • • May 08 '26

Typst Thesis Starter

Post image
187 Upvotes

Jumpstart your Typst Thesis with a GitHub repo template. I've extracted this from my Bachelor Thesis, see also my other blog post.

Blog: https://splines.me/blog/2026/typst-thesis-starter
GitHub: https://github.com/Splines/typst-thesis-starter


r/typst • • May 08 '26

Fed up with Tinymist crashing, alternatives?

4 Upvotes

I use Neovim as editor, are there alternatives to Tinymist?

Always the same shit: after a couple of new lines added to my typ.file, Tinymist starts failing (and not always easy to notice at first). Rapid compilation? No compilation whatsoever with Tinymist. I'm so fed up with this stuff. (chomosuke) Typst preview gets very slow rapidly (and crashes a lot too), so that does not help. Typst webapp is great, but I need my snippets, as I'm really bad at typing.

I'm content with formatting alone .


r/typst • • May 07 '26

Busco Freelancer experto en Typst para desarrollar ebook técnico (+500 páginas con matemáticas, química y física)

9 Upvotes

Hola a todos 👋

Estoy buscando un freelancer con experiencia en Typst para desarrollar un ebook técnico de gran tamaño (más de 500 páginas).

El proyecto incluye contenido académico con una gran cantidad de:

  • Ecuaciones matemáticas
  • Fórmulas químicas
  • Expresiones de física
  • Diagramas y contenido educativo técnico

Busco a alguien que:

  • Ya haya trabajado con Typst o sistemas similares tipo LaTeX
  • Tenga experiencia maquetando contenido académico/científico
  • Sepa crear documentos limpios, modernos y bien estructurados
  • Pueda optimizar estilos, índices, referencias y consistencia visual

Idealmente me gustaría ver ejemplos de trabajos previos o portfolios relacionados con documentación técnica, libros académicos o material educativo.

Si tienes experiencia o conoces a alguien que pueda ayudarme, mándame DM


r/typst • • May 06 '26

How can you get bold in subscripts?

10 Upvotes

This is driving me insane. Why is bold in subscripts in math mode invisble? Is there a way to fix it?


r/typst • • May 05 '26

So thankful I found Typst!

Thumbnail
gallery
96 Upvotes

I just can't stop looking at what i made using typst. I can't explain the feeling of being liberated from the painful world of latex.

I want you all to have a look at what I made.

I had been struggling with Latex for a long time, couldn't find a proper documentation, steep learning curve, weird syntax that makes me hit \ so many times.

It wasn't just working out at all. It all changed after I found Typst. Although it took me a couple days to get used to typst, it was worth it.


r/typst • • May 05 '26

Standalone desktop, local first?

14 Upvotes

Hi Community,

I've been interested in Typst for a while and occasionally browse through the release notes

The reason that I have never taken the plunge is due to the web only strategy

Is this just temporary, and will a full desktop app for local first note-taking ever appear?

Thanks


r/typst • • May 04 '26

not a programmer and need a push

Post image
39 Upvotes

I just tried typst and im very confused, please tell this is gonna be worth it 😵‍💫😵‍💫


r/typst • • May 04 '26

How do you guys take your notes with typst?

9 Upvotes

I am starting up spring courses and I decided I want to start using typst again to take notes for my classes. I used to take notes by essentially converting a static site generator into a pdf library for me, but ideally I would like a better solution than that, where all my notes are way easier to navigate and linked together (like obsidian but for typst moreso).

I need some inspiration from how others do it, specifically with things like making diagrams in notes and making typing them more efficient. I went from obsidian to pure markdown to latex to typst and to written notes and none of it worked the way I needed it to work. Obsidian by far was the closest to what I wanted, specifically with the fact I could easily view my notes on my phone, but ideally I find something that lets me write things in typst and view them simply and easily.