From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82074 Path: news.gmane.org!not-for-mail From: "Verhaag, G.C.H.M." Newsgroups: gmane.comp.tex.context Subject: Re: Basic \def error? Date: Thu, 25 Apr 2013 14:10:51 +0200 Message-ID: <51791D4B.7010200@ziggo.nl> References: <5176BF33.8030802@ziggo.nl> <5176CEB4.6010601@ziggo.nl> <144AD722-F81E-496F-8350-84434B5841F4@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1366891547 13037 80.91.229.3 (25 Apr 2013 12:05:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Apr 2013 12:05:47 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 25 14:05:51 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UVKvv-0003V1-A7 for gctc-ntg-context-518@m.gmane.org; Thu, 25 Apr 2013 14:05:51 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 557EB101EC; Thu, 25 Apr 2013 14:05:50 +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 BCTvbJTmk5QE; Thu, 25 Apr 2013 14:05:42 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id B1908101E7; Thu, 25 Apr 2013 14:05:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 893AD101E7 for ; Thu, 25 Apr 2013 14:05:41 +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 uq0zAsHqv4dU for ; Thu, 25 Apr 2013 14:05:36 +0200 (CEST) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 26A23101E4 for ; Thu, 25 Apr 2013 14:05:35 +0200 (CEST) Original-Received: from smtpq3.tb.mail.iss.as9143.net (smtpq3.tb.mail.iss.as9143.net [212.54.42.166]) by filter3-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r3PC5Yim006025 for ; Thu, 25 Apr 2013 14:05:35 +0200 Original-Received: from [212.54.42.136] (helo=smtp5.tb.mail.iss.as9143.net) by smtpq3.tb.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1UVKve-0007jI-Lu for ntg-context@ntg.nl; Thu, 25 Apr 2013 14:05:34 +0200 Original-Received: from 541c2c7b.cm-5-5a.dynamic.ziggo.nl ([84.28.44.123]) by smtp5.tb.mail.iss.as9143.net with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1UVKve-0007XV-7o for ntg-context@ntg.nl; Thu, 25 Apr 2013 14:05:34 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20110506 Icedove/3.0.11 In-Reply-To: <144AD722-F81E-496F-8350-84434B5841F4@gmail.com> X-Authenticated-Sender: verhaaggchm@ziggo.nl (via SMTP) X-Ziggo-spambar: -- X-Ziggo-spamscore: -2.8 X-Ziggo-spamreport: ALL_TRUSTED=-1, BAYES_00=-1.9, CM_CTENC_8BIT=0.1, RP_MATCHES_RCVD=-0.001 X-Ziggo-Spam-Status: No X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=212.54.42.166; country=NL; latitude=52.5000; longitude=5.7500; http://maps.google.com/maps?q=52.5000,5.7500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08Jsc5ydU - 9d7555e13e2c - 20130425 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:82074 Archived-At: Hi, Thank you very much for the explanation, now it's clear to me! Regards, Verhaag, G.C.H.M. On 04/24/2013 12:20 AM, Wolfgang Schuster wrote: > Am 23.04.2013 um 20:11 schrieb "Verhaag, G.C.H.M.": > > = >> Hi Luigi, >> >> Thanks for your very quick response, just great! Your suggestion works! >> >> By the way, what does this expanded mean, is it documented somewhere? Is= it a typical MKIV thing related to Lua? >> = > It=92s a typical way in MkIV to check for the existing of values in =93co= mmand=94 keys but it has nothing to do with Lua. > > > I can demonstrate the purpose of \unexpanded with the following example. = First I create the two > command \one and \two, afterwards I add \expandedone and \expandedtwo whi= ch hold the > expanded values of \one and \two. > > As you can see I get the same text with \one and \expandedone. In the nex= t step I redefine \one > and \two to hold a new value and compare again the content of all four ma= cros. Unlike in the > previous output \one and \expandedone are different while \two and \expan= dedtwo show > the same result. The reason why \expandedtwo show =93Second=94 is that \u= nexpanded\def > prevented the expansion of \two in \edef\expandedtwo{=85}. > > \starttext > > \def\one{One} > \unexpanded\def\two{Two} > > \edef\expandedone{\one} > \edef\expandedtwo{\two} > > \startlines > \one:\expandedone > \two:\expandedtwo > \stoplines > > \def\one{First} > \def\two{Second} > > \startlines > \one:\expandedone > \two:\expandedtwo > \stoplines > > \stoptext > > 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-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ > > = ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________