Skip to content
Snippets Groups Projects
seasons.sty 1.43 KiB
Newer Older
  • Learn to ignore specific revisions
  • \newcounter{season}
    \setcounter{season}{\month}
    
      \setcounter{season}{\month}
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    \newcounter{temperature}
    
    
    \newcommand\season{}
    
    %%% State a Season's name.
    
    
    \newcommand\showSeason[1][\value{season}]{%
      \ifcase#1\or%
    
        Qualmea%
      \or%
        Atya%
      \or%
        Alassea%
      \or%
        Cantea%
      \or%
        Calea%
      \or%
        Verea%
      \or%
        Otsea%
      \or%
        Toldea%
      \or%
        Laiquea%
      \or%
        Quainea%
      \or%
        Minquesta%
      \else
        Ohta%
      \fi%
    }
    
    \newcommand\showAstroEvents{%
    
      \ifcase\value{season}\or%
    
        eclipse and quakes%
    
      \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%
        \LEFTcircle%
      \or%
        \Circle
      \or%
        \RIGHTcircle
      \else%
        \CIRCLE
      \fi%
    }