Created
April 23, 2015 10:45
-
-
Save dunz0r/61bd55a9f220bed1b00e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \documentclass[10pt]{article} | |
| \usepackage{xintexpr} | |
| \def\roundandprint #1{\xinttheiexpr #1\relax } | |
| % This will be true as long as we don't have more than one party per year | |
| \def\ partynumber{\xintexpr \year - 1990 \relax} | |
| \begin{document} | |
| \roundandprint{\partynumber} | |
| \end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment