2

I am using an array of figures using subfloat as follows:

\begin{figure}
\centering
\subfloat[]{\includegraphics[width=70px,height=60px]
{img_success/rgb/rgb_001456.eps}}
\subfloat[]{\includegraphics[width=70px,height=60px]
{img_success/rule/region_001456_1.eps}}
\subfloat[]{\includegraphics[width=70px,height=60px]
{img_success/map/region_001456_1.eps}}\\
\caption{Results on our dataset: Success case}
\label{tab:results_success}
\end{figure}

However, I get numberings below the subfigures like (a), (b),... How do I omit them? I tried applying

\renewcommand*{\thesubfigure}{}

But this leaves empty parentheses "()".

How do I completely omit them?

Thanks. :)

4
  • 3
    Just leave out the \subfloat[]{ part and the final closing brace.
    – egreg
    Mar 12 '13 at 0:10
  • Use the \phantomcaption command if this is using the subcaption package as you have tagged it.
    – percusse
    Mar 12 '13 at 0:13
  • here is the demo by percusse from his own answer Mar 12 '13 at 0:20
  • 3
    The purpose of \subfloat command is to give each sub-figure a caption and an automatically numbered label. If you don't want any of these, don't use \subfloat. You can still put all the \includegraphics in a single figure environment.
    – JLDiaz
    Mar 12 '13 at 0:32
4

A figure environment can contain (almost) anything; it's by no means necessary that multiple images are enclosed in \subfloat commands. Thus

\begin{figure}
\centering

\includegraphics[width=70pt,height=60pt]{img_success/rgb/rgb_001456}
\includegraphics[width=70pt,height=60pt]{img_success/rule/region_001456_1}
\includegraphics[width=70pt,height=60pt]{img_success/map/region_001456_1}}

\caption{Results on our dataset: Success case}
\label{tab:results_success}
\end{figure}

is exactly what you need. To TeX, the three images are just like big letters.

A normal space will be placed between the images; you can end the first two lines with \quad or \qquad, instead, for bigger space.

Don't use px based lengths, unless you have set the pixel width in the document. Prefer other units or fractions of the text width. It's also better to avoid extensions, so the document can be more easily ported to other engines such as pdflatex.

2
  • +1 but wouldn't you want to encourage the removal of the extensions? and perhaps use graphicspath?
    – cmhughes
    Mar 12 '13 at 0:48
  • @cmhughes You're right about the extensions. I'm not really a fan of \graphicspath.
    – egreg
    Mar 12 '13 at 0:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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