From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62631 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: How to call a ctx command with parameters from Lua Date: Thu, 14 Oct 2010 22:43:44 +0200 Message-ID: <5A0D2E8D-4190-472F-9C56-C81DCCA14A25@gmail.com> References: 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="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1287089552 20945 80.91.229.12 (14 Oct 2010 20:52:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 14 Oct 2010 20:52:32 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 14 22:52:30 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 1P6Ump-0000l6-Ld for gctc-ntg-context-518@m.gmane.org; Thu, 14 Oct 2010 22:52:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8B00ACA74C; Thu, 14 Oct 2010 22:52:19 +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 aPFZLJDUYJhK; Thu, 14 Oct 2010 22:52:15 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8931BCA741; Thu, 14 Oct 2010 22:52:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CF0E8CA72D for ; Thu, 14 Oct 2010 22:52:12 +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 y4GqPDvrVh+3 for ; Thu, 14 Oct 2010 22:52:10 +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 C053DCA73D for ; Thu, 14 Oct 2010 22:52:10 +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 o9EKppun005424 for ; Thu, 14 Oct 2010 22:52:10 +0200 Original-Received: by mail-bw0-f41.google.com with SMTP id 19so1027511bwz.14 for ; Thu, 14 Oct 2010 13:52:10 -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=YKKiPodxUw5wl957B6n3UJo4EvW+WkDYcfUW6CQ1Lt8=; b=JqEogiWZBy5z+WS9EG8uBLpNPbJLzP0AL2Tdkj8+NBuUDFIl8lgsadjjHvBGUDaPNm nLDNLNM0icTQIBcfZJex6vHwja36RTJceNMcV5se5KsNpzuAcq08//IqFq08dPdno05/ 6tppZ7HOIX9aT8N1CZZwGAwXX7cBO32g9z0RA= 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=o+4O7LYdZ85PNYPVlM7V98pDXwHOrWA/VJzWZD0CdCtsKDcbrBjaGdLBXA9UWoBLVw 8F+daTNeRb99V13fLP+641VFW85vb2xsEkWnuRrK80NWlnaTi1JWxpmJJrVaJcLfIv5H D6HywnSaXNVw8Hv25vUuSKjrWiN1X4KU1EFi0= Original-Received: by 10.204.177.79 with SMTP id bh15mr9566708bkb.121.1287089530146; Thu, 14 Oct 2010 13:52:10 -0700 (PDT) Original-Received: from [192.168.2.23] (p5B2951E8.dip.t-dialin.net [91.41.81.232]) by mx.google.com with ESMTPS id o12sm9985552bkb.9.2010.10.14.13.52.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 14 Oct 2010 13:52:08 -0700 (PDT) In-Reply-To: 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: 0eDiIQaHF - a822c65e1274 - 20101014 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:62631 Archived-At: Am 14.10.2010 um 17:31 schrieb Proch=E1zka Luk=E1=9A Ing. - Pontex s. r. o.: > Hello, > = > this thing was probably shown during last Ctx meeting, but I can't rememb= er the answer. > = > Let's ave the Ctx code: > = > \typefile[default]{Myfile.txt} > = > and I'd need to call this command by Lua, like: > = > \startluacode > context.typefile("MyFile.txt") > \stoluacode > = > But how to pass the "[default]" option? context.typefile( { "default" }, "MyFile.txt" ) 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 ___________________________________________________________________________= ________