ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: superscripts "th" "nd" "rd" "st" on dates etc..
Date: Thu, 27 Aug 2015 22:10:51 +0200	[thread overview]
Message-ID: <55DF6ECB.4@wxs.nl> (raw)
In-Reply-To: <55DE4A03.9060409@gmail.com>

On 8/27/2015 1:21 AM, Wolfgang Schuster wrote:
>> Mojca Miklavec <mailto:mojca.miklavec.lists@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))


> You can’t show them as superscript when you use the \date command
> but in manual mode you can also use \ordinaldaynumber.
>
> \starttext
> \dorecurse{10}{\ordinaldaynumber{\recurselevel}\crlf}
> \stoptext
>
> Wolfgang
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2015-08-27 20:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-24 21:19 John Culleton
2015-08-25  7:19 ` Otared Kavian
2015-08-26 17:06   ` Alan BRASLAU
2015-08-26 20:43     ` Otared Kavian
2015-08-26 23:17       ` Wolfgang Schuster
2015-08-26 17:36 ` Mojca Miklavec
2015-08-26 23:21   ` Wolfgang Schuster
2015-08-27 20:10     ` Hans Hagen [this message]
2015-09-05  9:48       ` Wolfgang Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55DF6ECB.4@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).