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