superscripts "th" "nd" "rd" "st" on dates etc..
Forgot how to do these. -- John Culleton Wexford Press Book layout, typesetting and Indexing Free list of books for self-publishers: http://wexfordpress.net/shortlist.html
\high{th} \high{nd} \high{st}
On 24 Aug 2015, at 23:19, John Culleton
wrote: Forgot how to do these.
-- John Culleton Wexford Press Book layout, typesetting and Indexing Free list of books for self-publishers: http://wexfordpress.net/shortlist.html ___________________________________________________________________________________ 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 ___________________________________________________________________________________
1\highordinalstr{st}
etc.
On Tue, 25 Aug 2015 09:19:21 +0200
Otared Kavian
\high{th}
\high{nd}
\high{st}
On 24 Aug 2015, at 23:19, John Culleton
wrote: Forgot how to do these.
-- John Culleton
-- Alan Braslau CEA DSM-IRAMIS-SPEC CNRS UMR 3680 Orme des Merisiers 91191 Gif-sur-Yvette cedex FRANCE tel: +33 1 69 08 73 15 fax: +33 1 69 08 87 86 mailto:alan.braslau@cea.fr
Hi, I don’t see the difference between \high and \highordinalstr, as in the example below. Is there something hidden there? \starttext August 21\high{st} August 21\highordinalstr{st} \stoptext Best regards: OK
On 26 Aug 2015, at 19:06, Alan BRASLAU
wrote: 1\highordinalstr{st}
etc.
On Tue, 25 Aug 2015 09:19:21 +0200 Otared Kavian
wrote: \high{th}
\high{nd}
\high{st}
On 24 Aug 2015, at 23:19, John Culleton
wrote: Forgot how to do these.
-- John Culleton
-- Alan Braslau CEA DSM-IRAMIS-SPEC CNRS UMR 3680 Orme des Merisiers 91191 Gif-sur-Yvette cedex FRANCE tel: +33 1 69 08 73 15 fax: +33 1 69 08 87 86 mailto:alan.braslau@cea.fr ___________________________________________________________________________________ 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 ___________________________________________________________________________________
Otared Kavian mailto:otared@gmail.com 26. August 2015 22:43 Hi,
I don’t see the difference between \high and \highordinalstr, as in the example below. Is there something hidden there?
\starttext
August 21\high{st}
August 21\highordinalstr{st}
\stoptext Try it with uppercase letters in the argument.
\starttext August 21\high{ST} August 21\highordinalstr{ST} \stoptext Wolfgang
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
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". 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
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 -----------------------------------------------------------------
Hans Hagen mailto:pragma@wxs.nl 27. August 2015 22:10 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)) 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
participants (6)
-
Alan BRASLAU
-
Hans Hagen
-
John Culleton
-
Mojca Miklavec
-
Otared Kavian
-
Wolfgang Schuster