Introduction to Typst

Typst is a new markup-based typesetting system that is designed to be as powerful as LaTeX while being much easier to learn and use.

Some Typst settings

There is no start/end of the document like in LaTeX \begin{article| / \end{article} You can use the following to setup difference parameters of your page.

Setting page size and margin

#set page(
  paper: "a4",
  margin: (top: 2.2cm, right: 2.5cm, left: 2.7cm, bottom: 2.5cm),
)

Change text font and size

#set text(font: "Liberation Sans", weight: "regular", size: 11pt)

Justifying all paragraphs

#set par(justify: true, linebreaks: "optimized")

Change the indentation of list items

#set list(indent: 1em, tight: false)

Spacing between paragraphs

#show par: set block(spacing: 2em)

Vertical spacing

#v(6em)

Grid with address on right

#grid(columns: (3fr, 1.5fr), align(left)[~], align(left)[
  Some straße 44 \
  7XXXX Germany \
  Mobile: +49 106 000 000 000 \
  Email: prabin\@example.org
  #v(1em)
  // #datetime.today().display()
  April 11, 2023
])