From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25594 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: LaTeX array equivalence with multiline \lbrace Date: Fri, 27 Jan 2006 10:34:40 +0100 Message-ID: <43D9E930.3070702@elvenkind.com> References: <43D67EB3.5020800@nibua-r.org> <43D76D7A.7060106@wxs.nl> <43D7AA52.4090402@nibua-r.org> <43D94435.7090006@wxs.nl> <43D9DAC5.6040507@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1138354601 4342 80.91.229.2 (27 Jan 2006 09:36:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 Jan 2006 09:36:41 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 27 10:36:37 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1F2Q1t-0002mE-1t for gctc-ntg-context-518@m.gmane.org; Fri, 27 Jan 2006 10:36:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B78F01277F; Fri, 27 Jan 2006 10:36:28 +0100 (CET) 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 26451-03; Fri, 27 Jan 2006 10:36:28 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 429741279B; Fri, 27 Jan 2006 10:34:44 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0407E1279B for ; Fri, 27 Jan 2006 10:34:43 +0100 (CET) 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 26451-02 for ; Fri, 27 Jan 2006 10:34:42 +0100 (CET) Original-Received: from glenfiddich.elvenkind.com (elvenknd.xs4all.nl [213.84.171.68]) by ronja.ntg.nl (Postfix) with SMTP id 0D9F71277F for ; Fri, 27 Jan 2006 10:34:41 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by glenfiddich.elvenkind.com (Postfix) with ESMTP id 52A5418349 for ; Fri, 27 Jan 2006 10:34:41 +0100 (CET) Original-Received: from glenfiddich.elvenkind.com ([127.0.0.1]) by localhost (glenfiddich.elvenkind.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26814-07 for ; Fri, 27 Jan 2006 10:34:41 +0100 (CET) Original-Received: from [10.10.0.6] (glenlivet.elvenkind.com [10.10.0.6]) by glenfiddich.elvenkind.com (Postfix) with ESMTP id 0C48915EC8 for ; Fri, 27 Jan 2006 10:34:41 +0100 (CET) User-Agent: Mozilla Thunderbird 1.0.6-7.1.20060mdk (X11/20050322) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <43D9DAC5.6040507@wxs.nl> X-Virus-Scanned: by amavisd-new at elvenkind.net X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:25594 Archived-At: Hans Hagen wrote: >>+-----------------------------------------------------+ >>| | >>| ,- | >>| | 15, if something (1) | >>| x = { | >>| | 0, otherwise (2) | >>| `- | >>+-----------------------------------------------------+ The basic TeX structure for this would be an full-width \eqalignno, like so: \def\fixeqline{\noalign{\kern-.4\baselineskip}} \def\guessedstrut{\vrule height 12pt depth 12pt width0pt} $$\eqalignno{ & 15, \hbox{ if something} & (1)\cr \fixeqline x=\smash{\left\{\guessedstrut\right .} & & \cr \fixeqline & 0, \hbox{ otherwise} & (2)\cr} $$ Not very nice, but TeX (the engine) does not allow a cleaner solution. I guess it is possible to wrap this up in a nicer looking macro, but it requires some trial typesetting for the magical quantities used in the two macros. Cheers, Taco