\documentclass{iditacard} \cardtype{${type}} \rarity{${rarity}} \deck{${deck}} \begin{document} \begin{card} \art{${image}} % if costs["energy"] > 0: \energy{${costs["energy"]}} % endif % if costs["health"] > 0: \health{${costs["health"]}} % endif % if costs["risk"] > 0: \risk{${costs["risk"]}} % endif \name{${name}}