[OzTeX] file `pdftex.def' not loaded

Andrew Trevorrow andrew at trevorrow.com
Fri Dec 24 01:05:10 CET 2004

> I tried adding these lines to my file, as suggested in the OzTeX faq:
>  \ifx\pdfoutput\undefined
>  % we are running LaTeX, not pdflatex
>  \usepackage{graphicx}
>  \else
>  % we are running pdflatex, so convert .eps files to .pdf
>  \usepackage[pdftex]{graphicx}
>  \usepackage{epstopdf}
>  \fi
> At first, I got an error message saying epstopdf.sty wasn't found. So I put a link to it where OzTeX can find it.  ...

It doesn't make sense to put pdftex.def and epstopdf.sty in a place where
OzTeX can find them because they only work when you run teTeX's pdflatex
command (and it should find those files in the teTeX texmf trees).
To call pdflatex from OzTeX's Tools menu you first need to install teTeX.
To use epstopdf.sty you also need to install Ghostscript (Gerben's installer
will do both for you).

If you *have* installed teTeX and Ghostscript then I'll need more clues to
figure out what is going wrong.  Start up Terminal and type these commands:

% which pdflatex

% kpsewhich epstopdf.sty

% which ps2pdf

Also select Show > Files and Folders from OzTeX's Config menu and make sure
your unix_path setting includes these 2 directories (among others):



More information about the oztex mailing list