From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/41506 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Problem with '\ ' in math commands in current minimals Date: Mon, 9 Jun 2008 23:51:20 -0400 (EDT) Message-ID: 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: ger.gmane.org 1213069847 19355 80.91.229.12 (10 Jun 2008 03:50:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Jun 2008 03:50:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jun 10 05:51:29 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 1K5utK-000275-Tq for gctc-ntg-context-518@m.gmane.org; Tue, 10 Jun 2008 05:51:26 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 52B3D1FC7A; Tue, 10 Jun 2008 05:50:37 +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 17591-01-2; Tue, 10 Jun 2008 05:49:57 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6831C1FC00; Tue, 10 Jun 2008 05:49:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A9B301FBD4 for ; Tue, 10 Jun 2008 05:49:51 +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 17591-01 for ; Tue, 10 Jun 2008 05:49:12 +0200 (CEST) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by ronja.ntg.nl (Postfix) with ESMTP id C589D1FC00 for ; Tue, 10 Jun 2008 05:49:10 +0200 (CEST) Original-Received: FROM adi-laptop.local (c-68-40-40-75.hsd1.mi.comcast.net [68.40.40.75]) BY hellskitchen.mr.itd.umich.edu ID 484DF9B2.7856B.23607 ; 9 Jun 2008 23:49:07 -0400 In-Reply-To: User-Agent: Alpine 1.00 (DEB 882 2007-12-20) 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:41506 Archived-At: On Tue, 10 Jun 2008, Morgan Brassel wrote: > Hi everyone, > > In the following example: > > \define[1]\com{com\ #1} > \starttext > \com{1} $\com{1}$ > \stoptext > > the second call to \com (the one in math mode) seems to stop the > compilation of the file. Is it a bug? It wasn't happening before. I'm > using the latest minimals. Definitely a bug: the trace shows a recursive definition. \ is defined in terms of itself. Looking at core-spa.tex I cannot understand why this is happening. This is the output of \loggingall \com #1->com\ #1 #1<-1 {the letter c} {the letter o} {the letter m} \ ->\mathortext \normalspaceprimitive {\dontleavehmode \space } \mathortext ->\ifmmode \expandafter \firstoftwoarguments \else \expandafter \se condoftwoarguments \fi {\ifmmode: (level 1) entered on line 6} {true} {\expandafter} {\else: \ifmmode (level 1) entered on line 6} {\fi: \ifmmode (level 1) entered on line 6} \firstoftwoarguments #1#2->#1 #1<-\normalspaceprimitive #2<-\dontleavehmode \space \normalspaceprimitive ->\ \ ->\mathortext \normalspaceprimitive {\dontleavehmode \space } 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 ___________________________________________________________________________________