summaryrefslogtreecommitdiffstats
path: root/trivia/sensommarfest/tex/header.tex
blob: 67a98b54f82a773e8ff86a3d4cc9847c7b03eb83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
\usepackage{enumitem}

\makeatletter
\newcommand*{\triviaenum}[1]{%
  \expandafter\@triviaenum\csname c@#1\endcsname%
}

\newcommand*{\@triviaenum}[1]{%
  $\ifcase #1 \or 1. \or \textrm{X}. \or 2. \or \textrm{\O}. %
    \else\@ctrerr\fi$%
}
\AddEnumerateCounter{\triviaenum}{\@triviaenum}{3}
\makeatother

% Ø.%