Each week I prepare notes in TeX for a Wednesday class. Mostly I prepare the notes a couple of days before. Often the notes are copied and modified from previous notes. I add the date to the notes corresponding to the date of the class. Currently I do one of two things:
\todayand try to remember to compile the document on the day of the class; or
- write the date manually and try to remember to update the date from the previous notes.
Needless to say that most of the time I end up forgetting to update the dates with either of these strategies.
My question is: how could I insert the date of next Wednesday in the TeX document (or today's date if it is Wednesday)?
(I know the
advdate package but it seems to only allow advancing a fixed number of days.)