* subformulas: error in latest beta
@ 2012-08-18 19:01 Andreas Mang
2012-08-18 19:04 ` Andreas Mang
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Mang @ 2012-08-18 19:01 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: subformulas: error in latest beta
2012-08-18 19:01 subformulas: error in latest beta Andreas Mang
@ 2012-08-18 19:04 ` Andreas Mang
2012-08-19 9:55 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Mang @ 2012-08-18 19:04 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
mang@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: subformulas: error in latest beta
2012-08-18 19:04 ` Andreas Mang
@ 2012-08-19 9:55 ` Hans Hagen
2012-08-21 20:02 ` Andreas Mang
0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2012-08-19 9:55 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: subformulas: error in latest beta
2012-08-19 9:55 ` Hans Hagen
@ 2012-08-21 20:02 ` Andreas Mang
0 siblings, 0 replies; 4+ messages in thread
From: Andreas Mang @ 2012-08-21 20:02 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-08-21 20:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-18 19:01 subformulas: error in latest beta Andreas Mang
2012-08-18 19:04 ` Andreas Mang
2012-08-19 9:55 ` Hans Hagen
2012-08-21 20:02 ` Andreas Mang
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).