On Wed, 20 Jun 2012, Hans Hagen wrote:

On 20-6-2012 19:33, Aditya Mahajan wrote:
On Tue, 19 Jun 2012, Aditya Mahajan wrote:

On Mon, 18 Jun 2012, Marco wrote:

does the vim module have a feature to specify the input path,
similar to \usepath for context files or \setupexternalfigures
[directory=…] for graphics?

@Hans: Can we make the following change in file-res.lua

     if isfile(fname) then
         if trace_files then
             report_files("found on extra path: %s",fname) --AM: was name
         end
         fnd = fname --- AM: was name
         break
     end

Then, getreadfilename("any", ".", name) will always return the location
of the found
file. This is also consistent with the behavior when the file is found
in ../ or
../../ directories.

sure, just call it a bug -)

Thanks.

@Marco: In the next version of t-filter (and by inheritence t-vim), the local files will also be searched in \usepath locations.

Thus you can use:

\usepath[list-of, paths]

\starttext
\process<fillter>file{file-in-path}

\type<vim>file{file-in-path}
\stoptext

For the moment, this is MkIV only feature.

If you want to experiment, make the above change in file-res.lua, regenerate the formats, and use t-filter.mkiv from github.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to