# How should I display a png file using pdftex

I has been over 10 years since I needed to display graphics using TeX. Previously I would use:

\usepackage[pdftex]{graphicx}


and later something like

\includegraphics{Fig_02.png} \hfil


Now, TeXworks tells me that I have an undefined control sequence in my \usepackage statement. My searches on the web to find out how this is done currently keeps referring me to LaTeX.

Any pointers would be appreciated.

• Welcome to TeX.SX! Please make your code compilable (if possible), or at least complete it with \documentclass{...}, the required \usepackage's, \begin{document}, and \end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem. Mar 31, 2015 at 0:16
• Additionally, the [pdftex] option is rarely (if ever) needed any more. The graphicx package and others can almost always detect whether they're being run under pdftex or other engines. Mar 31, 2015 at 0:17
• But there is no problem in the \usepackage statement itself, even though it is better not to specify the pdftex option if you don't need to.
– cfr
Mar 31, 2015 at 0:20
• Mike, thank you for your answers. I am using Tex, not LaTex. I believe your document comments apply to LaTex. That being the case, my question remains. How should I display a png file using pdftex? Or using Tex? Mar 31, 2015 at 16:10
• \usepackage{graphicx} \includegraphics{Figure10.png} \bye Mar 31, 2015 at 16:48

If so, here's a document that should compile with pdftex:
\input miniltx