GitBucket
4.21.2
Toggle navigation
Snippets
Sign in
Files
Branches
1
Releases
Issues
1
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
nigel.stanger
/
Handbook
Browse code
Added lecture number comment
master
1 parent
576401a
commit
1cb2b28b1de09bde4ea2f2241c6bd75ef41edead
Nigel Stanger
authored
on 22 Jul 2021
Patch
Showing
1 changed file
calendar/teachingdates/templates/lecture.tex.j2
Ignore Space
Show notes
View
calendar/teachingdates/templates/lecture.tex.j2
% 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}% }
% 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")}% \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}% }
Show line notes below