[pdftex] Wrong search path for PDF/PNG/JPG files

Heiko Oberdiek oberdiek at uni-freiburg.de
Fri Oct 14 14:41:29 CEST 2005

On Thu, Oct 13, 2005 at 11:07:43PM +0200, Wlodek Bzyl wrote:

> PDF/PNG/JPG files are searched in
>    .../tex/plain//
>    .../tex/generic//
>    .../tex///
> The search path for PDF files is documented in the
> `example.tex' file (distributed with tetex, for example):
> -----------------------------
> \pdfximage {pic.pdf}    % read image pic.pdf (from path TEXPSHEADERS)
> -----------------------------
> On my system TEXPSHEADERS is set to:

LaTeX's graphics packages assumes the same path for
TeX input files and image files:
* The existence is tested by opening the file (\openin).
* Some drivers must read the files, e.g. to find the
  bounding box.

But I am little surprised. \pdfximage calls function readimage
in writeimg.c that calls:
  img_name(img) = kpse_find_file(cur_file_name, kpse_tex_format, true);
This is done regardless of the type of the image.

>    TEXPSHEADERS = .;$TEXMF/{dvips,fonts/{enc,type1,type3}}//

If I put the image in the subdirectory "pic", the TeX file in
the current directory, then the image is found:
But this isn't the case for:

> I use pdfeTeX 3.141592-1.21a-2.2 (Web2C 7.5.4) kpathsea version 3.5.4,
> from tetex-src-3.0-6 on Fedora 4.

Perhaps this is the reason, I am using 1.30.3.

Yours sincerely
  Heiko <oberdiek at uni-freiburg.de>

More information about the pdftex mailing list