Re: [NTG-context] problem with mathaligned in MkIV

2009-11-15 Thread Chen Shen
I tried the beta version of 2009.11.13. Seems that Hans has fixed this in
MkIV.
Thanks a lot, Aditya and Hans.

best regards,
shenchen

On Thu, Nov 5, 2009 at 11:17 AM, Aditya Mahajan  wrote:

> On Wed, 4 Nov 2009, Aditya Mahajan wrote:
>
>  On Thu, 5 Nov 2009, Chen Shen wrote:
>>
>>  I was using the following macro from Aditya's Mathalign "My Way".
>>>
>>> It worked great with MkII and old versions of MkIV.
>>>
>>>
>>> However, it failed in recent versions of MkIV (e.g. 2009.11.2).
>>>
>>> Apparently, the \makesectionnumber and \rawreference macros have be
>>> removed.
>>>
>>> I wonder if anyone can give pointers on how to fix this.
>>>
>>
>> A cleaner way to achieve the same output is
>>
>> \starttext
>>
>> \startsubformulas[eq:sub]
>> \placesubformula
>>
>
> Sorry, this should have been \placeformula.
>
>
>  \startformula \startalign
>> \NC a_1 x + b_1 y \NC = c_1 \NR[eq:1]
>> \NC a_2 x + b_2 y \NC = c_2 \NR[eq:2]
>> \stopalign \stopformula
>> \stopsubformulas
>>
>> \stoptext
>>
>> but this seems to be broken in mkiv. Hans, any idea what is going wrong
>> here?
>>
>> Aditya
>>
>> ___
>> 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
>
> ___
>
___
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] problem with mathaligned in MkIV

2009-11-04 Thread Aditya Mahajan

On Wed, 4 Nov 2009, Aditya Mahajan wrote:


On Thu, 5 Nov 2009, Chen Shen wrote:


I was using the following macro from Aditya's Mathalign "My Way".

It worked great with MkII and old versions of MkIV.


However, it failed in recent versions of MkIV (e.g. 2009.11.2).

Apparently, the \makesectionnumber and \rawreference macros have be 
removed.


I wonder if anyone can give pointers on how to fix this.


A cleaner way to achieve the same output is

\starttext

\startsubformulas[eq:sub]
\placesubformula


Sorry, this should have been \placeformula.


\startformula \startalign
\NC a_1 x + b_1 y \NC = c_1 \NR[eq:1]
\NC a_2 x + b_2 y \NC = c_2 \NR[eq:2]
\stopalign \stopformula
\stopsubformulas

\stoptext

but this seems to be broken in mkiv. Hans, any idea what is going wrong here?

Aditya
___
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] problem with mathaligned in MkIV

2009-11-04 Thread Aditya Mahajan

On Thu, 5 Nov 2009, Chen Shen wrote:


I was using the following macro from Aditya's Mathalign "My Way".

It worked great with MkII and old versions of MkIV.


However, it failed in recent versions of MkIV (e.g. 2009.11.2).

Apparently, the \makesectionnumber and \rawreference macros have be removed.

I wonder if anyone can give pointers on how to fix this.


A cleaner way to achieve the same output is

\starttext

\startsubformulas[eq:sub]
\placesubformula
\startformula \startalign
\NC a_1 x + b_1 y \NC = c_1 \NR[eq:1]
\NC a_2 x + b_2 y \NC = c_2 \NR[eq:2]
\stopalign \stopformula
\stopsubformulas

\stoptext

but this seems to be broken in mkiv. Hans, any idea what is going wrong 
here?


Aditya
___
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] problem with mathaligned in MkIV

2009-11-04 Thread Chen Shen
Hi all,


I was using the following macro from Aditya's Mathalign "My Way".

It worked great with MkII and old versions of MkIV.


However, it failed in recent versions of MkIV (e.g. 2009.11.2).

Apparently, the \makesectionnumber and \rawreference macros have be removed.

I wonder if anyone can give pointers on how to fix this.

Thanks a lot.


best regards,

shenchen



%%% begin %%%\def\placesubformulawithnumber{%

\dodoubleempty\doplacesubformulawithnumber}


\def\doplacesubformulawithnumber[#1][#2]%#2 gobbles spaces

{\incrementnumber[formula]

\makesectionnumber[formula]

\iffirstargument

\rawreference{for}{#1}{\composedsectionnumber}

\fi\placesubformula}



\placesubformulawithnumber

\startformula \startalign

\NC a_1 x + b_1 y \NC = c_1 \NR[+][a]

\NC a_2 x + b_2 y \NC = c_2 \NR[+][b]

\stopalign \stopformula

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