From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/70304 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: trailing spaces in macro argument Date: Wed, 27 Jul 2011 10:47:07 +0200 Message-ID: <5FC6C596-87FC-4528-A03B-7B5C355119AB@googlemail.com> References: <4E2F1408.6040807@aon.at> <500FA126-DCAC-4F6F-8D73-D801756E8718@googlemail.com> <4E2F2A51.9070500@aon.at> <12A62EDC-3A9D-496F-BCF7-0F8CB4862160@googlemail.com> <4E2F318E.6060908@aon.at> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1311756442 26666 80.91.229.12 (27 Jul 2011 08:47:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 27 Jul 2011 08:47:22 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 27 10:47:17 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qlzlt-00029n-KL for gctc-ntg-context-518@m.gmane.org; Wed, 27 Jul 2011 10:47:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3704FCAE80; Wed, 27 Jul 2011 10:47:16 +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 t16OqX4BjP53; Wed, 27 Jul 2011 10:47:13 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4657CCAE7A; Wed, 27 Jul 2011 10:47:13 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E8ACACAE7A for ; Wed, 27 Jul 2011 10:47:10 +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 ThvfuG+Pc1Pq for ; Wed, 27 Jul 2011 10:47:08 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 98507CAE5A for ; Wed, 27 Jul 2011 10:47:08 +0200 (CEST) Original-Received: from mail-fx0-f42.google.com (mail-fx0-f42.google.com [209.85.161.42]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p6R8l7GJ022121 for ; Wed, 27 Jul 2011 10:47:07 +0200 Original-Received: by fxe23 with SMTP id 23so92293fxe.15 for ; Wed, 27 Jul 2011 01:47:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=7MMgvLXJMJvQR3+bljIqk+jpbAROxXGVuyaSSPukmMw=; b=Vrjv1VdbF5aWEL4n7mY22SA//1jW+0EhVkNq4RXmL1j66P8jNSOjou2FxoAlZMzmhm oJBvo99r6/JThW7uk8UJmUHOSVSdNYLXQ8AEsd98mt6Oem5onKcQQ7y6QpfJvac7rN2S mjSdT4TPzlEHJ6R2vc2uVqFgVlJhUCPfcy3b8= Original-Received: by 10.223.161.216 with SMTP id s24mr2359359fax.103.1311756427343; Wed, 27 Jul 2011 01:47:07 -0700 (PDT) Original-Received: from [192.168.2.31] (p5482C220.dip.t-dialin.net [84.130.194.32]) by mx.google.com with ESMTPS id p17sm218578fak.1.2011.07.27.01.47.05 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 27 Jul 2011 01:47:06 -0700 (PDT) In-Reply-To: <4E2F318E.6060908@aon.at> X-Mailer: Apple Mail (2.1244.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.42; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03FcUL7mE - 616d79230afb - 20110727 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:70304 Archived-At: Am 26.07.2011 um 23:28 schrieb Daniel Schopper: > >> So doing \def\removeunwantedspaces{} inside the macro definition does = the trick (although in a barbaric way) > > As you don=92t use grouping your redefinition is global and can break m= any other things. > = > Of course, I missed that! Adding \bgroup and \egroup right before and aft= er the \def does make it local and should prevent side effects then, right?= Thanks again=85 That=92s not better, i would go with the following (although a better metho= d to pass the references is necessary): \def\test#1% {\dontleavehmode \startline[line:0]\pagereference[page:0]% #1% \stopline[line:0]} \starttext \startlinenumbering One \test{two three} four \stoplinenumbering \stoptext Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________