From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50102 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Inside ConTeXt Date: Thu, 7 May 2009 20:01:07 +0200 Message-ID: <3CA0803E-5E87-4112-9331-EC002F7ABE8F@gmail.com> References: <350E7DA8-8C14-4A4D-BAB2-3168D9D77796@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1241719379 2714 80.91.229.12 (7 May 2009 18:02:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 May 2009 18:02:59 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu May 07 20:02:49 2009 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 1M27vW-0003Ax-BZ for gctc-ntg-context-518@m.gmane.org; Thu, 07 May 2009 20:02:34 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E0E991FDEA; Thu, 7 May 2009 20:02:33 +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 11537-05; Thu, 7 May 2009 20:01:50 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 23F211FDE9; Thu, 7 May 2009 20:01:50 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 320231FDE9 for ; Thu, 7 May 2009 20:01: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 07671-05-2 for ; Thu, 7 May 2009 20:01:41 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by ronja.ntg.nl (Postfix) with ESMTP id E3C001FDE8 for ; Thu, 7 May 2009 20:01:41 +0200 (CEST) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.159]) by filter3-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n47I1eMj030020 for ; Thu, 7 May 2009 20:01:40 +0200 Original-Received: by fg-out-1718.google.com with SMTP id l27so1507660fgb.8 for ; Thu, 07 May 2009 11:01:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=osvda8qmGiDJSbPEDmhshSTHtSR4e/ZdHhcO818Zcww=; b=F6KFP0JnzW9YD8wAvi7uFCYMsKF1nWlVw96zwsVs3rHUNP7iFps+PbClnbcHKvyshf h3pTy73To+BKeIfaiNKHDd7jvvfN9Wan1k/DxW8FI1LK0X25ZwAFwMwXeYVBGEqSlINs uB2y+sLRRS5DsAqyo/jPVpvLWZp2ORo/5PKMA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=OqtJScjcJVD5w7v8VvzQs4xBD2piYCB78SIEYqJJHxA7q8IPlYa1w0ZXkfTnWC3tV2 4s92aNnSE7VkujyJfF7LbLCDet/DDKSzqW/Ci1DkLBn4vGVFNgiD3QiJO9XydTWvya/C o/YTNgM8O26sAKpAPBrP9tCKTqA5Z6ffFhPSg= Original-Received: by 10.86.95.8 with SMTP id s8mr2810603fgb.24.1241719300229; Thu, 07 May 2009 11:01:40 -0700 (PDT) Original-Received: from ?10.40.19.184? ([82.113.121.145]) by mx.google.com with ESMTPS id l19sm13208409fgb.12.2009.05.07.11.01.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 07 May 2009 11:01:39 -0700 (PDT) In-Reply-To: <350E7DA8-8C14-4A4D-BAB2-3168D9D77796@gmail.com> X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=72.14.220.159; 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: 221304375 - 60c9390ab4a1 - 20090507 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:50102 Archived-At: Am 07.05.2009 um 19:55 schrieb Wolfgang Schuster: > After reading the following code [1] from the wiki again I will > present here my solution: > > \def\TextWithSpaces{\framed\bgroup\afterassignment\obeyspaces\let > \next} > > [1] http://wiki.contextgarden.net/Inside_ConTeXt#Passing_verbatim_text_as_macro_parameter With a small modification optional arguments are possible. \def\TextWithSpaces#1#{\framed#1\bgroup\afterassignment\obeyspaces \let\next} This allows: \TextWithSpaces{A gap from here to there!} and \TextWithSpaces[foregroundstyle=bold]{A gap from here to there!} Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________