From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106755 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: "Jairo A. del Rio" Newsgroups: gmane.comp.tex.context Subject: Using Lua files in project structure Date: Sun, 5 Apr 2020 08:00:56 -0500 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0022300508528365912==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="49704"; mail-complaints-to="usenet@ciao.gmane.io" To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Apr 05 15:01:23 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jL4tv-000CoX-4R for gctc-ntg-context-518@m.gmane-mx.org; Sun, 05 Apr 2020 15:01:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A90CF1830A2; Sun, 5 Apr 2020 15:01:10 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id St4P84KMXncu; Sun, 5 Apr 2020 15:01:09 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D4D5F1830A5; Sun, 5 Apr 2020 15:01:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 293A41830A2 for ; Sun, 5 Apr 2020 15:01:08 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1wMURZYJnL2L for ; Sun, 5 Apr 2020 15:01:07 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.128.46; helo=mail-wm1-f46.google.com; envelope-from=jairoadelrio6@gmail.com; receiver= Original-Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 99D1F183097 for ; Sun, 5 Apr 2020 15:01:07 +0200 (CEST) Original-Received: by mail-wm1-f46.google.com with SMTP id h2so3902284wmb.4 for ; Sun, 05 Apr 2020 06:01:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=8o1cmMPcVNZWxy/4CjblVMot/fAM9oYuu9RItRr/qbk=; b=ZhqjPE4KuMyGkNa0ttvH0MRDyJ9+tGfAKvLNRsxfmcsanGBPVXK71hrkOf4G3QUzr1 jFTSA96jkIuXrAgtBrhUj1xkx1eNYuor9xRt1/KOgpljTu/BHhyNJ1k8jqzx+2FXfBuF qaS3UOQdBOqIwmguUbCoS0wxmWiqM4HPNg37c1vXehof87AdkbMwLGhUULHrmvNyLubF bgY4ec0BDkgU4kFmdKgVP+bYo88kRvzHXbGu4tav0X5zkpGdM7mkFhlqA+i/EamxSCNJ 1H2QYEYX/3l/MaQE3SaoKsM//C5ARrCB4tZryKsUmpl6e7p+aawskHASZ8hSB1gmKZ3r tvMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=8o1cmMPcVNZWxy/4CjblVMot/fAM9oYuu9RItRr/qbk=; b=CTCkv8lKAQxRTEW+gbEQqgk4opHS12b7/11yoEhEqZiN/+7tpVj7OrQ6iwvS3d5Mf+ GHjgARWsm3qmaT/C+MZEGmiCnK2BTkz8+iBdh0395RjFdhlrQJRS0Uy3n6DqVBKdxm9r 2hQ0Wt3fv3lw4/21oAfm3iWk3fEcOEmjZzpvh2kiL97zsuMc5w1b398k25adYuy465zO FpfC4z/8w04evRVr8/Qh4VZch+IY18dIkb6E0hq3uwNGTDO0EpAxv6xnyDE3ec/dEkCv t6sy6Z5WNePlVDTiZUh54Nwm6KApm8bld22Kd9MF/O8l7CxaN2rYtUDi9iMgwpxAvZaL bm9Q== X-Gm-Message-State: AGi0PuaWfnpeSUsyT4w/5jPZeNacn30iYb7RaS9LRCpc5bU33BHC9k+W qTgjT/cO4BnX3zl8Eb36DQAZl+WGFVb/tawjBE+2mEVo X-Google-Smtp-Source: APiQypIwQyMtGqenI3uEpTTI1owzUfLtKaVnVn6Cid/Y66js+Cn4J+P6WSq4DztTR4SkHZzWEW4v3UlNxvpKpL+CK1M= X-Received: by 2002:a1c:6a1a:: with SMTP id f26mr17921559wmc.170.1586091666924; Sun, 05 Apr 2020 06:01:06 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:106755 Archived-At: --===============0022300508528365912== Content-Type: multipart/alternative; boundary="00000000000063674605a28abe36" --00000000000063674605a28abe36 Content-Type: text/plain; charset="UTF-8" I'm writing a project in ConTeXt MKIV and I want to load some (pure) Lua libraries and bindings (defining \ctxlua and the like). For instance, I have the file foo.lua with some macros and I want to use them in my project. Something like this: \startproject project %\component foo.lua %This does not work %\environment foo.lua %This does not work %\input foo.lua %This does not work %\directlua{dofile("foo.lua")} %This does not work even when the project file and foo.lua are in the same folder. \stopproject What should I do? Thank you in advance. --00000000000063674605a28abe36 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm writing a project in ConTeXt MKIV and I want = to load some (pure) Lua libraries and bindings (defining \ctxlua and the li= ke). For instance, I have the file foo.lua with some macros and I want to u= se them in my project. Something like this:

\start= project project
%\component foo.lua %This does not work
=
%\environment foo.lua %This does not work
%\input foo.lua %T= his does not work
%\directlua{dofile("foo.lua")} %This = does not work even when the project file and foo.lua are in the same folder= .
\stopproject=C2=A0

What should I d= o? Thank you in advance.
--00000000000063674605a28abe36-- --===============0022300508528365912== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============0022300508528365912==--