Game theory in Typst

There are several good LaTeX packages for typesetting normal and extensive form games. In Typs t Universe there is game-theoryst. It uses tables for formatting normal form games. It may cause some problems if you have extra formatting rules for tables (bold header, alternating white-gray rows, etc.). I needed macros for consistently typesetting normal and extensive form games for my lecture on game theory, so I put together macros for doing it with CeTZ. Normal form games syntax is similar to game-theoryst. Extensive form games borrow looks from the excellent xgames package for LaTeX (https://github.com/Slyrk/xgames). I am looking forward to any comments and suggestions. It is work in progress. Once I feel it is fully usable, I will push it to Typst Universe.

You can get source code, manuals, and some examples at:

https://github.com/piotr-m-kuszewski/Pi_games_Typst


7 Likes