ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: superscripts "th" "nd" "rd" "st" on dates etc..
Date: Wed, 26 Aug 2015 19:36:20 +0200	[thread overview]
Message-ID: <CALBOmsYSa3DUBmFGWLVR2+EUx_r=HqGWOK+0KqmEsY687AvTXw@mail.gmail.com> (raw)
In-Reply-To: <20150824171957.206bf854@localb.wexfordpress.net>

On Mon, Aug 24, 2015 at 11:19 PM, John Culleton wrote:
> Forgot how to do these.

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.)

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".

Mojca
___________________________________________________________________________________
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
___________________________________________________________________________________

  parent reply	other threads:[~2015-08-26 17:36 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 [this message]
2015-08-26 23:21   ` Wolfgang Schuster
2015-08-27 20:10     ` Hans Hagen
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='CALBOmsYSa3DUBmFGWLVR2+EUx_r=HqGWOK+0KqmEsY687AvTXw@mail.gmail.com' \
    --to=mojca.miklavec.lists@gmail.com \
    --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).