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.

This change should not affect the \readfilename macros and will allow me to use

    \def\externalfilter@any_filename#1%
        {\ctxcommand{getreadfilename("any",".","#1")}}

to search for a file (even if it is in the path specified by \usepath).

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