[texhax] problems with "\usepackage[pdftex]{graphicx}"

Ky Anh kyanh at users.sarovar.org
Wed Aug 18 11:31:14 CEST 2004


Take care of this:

%%%%%%%%%%%%%%%%%%%%%%%%
% begin document

\newif\ifpdf
\ifx\pdfoutput\undefined
  \pdffalse
\else
  \pdftrue
  \pdfoutput=1
\fi
\documentclass{article}
\ifpdf
  \usepackage[pdftex]{graphicx}
  \pdfcompresslevel=9
\else
  \usepackage{graphicx}
\fi

\begin{document}
    \ifpdf
        \includegraphics[width=6cm,angle=-90]{FooBar.pdf}
    \else
        \includegraphics[width=6cm,angle=-90]{FooBar.ps}
    \fi
\end{document}

% end of document
%%%%%%%%%%%%%%%%%%%

-- 
Ky Anh

My Linux Boch (since 2004-05-19):
* Linux Mandrake 10 Official
* KDE, Kmail, Juk, Gaim, Bluefish, Galeon, Unikey, Python, K3B, and....

My Reasons (since 2001):
* TeX, METAFONT, PHP, Python, Music, and...
* athao_tk (lovesick), and....



More information about the texhax mailing list