Re: [NTG-context] Using Lua files in project structure

2020-04-06 Thread Wolfgang Schuster
Jairo A. del Rio schrieb am 06.04.2020 um 15:58: Well, I'll be more specific. I attach a zip file showing a minimal example of what I achieved so far and its output (labelled "Works") and what I actually want, but does not work (labelled "Doesnotwork"). I've tried different commands and combina

Re: [NTG-context] Using Lua files in project structure

2020-04-05 Thread Aditya Mahajan
On Sun, 5 Apr 2020, Jairo A. del Rio wrote: 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: \startpr

Re: [NTG-context] Using Lua files in project structure

2020-04-05 Thread Wolfgang Schuster
Jairo A. del Rio schrieb am 05.04.2020 um 17:49: None of them work. Maybe I'm doing something wrong. I guess so because \loadluafile[testh.lua] and \luaenvironment testh.lua work for me. Wolfgang ___ If

Re: [NTG-context] Using Lua files in project structure

2020-04-05 Thread Jairo A. del Rio
None of them work. Maybe I'm doing something wrong. I have my project file (say, "main.tex") in a folder (say, "Main") and projects in a subfolder (say "Products"). I've written some Lua macros in a file (say, "foo.lua") and I need all the products to be able to call those Lua functions, so I trie

Re: [NTG-context] Using Lua files in project structure

2020-04-05 Thread Wolfgang Schuster
Jairo A. del Rio schrieb am 05.04.2020 um 15:00: 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: \

Re: [NTG-context] Using Lua files in project structure

2020-04-05 Thread Thomas A. Schmitz
On 05.04.20 15:00, Jairo A. del Rio wrote: 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: \startp

Re: [NTG-context] Using Lua files in project structure

2020-04-05 Thread mf
Il 05/04/20 15:00, Jairo A. del Rio ha scritto: 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: \s

[NTG-context] Using Lua files in project structure

2020-04-05 Thread Jairo A. del Rio
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 no