ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Procházka Lukáš Ing. - Pontex s. r. o." <LPr@pontex.cz>
To: ConTeXt <ntg-context@ntg.nl>
Subject: Re: Lua in Ctx: "require()" fails? (solved)
Date: Mon, 08 Oct 2012 15:57:27 +0200	[thread overview]
Message-ID: <op.wlu411hetpjj8f@lpr> (raw)
In-Reply-To: <506EA0EB.8010106@wxs.nl>

On Fri, 05 Oct 2012 10:57:15 +0200, Hans Hagen <pragma@wxs.nl> wrote:

> On 5-10-2012 08:13, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
>> On Thu, 04 Oct 2012 13:32:42 +0200, Hans Hagen <pragma@wxs.nl> wrote:
>>
>>> btw, you should adapt LUAINPUTS and not some other environment variable
>>> .. after all, luatex is not native lua so you need to avoid conflicts in
>>> case you hav einstalled both
>>
>> .... I just added
>>
>> SET LUAINPUTS=%LUA_PATH%
>>
>> to the batch I'm using to launch context.exe and it works.
>
> You can best set that in a local texmfcnf.lua file.

OK...

I'm not familiar with (Lua)TeX deeply enough to know how exactly to do it, so a couple a questions:

- Where to put (my personal) texmfcnf.lua?

    The intention is Ctx to find and load its original texmfcnf.lua and then to load my texmfcnf.lua which would modify only some elements (namely: the LUAINPUTS member).

    I'd like to keep "factory" texmfcnf.lua settings as much as possible.

- When I look into "c:\ConTeXt\tex\texmf\web2c\texmfcnf.lua", I see many paths:

    - beginning with "!!",
    - ending with "//".

    What does mean this convention?

- I found 2 config files:

    c:\ConTeXt\tex\texmf\web2c\texmf.cnf
    c:\ConTeXt\tex\texmf\web2c\texmfcnf.lua

    It seems that the latter is a "Luaed" form of the former.

    How are used both files?

    Is the latter built from the former or vice versa?

    Or the former is no more used and I'm having it among Ctx files by chance?


(Or a link to a place where to learn more would be appreciated.)

TIA.

Best regards,

Lukas


> In that case you use
> the original definition of luainputs and append lua_path to it. That way
> script in the context tree can also be found.
>
> Hans


-- 
Ing. Lukáš Procházka [mailto:LPr@pontex.cz]
Pontex s. r. o.      [mailto:pontex@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___________________________________________________________________________________
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
___________________________________________________________________________________


  reply	other threads:[~2012-10-08 13:57 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-04 10:09 Lua in Ctx: "require()" fails? Procházka Lukáš Ing. - Pontex s. r. o.
2012-10-04 11:27 ` Hans Hagen
2012-10-04 11:32   ` Hans Hagen
2012-10-05  6:13     ` Lua in Ctx: "require()" fails? (solved) Procházka Lukáš Ing. - Pontex s. r. o.
2012-10-05  6:51       ` luigi scarso
2012-10-05  8:57       ` Hans Hagen
2012-10-08 13:57         ` Procházka Lukáš Ing. - Pontex s. r. o. [this message]
2012-10-15 18:29           ` Hans Hagen
2012-10-23 14:14             ` Lua in Ctx: "require()" fails? Procházka Lukáš Ing. - Pontex s. r. o.
2012-10-23 14:13               ` Hans Hagen
2012-10-23 14:37                 ` Procházka Lukáš Ing. - Pontex s. r. o.
2012-10-23 14:53                   ` Hans Hagen
2012-10-23 14:58                     ` Procházka Lukáš Ing. - Pontex s. r. o.
2012-10-23 15:28                       ` Hans Hagen
2012-10-24  9:21                         ` Procházka Lukáš Ing. - Pontex s. r. o.
2012-10-24 10:09                           ` Hans Hagen
2012-10-04 12:51   ` Procházka Lukáš Ing. - Pontex s. r. o.

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=op.wlu411hetpjj8f@lpr \
    --to=lpr@pontex.cz \
    --cc=ntg-context@ntg.nl \
    /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).