* Finding lua file for module using \registerctxluafile
@ 2018-07-18 17:07 Stanislav Sokolenko
2018-07-18 20:25 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Stanislav Sokolenko @ 2018-07-18 17:07 UTC (permalink / raw)
To: mailing list for ConTeXt users
Dear list,
I've recently written a small module p-mymod.tex which uses lua code in
p-mymod.lua. In order to load this lua code, I use
\registerctxluafile{p-mymod}{1.001} (copying the example of
m-database.mkiv). However, it seems like the search path for lua files
isn't the same as for context module files.
When a context file that uses p-mymod through \usemodule[mymod] is
placed in a subdirectory, it finds p-mymod, but not the lua portion:
p-mymod.tex
p-mymod.lua
subdir/test.tex
Placing the lua file inside the subdirectory resolves this problem:
p-mymod.tex
subdir/p-mymod.lua
subdir/test.tex
What is the suggested method to change the lua search path? Ideally, I'd
like to avoid placing the files in
$TEXMF/tex/context/third/<modulename>/<files> as this module is quite
intimately tied to the specific project and it doesn't make much sense
to separate the files too much.
Thanks,
Stan
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Finding lua file for module using \registerctxluafile
2018-07-18 17:07 Finding lua file for module using \registerctxluafile Stanislav Sokolenko
@ 2018-07-18 20:25 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2018-07-18 20:25 UTC (permalink / raw)
To: mailing list for ConTeXt users, Stanislav Sokolenko
On 7/18/2018 7:07 PM, Stanislav Sokolenko wrote:
> Dear list,
>
> I've recently written a small module p-mymod.tex which uses lua code in
> p-mymod.lua. In order to load this lua code, I use
> \registerctxluafile{p-mymod}{1.001} (copying the example of
> m-database.mkiv). However, it seems like the search path for lua files
> isn't the same as for context module files.
>
> When a context file that uses p-mymod through \usemodule[mymod] is
> placed in a subdirectory, it finds p-mymod, but not the lua portion:
>
> p-mymod.tex
> p-mymod.lua
> subdir/test.tex
>
> Placing the lua file inside the subdirectory resolves this problem:
>
> p-mymod.tex
> subdir/p-mymod.lua
> subdir/test.tex
>
> What is the suggested method to change the lua search path? Ideally, I'd
> like to avoid placing the files in
> $TEXMF/tex/context/third/<modulename>/<files> as this module is quite
> intimately tied to the specific project and it doesn't make much sense
> to separate the files too much.
normally i put those in texmf-project/tex/context/...
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-18 20:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-18 17:07 Finding lua file for module using \registerctxluafile Stanislav Sokolenko
2018-07-18 20:25 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).