TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using \documentclass[final]{siamltex} to write a paper. Within the document I'm trying to use a function \psfig. I have used the following syntax successfully in other papers that I have previously written:

\psfig{file=myfile.eps, height=2in, width=2in,}
\caption{This is my caption.}

However, when I use it in this file, I get an undefined control sequence error. How do I fix it so that it will display my post-script images? Do I need to use a special package? Is there something wrong with my syntax?

share|improve this question
You could use epsfig package but latex has had a standard graphics inclusion mechanism since latex2e in 1993, epsfig emulates the old psfig package for \psfig usage in latex 2.09 documents from the 1980's – David Carlisle Dec 11 '12 at 18:46
is epsfig a package or a command? if it's a package, what command do I use in it? – Paul Dec 11 '12 at 19:45
as I say it's a package (part of the core latex distribution) it supports the syntax you are using, but really why not use \includegraphics and the graphicx package (epsfig is just a thin wrapper that defines \psfig in terms of \includegraphics) – David Carlisle Dec 11 '12 at 19:47
@DavidCarlisle: Mostly because... I'm a novice at LaTex, and didn't know better! :) I'll try it out and see how it goes. – Paul Dec 11 '12 at 19:57
@Paul: psfig is definitely not for the novice -- it's not free, and so won't be in your (la)tex distribution. to use it, therefore, you have to learn about latex package installation. put it behind you, and learn to swim in the tides of the 1990s (when psfig was superseded ;-) – wasteofspace Dec 11 '12 at 20:03
up vote 4 down vote accepted

The syntax shown in the question is provided by the epsfig package but this in only intended for compatibility for the epsfig and psfig packages for LaTeX2.09 it is not intended for any document produced this century.

The standard way to include graphics in LaTeX2e is


in the preamble and

\includegraphics[height=2in,width=2in, keepaspectratio]{myfile} 

to include the image.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.