From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/41025 Path: news.gmane.org!not-for-mail From: "302302" <302302@centrum.cz> Newsgroups: gmane.comp.tex.context Subject: Re: Math equation with indentation Date: Wed, 14 May 2008 13:29:17 +0200 Message-ID: <200805141329.10108@centrum.cz> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1210764712 30209 80.91.229.12 (14 May 2008 11:31:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 May 2008 11:31:52 +0000 (UTC) To: "ntg-context" Original-X-From: ntg-context-bounces@ntg.nl Wed May 14 13:32:27 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1JwFCp-00056C-JD for gctc-ntg-context-518@m.gmane.org; Wed, 14 May 2008 13:31:35 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 918B91FBE8; Wed, 14 May 2008 13:30:49 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27521-01-6; Wed, 14 May 2008 13:30:05 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2044B1FB5B; Wed, 14 May 2008 13:30:05 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BC4681FB49 for ; Wed, 14 May 2008 13:29:58 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 26802-03-6 for ; Wed, 14 May 2008 13:29:27 +0200 (CEST) Original-Received: from mail1009.centrum.cz (mail1009.centrum.cz [213.29.7.81]) by ronja.ntg.nl (Postfix) with ESMTP id 22A221FB8C for ; Wed, 14 May 2008 13:29:27 +0200 (CEST) Original-Received: by mail1009.centrum.cz id S738324509AbYENL3R (ORCPT ); Wed, 14 May 2008 13:29:17 +0200 Original-Received: from 83.184.40.240 by mail1009.centrum.cz (Centrum Mail) with HTTP X-Mailer: Centrum Mail 1.0 X-Priority: 3 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:41025 Archived-At: >On Tue, 13 May 2008, 302302 wrote: > >> Hi, >> I need to use a multieqaution in this form ( http://img233.imageshack.us/img233/2372/eqsx3.png ). I am mostly interested in the right brace and >the indentation after the "subject to". I tried to use mathmatrix but without success. Can you help me with it?> > >I am using nested matrices, but this is one case which will be best solved >by something equivalent for gathered and aligned. It has been on my todo >list for a long time. > >Here is a solution using nested matrices, where I use \noalign to fake >correct spacing after the first line (and changed the \cdots in the last >condition to \dots). > >\definemathmatrix[rightbrace][left={\left.},right={\,\right\}},n=1,align=left] > >\starttext > >\placeformula[+] \startformula >\startrightbrace > \NC \min \{c_1 x_1 + c_2 x_2 + \cdots + c_n x_n \} \NR > \noalign{\vskip 0.2em} > \NC \text{subject to} \NR > \NC \quad > \startmathmatrix[n=9,align={middle,middle,middle, > middle,middle,middle,right,middle,middle}, > distance=0.3em] > \NC a_{11} x_1 \NC + \NC a_{12} x_2 \NC + > \NC \cdots \NC + \NC a_{1n} x_n \NC = \NC b_1 \NR > \NC a_{21} x_1 \NC + \NC a_{22} x_2 \NC + > \NC \cdots \NC + \NC a_{2n} x_n \NC = \NC b_2 \NR > \NC \NC \NC \vdots \NC > \NC \NC \NC \NC \NC \vdots \NR > \NC a_{m1} x_1 \NC + \NC a_{m2} x_2 \NC + > \NC \cdots \NC + \NC a_{mn} x_n \NC = \NC b_m \NR > \NC \NC \NC \NC > \NC \NC > \NC \llap{x_1,x_2,\dots,x_n} \NC \ge \NC 0. > \stopmathmatrix \NR > \stoprightbrace >\stopformula > >\stoptext > > >Aditya Great, thanks a lot! And is there any way how to get in the first line \min_{x \in X} with the parameter exactly below the "min"? Because in this solution the parameter {x \in X} is on the right bottom, like in a line. Czenek ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________