<div dir="ltr"><div dir="ltr">On Fri, Sep 19, 2025 at 4:29 PM Bill Gee <<a href="mailto:bgee@campercaver.net">bgee@campercaver.net</a>> wrote:</div><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><a href="https://ctan.org/pkg/datetime2" rel="noreferrer" target="_blank">https://ctan.org/pkg/datetime2</a></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
If I add "\usepackage{datetime2}" to the "code tex-map" block in my <br>
thconfig file, then Therion throws several compile errors. It basically <br>
says it does not have any idea what that command means.<br>
<br>
Therion also does not understand \today and \currenttime. These two <br>
should be part of a base set of packages. The datetime2 package <br>
overrides them with new definitions.<br></blockquote><div><br></div><div>Therion uses Plain TeX format, so LaTeX packages don't work.</div><div><br></div><div>Plain defines only the following numeric variables: \day, \month, \year.</div><div>You can use these directly or combine the \month with a series of \ifs to print a month name (AI can help to write this, don't forget to specify it should be used in Plain TeX).</div><div><br></div><div>Another option is the texdate package (<a href="https://ctan.org/tex-archive/macros/generic/texdate">https://ctan.org/tex-archive/macros/generic/texdate</a>) that should work with Plain (see chapter 8 in its documentation).</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> On 9/18/25 21:56, <a href="mailto:bruce@tomo.co.nz" target="_blank">bruce@tomo.co.nz</a> wrote:<br>
>> I have been using /currentdate to identify in an exported pdf map <br>
>> header when the map was compiled.<br>...<br>
>> It takes the system date and format as input. So I was using Windows <br>
>> 10 OS settings to format the date how I preferred it, in the case, d <br>
>> Mmm YYYY.<br>
>><br>
>> Seems that Windows 11, my new OS does not have the ability to format <br>
>> the system date in manner(s) that I find useful.<br>
>><br>
>> Is there a way for Therion to take the date provided by the OS and <br>
>> reformat it?<br></blockquote><div><br></div><div>\currentdate contains actually only a string preformatted by Therion according to the locale set on the system. It should be enough to set your date formatting on Windows.</div><div><br></div><div>Best wishes</div><div>Martin</div></div></div>