Re: [NTG-context] Search path for external figures changed

2013-02-15 Thread Hans Hagen

On 2/14/2013 5:40 PM, Willi Egger wrote:

Hi Marco,

i think that ou have to specify the path completely

\setupexternalfigures[directory={/Users/willi/Documents/BOEDE/Logos}]



location={global,local}
-
  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
-
___
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
___


Re: [NTG-context] Search path for external figures changed

2013-02-15 Thread Marco Patzer
On 2013–02–15 Hans Hagen wrote:

 location={global,local}

It still doesn't work for me. Here is a complete example:

\startbuffer [foo]
beginfig(1);
  fill unitsquare scaled 2cm withcolor red;
endfig;
\stopbuffer

\luacode{lfs.mkdirgraphics}

\savebuffer
  [list=foo,
   file=graphics/foo.mp,
   prefix=no]

\setupexternalfigures
  [directory=graphics,
   location={global,local}]

\startMPrun
  %% works
  %% input graphics/foo;

  %% fails
  input foo;
\stopMPrun

\starttext
  \externalfigure [mprun.1]
\stoptext


Marco


signature.asc
Description: Digital signature
___
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
___

Re: [NTG-context] Search path for external figures changed

2013-02-14 Thread Willi Egger
Hi Marco,

i think that ou have to specify the path completely

\setupexternalfigures[directory={/Users/willi/Documents/BOEDE/Logos}]

Willi
On Feb 13, 2013, at 2:15 PM, Marco Patzer wrote:

 On 2013–02–08 Hans Hagen wrote:
 
 default: texmftree
 local  : relative to source
 global : path list
 
 these can be combined
 
 How to include MP graphics sitting in a dedicated directory, e.g.
 “graphs”?
 
 %% file: graphs/foo.mp
 beginfig(1);
  fill unitsquare scaled 2cm withcolor red;
 endfig;
 
 %% file: test.tex
 \setupexternalfigures
  [directory=graphs,
   %% location=???,
  ]
 
 \startMPrun
  %% including the path works
  %% input graphs/foo.mp;
 
  input foo.mp;
 \stopMPrun
 
 \starttext
  \externalfigure [mprun.1]
 \stoptext
 
 Marco
 ___
 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
 ___

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


Re: [NTG-context] Search path for external figures changed

2013-02-14 Thread Marco Patzer
On 2013–02–14 Willi Egger wrote:

 i think that ou have to specify the path completely
 
 \setupexternalfigures[directory={/Users/willi/Documents/BOEDE/Logos}]

That does not work for me, does this work on you machine?

Even if it would work, mandating an absolute path is wrong in my
opinion. This would break the document if you move it around the
directory tree or if you send it to someone.

Marco


signature.asc
Description: Digital signature
___
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
___

Re: [NTG-context] Search path for external figures changed

2013-02-13 Thread Marco Patzer
On 2013–02–08 Hans Hagen wrote:

 default: texmftree
 local  : relative to source
 global : path list
 
 these can be combined

How to include MP graphics sitting in a dedicated directory, e.g.
“graphs”?

%% file: graphs/foo.mp
beginfig(1);
  fill unitsquare scaled 2cm withcolor red;
endfig;

%% file: test.tex
\setupexternalfigures
  [directory=graphs,
   %% location=???,
  ]

\startMPrun
  %% including the path works
  %% input graphs/foo.mp;

  input foo.mp;
\stopMPrun

\starttext
  \externalfigure [mprun.1]
\stoptext

Marco


signature.asc
Description: Digital signature
___
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
___

[NTG-context] Search path for external figures changed

2013-02-07 Thread Marco Patzer
Hi,

recently there was a discussion about search paths for external
figures. Now I noticed that the search path is much stricter than it
used to be and by default only local images are found.

Is it intended that images are not searched in the texmf tree unless
explicitly told to do so? Example:

%% no cow without location=default
%% \setupexternalfigures [location=default]
\starttext
  \externalfigure [cow]
\stoptext

Marco


signature.asc
Description: Digital signature
___
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
___

Re: [NTG-context] Search path for external figures changed

2013-02-07 Thread Hans Hagen

On 2/7/2013 10:58 PM, Marco Patzer wrote:

Hi,

recently there was a discussion about search paths for external
figures. Now I noticed that the search path is much stricter than it
used to be and by default only local images are found.

Is it intended that images are not searched in the texmf tree unless
explicitly told to do so? Example:

%% no cow without location=default
%% \setupexternalfigures [location=default]
\starttext
   \externalfigure [cow]
\stoptext


default: texmftree
local  : relative to source
global : path list

these can be combined

the reason for the previous less strict situation was that there was 
always a fallback to the standard resolver as side effect of url support 
.. consider that a bug


Hans

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