deployment

online

you can view it online on typst.app
just like overleaf on $\LaTeX$

offline

VScode

just install the typst-LSP and Tinymist Typst plugins

CLI

  • win: winget install --id Typst.Typst
  • macos: brew install typst
  • Rust: cargo install --locked typst-cli

quick intro

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#set page(width: 16cm, height: auto) 
#show heading.where(level: 1): set
align(center)
#show "Typst": set text(fill: blue)
= Title / 标题
A *quick* brown fox jumps over the lazy dog.
A quick brown fox jumps over the _lazy_ dog.
#underline[Typst has underline for:]
+ dropping through sky
- through the glass of the roof
- through the roof of your mouth
+ through the mouth of your eye
+ through the eye of the needle
```py
print('Hello Typst!')

typst have three mode:

  • code mode: start with #
  • math mode: covered with $..$, like $\LaTeX$ and markdown
  • recognition mode: covered with [..]
    other important grammars:
  • 着重强调(black):*aaaaa*
  • 普通强调:_emphasis_
  • code blocks: like markdown
  • heading: = heading
  • not enmoneous list: - ... like what in markdown
  • enmoneous list: + ...
  • formula: $ ... $
    support the unicode, and can directly replace into unicode, a.k.a., $\alpha$ is equal to $α$