Hi, there is no direct support yet (therion makes a copy of the data to a temporary directory when processing it, which breaks relative paths). However, you can add your {doc root}\code to MetaPost search path (either by setting MPINPUTS environment variable or by modifying MPINPUTS value in the global texmf.cnf configuration file) and use the paths relative to {doc root}\code. When setting MPINPUTS value, don't delete the original search path, just append your {doc root}\code at the end. Martin On Mon, Jun 15, 2015 at 9:21 AM, Henry Bennett <henry@hbennett.com> wrote:
Hi,
Whats the syntax for including code from a sub directory in MetaPost?
My project has a subdirectory of code snippets in {doc root}\code
The MetaPost input command works great when I reference the entire directory location eg (input “c:\users\henry\documents\survey\cave\code\filename”) but won’t accept any form of relative address that I can see. Doesn’t make it very portable.
Any ideas
Thanks Henry
_______________________________________________ Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion