ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* ConTeXt inputs files from TEXMF/doc
@ 2012-10-15 21:33 Mojca Miklavec
  2012-10-16  7:39 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Mojca Miklavec @ 2012-10-15 21:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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"?

Mojca

PS: tested with ConTeXt from TeX Live (as is probably evident from the
fact that the file from TL has been found).
___________________________________________________________________________________
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] 3+ messages in thread

* Re: ConTeXt inputs files from TEXMF/doc
  2012-10-15 21:33 ConTeXt inputs files from TEXMF/doc Mojca Miklavec
@ 2012-10-16  7:39 ` Hans Hagen
  2012-10-16  7:54   ` Mojca Miklavec
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2012-10-16  7:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Mojca Miklavec

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.


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

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] 3+ messages in thread

* Re: ConTeXt inputs files from TEXMF/doc
  2012-10-16  7:39 ` Hans Hagen
@ 2012-10-16  7:54   ` Mojca Miklavec
  0 siblings, 0 replies; 3+ messages in thread
From: Mojca Miklavec @ 2012-10-16  7:54 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

end of thread, other threads:[~2012-10-16  7:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-15 21:33 ConTeXt inputs files from TEXMF/doc Mojca Miklavec
2012-10-16  7:39 ` Hans Hagen
2012-10-16  7:54   ` Mojca Miklavec

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