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

Bill Gee bgee at campercaver.net
Fri Sep 19 16:29:18 CEST 2025


I have been messing around with this for a few hours today.  TeX-Live 
has a package called datetime2 which appears to offer all the formatting 
options both Bruce and I would like to see.  However, I cannot make it 
work in Therion.

https://ctan.org/pkg/datetime2

If I add "\usepackage{datetime2}" to the "code tex-map" block in my 
thconfig file, then Therion throws several compile errors.  It basically 
says it does not have any idea what that command means.

Therion also does not understand \today and \currenttime.  These two 
should be part of a base set of packages.  The datetime2 package 
overrides them with new definitions.

===============
Bill Gee

On 9/19/25 07:29, Bill Gee wrote:
> 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
> 
> _______________________________________________
> Therion mailing list
> Therion at speleo.sk
> https://mailman.speleo.sk/listinfo/therion



More information about the Therion mailing list