From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73623 Path: news.gmane.org!not-for-mail From: Wagner Macedo Newsgroups: gmane.comp.tex.context Subject: Re: CLD: context.getvariable as Lua variable Date: Thu, 5 Jan 2012 14:57:50 -0300 Message-ID: References: <3661B4DE-7B3F-47B0-9934-82A3B65F8EDA@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1659032689==" X-Trace: dough.gmane.org 1325786333 23767 80.91.229.12 (5 Jan 2012 17:58:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 5 Jan 2012 17:58:53 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 05 18:58:47 2012 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 1RiraQ-0008Rq-0Z for gctc-ntg-context-518@m.gmane.org; Thu, 05 Jan 2012 18:58:46 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DADBCCB1D7; Thu, 5 Jan 2012 18:58:44 +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 xLTho2vsoUYa; Thu, 5 Jan 2012 18:58:42 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 30981CB1C8; Thu, 5 Jan 2012 18:58:42 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 81EE5CB1C8 for ; Thu, 5 Jan 2012 18:58:40 +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 L7sVySowN7pv for ; Thu, 5 Jan 2012 18:58:21 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 6302ACB1B4 for ; Thu, 5 Jan 2012 18:58:21 +0100 (CET) Original-Received: from mail-tul01m020-f169.google.com (mail-tul01m020-f169.google.com [209.85.214.169]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q05HwBgj017290 for ; Thu, 5 Jan 2012 18:58:12 +0100 Original-Received: by obcwo8 with SMTP id wo8so1160932obc.14 for ; Thu, 05 Jan 2012 09:58:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=P+AuBeyM67xeL8MBLNjX36tgWtP/1AP2HzzoQtnrJLI=; b=tYz5hwTUoa9WlffkKjasIe78SL1NaQyZ9m6zAkHvHsdHHLyPGy/zAFlzbFTy3xE49D cnsyYH4QLiUos5hrzMwLfxGpeWoaXwIBv0R/495cVevwpW4WnTu7gG31wezSQA5amyoe pfD70bDOrvR6myGNGwQl/1fVin0kQMWnduV24= Original-Received: by 10.50.186.169 with SMTP id fl9mr3762078igc.28.1325786291370; Thu, 05 Jan 2012 09:58:11 -0800 (PST) Original-Received: by 10.231.117.223 with HTTP; Thu, 5 Jan 2012 09:57:50 -0800 (PST) In-Reply-To: <3661B4DE-7B3F-47B0-9934-82A3B65F8EDA@googlemail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.169; 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: 08GhRWcdP - 2070896b4338 - 20120105 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:73623 Archived-At: --===============1659032689== Content-Type: multipart/alternative; boundary=14dae9340b81f1fb0b04b5cbac2d --14dae9340b81f1fb0b04b5cbac2d Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Don't worry. It's not needed. I just wanted to avoid mix Lua and TeX codes. I will survive using: local s =3D "\getvariable{namespace}{var}" Thank you by attention. -- Wagner Macedo On 5 January 2012 14:39, Wolfgang Schuster wrote: > > Am 05.01.2012 um 18:22 schrieb Wagner Macedo: > > > Firstly, thanks by answer. > > > > The second way is nice, but could be generic (e.g. save any variable in > a namespace)? > > It would require a different method because \setvariables doesn=92t provi= de > information about the values which are set. Can you describe what do you > want to achieve and I can try to provide a better solution. > > 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 : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > _________________________________________________________________________= __________ > --14dae9340b81f1fb0b04b5cbac2d Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Don't worry. It's not needed. I just wanted to avoid mix Lua and Te= X codes.

I will survive using:

local s =3D "\getvariable{namespace}{var}"

Thank you by attention.

--
Wagner Macedo


On 5 January 2012 14:39, Wolfgang Schust= er <schuster.wolfgang@googlemail.com> wrote:

Am 05.01.2012 um 18:22 schrieb Wagner Macedo:

> Firstly, thanks by answer.
>
> The second way is nice, but could be generic (e.g. save any variable i= n a namespace)?

It would require a different method because \setvariables doesn=92t p= rovide
information about the values which are set. Can you describe what do you want to achieve and I can try to provide a better solution.

Wolfgang
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" target=3D"_blank"= >http://www.ntg.nl/mailman/listinfo/ntg-context
webpage =A0: http://= www.pragma-ade.nl / http://tex.aanhet.net
archive =A0: http://foundry.supelec.fr/projects/contextrev/
wiki =A0 =A0 : http:= //contextgarden.net
___________________________________________________________________________= ________

--14dae9340b81f1fb0b04b5cbac2d-- --===============1659032689== 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 ___________________________________________________________________________________ --===============1659032689==--