This post is just a test on how typst visualisation packages can be used with the experimental html features, so don’t read into it too much!

Deckz: Poker Cards in Typst

The deckz package allows you to render playing cards using standard notation (e.g., AH for Ace of Hearts, 10S for 10 of Spades).

1. Card Formats

You can render cards in various sizes, from inline icons to large display cards.

2. Card Decks

The deck function creates a stack of cards. You can control the stack direction (angle) and how “messy” the pile is (noise).

Neat Stack

Messy Stack (Noise: 0.5)

3. Playing Hands

The hand function realistically fans out cards. You can specify the width and the arc angle.

A Winning Hand (Royal Flush)

A Random Hand (with Noise)

4. Heaps

The heap function scatters cards randomly within a defined area—perfect for representing a discard pile or a “shuffling” effect.