Sent from ProtonMail, encrypted email based in Switzerland. ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Thursday, September 19, 2019 6:01 AM, Tim via users <users@xxxxxxxxxxxxxxxxxxxxxxx> wrote: > On Thu, 2019-09-19 at 03:01 +0000, None via users wrote: > > > We can see > > %%Creator: MetaPost > > %%CreationDate: 2019.09.07:0852 > > But can we see it the document itself when viewed by gv? Or by > > okular/evince? > > Try opening it those program, and see what it shows you in their file > properties. > > ------------------------------------------------------------------------------------ > > uname -rsvp > Linux 3.10.0-1062.1.1.el7.x86_64 #1 SMP Fri Sep 13 22:55:44 UTC 2019 x86_64 > > Boilerplate: All unexpected mail to my mailbox is automatically deleted. > I will only get to see the messages that are posted to the mailing list. > Dear Sir, I know I can get the creation date that way, but what I want is to display the day and time inline in the graphic by metaposting the document and it auto updates. I am randomizing the content; ie. changing the equations, but I am using web browser only. I found in Alan Kennington's metapost drawings for a differential geometry book and as I am learning metapost by copying/pasting code, I wanted to see if I can get the date as he gets it. From his page: http://www.topology.org/tex/conc/mp/ We can get the source http://www.topology.org/tex/conc/mp/ps/x/1568982300.71.40.58.214/mp1.tar.bz2 And there is a makefile to create the metapost cookbook for the pictures in the main book. He has several macros, one that I use but in TeX/LaTeX is % Calculate the number of hours and number of minutes (24 hour format): \newcount\inthour \newcount\inthoursixty \newcount\intminute \inthour=\time \divide\inthour60 \intminute=\time \inthoursixty=\inthour \multiply\inthoursixty60 \advance\intminute-\inthoursixty % Text representations of hours and minutes (24 hour format): \def\zmonth{\ifnum\month<10\relax0\fi\number\month} \def\zday{\ifnum\day<10\relax0\fi\number\day} \def\zhour{\ifnum\inthour<10\relax0\fi\number\inthour} \def\zminute{\ifnum\intminute<10\relax0\fi\number\intminute} Typesetting date/time (local) of this document: {\tt \number\year-\zmonth-\zday\space\zhour:\zminute}. I modified last line to {\tt \number\year.\zmonth.\zday:\zhour:\zminute} or \texttt{\number\year.\zmonth.\zday:\zhour:\zminute} depending on (TeX/LaTeX)ing the document. I would like to use a macro like this but in a metapost document. I am using Troy Henderson's Metapost Previewer http://www.tlhiv.org/mppreview/ Since I am not allowed to install software on machines at work :( I am using web browser to display problems for students. The error is as follows: <quote> ! Extra tokens will be flushed. divide l.15 \divide \inthour60 </quote> I would like to include the day and time inline for displaying directly on web browser. I know in advance that I can use the viewers to get the date and time, but I would probably have to use livecd/livedvd/liveusb to bypass the restrictions :( Is it possible to get the running time using a macro/set of commands like the mpdemo.pdf book? Best Regards, Antonio _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx