Handbook / calendar /
Nigel Stanger authored on 22 Jul 2021
..
teachingdates Fixed filename quotes in error output 3 years ago
.gitignore • Split calendar script configuration out into a separate (untracked) script. 10 years ago
Makefile Removed now obsolete CVS substitutions. 11 years ago
README.md Updated README 3 years ago
calendar_schema.psql - Added Section.Continuation. 15 years ago
generate_calendar.php Automated calculation of current year and first Monday. 5 years ago
generate_lecturedates.php Automated calculation of current year and first Monday. 5 years ago
README.md

Rolling over to a new year

Initial setup

Copy teachingdates/config/config.yml to ~/.config/generate_dates and configure to suit.

Teaching calendar dates (LaTeX)

For example:

python3 -m teachingdates --format latex --style calendar --teaching-period S1 > calendar_weeks.tex

or if you don’t want to type quite so much:

python3 -m teachingdates -f l -s c -t S1 > calendar_weeks.tex

Move calendar_weeks.tex to somewhere sensible in your user texmf tree.

Teaching calendar dates (XML)

python3 -m teachingdates --format xml --teaching-period S1 > paper-calendar-dates.xml

Move paper-calendar-dates.xml into the modules directory of the XML framework.

(Note: --teaching-period isn’t actually required, but the configuration code hasn’t yet been fixed to ignore it.)

Lecture dates

For example:

python3 -m teachingdates --format latex --style lecture --paper INFO201 --teaching-period S1 > lecturedates.tex

or if you don’t want to type quite so much:

python3 -m teachingdates -f l -s l -p INFO201 -t S1 > lecturedates.tex

Move lecturedates.tex to wherever it’s needed.