From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78214 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Period at the end of a "alignment block". Date: Mon, 10 Sep 2012 19:59:05 -0400 (EDT) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1347321450 13155 80.91.229.3 (10 Sep 2012 23:57:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2012 23:57:30 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 11 01:57:33 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TBDrA-0002EE-DE for gctc-ntg-context-518@m.gmane.org; Tue, 11 Sep 2012 01:57:32 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A0DF6101F9; Tue, 11 Sep 2012 01:57:28 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id VU-L-wBQUBW4; Tue, 11 Sep 2012 01:57:25 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 2EF78101E9; Tue, 11 Sep 2012 01:57:25 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DF936101E9 for ; Tue, 11 Sep 2012 01:57:23 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id n+W1xMiVaUzn for ; Tue, 11 Sep 2012 01:57:22 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 5E8CC101E6 for ; Tue, 11 Sep 2012 01:57:22 +0200 (CEST) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q8ANvJiJ002087 for ; Tue, 11 Sep 2012 01:57:21 +0200 Original-Received: FROM Decentralized.ECE.McGill.CA (Decentralized.ECE.McGill.CA [132.206.69.142]) By hellskitchen.mr.itd.umich.edu ID 504E7E5E.68363.14644 ; Authuser adityam; 10 Sep 2012 19:57:18 EDT In-Reply-To: User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.82; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RHVzVkaW - e8b350277552 - 20120911 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:78214 Archived-At: On Mon, 10 Sep 2012, Andre Caldas wrote: > I have a macro to typeset function definitions: > > \define[5]\functionarray > { > \startalign[n=4, align={left,right,center,left}] > \NC #1: \NC #2 \NC \to \NC #3 \NR > \NC \NC #4 \NC \mapsto \NC #5 > \stopalign > } > > > I use it like this: (notice the period at the end) > \startformula > \functionarray{f}{X}{Y}{x}{f(x)}. > \stopformula > > I get the following error: > Display math should end with \Ustopdisplaymath ... > > If I remove the ".", the error does not happen. > > How should I implement my "functionarray"? Use mathmatrix. \definemathmatrix[functionarray][n=4, align={left,right,middle,left}, distance=0.2em] \define[5]\functionarray {\startfunctionarray \NC #1: \NC #2 \NC \to \NC #3 \NR \NC \NC #4 \NC \mapsto \NC #5 \NR \stopfunctionarray} Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________