From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69035 Path: news.gmane.org!not-for-mail From: =?iso-8859-2?B?UHJvY2jhemthIEx1a+G5IEluZy4gLSBQb250ZXggcy4gci4gby4=?= Newsgroups: gmane.comp.tex.context Subject: Re: Getting arguments by Lua Date: Thu, 09 Jun 2011 14:39:50 +0200 Message-ID: References: <4DF0B527.30403@elvenkind.com> 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"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1307623239 9382 80.91.229.12 (9 Jun 2011 12:40:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Jun 2011 12:40:39 +0000 (UTC) To: ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 09 14:40:35 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 1QUeXJ-00074T-Qc for gctc-ntg-context-518@m.gmane.org; Thu, 09 Jun 2011 14:40:33 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D2DE9CADB7; Thu, 9 Jun 2011 14:40:32 +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 5ynk8Hiyom4W; Thu, 9 Jun 2011 14:40:29 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 46E29CADA4; Thu, 9 Jun 2011 14:40:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EC339CADA4 for ; Thu, 9 Jun 2011 14:40:27 +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 gtwlxg98nE1u for ; Thu, 9 Jun 2011 14:40:08 +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 56216CAD97 for ; Thu, 9 Jun 2011 14:40:08 +0200 (CEST) Original-Received: from mail.pontex.cz (mail.pontex.cz [89.233.168.98]) by filter1-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p59Ce3pY002671 for ; Thu, 9 Jun 2011 14:40:05 +0200 Original-Received: from localhost ([127.0.0.1]) by mail.pontex.cz (Kerio MailServer 6.6.2) for ntg-context@ntg.nl; Thu, 9 Jun 2011 14:40:02 +0200 In-Reply-To: <4DF0B527.30403@elvenkind.com> User-Agent: Opera Mail/11.11 (Win32) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=89.233.168.98; country=CZ; region=52; city=Prague; latitude=50.0833; longitude=14.4667; http://maps.google.com/maps?q=50.0833,14.4667&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07ERME3k4 - b82a937cfd5b - 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:69035 Archived-At: OK, thanks both for the answers. Lukas On Thu, 09 Jun 2011 13:57:27 +0200, Taco Hoekwater wro= te: > > > 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 > I think the tables document.arguments and documents.files might also be of interest. Regards. -- C=E9dric ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________