[Therion] MetaPost include relative path

2015-06-16 Thread Martin Budaj
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  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 at speleo.sk
> http://mailman.speleo.sk/mailman/listinfo/therion
>



[Therion] MetaPost include relative path

2015-06-15 Thread Henry Bennett
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 

-- next part --
An HTML attachment was scrubbed...
URL: