All articles

Typst vs Word and LaTeX: Document Typesetting Without Chaos

Typst vs Word and LaTeX: Document Typesetting Without Chaos

Word works well while a document is short and edited by one person. The problem starts around page forty: add one paragraph to a thesis, and every image, caption, and page break below it shifts. I have dealt with exactly that. Instead of improving the content, you spend your time reconstructing layout that looked correct a minute ago.

Typst uses a different model: the document is stored as a plain-text source file, and a compiler builds the final PDF. It does not feel like “another Word.” It feels like a small, understandable software project. This guide explains how to start using Typst, where it is genuinely more convenient than Word and LaTeX, and why the older tools still have valid use cases.

Why Word documents drift out of shape

In a visual editor, content and presentation are tightly coupled. A line break can push an image onto another page, while a missing font or another editor version can change the entire layout. That is why people distribute the final result as PDF: it freezes the output, but is poor as an editable source.

Typst separates source from artifact. A .typ file contains text, styling rules, references to images, and bibliography data. A build command recreates the PDF. If the source, fonts, and compiler version are identical, the result can be reproduced, reviewed in Git, and built in CI.

This is particularly useful for books, documentation, reports, résumés, and academic work. The model also fits the open-source tools I use every day: your content is not trapped in an opaque binary file, and almost any editor can open the source.

Typst, Word, or LaTeX: which one should you choose?

Task Word LaTeX Typst
Write a short letter quickly Convenient Excessive Possible, but unnecessary
Maintain a large document with one style Requires strict style discipline Excellent Excellent
Advanced mathematics and established journal templates Limited Most mature ecosystem Capable, but younger ecosystem
Git, review, and readable diffs Awkward for .docx Convenient Convenient
Learning curve Lowest High Moderate
Mandatory editable .docx delivery Suitable Not directly suitable Not directly suitable

Typst should not be marketed as a universal editor killer. If an organization requires an editable .docx with supervisor comments, fighting the process will cost more than opening Word. If a project has lived on LaTeX for decades and depends on a publisher-specific package, migration may not pay off either. For a new document ultimately delivered as PDF, however, Typst is often the calmer option.

Installing Typst and building the first document

You can try the language in the official web editor without installing anything. For offline work, install the CLI from your distribution or an official release. The current documentation lists these options:

# macOS
brew install typst

# Windows
winget install --id Typst.Typst

# Nix — temporary environment
nix-shell -p typst

On Linux, package names and version freshness vary by distribution, so check the official installation section or Repology. Once installed, create report.typ:

#set page(margin: 2cm)
#set text(font: "Libertinus Serif", size: 11pt)
#set heading(numbering: "1.")

= Experiment results

This is normal text, _italic text_, and *bold text*.

== Formula

$ sum_(i=1)^n i = (n(n + 1)) / 2 $

#figure(
  image("chart.png", width: 80%),
  caption: [Measurement results],
)

Build it with:

typst compile report.typ

The compiler creates report.pdf next to the source. While editing, watch mode is more convenient:

typst watch report.typ

It rebuilds after each save and uses incremental compilation. This is where Typst feels much more responsive than a heavy LaTeX toolchain: edit the source and see the page almost immediately.

Do not duplicate formatting in every chapter

A common beginner mistake is to specify fonts, spacing, and dimensions next to every element. That recreates Word's maintenance problem in text form. Put shared rules into one template or module instead:

#let project(title: "", author: "", body) = {
  set page(margin: (x: 2.2cm, y: 2cm))
  set text(size: 11pt)
  set heading(numbering: "1.1")

  align(center)[
    #text(18pt, weight: "bold")[#title]
    #author
  ]

  body
}

#show: project.with(
  title: "Performance Study",
  author: "ZProger",
)

The design now changes in one place. The same approach works for reusable cards, tables, warnings, and title pages. Data for large tables can come from CSV, JSON, or YAML instead of hundreds of manually copied cells.

Collaborating as if the document were code

Typst sources work naturally in Git. One author can edit chapter one while another works on chapter two, and a pull request combines the changes. You can see who altered a sentence, formula, or reference. Readers can report an error through an issue, and CI can build a PDF for every release.

Reproducibility is not automatic, though. I would include the following from day one:

  • .typ sources and image assets;
  • licensed project fonts or exact installation instructions;
  • a pinned Typst version in CI;
  • the build command in README.md;
  • a check for missing links and resources.

Avoid local absolute paths such as /home/user/Pictures/chart.png. No collaborator has that path. Keep resources in the project and reference them relatively.

Using AI without generating unverified clutter

Typst combines well with AI. A model can draft a table, a reusable component, or the initial template. Giving it the entire document and publishing the first generated PDF is still a bad workflow. Models invent functions, use outdated syntax, and fabricate bibliography entries.

A safer process is straightforward:

  1. Define the document structure and page requirements yourself.
  2. Ask AI for small, isolated components.
  3. Compile every fragment immediately instead of waiting for 200 lines.
  4. Verify functions against the official reference.
  5. Review content, formulas, and sources separately from layout.

This is the same principle I use in my AI-assisted learning workflow: the model accelerates work that can be checked; it does not replace checking.

Where Typst is not the best option yet

The ecosystem is young. LaTeX has more publisher templates, specialized packages, and existing answers for obscure scientific requirements. A complex .docx cannot be transformed into clean .typ source with one reliable click. The web editor is convenient for collaboration, but sensitive documents may be better compiled locally with an explicit storage policy.

Fonts are another trap. If two machines have different font versions, line wrapping may differ. When pixel-identical output matters, pin fonts with the build environment and verify the generated PDF in CI.

A realistic migration path

Do not begin by moving a 500-page book or your final thesis. Choose a three-to-five-page report, résumé, or technical note. Build a title page, headings, a table, one equation, one figure, and a bibliography. Then clone the project on another machine and verify the build.

If one evening gives you readable source and a repeatable PDF, extract the style into a template and reuse it. If the client still exchanges .docx files throughout the process, keep Word for that workflow. Typst is valuable not because it is fashionable, but because it stops you from repairing the same formatting by hand.

Sources and further reading