I think Custom calendar using TikZ is useful!
Asked
Active
Viewed 892 times
\usepackage{intcalc}
\newcounter{mycounter}
\setcounter{mycounter}{5}
\intcalcMod{\themycounter}{2} % =1
flagbelow the question). – Caramdir Apr 12 '11 at 16:04