From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/35748 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Double integral and subscripts Date: Tue, 07 Aug 2007 13:02:45 -0400 Message-ID: <20070807130245.hhdsuc46eccsk4kw@web.mail.umich.edu> References: 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: sea.gmane.org 1186506181 16560 80.91.229.12 (7 Aug 2007 17:03:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Aug 2007 17:03:01 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 07 19:02:59 2007 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 1IISSR-0005e6-8y for gctc-ntg-context-518@m.gmane.org; Tue, 07 Aug 2007 19:02:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EF1011FFEC; Tue, 7 Aug 2007 19:02: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 17418-02-12; Tue, 7 Aug 2007 19:02:52 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AB3751FF97; Tue, 7 Aug 2007 19:02:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C099D1FF97 for ; Tue, 7 Aug 2007 19:02: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 17116-03-16 for ; Tue, 7 Aug 2007 19:02:47 +0200 (CEST) Original-Received: from abenaki.web.itd.umich.edu (abenaki.web.itd.umich.edu [141.211.144.80]) by ronja.ntg.nl (Postfix) with ESMTP id DA4DC1FF8D for ; Tue, 7 Aug 2007 19:02:46 +0200 (CEST) Original-Received: (from www@localhost) by abenaki.web.itd.umich.edu (8.12.10/8.12.9) id l77H2k4u003157 for ntg-context@ntg.nl; Tue, 7 Aug 2007 13:02:46 -0400 Original-Received: from wwwgate31.motorola.com (wwwgate31.motorola.com [136.182.158.129]) by web.mail.umich.edu (Horde MIME library) with HTTP; Tue, 07 Aug 2007 13:02:45 -0400 In-Reply-To: Content-Disposition: inline User-Agent: Internet Messaging Program (IMP) H3 (4.0.5) X-Remote-Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6 X-IMP-Server: 141.211.144.198 X-Originating-IP: 136.182.158.129 X-Originating-User: adityam 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:35748 Archived-At: Quoting Shen Chen : > I am using "ConTeXt ver: 2007.01.12", and \iint is not defined even when > newmat is imported. Taco's tip worked. They were added pretty recently. You can either update your context, or if you do not want to do that, add the following in your environment file (copied from math-tex.tex). %D More integrals (AM): \def\dointkern{\mkern-6mu\mathchoice{\mkern-3mu}{}{}{}} \definemathcommand [iint] {\repeatintegral\plusone } \definemathcommand [iiint] {\repeatintegral\plustwo } \definemathcommand [iiiint] {\repeatintegral\plusthree} \def\repeatintegral#1% {\scratchtoks\emptytoks \let\dointlimits\nolimits \dorecurse{#1}{\appendtoks \intop \dointkern \to \scratchtoks} \appendtoks \intop \dointlimits \to \scratchtoks \edef\dodorepeatintegral{\the\scratchtoks}% \futurelet\next\dorepeatintegral} %D If the \type{\limits} option is used after \type{\iint}, use %D \type{\mathop} and fudge the left hand space a bit to make the %D subscript visually centered. \def\dorepeatintegral {\ifx\next\limits \dointlimitcorrection \else \ifx\next\displaylimits \dointlimitcorrection \fi\fi \dodorepeatintegral} \def\dointlimitcorrection {\mkern-7mu\mathchoice{\mkern-2mu}{}{}{}% \mathop\bgroup \mkern7mu\mathchoice{\mkern2mu}{}{}{}% \let\dointlimits\egroup} 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________