latex中子图未定义的控制序列错误

latex中子图未定义的控制序列错误

我已经使用 LaTeX 多年了,但今天在 sigchi 模板上我得到了未定义的控制序列错误。我想将我的图形放在两列甚至一列中,但都行不通。这是一个最小的示例代码:

\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).

% Load basic packages
\usepackage{balance}  % to better equalize the last page
\usepackage{graphicx} % for EPS, load graphicx instead
\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}

% Make sure hyperref comes last of your loaded packages, 
% 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},
colorlinks,
citecolor=black,
filecolor=black,
linkcolor=black,
urlcolor=black,
breaklinks=true,
}

% create a shortcut to typeset table headings
\newcommand\tabhead[1]{\small\textbf{#1}}


% 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}

答案1

subfig包需要使用\subfloat,而不是\subfigure

\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} 

相关内容