From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/65624 Path: news.gmane.org!not-for-mail From: Florian Wobbe Newsgroups: gmane.comp.tex.context Subject: Re: prevent gobbling of spaces when omitting optional argument Date: Sat, 29 Jan 2011 17:21:26 +0100 Message-ID: <85A578A9-105F-497A-B13E-7585A9287E6D@awi.de> References: <9314E651-67F6-4CAE-B141-E7793F659082@awi.de> <85DA6141-2F92-4865-A872-AF951E8D876C@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1296318115 18793 80.91.229.12 (29 Jan 2011 16:21:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 29 Jan 2011 16:21:55 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 29 17:21:50 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 1PjDYc-0006Pp-Md for gctc-ntg-context-518@m.gmane.org; Sat, 29 Jan 2011 17:21:50 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DF08ECAA04; Sat, 29 Jan 2011 17:21:49 +0100 (CET) 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 kUcaJPhJ3omP; Sat, 29 Jan 2011 17:21:47 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F22B4CA9E6; Sat, 29 Jan 2011 17:21:46 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8DC04CA9E6 for ; Sat, 29 Jan 2011 17:21:45 +0100 (CET) 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 03aH-PXkBo6O for ; Sat, 29 Jan 2011 17:21:34 +0100 (CET) Original-Received: from filter5-ams.mf.surf.net (filter5-ams.mf.surf.net [192.87.102.73]) by balder.ntg.nl (Postfix) with ESMTP id 3210FCA9E3 for ; Sat, 29 Jan 2011 17:21:34 +0100 (CET) Original-Received: from mails3.awi.de (mails3.AWI.DE [134.1.2.14]) by filter5-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p0TGLX8L007515 for ; Sat, 29 Jan 2011 17:21:33 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by mails3.awi.de (Postfix) with ESMTP id 841A2E37F2 for ; Sat, 29 Jan 2011 17:21:32 +0100 (MET) X-Virus-Scanned: amavisd-new at awi.de Original-Received: from localhost ([127.0.0.1]) by localhost (mails3.awi.de [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id WvdSodZPz6Jh for ; Sat, 29 Jan 2011 17:21:27 +0100 (MET) Original-Received: from msg.awi.de (msg.AWI.DE [134.1.3.16]) by mails3.awi.de (Postfix) with ESMTP id 4CD9EE37ED for ; Sat, 29 Jan 2011 17:21:27 +0100 (MET) Original-Received: from [192.168.22.100] ([unknown] [91.61.47.53]) by msg.awi.de (Sun Java(tm) System Messaging Server 7u3-12.01 64bit (built Oct 15 2009)) with ESMTPSA id <0LFS00JVSLFQHX60@msg.awi.de> for ntg-context@ntg.nl; Sat, 29 Jan 2011 17:21:27 +0100 (MET) In-reply-to: <85DA6141-2F92-4865-A872-AF951E8D876C@gmail.com> X-Mailer: Apple Mail (2.1082) X-Bayes-Prob: 0.9999 (Score 4.7, tokens from: @@RPTN) X-CanIt-Geo: ip=134.1.2.14; country=DE; region=03; city=Bremerhaven; latitude=53.5500; longitude=8.5833; http://maps.google.com/maps?q=53.5500,8.5833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0BE1slxox - bbf7ff77a478 - 20110129 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.73 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:65624 Archived-At: > % \one, \one[=85] and \one[=85][=85] (no spaces between =93[][]=94 allowe= d) > = > \def\one > {\strictdoifnextoptionalelse\doone\noone} > = > \def\noone{[]} > = > \def\doone[#1]% > {\strictdoifnextoptionalelse{\dodoone[#1]}{\nodoone[#1]}} > = > \def\dodoone[#1][#2]% > {[#1:#2]} > = > \def\nodoone[#1]% > {[#1]} One more problem: Adding \setupinteraction[state=3Dstart] > \starttext and\footnote{\one[1]} etc. do not work. Why not? Florian > \startlines > \one text > \one[1] text > \one[1][2] text > \stoplines > \stoptext ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________