Newer
Older
\newcounter{season}
\setcounter{season}{\month}
\setcounter{cycle}{\month}
\roundUp{cycle}
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
\newcommand\cycleDesc{}
\newcommand\setCycle[2]{%
\setcounter{cycle}{#1}% Month
\ifnum\value{cycle}>6%
\addtocounter{cycle}{-6}%
\fi%
\ifnum\value{cycle}>3%
\addtocounter{cycle}{-3}%
\fi%
\addtocounter{cycle}{-1}%
\multiply\value{cycle} by 30%
\addtocounter{cycle}{#2}% Day
\divide\value{cycle} by 14%
\addtocounter{cycle}{0}%
}
%%% State a Cycle's name.
\newcommand\showCycle[1][\value{cycle}]{%
\ifcase#1%
\glsentrytext{cOne}%
\setTemperature%
\renewcommand\cycleDesc{\glsentrydesc{cOne}}%
\or%
\glsentrytext{cTwo}%
\setTemperature%
\renewcommand\cycleDesc{\glsentrydesc{cTwo}}%
\or%
\glsentrytext{cThree}%
\setTemperature%
\renewcommand\cycleDesc{\glsentrydesc{cThree}}%
\or%
\glsentrytext{cFour}%
\setTemperature%
\renewcommand\cycleDesc{\glsentrydesc{cFour}}%
\or%
\glsentrytext{cFive}%
\setTemperature%
\renewcommand\cycleDesc{\glsentrydesc{cFive}}%
\else
\glsentrytext{cSix}%
\setTemperature%
\renewcommand\cycleDesc{\glsentrydesc{cSix}}%
\fi%
}
%%% Remove %%%
\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%
}
\setcounter{temperature}{1}%
\or%
\setcounter{temperature}{0}%
\or%
\setcounter{temperature}{1}%
\or%
\setcounter{temperature}{2}%
\or%
\setcounter{temperature}{3}%
\else
\fi%
}
\newcommand\showTemperature{%
\ifcase\value{temperature}%
cold%
hot%
\else%
scorching%
\newcommand\showInterval[1]{%
\ifcase#1%