ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "j. van den hoff" <veedeehjay@googlemail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>,
	"Otared Kavian" <otared@gmail.com>
Subject: Re: enumeration of equations containing \mathcases
Date: Tue, 10 Feb 2015 21:57:13 +0100	[thread overview]
Message-ID: <op.xtu0hntyp7eajd@muck.fritz.box> (raw)
In-Reply-To: <B645D17A-E13E-428C-9849-38718A0247B1@gmail.com>

On Tue, 10 Feb 2015 18:25:25 +0100, Otared Kavian <otared@gmail.com> wrote:

> Hi Joerg,

hi otared,

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

ah yes. that works... very good.
>
> However I don’t know how to number each subcases.

I do not need these, actually, right now. so you solved my problem just  
fine.

@devs: what about the original \mathcases problem? should equation  
numbering not work for that command, too?

but anyway: really thanks a lot for this solution!

joerg

>
> Best regards: OK
>
>> On 10 Feb 2015, at 17:32, j. van den hoff <veedeehjay@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@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
> ___________________________________________________________________________________


-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/
___________________________________________________________________________________
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
___________________________________________________________________________________

      reply	other threads:[~2015-02-10 20:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-10 16:32 j. van den hoff
2015-02-10 17:25 ` Otared Kavian
2015-02-10 20:57   ` j. van den hoff [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=op.xtu0hntyp7eajd@muck.fritz.box \
    --to=veedeehjay@googlemail.com \
    --cc=ntg-context@ntg.nl \
    --cc=otared@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).