- % Lab dates for \VAR{paper} \VAR{period} \VAR{year}.
- \newcount\lecnum
- \newcount\weeknum
-
- \newcommand{\LabDate}[1]{%
- \lecnum #1\relax%
- \advance\lecnum by -1\relax%
- \ifcase\lecnum%
- \BLOCK{for lab, date in weeks.items()}
- \BLOCK{if not loop.first}\or \BLOCK{endif -}
- \VAR{date.day} \VAR{date.strftime("%B")}% lab \VAR{lab}
- \BLOCK{endfor}
- \else ????%
- \fi%
- }
-
- \newcommand{\LabDateByWeek}[2]{%
- \weeknum #1\relax%
- \advance\weeknum by -1\relax%
- \multiply\weeknum by 2\relax%
- \advance\weeknum by #2\relax%
- \LabDate{\the\weeknum}%
- }
-