From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61297 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: questions regarding `\date` Date: Sat, 28 Aug 2010 22:51:34 +0200 Message-ID: References: <1283004172.21343.54.camel@mattotaupa> <4C795B82.209@googlemail.com> <20100828190221.GA9645@gaston.couberia.bzh> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1283028740 32061 80.91.229.12 (28 Aug 2010 20:52:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 28 Aug 2010 20:52:20 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Aug 28 22:52:19 2010 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 1OpSNq-0004h8-PS for gctc-ntg-context-518@m.gmane.org; Sat, 28 Aug 2010 22:52:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E2E39CA6A7; Sat, 28 Aug 2010 22:52:13 +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 hAF6tXDsGZ-k; Sat, 28 Aug 2010 22:52:11 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EFF38CA6A3; Sat, 28 Aug 2010 22:52:10 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 739DACA6A3 for ; Sat, 28 Aug 2010 22:52:09 +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 nJnNIEohCyCR for ; Sat, 28 Aug 2010 22:51:57 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id D753ECA5C1 for ; Sat, 28 Aug 2010 22:51:57 +0200 (CEST) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o7SKpuIE025719 for ; Sat, 28 Aug 2010 22:51:57 +0200 Original-Received: by bwz6 with SMTP id 6so3518738bwz.14 for ; Sat, 28 Aug 2010 13:51:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=h9QOnXts5d/PIDi6JS48I08HZASkxZeWt/ybzeAHRyI=; b=OFwFo8GY6Yt7o65hvQduxgr7a4V0AVfxTA3s38eFH+hAdxHz/jioLQ9sGo+c/LNci4 CO2v2Lbei/zfHAJbxt/AN/Iag4qVYxoUu939O5tuEkZmLAYwpQM/U+3Q8AOfj7xpYw+7 8lozRyjMBm6C6eglEVzxbeR2OP2grY6LUz+yg= DomainKey-Signature: a=rsa-sha1; c=nofws; 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; b=YlSew+WJQDC3xUn4vPTa2uCmF5XPC25J+Gj5sb587aEUX3XUaDFO55MYGUcg/+b+6C c3YEk2LT1ycCkG1CF/9rXb2cXX/XCoRHdC3y4eeNsWSwum1q+mSt2ubEbGgh8fhPQBh3 iepqCLSD9DfkaRMJIUe4NggOT90XwUEnyOE20= Original-Received: by 10.204.4.156 with SMTP id 28mr1694568bkr.207.1283028716737; Sat, 28 Aug 2010 13:51:56 -0700 (PDT) Original-Received: from [192.168.2.23] (p5B29601A.dip.t-dialin.net [91.41.96.26]) by mx.google.com with ESMTPS id y19sm3729035bkw.18.2010.08.28.13.51.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 28 Aug 2010 13:51:55 -0700 (PDT) In-Reply-To: <20100828190221.GA9645@gaston.couberia.bzh> X-Mailer: Apple Mail (2.1081) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; 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: 0eCXUPVX9 - e5c84aaffd95 - 20100828 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:61297 Archived-At: Am 28.08.2010 um 21:02 schrieb Peter M=FCnster: > On Sat, Aug 28 2010, Wolfgang Schuster wrote: > = >> It's a problem with the optional argument, if the second argument is >> missing the space after the first is gobbled but it can be fixed. > = > It's a general problem with ConTeXt macros. The same applies for example = for > \externalfigure. Should this be fixed for all commands, that can be used = in > running text, or should this behaviour just be well documented? \unprotect \unexpanded\def\externalfigure {\doifnextoptionalelse\doexternalfigure\donothing} \def\doexternalfigure[#1]% {\strictdoifnextoptionalelse{\dodoexternalfigure[#1]}{\nodoexternalfigure= [#1]}} \def\nodoexternalfigure[#1]% {\dododoexternalfigure[#1][][]} \def\dodoexternalfigure[#1][#2]% {\strictdoifnextoptionalelse{\dododoexternalfigure[#1][#2]}{\dododoextern= alfigure[#1][#2][]} \def\dododoexternalfigure[#1][#2][#3]% [label][file][settings] | [file][set= tings] | [file][parent][settings] {\bgroup \doifelsenothing{#1} {\framed[\c!width=3D\defaultfigurewidth,\c!height=3D\defaultfigurehei= ght]{external\\figure\\no name}} {\doifundefinedelse{\??ef\??ef#1} {\useexternalfigure[\s!dummy][#1][#2][#3]% \getvalue{\??ef\??ef\s!dummy}[]} % [] is dummy arg 5 {\doifassignmentelse{#2} {\getvalue{\??ef\??ef#1}[#2]}% {\getvalue{\??ef\??ef#1}[#3]}}}% \globallet\currentresourcecomment\empty \egroup} \protect \starttext this is how a \externalfigure[cow][height=3D\lineheight] looks i the nether= lands \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 ___________________________________________________________________________= ________