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).
3. Playing Hands
The hand function realistically fans out cards. You can specify the width and the arc angle.
4. Heaps
The heap function scatters cards randomly within a defined area—perfect for representing a discard pile or a “shuffling” effect.
The Discard Pile