Updated ISO LaTeX template
1 parent 8829821 commit 304d05b2aa35900c51a0f52e66c3173cc445522c
Nigel Stanger authored on 3 Feb 2021
Showing 1 changed file
View
6
calendar/teachingdates/templates/iso.tex.j2
% ISO-8601 calendar weeks for \VAR{year}.
\BLOCK{for week, date in data.items()}
\BLOCK{set eow = date|eow(end_of_week)}
\newcommand{ISOWeek\VAR{week|num2words}}{\VAR{date.isoformat()}--\VAR{eow.isoformat()}}
\BLOCK{for week, date in weeks.items()}
\newcommand{ISOWeek\VAR{week|num2words}}{\VAR{date.isoformat()}--\VAR{(date + eow_offset).isoformat()}}
\BLOCK{endfor}