Typst and other alternatives to LaTeX

Ah yes I didn’t notice you were the one who linked it!

No they shot it down because it was not technically the solution they wanted. And as a side remark they complained that the PR included non-open-source code extracted from the website.

4 Likes

It’s funny that Typst is yet to become important (or referenced) enough to earn its place in Wikipedia.

4 Likes

What would be the recommended typst package for slides? Kind of like beamer in LaTeX.

(For now, a simple 5 page presentation in 20 minutes with some math and code, no interaction, linear structure. Being able to customize colors and insert a logo would be nice.)

I’ve tried polylux and it was quite simple!

It’s not hard to create your own theme from scratch, but you can also start from or directly use existing ones (such as basic-polylux – Typst Universe or metropolis-polylux – Typst Universe).

2 Likes

I think touying – Typst Universe is currently the foremost slides package. It is based on polylux, but is more actively developed (though polylux also seems to be worked on.)

7 Likes

Thanks for the tips, touying worked well for my purposes.

My kvetching above about the docs may come across as negative, so here are some things I like about typst:

  1. very easy to just #import extensions, even lets you specify the versions. no need to download packages
  2. compilation is really fast
  3. package have no-frills defaults, mostly. eg I was pleasantly surprised that touying does not include a header, footer, nav buttons, and other items in the kitchen sink by default in the “simple” style (cf beamer, where I have to start disabling a lot of stuff to get clean look)
  4. defining colors with rgb(#whatever), in contrast to the tikz madness of A!blend!B which was always driving me crazy
  5. it is a programming language with a thin document-friendly surface syntax and an intuitive code syntax like almost every language in the Algol 60 family. let and parentheses and similar.
17 Likes

For these simple requirements you could as well roll your own “slide system” :slight_smile:

// Paper can also be presentation-16-9
#set page(paper:"presentation-4-3", numbering: "1", number-align: right)

// Base text size
#set text(24pt)

// New slide for each level 1 heading
#show heading.where(level: 1): it => pagebreak(weak: true) + it
// More space under headings
#show heading: set block(below: 1em)
// Fancy color for headings
#show heading: set text(rgb("#006699"))

= Slide title

#lorem(20)

$
  a^2 + b^2 = c^2
$

#lorem(10)

= Another slide title

#lorem(20)

(For the logo it depends if you want it on a title page or on every slide.)

14 Likes