From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69031 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: Getting arguments by Lua Date: Thu, 09 Jun 2011 13:57:27 +0200 Message-ID: <4DF0B527.30403@elvenkind.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1307620669 25190 80.91.229.12 (9 Jun 2011 11:57:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Jun 2011 11:57:49 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 09 13:57:45 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 1QUdrt-0004TO-9L for gctc-ntg-context-518@m.gmane.org; Thu, 09 Jun 2011 13:57:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9C2BECADB1; Thu, 9 Jun 2011 13:57:44 +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 jbqkeaLXFjay; Thu, 9 Jun 2011 13:57:42 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 29265CADA4; Thu, 9 Jun 2011 13:57:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EAF77CADA4 for ; Thu, 9 Jun 2011 13:57:40 +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 hmK3qc4y-XCB for ; Thu, 9 Jun 2011 13:57:30 +0200 (CEST) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 28594CAD8F for ; Thu, 9 Jun 2011 13:57:30 +0200 (CEST) Original-Received: from pilot.elvenkind.com (elvenknd.xs4all.nl [82.95.203.226]) by filter1-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p59BvSLQ016051 for ; Thu, 9 Jun 2011 13:57:29 +0200 Original-Received: from localhost (pilot.elvenkind.com [127.0.0.1]) by pilot.elvenkind.com (Postfix) with ESMTP id 29DFEAA3; Thu, 9 Jun 2011 13:54:52 +0200 (CEST) X-Virus-Scanned: amavisd-new at localhost.localdomain Original-Received: from pilot.elvenkind.com ([127.0.0.1]) by localhost (pilot.elvenkind.com [127.0.0.1]) (amavisd-new, port 10025) with LMTP id q9F8FbDRJMov; Thu, 9 Jun 2011 13:54:51 +0200 (CEST) Original-Received: from glenlivet.elvenkind.com (glenlivet.elvenkind.com [10.10.0.6]) by pilot.elvenkind.com (Postfix) with ESMTP id 9E877216; Thu, 9 Jun 2011 13:54:51 +0200 (CEST) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.14) Gecko/20101022 Mandriva/3.0.9-0.1mdv2010.1 (2010.1) Thunderbird/3.0.9 In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=82.95.203.226; country=NL; region=11; city=Capelle; latitude=51.9333; longitude=4.5833; http://maps.google.com/maps?q=51.9333,4.5833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07ERLVsQl - 9d63ad0c4ff7 - 20110609 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 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:69031 Archived-At: On 06/09/11 13:41, Proch=E1zka Luk=E1=B9 Ing. - Pontex s. r. o. wrote: > Hello, > = > when I run context by e.g.: > = > context.exe Source.mkiv --result=3DResult.pdf --mode=3DMode > = > is it possible to access the command line arguments from Lua? the 'environment' table has information about this stuff. In particular, environment.rawarguments matches the table that lua calls 'arg'. \directlua{print (table.serialize(environment.rawarguments))} Best wishes, Taco ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________