ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Search path for external figures changed
@ 2013-02-07 21:58 Marco Patzer
  2013-02-07 23:35 ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Marco Patzer @ 2013-02-07 21:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 430 bytes --]

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

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Search path for external figures changed
  2013-02-07 21:58 Search path for external figures changed Marco Patzer
@ 2013-02-07 23:35 ` Hans Hagen
  2013-02-13 13:15   ` Marco Patzer
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2013-02-07 23:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Search path for external figures changed
  2013-02-07 23:35 ` Hans Hagen
@ 2013-02-13 13:15   ` Marco Patzer
  2013-02-14 16:40     ` Willi Egger
  0 siblings, 1 reply; 7+ messages in thread
From: Marco Patzer @ 2013-02-13 13:15 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 580 bytes --]

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

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Search path for external figures changed
  2013-02-13 13:15   ` Marco Patzer
@ 2013-02-14 16:40     ` Willi Egger
  2013-02-14 16:59       ` Marco Patzer
  2013-02-15 11:59       ` Hans Hagen
  0 siblings, 2 replies; 7+ messages in thread
From: Willi Egger @ 2013-02-14 16:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Search path for external figures changed
  2013-02-14 16:40     ` Willi Egger
@ 2013-02-14 16:59       ` Marco Patzer
  2013-02-15 11:59       ` Hans Hagen
  1 sibling, 0 replies; 7+ messages in thread
From: Marco Patzer @ 2013-02-14 16:59 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 422 bytes --]

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

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Search path for external figures changed
  2013-02-14 16:40     ` Willi Egger
  2013-02-14 16:59       ` Marco Patzer
@ 2013-02-15 11:59       ` Hans Hagen
  2013-02-15 12:25         ` Marco Patzer
  1 sibling, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2013-02-15 11:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Willi Egger

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Search path for external figures changed
  2013-02-15 11:59       ` Hans Hagen
@ 2013-02-15 12:25         ` Marco Patzer
  0 siblings, 0 replies; 7+ messages in thread
From: Marco Patzer @ 2013-02-15 12:25 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 569 bytes --]

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.mkdir"graphics"}

\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

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-02-15 12:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-07 21:58 Search path for external figures changed Marco Patzer
2013-02-07 23:35 ` Hans Hagen
2013-02-13 13:15   ` Marco Patzer
2013-02-14 16:40     ` Willi Egger
2013-02-14 16:59       ` Marco Patzer
2013-02-15 11:59       ` Hans Hagen
2013-02-15 12:25         ` Marco Patzer

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