From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/65626 Path: news.gmane.org!not-for-mail From: Philipp Gesang Newsgroups: gmane.comp.tex.context Subject: Re: prevent gobbling of spaces when omitting optional argument Date: Sat, 29 Jan 2011 18:09:44 +0100 Message-ID: <20110129170944.GB24717@aides> References: <9314E651-67F6-4CAE-B141-E7793F659082@awi.de> <85DA6141-2F92-4865-A872-AF951E8D876C@gmail.com> <85A578A9-105F-497A-B13E-7585A9287E6D@awi.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1849526620==" X-Trace: dough.gmane.org 1296321011 31779 80.91.229.12 (29 Jan 2011 17:10:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 29 Jan 2011 17:10:11 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 29 18:10:03 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 1PjEJG-0001mo-30 for gctc-ntg-context-518@m.gmane.org; Sat, 29 Jan 2011 18:10:02 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 64514CA9EC; Sat, 29 Jan 2011 18:10:01 +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 QS6hzFzaR+Kq; Sat, 29 Jan 2011 18:09:58 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 965BECA98D; Sat, 29 Jan 2011 18:09:58 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7C610CA98D for ; Sat, 29 Jan 2011 18:09:57 +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 7Ehs4sQFPWQ9 for ; Sat, 29 Jan 2011 18:09:46 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 0C30ECA910 for ; Sat, 29 Jan 2011 18:09:46 +0100 (CET) Original-Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p0TH9jNa014145 for ; Sat, 29 Jan 2011 18:09:45 +0100 Original-Received: from ix.urz.uni-heidelberg.de (cyrus-portal.urz.uni-heidelberg.de [129.206.100.176]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id p0TH9i7b003354 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 29 Jan 2011 18:09:44 +0100 Original-Received: from extmail.urz.uni-heidelberg.de (extmail.urz.uni-heidelberg.de [129.206.100.140]) by ix.urz.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id p0TH9hTi031027 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 29 Jan 2011 18:09:43 +0100 Original-Received: from localhost (mnhm-5f75cb33.pool.mediaWays.net [95.117.203.51]) (authenticated bits=0) by extmail.urz.uni-heidelberg.de (8.13.4/8.13.1) with ESMTP id p0TH9ggE021086 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sat, 29 Jan 2011 18:09:43 +0100 In-Reply-To: <85A578A9-105F-497A-B13E-7585A9287E6D@awi.de> X-Operating-System: Linux aides 2.6.37-ARCH X-Polite-Request: "Please try to be nice, don't send html mail." User-Agent: Mutt/1.5.20 (2009-06-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=129.206.100.212; country=DE; region=01; city=Heidelberg; latitude=49.4167; longitude=8.7000; http://maps.google.com/maps?q=49.4167,8.7000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05E1t9Jch - 79140609c24e - 20110129 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.216 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:65626 Archived-At: --===============1849526620== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wzJLGUyc3ArbnUjN" Content-Disposition: inline --wzJLGUyc3ArbnUjN Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Florian! On 2011-01-29 <17:21:26>, Florian Wobbe wrote: > > % \one, \one[=E2=80=A6] and \one[=E2=80=A6][=E2=80=A6] (no spaces betwe= en =E2=80=9C[][]=E2=80=9D allowed) > >=20 > > \def\one \unexpanded\def\one % should make it work in footnotes Philipp > > {\strictdoifnextoptionalelse\doone\noone} > >=20 > > \def\noone{[]} > >=20 > > \def\doone[#1]% > > {\strictdoifnextoptionalelse{\dodoone[#1]}{\nodoone[#1]}} > >=20 > > \def\dodoone[#1][#2]% > > {[#1:#2]} > >=20 > > \def\nodoone[#1]% > > {[#1]} >=20 > One more problem: Adding >=20 > \setupinteraction[state=3Dstart] >=20 > > \starttext >=20 > and\footnote{\one[1]} etc. do not work. Why not? > Florian >=20 > > \startlines > > \one text > > \one[1] text > > \one[1][2] text > > \stoplines > > \stoptext >=20 > _________________________________________________________________________= __________ > If your question is of interest to others as well, please add an entry to= the Wiki! >=20 > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ --=20 () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments --wzJLGUyc3ArbnUjN Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk1ESdgACgkQ02lYlJYWs9KLGwCglTVcXCe8DXoYxsTsxcUMTIMX Ub8AmwbfVwcqOYZrs3EoPiVhczmsllzc =mU7u -----END PGP SIGNATURE----- --wzJLGUyc3ArbnUjN-- --===============1849526620== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1849526620==--