From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20233 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: FWD: \inmargin, \setupindenting, and overfull boxes Date: Sat, 07 May 2005 15:47:16 +0200 Message-ID: <427CC6E4.4060102@elvenkind.com> References: <42B10CBE@webmail.colostate.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1115473631 23165 80.91.229.2 (7 May 2005 13:47:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 7 May 2005 13:47:11 +0000 (UTC) Cc: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat May 07 15:47:07 2005 Return-path: 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 1DUPdb-0008GS-Vc for gctc-ntg-context-518@m.gmane.org; Sat, 07 May 2005 15:46:36 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 52D38127F3; Sat, 7 May 2005 15:53:35 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30782-02; Sat, 7 May 2005 15:53:35 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A35051283C; Sat, 7 May 2005 15:49:55 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 93E311283C for ; Sat, 7 May 2005 15:49:53 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30577-06 for ; Sat, 7 May 2005 15:49:52 +0200 (CEST) Original-Received: from post-23.mail.nl.demon.net (post-23.mail.nl.demon.net [194.159.73.193]) by ronja.ntg.nl (Postfix) with ESMTP id D0C5012839 for ; Sat, 7 May 2005 15:49:52 +0200 (CEST) Original-Received: from boo.demon.nl ([82.161.175.147]:1249 helo=[192.168.1.3]) by post-23.mail.nl.demon.net with esmtp (Exim 4.43) id 1DUPgm-000HSg-CP; Sat, 07 May 2005 13:49:52 +0000 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en Original-To: Idris Samawi Hamid In-Reply-To: <42B10CBE@webmail.colostate.edu> X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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: by amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:20233 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20233 Idris Samawi Hamid wrote: > I placed your definition in a \start-\stopenvironment file. The \inmargins are > in \product files each of which calls the environment file in its preamble. If > I compile just one product (say the second \product from the project), there > appears to be no problem. But if I compile the entire project, TeX chokes on > that same product. > > Do you think this may be the problem? Yes, because the environment file is read twice, you need a guard against redefining the redefinition. Placing a guard around it, like this, should work: \expandafter\ifx\csname normalinmargin \endcsname \relax \else \let\normalinmargin\inmargin \def\inmargin#1{{\parindent0pt \normalinmargin{#1}}} \fi (yes, that is an ugly hack, but it is one I can write withour actually having to test it before sending :)) Greetings, Taco