Skip to content
Help

Writing Typst documents

Create a Typst document in Drive. Classic view is the page; Code view is source plus the PDF proof. The PDF is what the document really looks like.

01

Classic view and Code view

  • Classic view — write on the page, no PDF pane. Headings, lists, tables, and math feel like a document. The visual editor is approximate — not a Typst layout engine.
  • Code view — Typst source on the left, PDF proof on the right. Switch from the layout menu in the header (or View).

Drive’s Visual editor choice opens Classic view. Typst document opens Code view. You can switch later.

02

Math with $

In Classic view, type $ to start an inline formula. Space or a second $ on an empty field makes display math. Escape, Enter (inline), or click outside commits. Backspace in a still-empty field restores the $ — so you can type dollar amounts like $500.

Click an existing formula to edit it. The √x chip (while editing) opens the math keyboard; keys write Typst, not LaTeX.

03

Chips and Edit in code

Unsupported Typst — #let, #show, imports, and similar — stays as a chip with the exact source. Use Edit in code to change it in the code editor. Do not expect Classic view to turn every function into formatted prose.

04

Preview vs PDF proof

Code view can show a fast browser preview, then the server PDF. The server PDF is the proof — download and print from that. Insert → New page (or Cmd/Ctrl+Enter in body text) inserts a page break.

05

Files and convert

Extra .typ files live inside the document. From main use #include. File → Convert to LaTeX… creates a new independent LaTeX document. Your Typst document stays unchanged.

Get started

Open a document and compile it

Sign in, create a Typst or LaTeX document in Drive, and watch the PDF build as you type.