Skip to content
Help

Documents and files

MATH Keys has two building blocks: documents you open to write and compile, and files that live inside a document.

01

Document

A document is what you create in Drive and open in the editor. Creating one automatically creates its main file (one-to-one with the document). Open a document to write and compile to PDF.

02

Document types

Each document has a fixed source format chosen when you create it:

  • LaTeX — classic math authoring; compiles with pdflatex. Use the visual editor, math keyboard, and full LaTeX packages.
  • Typst — modern markup; compiles with Typst (fast browser preview plus server proof). Same Drive and file model as LaTeX.

To move between formats, use File → Convert to LaTeX… or Convert to Typst… (creates a new independent document).

03

Files

A file is a member of a document — not its own Drive card. Examples: preamble.tex, ch1.tex, refs.bib, custom .sty / .cls (or .typ sidecars for Typst).

  • Every document starts with one file: main.
  • Add more from the editor (File → New file / Upload, the + tab, or the Files tree).
  • Switch between them with tabs. Use \input, \include, or \addbibresource (LaTeX) or #include (Typst) as usual — they compile with the document.

04

Import file (from another document)

To reuse a file without copying it by hand: File → Import file… → choose a document you can read → choose a file. The file appears in your document as read-only. Use Refresh on that file to pull the latest content from the source. Unlink removes only the link in this document — the source is unchanged.

05

Typical workflow

  1. 01Create a LaTeX or Typst document in Drive.
  2. 02Add chapter or bibliography files with File → New file / Upload.
  3. 03Reference them from main with \input / #include.
  4. 04Optionally Import file… for a shared .bib or preamble from another document.
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.