Newer
Older
\newcounter{season}
\setcounter{season}{\month}
\newcounter{cycle}
\setcounter{cycle}{\year}
\multiply\value{cycle} by 3
\addtocounter{cycle}{0}
\newcommand\showSeason[1][\value{season}]{%
\ifcase#1\or%
\fi%
}
\newcommand\showAstroEvents{%
\or%
\or%
eclipse%
\or%
\or%
\or%
\or%
\or%
\or%
\or%
\or%
eclipse%
\else%
\fi%
}
\newcommand\showTemperature{%
\ifcase\value{temperature}%
cold%
\or%
mild%
\else%
hot%
\fi%
}
\newcommand\setTemperature{
\ifcase\value{season}\or%
\setcounter{temperature}{1}%
\or%
\setcounter{temperature}{1}%
\or%
\setcounter{temperature}{0}%
\or%
\setcounter{temperature}{1}%
\or%
\setcounter{temperature}{2}%
\or%
\setcounter{temperature}{1}%
\or%
\setcounter{temperature}{1}%
\or%
\setcounter{temperature}{1}%
\or%
\setcounter{temperature}{2}%
\or%
\setcounter{temperature}{1}%
\or%
\setcounter{temperature}{0}%
\else
\setcounter{temperature}{1}%
\fi%
}
\setTemperature
\newcommand\showInterval[1]{%
\ifcase#1%