On Tue, Oct 16, 2012 at 9:39 AM, Hans Hagen wrote: > On 15-10-2012 23:33, Mojca Miklavec wrote: >> >> Hello, >> >> I used \externalfigure[background] in a document (and I forgot to >> compile the local file background.tex) and ended up with a pleasant >> surprise: the command included >> >> /usr/local/texlive/2012/texmf-dist/doc/latex/background/background.pdf >> instead of complaining that the file doesn't exist. Shouldn't ConTeXt >> prevent inclusion of documents from "doc"? > > > in principle it should only look for local images and if enabled for images > in the tree but then only for the context input path > > \enabletrackers[graphics.locating] > > goves some info about how is searched, so maybe that gives a clue.
I only get the following: graphics > inclusion > locations: local,global graphics > inclusion > path list: . .. ../.. graphics > inclusion > strategy: unknown format, prefer quality graphics > inclusion > found: ./background.pdf -> /usr/local/texlive/2012/texmf-dist/doc/latex/background/background.pdf graphics > inclusion > format natively supported by backend: pdf >> PS: tested with ConTeXt from TeX Live (as is probably evident from the >> fact that the file from TL has been found). > > Hopefully fixed in the meantime. (I don't have tl installed currently.) I tried the beta in standalone distribution, but I wasn't able to actually run the compilation (see below). However, the following might suggest that the problem is still present. > mtxrun background.pdf /context/tex/texmf-context/doc/latex/background/background.pdf (I manually added that file into the tree.) The kpsewhich doesn't return anything. Mojca This is LuaTeX, Version beta-0.70.2-2012052309 (TeX Live 2012) \write18 enabled. (/context/tex/texmf-context/tex/context/base/cont-yes.mkiv ! LuaTeX error ...text/tex/texmf-context/tex/context/base/strc-ref.lua:1006: attempt to index field 'structure' (a nil value) stack traceback: ...text/tex/texmf-context/tex/context/base/strc-ref.lua:1006: in function '?' ...text/tex/texmf-context/tex/context/base/strc-ref.lua:125: in function 'initializer' ...text/tex/texmf-context/tex/context/base/core-uti.lua:200: in function 'load' ...text/tex/texmf-context/tex/context/base/core-uti.lua:66: in function 'initialize' <main ctx instance>:1: in main chunk. system > tex > error on line 1 in file /context/tex/texmf-context/tex/context/base/cont-yes.mkiv: LuaTeX error ... 1 >> %D \module 2 %D [ file=cont-yes, 3 %D version=2012.06.01, 4 %D title=\CONTEXT\ Miscellaneous Macros, 5 %D subtitle=Startup Stub, 6 %D author=Hans Hagen, 7 %D date=\currentdate, 8 %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] 9 %C 10 %C This module is part of the \CONTEXT\ macro||package and is 11 %C therefore copyrighted by \PRAGMA. See mreadme.pdf for <inserted text> ...obname .tuc","\jobname .tua") } \setupcolors [\c!state =\v... <everyjob> \the \everyjob l.1 %D \module ? ___________________________________________________________________________________ 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 ___________________________________________________________________________________