Re: [NTG-context] External graphics directory

2017-10-23 Thread N. Raghavendra
At 2017-10-23T17:45:05+02:00, Peter Münster wrote:

> Yes.
> Command: "context --arguments=imagedir=../../foo file"
> File: "\setupexternalfigures[directory=\env{imagedir}]"

Thank you, this works perfectly.  It led me also to the
\getvariable{environment}{...}, \getdocumentargument, and
\do*documentargument commands, which may be useful later on.

Regards,
Raghu.

--
N. Raghavendra , http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] External graphics directory

2017-10-23 Thread Peter Münster
On Thu, Oct 19 2017, N. Raghavendra wrote:

> Is it possible to specify an external graphics directory either as an
> environment variable, or as a command line option to `context', instead
> of writing `\setupexternalfigures [directory=../../foo]'?

Yes.
Command: "context --arguments=imagedir=../../foo file"
File: "\setupexternalfigures[directory=\env{imagedir}]"

-- 
   Peter
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] External graphics directory

2017-10-19 Thread N. Raghavendra
Is it possible to specify an external graphics directory either as an
environment variable, or as a command line option to `context', instead
of writing `\setupexternalfigures [directory=../../foo]'?  I tried the
environment variable setting

TEXINPUTS=../../foo::

as in http://www.tex.ac.uk/FAQ-graphicspath.html, and the command line
option

--path=../../foo

for `context', but neither works in my Linux environment.  I would like
to avoid cluttering ConTeXt files with system paths.

Thanks and regards,
Raghu.

-- 
N. Raghavendra , http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___