ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Sietse Brouwer <sbbrouwer@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Hans Hagen <pragma@wxs.nl>
Subject: Re: RFC: path relative to current file.
Date: Sat, 3 Nov 2012 11:13:35 +0100	[thread overview]
Message-ID: <CAF=dkzy9s5uuXfQv5QuQ1PyBTCGgLAM9RWk-RtD3iAxEkp6jJg@mail.gmail.com> (raw)
In-Reply-To: <CADVh14X0wb-2f7uRzb8Jo5jDE9n3ha0iyTLYBPB=vRf=DWNZiA@mail.gmail.com>

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

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


  reply	other threads:[~2012-11-03 10:13 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-13  1:34 Andre Caldas
2012-10-15 17:56 ` Hans Hagen
2012-10-15 18:20 ` Hans Hagen
2012-10-15 19:42   ` Andre Caldas
2012-10-15 20:04     ` Hans Hagen
2012-10-15 21:27       ` Aditya Mahajan
2012-10-15 21:38         ` Marco Patzer
2012-10-15 22:11         ` Hans Hagen
2012-10-15 22:26       ` Andre Caldas
2012-10-16  7:33         ` Hans Hagen
2012-10-16 11:25           ` Andre Caldas
2012-11-03  0:35   ` Andre Caldas
2012-11-03 10:13     ` Sietse Brouwer [this message]
2012-11-03 12:47       ` Hans Hagen
2012-11-07 19:34   ` Andre Caldas
2012-11-07 20:35     ` Hans Hagen
2012-11-08 12:14       ` Andre Caldas
2012-11-08 12:43         ` Hans Hagen
2012-11-08 16:30           ` Andre Caldas

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='CAF=dkzy9s5uuXfQv5QuQ1PyBTCGgLAM9RWk-RtD3iAxEkp6jJg@mail.gmail.com' \
    --to=sbbrouwer@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.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).