From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/54593 Path: news.gmane.org!not-for-mail From: "Kevin D. Robbins" Newsgroups: gmane.comp.tex.context Subject: How to load a lua file into a named lua instance Date: Fri, 20 Nov 2009 15:15:56 -0700 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1562951523==" X-Trace: ger.gmane.org 1258755379 16995 80.91.229.12 (20 Nov 2009 22:16:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Nov 2009 22:16:19 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 20 23:16:12 2009 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.50) id 1NBbly-0003Kw-CS for gctc-ntg-context-518@m.gmane.org; Fri, 20 Nov 2009 23:16:10 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5D9CCC9A70; Fri, 20 Nov 2009 23:13:34 +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 Osz4Kojf0k-J; Fri, 20 Nov 2009 23:13:31 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 29B7CC9AAA; Fri, 20 Nov 2009 23:13:31 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 14959C9AAA for ; Fri, 20 Nov 2009 23:13:29 +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 Ef+JZJzQQ4hQ for ; Fri, 20 Nov 2009 23:13:25 +0100 (CET) Original-Received: from mail-px0-f193.google.com (mail-px0-f193.google.com [209.85.216.193]) by balder.ntg.nl (Postfix) with ESMTP id 78149C9A70 for ; Fri, 20 Nov 2009 23:13:25 +0100 (CET) Original-Received: by pxi31 with SMTP id 31so2457521pxi.6 for ; Fri, 20 Nov 2009 14:15:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=2xsbxM6H65afeC3b5L2BBKd+j94d+mP/WIg+ke9XKSQ=; b=xX9SN6FcoKEUgBkSBk0Nw3iMmW1/2B0UL9wmEjTtexY35XUwH/creDa+FEORxcEqwo tn+jErDjUZQDCOZiFi0a7f1kV92Pr1sWdC78fS0q7XuVVGqTFrKgBzvbXjB5MNEz9Sx/ NEKnUYJwL1lq7XkP8JVnfAabejG2ASa3lwl/8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=CDupb3THVY/FkQDte7L4ZHHQvc01ihpVMSQkXPPC83tBS/k6X7i7LE1+AqmzbAqIKL le8pBlMx8jvRim6pGFifPDMBjL8Y/UFzn7K8tzJ8/zygPfWGSI/aCldyCiECKQC+T2NR gMIqO+dib5yQ4pF1Wy0MTU10ljuvqWz9pKSrY= Original-Received: by 10.143.25.39 with SMTP id c39mr229470wfj.10.1258755356247; Fri, 20 Nov 2009 14:15:56 -0800 (PST) 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:54593 Archived-At: --===============1562951523== Content-Type: multipart/alternative; boundary=001636e0b61ede47e20478d4d1f0 --001636e0b61ede47e20478d4d1f0 Content-Type: text/plain; charset=UTF-8 Hi all, I have a module with lots of lua code, and I'd like to move most of the lua code to a separate file, say t-module.lua. I have written all of the lua code using \modulecode and \startmodulecode ... \stopmodulecode. But, when I move the lua code to t-module.lua and load it with dofile, it seems to load in the global instance instead of the third party module instance. Is there any method to load an external lua file in a named instance? Thanks, Kevin --001636e0b61ede47e20478d4d1f0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi all,

I have a module with lots of lua code, and I'd like to m= ove most of the lua code to a separate file, say t-module.lua. I have writt= en all of the lua code using \modulecode and \startmodulecode ... \stopmodu= lecode. But, when I move the lua code to t-module.lua and load it with dofi= le, it seems to load in the global instance instead of the third party modu= le instance. Is there any method to load an external lua file in a named in= stance?

Thanks,

Kevin
--001636e0b61ede47e20478d4d1f0-- --===============1562951523== 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 ___________________________________________________________________________________ --===============1562951523==--