# [NTG-context] enumeration of equations containing \mathcases

Otared Kavian otared at gmail.com
Tue Feb 10 18:25:25 CET 2015

Hi Joerg,

I use a math align environment, like the following:

%%%% begin
%% analogous to \cases
\definemathmatrix[alignedcases] %% <——— here you can give whatherver name you wish
[align={right,left,left},
distance=3pt,
left={\left\{},
right={\right.},
style=\displaystyle]

\starttext
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla
\placeformula
\startformula
K_1 \rightarrow
\startalignedcases
\NC f  \NC \mbox{ for }\,  f \ll PS,  \quad\mbox{(flow limited transport)}     \NR
\NC PS \NC \mbox{ for }\, f \gg PS,\quad \mbox{(diffusion limited transport)} \NR
\stopalignedcases
\stopformula
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla

\stoptext
%%%% end

However I don’t know how to number each subcases.

Best regards: OK

> On 10 Feb 2015, at 17:32, j. van den hoff <veedeehjay at googlemail.com> wrote:
>
> hi list,
>
> admittedly I've posted this problem two times 6-8 weeks ago already but since I did not get a single
> response (not even RTFM...) I try it now a third time (hoping this is not considered spamming the list ...):
>
> question: how can I get properly aligned enumeration of equations that use \mathcases'.
>
> example:
> 8<--------------------------------------------------------------
> bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
> bla bla bla bla bla bla
> \placeformula
> \startformula
>     K_1 \rightarrow
>     \startmathcases
>        \NC f  \NC for $f \ll PS$ (flow limited transport)      \NR
>        \NC PS \NC for $f \gg PS$ (diffusion limited transport) \NR[+]
>     \stopmathcases
> \stopformula
> bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
> bla bla bla bla bla bla
> \stoptext
> 8<--------------------------------------------------------------
>
> does "subcases enumeration" in the second case but this is not aligned with the right text margin so
> it can not be used easily to "fake" the enumeration of the whole equation. \placeformula on the
> other hand does not print an equation number at all (contrary to what it usually does.
>
> I'm at a loss how to solve this...
>
> thx,joerg
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context at 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
> ___________________________________________________________________________________

`