subfloat

938 views
Skip to first unread message

Anglea

unread,
Jul 27, 2011, 3:40:36 PM7/27/11
to LaTeX Users Group
Hi Everyone,
I have these commands to produce a plot, it insists giving me the
error message below, even I upload the subfloat.sty and subfloat.dtx,
but it still complains baout the command \subfloat..............ANY
Help????

\usepackage{subfigure}
\usepackage{subfloat}
%
\begin{figure}[!htp]
\begin{center}
\color{blue}{\begin{boxedminipage}{2.6in}
\subfloat{a)}{\label{fig:a}\includegraphics[width=0.9\textwidth]
{50.eps}}
\end{boxedminipage}
\begin{boxedminipage}{2.6in}
\subfloat{b)}{\label{fig:b}\includegraphics[width=0.9\textwidth]
{Con.eps}}
\end{boxedminipage}
\end{center}
\label{fig:5}
\end{figure}
______________________________
./MCBEM.tex:596:Undefined control sequence. \subfloat
___________________________
Another thinhg I do not how to label each subfloat, I try many ways,
but it did not work, anyone know HOW?

wishes,

Anglea

unread,
Jul 27, 2011, 3:41:32 PM7/27/11
to LaTeX Users Group
Hi Everyone,
I have these commands to produce a plot, it insists giving me the
error message below, even I upload the subfloat.sty and subfloat.dtx,
but it still complains baout the command \subfloat..............ANY
Help????

\usepackage{subfigure}
\usepackage{subfloat}
%
\begin{figure}[!htp]
\begin{center}
\color{blue}{\begin{boxedminipage}{2.6in}
\subfloat{a)}{\label{fig:a}\includegraphics[width=0.9\textwidth]
{50.eps}}
\end{boxedminipage}
\begin{boxedminipage}{2.6in}
\subfloat{b)}{\label{fig:b}\includegraphics[width=0.9\textwidth]
{Con.eps}}
\end{boxedminipage}
\end{center}
\label{fig:5}
\end{figure}
______________________________
./MCBEM.tex:596:Undefined control sequence. \subfloat
./subfloat.sty:0: Numbers of floats not counted:(subfloat) If you use
one of the counters subfloatfiguremax or(subfloat) subfloattablemax
you will get strange error messages(subfloat) containing
\c@subfloatfiguremax or(subfloat) \c@subfloattablemax:(subfloat)
Please switch on countmax or remove the code using

Peter Flynn

unread,
Jul 27, 2011, 6:51:08 PM7/27/11
to latexus...@googlegroups.com
On Wed, Jul 27, 2011 at 8:40 PM, Anglea <hanyah...@yahoo.com> wrote:
Hi Everyone,
I have these commands to produce  a plot, it insists giving me the
error message below, even I upload the subfloat.sty and subfloat.dtx,

But did you generate and read the documentation?
 
but it still complains baout the command  \subfloat..............ANY
Help????

Try pdflatex subfloat.dtx (twice) and then read the PDF. The Abstract says;

This package enables subnumbering of floats (figures and tables) similar to
the subequations environment of the amsmath package. It does not the
same as the subfigure package which generates subfigures within one normal
figure.

There is no such command as \subfloat.

///Peter

Digna González

unread,
Jul 28, 2011, 10:47:40 AM7/28/11
to latexus...@googlegroups.com
Hi Anglea,

If you want to have a plot with subplots, you can use the subfig package. You can find its documentation here, with many examples: http://www.ctan.org/tex-archive/macros/latex/contrib/subfig

Hope it helps,

Digna Gonzalez



2011/7/28 Peter Flynn <angleb...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To post to this group, send email to latexus...@googlegroups.com.
To unsubscribe from this group, send email to latexusersgro...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/latexusersgroup?hl=en.

Reply all
Reply to author
Forward
0 new messages