[NTG-context] superscripts "th" "nd" "rd" "st" on dates etc..

Wolfgang Schuster schuster.wolfgang at gmail.com
Sat Sep 5 11:48:12 CEST 2015


> Hans Hagen <mailto:pragma at wxs.nl>
> 27. August 2015 22:10
> On 8/27/2015 1:21 AM, Wolfgang Schuster wrote:
>>> Mojca Miklavec <mailto:mojca.miklavec.lists at gmail.com>
>>> 26. August 2015 19:36
>>>
>>> In case that you were looking for an automated way to print the date,
>>> here's one option:
>>> \setuplanguage[en][date={weekday,{, },day:ord,{~},month,{,~},year}]
>>> (And the documentation is somewhat wrong, I think it suggests to use
>>> "day+" which doesn't work. But I should check the details again.)
>> The keyword to create ordinal numbers in a date has changed in MkIV.
>>> Unfortunately I didn't manage to figure out how to do the superscript
>>> automatically. Yes, it's 1\highordinalstr{st} like Alan mentioned, but
>>> that only works in "manual mode".
>
> core-con.lua : 1275 :
>
> context.highordinalstr(converters.ordinal(whatordinal,currentlanguage))
Please revert this change and let the user choose between a ordinal in 
text size and raised small size.

\starttext

\currentdate[day:ord]

\currentdate[day:highord]

\stoptext

Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150905/55fbdf21/attachment.html>


More information about the ntg-context mailing list