41 lines
613 B
TeX
41 lines
613 B
TeX
\ifextras
|
|
\def\nstars#1#2{}
|
|
\def\startimes#1{}
|
|
\def\onestars#1{}
|
|
\def\threestars#1#2#3{}
|
|
\else
|
|
\def\nstars#1#2{%
|
|
\ifnum #2 > 0%
|
|
\def\starcolor{\color{#1}}%
|
|
\count255=1%
|
|
\loop{%
|
|
\starcolor $\bigstar$%
|
|
}%
|
|
\ifnum \count255 < #2%
|
|
\advance\count255 by 1%
|
|
\repeat%
|
|
\fi%
|
|
}
|
|
|
|
|
|
\def\startimes#1{
|
|
{\color{ogrape} $\bigstar \times #1$}
|
|
}
|
|
|
|
\def\onestars#1{
|
|
\nstars{ogrape}{#1}
|
|
}
|
|
|
|
\def\threestars#1#2#3{
|
|
\nstars{white}{#1}\nstars{ogrape}{#2}\nstars{white}{#3}
|
|
}
|
|
|
|
|
|
% Not used, commented out.
|
|
\def\difficulty#1#2{
|
|
\textbf{Difficulty:} \stars{#1}{#2} \par
|
|
\vspace{1mm}
|
|
}
|
|
\fi
|
|
|