Member-only story

A Typst primer, part I

Arindam Basu
5 min readNov 2, 2024

Typst is a rust based language to write plain text and export to PDF, PNG, and JPG. Using pandoc, you can export a typst document (extension: .typ ) to any other format that pandoc allows to transform. Typst itself does not provide html outputs but using pandoc you can export to html. You can also use adobe site to export the generated PDF to a Word document if you want. Use the following tool at Adobe:

Content authoring and typsetting using Typst

If you visit https://typst.app , create an account there, open a document, upload the following two files:

then copy and paste the code below to the ‘main.typ’ file, you will see a basic PDF as in the following figures of the three pages.

#align(center)[#text(size: 17pt)[ *A Typst Demonstration* ] ] // --- 1
#align(center)[#text(size: 14pt)[ _An Author_ ] ] // --- 2

//----- Text begins ---

= This is a first level heading

You can write text like `lorem` with `#lorem(n)` so a fifty word long…

--

--

Arindam Basu
Arindam Basu

Written by Arindam Basu

Medical Doctor and an Associate Professor of Epidemiology and Environmental Health at the University of Canterbury. Founder of TwinMe,

No responses yet