[NTG-context] superscripts?

2015-12-19 Thread Rudolf Bahr
Hello,

using ConTeXt  ver: 2015.12.17 15:57 MKIV beta  fmt: 2015.12.18
and writing:

\starttext
\math{a^2 + b^2 = c^2}
\stoptext

I get "a?2 + b?2 = c?2" as the Pythagoras formula. 

Please, how should I write it better?

Thanks in advance,
Rudolf

___
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
___

Re: [NTG-context] superscripts?

2015-12-19 Thread Hans Hagen

On 12/19/2015 10:52 AM, Rudolf Bahr wrote:

Hello,

using ConTeXt  ver: 2015.12.17 15:57 MKIV beta  fmt: 2015.12.18
and writing:

\starttext
\math{a^2 + b^2 = c^2}
\stoptext

I get "a?2 + b?2 = c?2" as the Pythagoras formula.

Please, how should I write it better?


bug in engine ... will be fixed

-
  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
___

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

2015-09-05 Thread Wolfgang Schuster

Hans Hagen 
27. August 2015 22:10
On 8/27/2015 1:21 AM, Wolfgang Schuster wrote:

Mojca Miklavec 
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
___
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
___

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

2015-08-27 Thread Hans Hagen

On 8/27/2015 1:21 AM, Wolfgang Schuster wrote:

Mojca Miklavec mailto:mojca.miklavec.li...@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
___

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

2015-08-26 Thread Alan BRASLAU
1\highordinalstr{st}

etc.

On Tue, 25 Aug 2015 09:19:21 +0200
Otared Kavian ota...@gmail.com wrote:

 \high{th}
 
 \high{nd}
 
 \high{st}
 
  On 24 Aug 2015, at 23:19, John Culleton j...@wexfordpress.com
  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.bras...@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
___

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

2015-08-26 Thread Mojca Miklavec
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
___

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

2015-08-26 Thread Otared Kavian
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 alan.bras...@cea.fr wrote:
 
 1\highordinalstr{st}
 
 etc.
 
 On Tue, 25 Aug 2015 09:19:21 +0200
 Otared Kavian ota...@gmail.com wrote:
 
 \high{th}
 
 \high{nd}
 
 \high{st}
 
 On 24 Aug 2015, at 23:19, John Culleton j...@wexfordpress.com
 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.bras...@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
 ___

___
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
___

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

2015-08-26 Thread Wolfgang Schuster

Otared Kavian mailto:ota...@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
___
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
___

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

2015-08-26 Thread Wolfgang Schuster

Mojca Miklavec mailto:mojca.miklavec.li...@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
___
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
___

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

2015-08-25 Thread Otared Kavian
\high{th}

\high{nd}

\high{st}

 On 24 Aug 2015, at 23:19, John Culleton j...@wexfordpress.com 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
 ___

___
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
___

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

2015-08-24 Thread John Culleton
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
___