From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80674 Path: news.gmane.org!not-for-mail From: "Meer H. van der" Newsgroups: gmane.comp.tex.context Subject: Re: local picture not found anymore Date: Tue, 5 Feb 2013 14:52:32 +0100 Message-ID: <13347FF2-9E93-4580-AEB4-49670282799B@uva.nl> References: <6B0F9978-774F-4707-95F0-06C57B1FD04E@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1360072358 32434 80.91.229.3 (5 Feb 2013 13:52:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Feb 2013 13:52:38 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 05 14:52:57 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U2ixE-0002FB-MZ for gctc-ntg-context-518@m.gmane.org; Tue, 05 Feb 2013 14:52:56 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 922BE10245; Tue, 5 Feb 2013 14:52:37 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id alaMpq282JP5; Tue, 5 Feb 2013 14:52:36 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 2147910227; Tue, 5 Feb 2013 14:52:36 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 03F7410227 for ; Tue, 5 Feb 2013 14:52:35 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 5pGl50kHdZvG for ; Tue, 5 Feb 2013 14:52:33 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id B2C4C101FC for ; Tue, 5 Feb 2013 14:52:33 +0100 (CET) Original-Received: from ezel.ic.uva.nl (ezel.ic.uva.nl [146.50.108.158]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r15DqXus004729 for ; Tue, 5 Feb 2013 14:52:33 +0100 Original-Received: from elhalyn-ethernet.fritz.box (a82-95-102-36.adsl.xs4all.nl [82.95.102.36]) (authenticated bits=0) by ezel.ic.uva.nl (8.13.8/8.13.8) with ESMTP id r15DqWKW030430 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Tue, 5 Feb 2013 14:52:32 +0100 In-Reply-To: X-Mailer: Apple Mail (2.1499) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=146.50.108.158; country=NL; latitude=52.5000; longitude=5.7500; http://maps.google.com/maps?q=52.5000,5.7500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03IUBQxLa - 90b3285f3ea4 - 20130205 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:80674 Archived-At: On 5 feb. 2013, at 00:22, Mojca Miklavec wrote: > On Mon, Feb 4, 2013 at 7:52 PM, Meer H. van der wrote: >> Found this one with a lucky guess. >> The macro call \doiffile{picture} does find a usable picture file (I guess >> picture.pdf) in my tex-tree. >> My conclusion would be that the search no longer starts in the current >> directory but does a global search first. That used to be different. >> Why the change? > > I had a similar (yet unresolved) problem, see thread "ConTeXt inputs > files from TEXMF/doc" from October 2012: > http://thread.gmane.org/gmane.comp.tex.context/78692 > > I'm not sure if that was really a change, but it probably isn't > intentionally so. My wild guess is that pdf takes precedence over jpg > (ConTeXt would probably first test if picture.pdf is found and only if > that one wouldn't be, it would try picture.png or jpg). In any case > ConTeXt should not even search in doc folder for files to be included > as a picture. If those PDFs from doc folders would be excluded, most > such problems would go away, I believe. You probably included > /usr/local/texlive/2012/texmf-dist/doc/latex/oberdiek/picture.pdf? > No, I did call \doiffile{picture} without any path components and the aforementioned file comes out first. One more observation: having put a file picture.pdf in the current directory makes \doiffile{picture} find that one. I conclude therefore that the search is first for file type pdf in all paths and only after that for another file type. Preferably in my eyes would have been the other way around: first priority of the search on a picture file of any acceptable type, and on failing that the same in all directories subsequently in the search path. But, this might be called a matter of taste. Hans van der Meer ___________________________________________________________________________________ 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 ___________________________________________________________________________________