banner
绘素

绘素的Blog

twitter
github
email

Typist related resources

Typst is an alternative to LaTeX, with its biggest advantage being simplicity and speed compared to LaTeX. It is particularly suitable for writing scenarios that require PDF output, such as assignments, documents, and slides.

Here are some useful resources that have been recently used, involving document, CV template, and slides template formatting.

Documents#

Typst Documents

Chinese Documentation

Chinese User Guide

CV Template#

A CV template that I personally like.

Typst CV Template

Slides Template#

Typst Slides Template

A set of slides templates that I personally like. Just by adding a paragraph at the beginning of the document, it can be converted into a PPT. The style is also quite beautiful. If the content is too long, it also supports automatic pagination, which is more convenient than using Marp (Markdown to PPT) before.

#import "@preview/slydst:0.1.0": *

// https://github.com/glambrechts/slydst

#show: slides.with(
  title: "title", // Required
  subtitle: none,
  date: none,
  authors: (),
  layout: "small",
  ratio: 16/9,
  title-color: none,
)

Typst to Markdown#

Typst has its own formula syntax, which is incompatible with the traditional LaTeX formula syntax. However, using Pandoc, Typst formulas can be converted to LaTeX formulas, and the document layout can also be converted to Markdown or LaTeX. Refer to:

  • Pandoc Documentation
  • pandoc -f typst -t latex main.typ -o main.tex
  • pandoc -f typst -t markdown main.typ -o main.md

Fonts#

The default English font in Typst is Linux Libertine, which I really like. However, the default Chinese font is Heiti. If you want to set it to Songti, you can use the font selection fallback mechanism and use the following command in the document:

#set text(font: ("Linux Libertine", "Songti SC"))

VS Code Extensions#

I mainly write Typst on VS Code and use the following extensions:

  • Typst LSP: Can be set to automatically compile and generate PDFs.
  • Typst Preview: Can open a new window on the right to preview the real-time compilation results.
  • Typst Companion: Supports some shortcuts, such as ctrl/cmd + b|i|u.
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.