From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/57069 Path: news.gmane.org!not-for-mail From: Philipp Gesang Newsgroups: gmane.comp.tex.context Subject: Re: Including lua files Date: Sat, 13 Mar 2010 19:50:41 +0100 Message-ID: <20100313185041.GB12006@localhost.localdomain> References: <20100313145413.GA12006@localhost.localdomain> <4B9BBC3B.4010809@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1063887799==" X-Trace: dough.gmane.org 1268506320 11974 80.91.229.12 (13 Mar 2010 18:52:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 13 Mar 2010 18:52:00 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Mar 13 19:51:52 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 1NqWRD-0002dS-Pk for gctc-ntg-context-518@m.gmane.org; Sat, 13 Mar 2010 19:51:51 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DF5FEC9DD5; Sat, 13 Mar 2010 19:51:50 +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 Yt2vP1w6HlIO; Sat, 13 Mar 2010 19:51:48 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1811CC9D50; Sat, 13 Mar 2010 19:51:48 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 96BABC9D50 for ; Sat, 13 Mar 2010 19:51:46 +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 SgmdpMDT40oF for ; Sat, 13 Mar 2010 19:51:44 +0100 (CET) Original-Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by balder.ntg.nl (Postfix) with ESMTP id 32615C9D48 for ; Sat, 13 Mar 2010 19:51:44 +0100 (CET) Original-Received: from ix.urz.uni-heidelberg.de (cyrus-portal.urz.uni-heidelberg.de [129.206.100.176]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id o2DIpdur031572 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 13 Mar 2010 19:51:39 +0100 Original-Received: from extmail.urz.uni-heidelberg.de (extmail.urz.uni-heidelberg.de [129.206.100.140]) by ix.urz.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id o2DIph33019715 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 13 Mar 2010 19:51:43 +0100 Original-Received: from localhost (mnhm-5f75f405.pool.mediaWays.net [95.117.244.5]) (authenticated bits=0) by extmail.urz.uni-heidelberg.de (8.13.4/8.13.1) with ESMTP id o2DIoR7D015738 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sat, 13 Mar 2010 19:50:28 +0100 In-Reply-To: <4B9BBC3B.4010809@googlemail.com> X-Operating-System: Linux aides 2.6.32-ARCH User-Agent: Mutt/1.5.20 (2009-06-14) 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:57069 Archived-At: --===============1063887799== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mxv5cy4qt+RJ9ypb" Content-Disposition: inline --mxv5cy4qt+RJ9ypb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2010-03-13 <17:24:27>, Wolfgang Schuster wrote: > Am 13.03.10 15:54, schrieb Philipp Gesang: > >Dear Lua Gurus, > > > >what's the preferred way of including files in Lua? > > > >When trying my module on a different machine I noticed that it fails > >because Lua's dofile() does not extend to files in the texmf tree. Thus > >I attempted to include the file with context.ctxlualoadfile() but it > >doesn't work either. > environment.loadluafile(...)? What a relief, finally I managed it: could somebody with access to the context source please add a note luat-env.lua, that filenames passed to environment.loadluafile() must have their .lua suffix stripped? This might save somebody a minor headache someday. Thanks for the help, Philipp >=20 > Wolfgang >=20 > _________________________________________________________________________= __________ > If your question is of interest to others as well, please add an entry to= the Wiki! >=20 > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ --=20 () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments --mxv5cy4qt+RJ9ypb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkub3oEACgkQ02lYlJYWs9KFIQCfdfvnWtYfK3nhjYuHg+2hOkN3 GjQAnjgh31PXdFkl+bPAxZJmt5swIulP =MC1x -----END PGP SIGNATURE----- --mxv5cy4qt+RJ9ypb-- --===============1063887799== 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 ___________________________________________________________________________________ --===============1063887799==--