# subfigure undefined control sequence error in latex

I have been using LaTeX for years, but today on sigchi template I am getting undefined control sequence error. I want to place my figures spanning two columns or even in a single column, but none works. Here is a minimal example code:

\documentclass{sigchi}

% Remove or comment out these two lines for final version
\toappearbox{\Large Submitted to CHI'13. \\Do not cite, do not circulate.}
\pagenumbering{arabic}% Arabic page numbers for submission.

% Use \toappear{...} to override the default ACM copyright statement (e.g. for preprints).

\usepackage{balance}  % to better equalize the last page
\usepackage{times}    % comment if you want LaTeX's default font
\usepackage{url}      % llt: nicely formatted URLs
\usepackage{soul}
\usepackage{color}
\usepackage{subfig}

\newcommand{\hilight}[1]{\colorbox{yellow}{#1}}

% llt: Define a global style for URLs, rather that the default one
\makeatletter
\def\url@leostyle{%
\@ifundefined{selectfont}{\def\UrlFont{\sf}}{\def\UrlFont{\small\bf\ttfamily}}}
\makeatother
\urlstyle{leo}

% To make various LaTeX processors do the right thing with page size.
\def\pprw{8.5in}
\def\pprh{11in}
\special{papersize=\pprw,\pprh}
\setlength{\paperwidth}{\pprw}
\setlength{\paperheight}{\pprh}
\setlength{\pdfpagewidth}{\pprw}
\setlength{\pdfpageheight}{\pprh}

% to give it a fighting chance of not being over-written,
% since its job is to redefine many LaTeX commands.
\usepackage[pdftex]{hyperref}
\hypersetup{
pdftitle={SIGCHI Conference Proceedings Format},
pdfauthor={LaTeX},
pdfkeywords={SIGCHI, proceedings, archival format},
bookmarksnumbered,
pdfstartview={FitH},
citecolor=black,
filecolor=black,
urlcolor=black,
}

% create a shortcut to typeset table headings

% End of preamble. Here it comes the document.
\begin{document}

\title{title}

\maketitle

\begin{abstract}

Abstract
\end{abstract}
\section{Introduction}

Figure here
\begin{figure*}
\subfigure{\includegraphics{graph}}

\subfigure{\includegraphics{graph2}}

\subfigure{\includegraphics{graph3}}
\end{figure*}

\balance

\bibliographystyle{acm-sigchi}
\bibliography{IEEEabrv,mybibfile,sample}
\end{document}


'

-
I found a solution. Might be helpful for other people as well: \begin{figure} \centering \subfloat[]{\includegraphics[width=3.1in]{figures/gpEcUND.eps}} \subfloat[]{\includegraphics[width=3.1in]{figures/gpgTND.eps}} \caption{Potential for 0.5 V bias.} \label{fig:EcUND} \end{figure} –  mehwish nasim Sep 15 '12 at 13:53
Welcome to TeX.SE! It's great that you found a solution :) Please consider either posting it as a self-contained answer, or deleting your question; it helps to keep the site tidy :) –  cmhughes Sep 15 '12 at 15:27
You're loading the subfig package, which provides \subfloat; the \subfigure command was provided by the obsolete predecessor package subfigure. It's better to stick with the newer one. –  egreg Sep 15 '12 at 19:28
I will post it as an answer once I get past the 8hrs new user limit. thanks. –  mehwish nasim Sep 15 '12 at 20:38

The subfig package requires the usage of \subfloat, rather than \subfigure:
\begin{figure}