Re: [NTG-context] subformulas: error in latest beta

2012-08-21 Thread Andreas Mang

Am Aug 19, 2012 um 11:55 AM schrieb Hans Hagen:
 You can put this in cont-new.mkiv (after \unprotect):
 
 \def\strc_formulas_handle_sub_numbering
   {\let\strc_formulas_handle_sub_numbering\relax % else error
\doiftextelse\currentsubformulasuffix
  {\strc_counters_setown_sub\v!formula\plustwo\currentsubformulasuffix}
  {\strc_counters_increment_sub\v!formula\plustwo}%
\placecurrentformulanumber}

Thanks Hans! Works nicely (as always).

Just as minor comment in case someone faces the same problem:

There's already a

\def\strc_formulas_handle_sub_numbering

in cont-new.mkiv (line 36; ConTeXt ver: 2012.08.16 22:20 MKIV fmt: 2012.8.21). 
So to make this fix work I had to redefine / replace the original command 
instead of just putting it there.

Cheers,
Andreas
___
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] subformulas: error in latest beta

2012-08-19 Thread Hans Hagen

On 18-8-2012 21:04, Andreas Mang wrote:

\startsubformulas[eq:ax=b]

\placeformula
\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
\stoptext


You can put this in cont-new.mkiv (after \unprotect):

\def\strc_formulas_handle_sub_numbering
  {\let\strc_formulas_handle_sub_numbering\relax % else error
   \doiftextelse\currentsubformulasuffix
 {\strc_counters_setown_sub\v!formula\plustwo\currentsubformulasuffix}
 {\strc_counters_increment_sub\v!formula\plustwo}%
   \placecurrentformulanumber}




--

-
  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] subformulas: error in latest beta

2012-08-18 Thread Andreas Mang
sorry...

the error message is:

TeX capacity exceeded, sorry [ ...

\strc_formulas_handle_sub_numbering ..._numbering 
  \fi 
\strc_formulas_handle_sub_numbering ..._numbering 
  \fi 
\strc_formulas_handle_sub_numbering ..._numbering 
  \fi 
\strc_formulas_handle_sub_numbering ..._numbering 
  \fi 
\strc_formulas_handle_sub_numbering ..._numbering 
  \fi 
\strc_formulas_handle_sub_numbering ..._numbering 
  \fi 

Am Aug 18, 2012 um 9:01 PM schrieb Andreas Mang:

 Dear all,
 
 I am having problems with subformulas.
 
 The following example does not display a subnumber (i.e. I get (1) and (2) 
 instead of (1a) and (1b)):
 
 % start example 
 \starttext
 % from 
 % does not display subformula numbers
 \placesubformula
 \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
 % stop example %
 
 This example is taken from http://dl.contextgarden.net/myway/mathalign.pdf 
 page 6 
 
 I am not quite sure for how long this is not working. I have been using the 
 following alternative, which used to work but now gives me an error with the 
 latest beta (ConTeXt ver: 2012.08.16 22:20 MKIV fmt: 2012.8.18):
 
 % start example 
 % the following used to work in an earlier version
 \startsubformulas[eq:ax=b]
 \placeformula
 \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
 \stoptext
 % stop example %
 
 Any suggestions?
 
 Cheers,
 Andreas
 ___
 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
 ___

--
Andreas Mang, MSc
   Research Associate

UNIVERSITY OF LUEBECK
   INSTITUTE OF MEDICAL ENGINEERING

   Division of Computer Science, 
   Engineering and Natural Sciences

   Ratzeburger Allee 160, Building 64
   23562 Luebeck, Germany

   Phone: +49 (0) 451 500 5416
   Fax:   +49 (0) 451 500 5403
   m...@imt.uni-luebeck.de
   http://www.imt.uni-luebeck.de

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