Maybe you could take inspiration from Bob Nystrom (of "Crafting Interpreters" etc) for typesetting :)