I have to share presentation slides with a co-worker. They are created daily in ConTeXt.

Throughout the slides, I have placed \date, which is an important part of the slides, but that is the date when compiled.

I compile the slides at the start of a presentation, but my co-worker doesn't know how to compile them herself and might use them on different days.

Is there a way to put a "live" changing date in the slide, that shows today's date, no matter what day the PDFs are opened?

  • That "feature" requires a reader such as acrobat to process the tag and render the date of opening (many more secure reader will refuse to activate such scripting as a security risk, and many companies lock down such behaviour in acrobat) There are ways to simply over write the page content (eg insert a daily cover) but if the reader does not know what day of the week it is then its a poor show. Personally I have never seen the point of pages that simply confirm the current time Its bad enough that people trust the pdf publish/signed date as long as its not say built on independence day 1776.
    – user170109
    May 7, 2019 at 1:19
  • 2
    It's possible to make a file in the directory (.bat in Windows, .command in MacOS) that when double clicked calls the appropriate command line argument to compile the file. You could have your co-worker double click that at the start of the day to get the right date displayed. You do have to cross your fingers that there are no compilation errors with this method.
    – Teepeemm
    May 7, 2019 at 1:27
  • @Teepeemm +1 I love the suggestion to simplify however it would be much simpler to have 14 pdf pages compiled for the next fortnight and skip those not needed then there is no risk of any delay should it go wrong.
    – user170109
    May 7, 2019 at 1:37
  • There are some related suggestions here tex.stackexchange.com/questions/160731/… tex.stackexchange.com/… and a good relevant answer how to generate date in acrobat from David Purton here tex.stackexchange.com/questions/468470/… see also forums.adobe.com/thread/2129661
    – user170109
    May 7, 2019 at 2:01
  • Use package tdclock
    – Vaibhav
    May 7, 2019 at 2:35


You must log in to answer this question.

Browse other questions tagged .