ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Aditya Mahajan <adityam@umich.edu>
Subject: Location for require(...) files
Date: Mon, 13 Dec 2021 13:38:16 -0500 (EST)	[thread overview]
Message-ID: <nycvar.YAK.7.78.908.2112131333070.1632@nqv-guvaxcnq> (raw)

Hi,

I am not trying to install tikz related modules from ctan rather than copying them from the minimals. I notice that the latest version of pgfplot now gives an error:

token call, execute: ...etatex/texmf-context/tex/context/base/mkiv/l-sandbox.lua:180: module 'prepcontour' not found:
        no field package.preload['prepcontour']
        no file '/usr/local/share/lua/5.4/prepcontour.lua'
        no file '/usr/local/share/lua/5.4/prepcontour/init.lua'
        no file '/usr/local/lib/lua/5.4/prepcontour.lua'
        no file '/usr/local/lib/lua/5.4/prepcontour/init.lua'
        no file './prepcontour.lua'
        no file './prepcontour/init.lua'

pgfplots has a line which is essentially equal to 

    \directlua{require(prepcontour);}

https://github.com/pgf-tikz/pgfplots/blob/da2acbe847db88d1b916b324562161a1c8a3d36a/tex/generic/pgfplots/libs/tikzlibrarypgfplots.contourlua.code.tex#L27

It also ships with a prepcontour.lua file:

$mtxrun prepcontour.lua
/opt/luametatex/texmf-modules/tex/generic/pgfplots/lua/prepcontour.lua

However, it is not found by the require(...) file. The value of my LUAINPUTS variable is:

mtxrun --expand-var LUAINPUTS
.;.;{home:texmf,!!selfautoparent:texmf-project,!!selfautoparent:texmf-fonts,!!selfautoparent:texmf-local,!!selfautoparent:texmf-modules,!!selfautoparent:texmf-context,!!selfautoparent:texmf-linux-64,!!selfautoparent:texmf}/tex/{context,plain/base,generic}//;{home:texmf,!!selfautoparent:texmf-project,!!selfautoparent:texmf-fonts,!!selfautoparent:texmf-local,!!selfautoparent:texmf-modules,!!selfautoparent:texmf-context,!!selfautoparent:texmf-linux-64,!!selfautoparent:texmf}/scripts/context/lua//

So, the above file should have been found, but it isn't. How can I fix this.

FWIW, here is a minimal example:

    \directlua{require("prepcontour");}

Thanks,
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________

             reply	other threads:[~2021-12-13 18:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-13 18:38 Aditya Mahajan via ntg-context [this message]
2021-12-13 18:46 ` Aditya Mahajan via ntg-context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=nycvar.YAK.7.78.908.2112131333070.1632@nqv-guvaxcnq \
    --to=ntg-context@ntg.nl \
    --cc=adityam@umich.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).