Study and Productivity

Typst for Beginners: Write and Export PDFs in Your Browser

Learn Typst markup, set rules, templates and multi-file projects, and export PDFs with the real Typst compiler running locally in a browser tab.

Saizul Amin
Saizul Amin2 Nov 2026 · 3 min read
Typst for Beginners: Write and Export PDFs in Your Browser

Typst is a newer typesetting system that produces documents of LaTeX quality from markup that looks much closer to Markdown. It compiles in milliseconds, its error messages point at the exact problem, and its scripting language is a normal programming language rather than a macro system. The Typst Document Editor runs the Typst compiler in your browser, so you can try it, write real documents and export PDFs without creating an account anywhere.

The basic markup

A line starting with an equals sign is a heading, two equals signs make a subheading, and so on. A dash starts a bullet item and a plus sign starts a numbered item. Text between asterisks is strong, text between underscores is emphasised, and backticks mark code. Inline maths goes between dollar signs; if you leave a space after the opening dollar and before the closing one, the formula is set as a centred display equation. These few rules cover most everyday writing.

Set rules change the look

Instead of styling each heading by hand, Typst uses set rules at the top of the file. A page rule chooses the paper size, margins and page numbering. A text rule chooses the font size and language, which also controls hyphenation. A heading rule can turn on numbering such as 1.1, and a paragraph rule can justify text. Because the rules apply to everything after them, a document's whole look sits in a handful of lines you can copy between projects.

Show rules and templates

Show rules go further and transform elements. The CV template in the editor uses one to draw a thin line under every heading. The report template shows the most useful pattern of all: a separate file defines a function that takes a title and an author, sets up the page and prints a title block, and the main file applies it with a single show line. Splitting style from content this way means your next report starts with one import line instead of a page of settings.

Figures, tables and references

Wrap a table or an image in a figure call with a caption and it gets a number automatically. Put a label in angle brackets after it and refer to it elsewhere with an at sign followed by the label name; Typst writes the right number and keeps it correct as you add more figures. The same works for equations and headings.

Working with several files

The editor keeps a project of text files, images and data files. Use the plus tab to add a chapter, include it from the main file, and keep a template file that the main file imports. Images you open appear in a list with an Insert button that writes the image call for you. Projects are stored in your browser between visits, can be downloaded as a ZIP, and on Chrome or Edge can be opened from and saved back to a real folder on your disk.

When something goes wrong

If you type something Typst cannot understand, the compiler's message appears above the preview in red, and the last good preview stays visible. Typst messages usually name the problem directly, such as an unclosed delimiter or an unknown variable, so they are worth reading in full. Fix the line and the preview returns within a second.

Exporting

Export PDF writes the same file the desktop compiler would produce, with selectable text and embedded fonts. Export SVG saves the pages as vector graphics, handy for putting a formatted page into a slide.

What to keep in mind

The compiler and fonts are downloaded the first time, about 29 megabytes plus fonts, and cached after that. Packages from the online Typst registry are not fetched by this editor, so copy a package's source files into your project if you need one. Your own font files are not loaded either; the default Typst fonts cover Latin, Greek and Cyrillic text and a maths font. For most essays, reports, letters and CVs that is all you need.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages