[Therion] Is it possible to reformat output of currentdate tex variable
Bill Gee
bgee at campercaver.net
Fri Sep 19 14:29:48 CEST 2025
I also have an interest in this. I have been using these TeX statements
in thconfig:
\the\legendtextsize\ Map generated at \the\time
\the\currentdate\medskip
\the\legendtextsize\ Therion version \the\thversion
Which results in a date output that looks like this:
Map generated at 51009/04/25
I am using Linux - Fedora 42. It would be nice to show the date in a
more readable format.
===============
Bill Gee
On 9/18/25 21:56, bruce at tomo.co.nz wrote:
> 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
>
>
> _______________________________________________
> Therion mailing list
> Therion at speleo.sk
> https://mailman.speleo.sk/listinfo/therion
More information about the Therion
mailing list