Member-only story
A Typst primer, part I
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:
- kiwi.png (download it from here: https://www.needpix.com/photo/178530/kiwi-bird-new-zealand-silhouette-flightless-animal-symbol-wildlife-national)
- refs.yml (you can see the contents of that file in the code box below)
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…