<DIV>Hi, </DIV>
<DIV>&nbsp;</DIV>
<DIV>In order to the document in ieee template to include a figure, I write my filename.tex as:</DIV>
<DIV><B><FONT color=#ff0000 size=2>
<P>\documentclass</FONT><FONT color=#00ff00 size=2>[</B></FONT><FONT size=2>12pt,psfig</FONT><B><FONT color=#00ff00 size=2>]</FONT><FONT color=#ffff00 size=2>{</B></FONT><FONT size=2>article</FONT><B><FONT color=#ffff00 size=2>}</B></FONT><FONT size=2><BR><BR></FONT><B><FONT color=#ff0000 size=2>\usepackage</FONT><FONT color=#ffff00 size=2>{</B></FONT><FONT size=2>latexsym</FONT><B><FONT color=#ffff00 size=2>}</B></FONT><FONT size=2><BR></FONT><B><FONT color=#ff0000 size=2>\usepackage</FONT><FONT color=#ffff00 size=2>{</B></FONT><FONT size=2>graphicx</FONT><B><FONT color=#ffff00 size=2>}</B></FONT><FONT size=2><BR><BR></FONT><B><FONT color=#ff0000 size=2>\begin</FONT><FONT color=#ffff00 size=2>{</B></FONT><FONT size=2>document</FONT><B><FONT color=#ffff00 size=2>}</B></FONT><FONT size=2><BR><BR></FONT><B><FONT color=#ff0000 size=2>\begin</FONT><FONT color=#ffff00 size=2>{</B></FONT><FONT size=2>figure</FONT><B><FONT color=#ffff00 size=2>}</FONT><FONT color=#00ff00
 size=2>[</B></FONT><FONT size=2>htbp</FONT><B><FONT color=#00ff00 size=2>]</B></FONT><FONT size=2><BR></FONT><B><FONT color=#ff0000 size=2>\centering</B></FONT><FONT size=2><BR></FONT><B><FONT color=#800000 size=2>\includegraphics</FONT><FONT color=#00ff00 size=2>[</B></FONT><FONT size=2>height=1.05in</FONT><B><FONT color=#00ff00 size=2>]</FONT><FONT color=#ffff00 size=2>{</B></FONT><FONT size=2>fD1.eps</FONT><B><FONT color=#ffff00 size=2>}</B></FONT><FONT size=2><BR></FONT><B><FONT color=#ff0000 size=2>\caption</FONT><FONT color=#ffff00 size=2>{</B></FONT><FONT size=2>Test.</FONT><B><FONT color=#ffff00 size=2>}</B></FONT><FONT size=2><BR></FONT><B><FONT color=#ff0000 size=2>\label</FONT><FONT color=#ffff00 size=2>{</B></FONT><FONT size=2>Test.fig</FONT><B><FONT color=#ffff00 size=2>}</B></FONT><FONT size=2><BR></FONT><B><FONT color=#ff0000 size=2>\end</FONT><FONT color=#ffff00 size=2>{</B></FONT><FONT size=2>figure</FONT><B><FONT color=#ffff00 size=2>}</B></FONT><FONT
 size=2><BR><BR></FONT><B><FONT color=#ff0000 size=2>\end</FONT><FONT color=#ffff00 size=2>{</B></FONT><FONT size=2>document</FONT><B><FONT color=#ffff00 size=2>}</FONT></B></P>
<P><FONT size=2><STRONG>Besides, I add </STRONG></FONT></P><FONT size=2><FONT face=CMTT10 size=2>
<P align=left>\usepackage{ieeefig} as part of the preamble. </P>
<P align=left>Then, in the body of documentation, I add</P><I><FONT color=#0000f0 size=2>
<P>\begin{figure}<BR>\figdef[dim]{fD1}<BR>\caption{This figure...}<BR>\label{fig:fD1}&nbsp;</P>
<P>\end{figure}</P></I></FONT>
<P>But the latex command doesn't work when it goes to \figdef[dim]{fD1}. </P>
<P>The error message is</P><FONT size=2>
<P>! LaTeX Error: Can be used only in preamble.<BR>--------------------------------------------------------------------------------------<BR>See the LaTeX manual or LaTeX Companion for explanation.<BR>Type H &lt;return&gt; for immediate help.<BR>... <BR><BR>l.1 \documentclass<BR>[12pt,psfig]{article}<BR>? </P>
<P></FONT></FONT>-------------------------------------------------------------------------------------</P>
<P>Could anybody kindly help me to fix it? I need to finish my work.</P>
<P>I will appreciate your help.</P>
<P>Jing<BR></P></FONT></DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/slv/mailtag/*http://companion.yahoo.com/">Free Pop-Up Blocker - Get it now</a>