[Therion] Is it possible to reformat output of currentdate tex variable

bruce at tomo.co.nz bruce at tomo.co.nz
Fri Sep 19 04:56:55 CEST 2025


I have been using /currentdate to identify in an exported pdf map header
when the map was compiled.

 

    \edef\tmp{\the\thversion} \ifx\tmp\empty \else  %only write version and
date if version is not empty

      {\the\legendtextsize\si\the\thversiontitleA: \ss\the\thversiontitleB
\ss\the\thversion}

      {\the\legendtextsize\si\the\datetitle \si\the\currentdate\par}

    \fi

 

It takes the system date and format as input.  So I was using Windows 10 OS
settings to format the date how I preferred it, in the case, d Mmm YYYY.



Seems that Windows 11, my new OS does not have the ability to format the
system date in manner(s) that I find useful.



 

Is there a way for Therion to take the date provided by the OS and reformat
it?

Think I recall someone did offer up something a little cumbersome, but it
escapes me just now.  Anyway, perhaps there is a better way today?

(Run Therion in a Win10 VM?)

 

Bruce

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20250919/359b966b/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 9675 bytes
Desc: not available
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20250919/359b966b/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 9376 bytes
Desc: not available
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20250919/359b966b/attachment-0003.png>


More information about the Therion mailing list