ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Current source directory.
@ 2012-09-24 20:28 Andre Caldas
  2012-09-24 21:37 ` Peter Münster
  0 siblings, 1 reply; 15+ messages in thread
From: Andre Caldas @ 2012-09-24 20:28 UTC (permalink / raw)
  To: ConTeXt users

Hello!

Is there a way to know the directory of the currently being processed
source file?

Something like
dirname(__FILE__)
in PHP.


Cheers,
André Caldas.
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Current source directory.
  2012-09-24 20:28 Current source directory Andre Caldas
@ 2012-09-24 21:37 ` Peter Münster
  2012-09-24 21:43   ` Peter Münster
  2012-09-27 22:38   ` Andre Caldas
  0 siblings, 2 replies; 15+ messages in thread
From: Peter Münster @ 2012-09-24 21:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, Sep 24 2012, Andre Caldas wrote:

> Is there a way to know the directory of the currently being processed
> source file?

This works with mkiv:

\starttext
PWD: \cldcontext{io.popen"pwd":read()}
\stoptext

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


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Current source directory.
  2012-09-24 21:37 ` Peter Münster
@ 2012-09-24 21:43   ` Peter Münster
  2012-09-27 22:38   ` Andre Caldas
  1 sibling, 0 replies; 15+ messages in thread
From: Peter Münster @ 2012-09-24 21:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, Sep 24 2012, Peter Münster wrote:

> \starttext
> PWD: \cldcontext{io.popen"pwd":read()}
> \stoptext

Or better:

\starttext
PWD: \cldcontext{environment.runpath}
\stoptext

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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Current source directory.
  2012-09-24 21:37 ` Peter Münster
  2012-09-24 21:43   ` Peter Münster
@ 2012-09-27 22:38   ` Andre Caldas
  2012-09-28  1:15     ` Sietse Brouwer
  1 sibling, 1 reply; 15+ messages in thread
From: Andre Caldas @ 2012-09-27 22:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thank you for yor time, Peter. But this is not what I wanted... :-(

>> Is there a way to know the directory of the currently being processed
>> source file?
>
> This works with mkiv:
>
> \starttext
> PWD: \cldcontext{io.popen"pwd":read()}
> \stoptext

This gives the directory where the "context" command was called from.
I want the directory where the "tex" file being processed lives in.

For example, I have a component
products/product/article.tex
Inside a product
products/product.tex
I produce it by calling
context products/product.tex

I want to know a function that returns
/fullpath_to_project/products/
when I call it from the script "products/product.tex". And I want it to return
/fullpath_to_project/products/product/
when I call it from the script "products/product/article.tex".


Cheers,
André Caldas.
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Current source directory.
  2012-09-27 22:38   ` Andre Caldas
@ 2012-09-28  1:15     ` Sietse Brouwer
  2012-09-28 12:34       ` Andre Caldas
  2012-09-28 19:17       ` Andre Caldas
  0 siblings, 2 replies; 15+ messages in thread
From: Sietse Brouwer @ 2012-09-28  1:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users

> I want to know a function that returns
> /fullpath_to_project/products/
> when I call it from the script "products/product.tex". And I want it to return
> /fullpath_to_project/products/product/
> when I call it from the script "products/product/article.tex".

Finally found it, after lots of trial-and-erroring through
likely-looking table names in file-job.lua: the stack of input files
is kept in resolvers.inputstack. Assuming (absolute path of invocation
dir) + (path of file relative to invocation dir) = the desired path,
the following should work.

    \cldcontext{
        environment.runpath .. '/'  ..
            file.pathpart(resolvers.inputstack[#resolvers.inputstack])
    }


You may or may not want to parse out any ./ and ../ components.
(If you do: helpful filename manipulation functions (such as
file.pathpart, indeed) may be found in l-file.lua.)

Hope this helps,
Sietse


On Fri, Sep 28, 2012 at 12:38 AM, Andre Caldas
<andre.em.caldas@gmail.com> wrote:
> Thank you for yor time, Peter. But this is not what I wanted... :-(
>
>>> Is there a way to know the directory of the currently being processed
>>> source file?
>>
>> This works with mkiv:
>>
>> \starttext
>> PWD: \cldcontext{io.popen"pwd":read()}
>> \stoptext
>
> This gives the directory where the "context" command was called from.
> I want the directory where the "tex" file being processed lives in.
>
> For example, I have a component
> products/product/article.tex
> Inside a product
> products/product.tex
> I produce it by calling
> context products/product.tex
>

>
>
> Cheers,
> André Caldas.
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Current source directory.
  2012-09-28  1:15     ` Sietse Brouwer
@ 2012-09-28 12:34       ` Andre Caldas
  2012-09-28 12:46         ` Hans Hagen
  2012-09-28 19:17       ` Andre Caldas
  1 sibling, 1 reply; 15+ messages in thread
From: Andre Caldas @ 2012-09-28 12:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear Sietse,

Thanks a lot!!!

> Finally found it, after lots of trial-and-erroring through
> likely-looking table names in file-job.lua: the stack of input files
> is kept in resolvers.inputstack.

I don't program any "lua". But I was taking a look at "file-job.lua"
myself. I have a lot to learn!! :-)


> Assuming (absolute path of invocation
> dir) + (path of file relative to invocation dir) = the desired path,

I don't mind this assumption.
Actually, I don't mind having a path relative to the currdir.


> the following should work.
>
>     \cldcontext{
>         environment.runpath .. '/'  ..
>             file.pathpart(resolvers.inputstack[#resolvers.inputstack])
>     }

I will try this now.


> You may or may not want to parse out any ./ and ../ components.

No, I don't need that.

> (If you do: helpful filename manipulation functions (such as
> file.pathpart, indeed) may be found in l-file.lua.)

Thanks for the tip. Might be useful someday.


> Hope this helps,

It does! :-)
Although, I think there should be a "luatex" command for this. That
is, something not related to ConTeXt.


Thank you,
André Caldas.
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Current source directory.
  2012-09-28 12:34       ` Andre Caldas
@ 2012-09-28 12:46         ` Hans Hagen
  0 siblings, 0 replies; 15+ messages in thread
From: Hans Hagen @ 2012-09-28 12:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 28-9-2012 14:34, Andre Caldas wrote:

> Although, I think there should be a "luatex" command for this. That
> is, something not related to ConTeXt.

lfs.currentdir()

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


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Current source directory.
  2012-09-28  1:15     ` Sietse Brouwer
  2012-09-28 12:34       ` Andre Caldas
@ 2012-09-28 19:17       ` Andre Caldas
  2012-09-28 19:38         ` Sietse Brouwer
  1 sibling, 1 reply; 15+ messages in thread
From: Andre Caldas @ 2012-09-28 19:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi!

> the following should work.
>
>     \cldcontext{
>         environment.runpath .. '/'  ..
>             file.pathpart(resolvers.inputstack[#resolvers.inputstack])
>     }

Sorry, to ask such a dumb question...
- Do I need to "include" "file-job.lua" somehow?


André Caldas.
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Current source directory.
  2012-09-28 19:17       ` Andre Caldas
@ 2012-09-28 19:38         ` Sietse Brouwer
  2012-09-28 19:53           ` Andre Caldas
  0 siblings, 1 reply; 15+ messages in thread
From: Sietse Brouwer @ 2012-09-28 19:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi André,

> Sorry, to ask such a dumb question...
> - Do I need to "include" "file-job.lua" somehow?

No need to include it, it's part of the ConTeXt core.
I only mentioned the filename in case people wanted to see what else
was in that file; the code snippet should Just Work. Is it working for
you?

Regards,
Sietse

On Fri, Sep 28, 2012 at 9:17 PM, Andre Caldas <andre.em.caldas@gmail.com> wrote:
> Hi!
>
>> the following should work.
>>
>>     \cldcontext{
>>         environment.runpath .. '/'  ..
>>             file.pathpart(resolvers.inputstack[#resolvers.inputstack])
>>     }
>
> Sorry, to ask such a dumb question...
> - Do I need to "include" "file-job.lua" somehow?
>
>
> André Caldas.
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Current source directory.
  2012-09-28 19:38         ` Sietse Brouwer
@ 2012-09-28 19:53           ` Andre Caldas
  2012-09-28 21:38             ` Sietse Brouwer
  0 siblings, 1 reply; 15+ messages in thread
From: Andre Caldas @ 2012-09-28 19:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

>> - Do I need to "include" "file-job.lua" somehow?
>
> No need to include it, it's part of the ConTeXt core.
> [...]
> Is it working for you?

No. I get:
! LuaTeX error <main ctx instance>:1: attempt to get length of field
'inputstack' (a nil value)
stack traceback:
	<main ctx instance>:1: in main chunk.

system          > tex > error on line 6 in file
products/topologia_geral.tex: LuaTeX error  ...

[*snip]

\cldcontext ...\directlua \zerocount {context(#1)}

l.6     }


By the way, context --version gives:
mtx-context     | ConTeXt Process Management 0.52
mtx-context     |
mtx-context     | main context file:
/usr/share/texmf/tex/context/base/context.mkiv
mtx-context     | current version: 2012.05.30 11:26


André Caldas.
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Current source directory.
  2012-09-28 19:53           ` Andre Caldas
@ 2012-09-28 21:38             ` Sietse Brouwer
  2012-09-28 21:56               ` Andre Caldas
  0 siblings, 1 reply; 15+ messages in thread
From: Sietse Brouwer @ 2012-09-28 21:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi André,

My mistake: I tested the code I gave you in \startluacode, but then
for the e-mail I wrapped it in \cldcontext. This is not the same: in
\startluacode # has its literal value, but in \cldcontext it is
interpreted as part of a macro parameter like #1.
So to get the length of a table t inside \cldcontext, I should have
used the idiom table.getn(t) instead of #t.

These two versions both work, and I actually tested them this time:

\startluacode
     context(environment.runpath .. '/'  ..
         file.pathpart(resolvers.inputstack[#resolvers.inputstack])
     )
\stopluacode

\cldcontext{
     environment.runpath .. '/'  ..
         file.pathpart(resolvers.inputstack[table.getn(resolvers.inputstack)])
}

Sorry about that mistake.
Cheers,
Sietse
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Current source directory.
  2012-09-28 21:38             ` Sietse Brouwer
@ 2012-09-28 21:56               ` Andre Caldas
  2012-09-28 22:42                 ` Hans Hagen
  2012-09-29  9:38                 ` Sietse Brouwer
  0 siblings, 2 replies; 15+ messages in thread
From: Andre Caldas @ 2012-09-28 21:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

> My mistake: I tested the code I gave you in \startluacode, but then
> for the e-mail I wrapped it in \cldcontext.

I had tested it using startluacode, also. :-(


> These two versions both work, and I actually tested them this time:
>
> \startluacode
>      context(environment.runpath .. '/'  ..
>          file.pathpart(resolvers.inputstack[#resolvers.inputstack])
>      )
> \stopluacode

I get this:
! LuaTeX error <main ctx instance>:3: attempt to get length of field
'inputstack' (a nil value)
stack traceback:
	<main ctx instance>:3: in main chunk.

system          > tex > error on line 7 in file
products/topologia_geral.tex: LuaTeX error  ...
[...]
}    )ted text> ...resolvers.inputstack])

\luat_start_lua_code_indeed ...ua \zerocount {#1}}

l.7 \stopluacode


> \cldcontext{
>      environment.runpath .. '/'  ..
>          file.pathpart(resolvers.inputstack[table.getn(resolvers.inputstack)])
> }

And this:
! LuaTeX error <main ctx instance>:1: bad argument #1 to 'getn' (table
expected, got nil)
stack traceback:
	[C]: in function 'getn'
	<main ctx instance>:1: in main chunk.

system          > tex > error on line 6 in file
products/topologia_geral.tex: LuaTeX error  ...

[...]

\cldcontext ...\directlua \zerocount {context(#1)}

l.6 }


> Sorry about that mistake.

No need to apologize! :-)
It seems that resolvers.inputstack is not defined in my system. Where
is it defined in yours? file-res.lua?


Thank you very very much, :-)
André Caldas.
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Current source directory.
  2012-09-28 21:56               ` Andre Caldas
@ 2012-09-28 22:42                 ` Hans Hagen
  2012-09-29  9:38                 ` Sietse Brouwer
  1 sibling, 0 replies; 15+ messages in thread
From: Hans Hagen @ 2012-09-28 22:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 28-9-2012 23:56, Andre Caldas wrote:
>> My mistake: I tested the code I gave you in \startluacode, but then
>> for the e-mail I wrapped it in \cldcontext.
>
> I had tested it using startluacode, also. :-(
>
>
>> These two versions both work, and I actually tested them this time:
>>
>> \startluacode
>>       context(environment.runpath .. '/'  ..
>>           file.pathpart(resolvers.inputstack[#resolvers.inputstack])
>>       )
>> \stopluacode
>
> I get this:
> ! LuaTeX error <main ctx instance>:3: attempt to get length of field
> 'inputstack' (a nil value)

are you sure that you use the same version?

btw, keep in mind that you can never really be sure in what file you are 
because of (1) caching and (2) delayed expansion (e.g. macros) or (3) 
info can come from elsewhere

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Current source directory.
  2012-09-28 21:56               ` Andre Caldas
  2012-09-28 22:42                 ` Hans Hagen
@ 2012-09-29  9:38                 ` Sietse Brouwer
  2012-09-29 13:36                   ` Andre Caldas
  1 sibling, 1 reply; 15+ messages in thread
From: Sietse Brouwer @ 2012-09-29  9:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi André,

Hans is right, it's a version problem.
You're using 2012.05.30 11:26 (from May)
I'm using 2012.09.25 21:44.

resolvers.inputstack is defined in my tex-data.lua.
I looked up your version among the commits on
http://repo.or.cz/w/context.git/shortlog,
and found that resolvers.inputstack is not yet defined in your data-tex.lua.
http://repo.or.cz/w/context.git/blob/ad5540007a2ac6504a47289ace109a76ec759a7e:/tex/context/base/data-tex.lua

So, you'll need to update I think. Which is a bit more work than usual
because minimals.contextgarden.net is down, but Johan Sandblom's
explains quite nicely what to do.
http://thread.gmane.org/gmane.comp.tex.context/78441/focus=78486

Cheers,
Sietse

On Fri, Sep 28, 2012 at 11:56 PM, Andre Caldas
<andre.em.caldas@gmail.com> wrote:
>> My mistake: I tested the code I gave you in \startluacode, but then
>> for the e-mail I wrapped it in \cldcontext.
>
> I had tested it using startluacode, also. :-(
>
>
>> These two versions both work, and I actually tested them this time:
>>
>> \startluacode
>>      context(environment.runpath .. '/'  ..
>>          file.pathpart(resolvers.inputstack[#resolvers.inputstack])
>>      )
>> \stopluacode
>
> I get this:
> ! LuaTeX error <main ctx instance>:3: attempt to get length of field
> 'inputstack' (a nil value)
> stack traceback:
>         <main ctx instance>:3: in main chunk.
>
> system          > tex > error on line 7 in file
> products/topologia_geral.tex: LuaTeX error  ...
> [...]
> }    )ted text> ...resolvers.inputstack])
>
> \luat_start_lua_code_indeed ...ua \zerocount {#1}}
>
> l.7 \stopluacode
>
>
>> \cldcontext{
>>      environment.runpath .. '/'  ..
>>          file.pathpart(resolvers.inputstack[table.getn(resolvers.inputstack)])
>> }
>
> And this:
> ! LuaTeX error <main ctx instance>:1: bad argument #1 to 'getn' (table
> expected, got nil)
> stack traceback:
>         [C]: in function 'getn'
>         <main ctx instance>:1: in main chunk.
>
> system          > tex > error on line 6 in file
> products/topologia_geral.tex: LuaTeX error  ...
>
> [...]
>
> \cldcontext ...\directlua \zerocount {context(#1)}
>
> l.6 }
>
>
>> Sorry about that mistake.
>
> No need to apologize! :-)
> It seems that resolvers.inputstack is not defined in my system. Where
> is it defined in yours? file-res.lua?
>
>
> Thank you very very much, :-)
> André Caldas.
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Current source directory.
  2012-09-29  9:38                 ` Sietse Brouwer
@ 2012-09-29 13:36                   ` Andre Caldas
  0 siblings, 0 replies; 15+ messages in thread
From: Andre Caldas @ 2012-09-29 13:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello!

> Hans is right, it's a version problem.

OK. I looked up "luatex context inputstack" on the internet. I ended
up with my own e-mail to the list! :-)
http://www.mail-archive.com/ntg-context@ntg.nl/msg65733.html


> [...]
> So, you'll need to update I think.

I think I will try to write my own "open_read_file".
I don't want to depend on internals.
Maybe when ConTeXt exports the functionality in the form of some macro
or lua function.

Thank you very much for your help, Sietse!


André Caldas.
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2012-09-29 13:36 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-24 20:28 Current source directory Andre Caldas
2012-09-24 21:37 ` Peter Münster
2012-09-24 21:43   ` Peter Münster
2012-09-27 22:38   ` Andre Caldas
2012-09-28  1:15     ` Sietse Brouwer
2012-09-28 12:34       ` Andre Caldas
2012-09-28 12:46         ` Hans Hagen
2012-09-28 19:17       ` Andre Caldas
2012-09-28 19:38         ` Sietse Brouwer
2012-09-28 19:53           ` Andre Caldas
2012-09-28 21:38             ` Sietse Brouwer
2012-09-28 21:56               ` Andre Caldas
2012-09-28 22:42                 ` Hans Hagen
2012-09-29  9:38                 ` Sietse Brouwer
2012-09-29 13:36                   ` Andre Caldas

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).