ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: pgfplots broken?
Date: Wed, 05 Nov 2014 11:40:07 +0100	[thread overview]
Message-ID: <5459FE87.90509@wxs.nl> (raw)
In-Reply-To: <CAHy-LL_mm=bVQE0dfZUo5i3sZx2E-j5BZ0Bx4MsNy+Uf_se9cg@mail.gmail.com>

On 11/5/2014 10:28 AM, Mikael P. Sundqvist wrote:
> On Wed, Nov 5, 2014 at 8:42 AM, Akira Kakuto <kakuto@fuk.kindai.ac.jp> wrote:
>> Dear Mikael,
>>
>> An example from PGFPlots Gallery.
>> Please try if it works. Here on windows, it seems to work.
>> Attached files are tt.log.txt and tt.pdf.
>>
>> Best,
>> Akira
>
>
> Dear Akira,
>
> since loading the package generates the error, this example does not
> work either. I guess (hope) that the clash in version or what it is
> will be resolved soon.

the pgf file structure is just wrong, if you run this you can see where 
is searched:

\starttext
     \startluacode
         package.helpers.trace = true
         io.savedata("foo.bar.lua",[[print("hello")]])
         require ("foo.bar")
     \stopluacode
\stoptext

so, if you want to

   require("foo.bar.whatever"

it should be e.g.:

  tex/generic/foo/bar/whatever.lua

when kpse is plugged into the package loader it might find 
foo.bar.whatever.lua but context is not going to support that lookup; in 
that case

dofile(resolvers.findfile("foo.bar.whatever.lua"))

has to be used.

Also keep in mind that dot separated filenames can conflict with module 
initialization functions (e.g. when you have foo.core.lua it would load 
foo and initialize using the core function in it). The require 
functionality is already messy enough and adding all kind of catches to 
it would make it worse.

(Context already has an extended and quite extensive loader, including 
versions external libraries and so but that's another story.)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2014-11-05 10:40 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-05  7:42 Akira Kakuto
2014-11-05  8:14 ` luigi scarso
2014-11-05  9:28 ` Mikael P. Sundqvist
2014-11-05 10:40   ` Hans Hagen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-11-04 22:35 Akira Kakuto
2014-11-04 14:44 Akira Kakuto
2014-11-04 18:13 ` Mikael P. Sundqvist
2014-11-04 19:12   ` Hans Hagen
2014-11-04 19:22     ` Mikael P. Sundqvist
2014-11-04 11:42 Mikael P. Sundqvist
2014-11-04 12:58 ` luigi scarso
2014-11-04 15:35   ` Hans Hagen
2014-11-04 14:27 ` Keith J. Schultz
2014-11-04 15:32 ` Hans Hagen
2014-11-04 15:49   ` Mikael P. Sundqvist
2014-11-04 16:21     ` Hans Hagen
2014-11-05 11:22   ` Keith J. Schultz

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=5459FE87.90509@wxs.nl \
    --to=pragma@wxs.nl \
    --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).