Minor date formatting issue
Hello, all-- I am experimenting with the \currentdate command. I am finding that \currentdate [weekday,{,~},month,day+,{,~},year] which should work according to the Wiki, produces: Thursday, Augustday+, 2013 This command: \currentdate [weekday,{,~},month,day,{,~},year] works as expected. I also tried \date [][weekday,{,~},month,day+,{,~},year] but that produced the same result as above. I have a recent stable release of the standalone ConTeXt package from the Garden. Is there a new way to format a date with an ordinal indicator (-st, -nd, -rd, -th), or is that just not working at the moment? Please advise. -- Matt Gushee
Am 09.08.2013 um 05:43 schrieb Matt Gushee
Hello, all--
I am experimenting with the \currentdate command. I am finding that
\currentdate [weekday,{,~},month,day+,{,~},year]
which should work according to the Wiki, produces:
Thursday, Augustday+, 2013
This command:
\currentdate [weekday,{,~},month,day,{,~},year]
works as expected. I also tried
\date [][weekday,{,~},month,day+,{,~},year]
but that produced the same result as above.
I have a recent stable release of the standalone ConTeXt package from the Garden. Is there a new way to format a date with an ordinal indicator (-st, -nd, -rd, -th), or is that just not working at the moment? Please advise.
It’s recommended to use “day:ord” with \currentdate but you also use “day:+”. \starttext \currentdate[day,space,day:ord,space,day:+] \stoptext Wolfgang
Hi, Wolfgang--
On Fri, Aug 9, 2013 at 6:58 AM, Wolfgang Schuster
I am experimenting with the \currentdate command. I am finding that
\currentdate [weekday,{,~},month,day+,{,~},year]
which should work according to the Wiki, produces:
Thursday, Augustday+, 2013
It’s recommended to use “day:ord” with \currentdate but you also use “day:+”.
\starttext \currentdate[day,space,day:ord,space,day:+] \stoptext
Ah, yes, thank you! Perhaps someone should update the wiki? I suppose I could get an account and fix it myself ... if people don't mind someone as inexpert as me messing around in there ... -- Matt
Perhaps someone should update the wiki? I suppose I could get an account and fix it myself ... if people don't mind someone as inexpert as me messing around in there ...
It would be very nice if you could do that. Don’t worry about
inexpertise -- people improving the documentation of how commands work
is always welcome. (If you can't get the formatting right, you can
leave it in plain text and I'll come in later and tidy it up.)
Cheers,
Sietse
On 10 August 2013 07:04, Matt Gushee
Hi, Wolfgang--
On Fri, Aug 9, 2013 at 6:58 AM, Wolfgang Schuster
wrote: I am experimenting with the \currentdate command. I am finding that
\currentdate [weekday,{,~},month,day+,{,~},year]
which should work according to the Wiki, produces:
Thursday, Augustday+, 2013
It’s recommended to use “day:ord” with \currentdate but you also use “day:+”.
\starttext \currentdate[day,space,day:ord,space,day:+] \stoptext
Ah, yes, thank you!
Perhaps someone should update the wiki? I suppose I could get an account and fix it myself ... if people don't mind someone as inexpert as me messing around in there ...
-- Matt ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
participants (3)
-
Matt Gushee
-
Sietse Brouwer
-
Wolfgang Schuster