![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 11/3/2012 10:13 AM, Sietse Brouwer wrote:
Andreas wrote:
It would be REALLY NICE if the functionality of "pathrelativetome" was provided by ConTeXt.
Hans wrote:
in file-job.lua add around the function 'process':
local function toppath() [...]
\component toppath:/subpath/somefile.tex
Andreas wrote:
Works like a charm, Hans! Sorry I took so long to test... I copied file-job.lua from the GIT repository, and changed my tex files to use toppath:/path/to/file.
Will this be in the core, or is it just a fix for Andreas? I.e: should we document toppath() as a core command, or as a snippet? (Not that we have a general space on the wiki for snippets yet, but we need one and we will have one. Somethine in the next two weeks I'll write a "State of the Wiki" laying out what we have, what we don't have, and what we want next.)
in the core .. it's a prefix just look in data-pre.lua for some more of them ----------------------------------------------------------------- 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 -----------------------------------------------------------------