Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am making a poster with beamerposter and it is treating all my subfigures as part of a single figure, lettering them (a), (b), ..., (q), even though I very clearly \end{figure} several times, which should reset the count. I want each \begin{figure} ... \end{figure} block to have its own subfigure lettering, starting from (a). I copied the figures over directly from a .tex article where they are lettered appropriately. What am I doing wrong?

This is a minimal working example:

   \documentclass[serif,mathserif,final]{beamer}
\mode<presentation>{\usetheme{Jorstad}}
\usepackage{amsmath,amsfonts,amssymb,pxfonts,eulervm,xspace}
\usepackage{floatflt,subfigure}
\usepackage{graphicx}
\usepackage{multicol}
%\graphicspath{{./figures/}}
\usepackage[orientation=landscape,size=A0,debug]{beamerposter}

%-- Header and footer information ----------------------------------
\newcommand{\footleft}{}
\newcommand{\footright}{}
\title{a}
\author{a}
\institute{a}
%-------------------------------------------------------------------


%-- Main Document --------------------------------------------------
\begin{document}
\begin{frame}{}
\begin{columns}[t]

%-- Column 1 ---------------------------------------------------
\begin{column}{0.24\linewidth}

    %-- Block 1-2
    \begin{block}{Section 1}

    \begin{figure}[t]
    \begin{center}
    \subfigure[$I_1$] {\includegraphics[height=2in]{pics/BA_scream_1.png} \label{BA_exp_1}}
    \subfigure[$I_2$] {\includegraphics[height=2in]{pics/BA_scream_2.png} \label{BA_exp_2}}
    \subfigure[$w$] {\includegraphics[height=2in]{pics/BA_scream_3.png} \label{BA_exp_3}}
    \subfigure[$I_2^w$] {\includegraphics[height=2in]{pics/BA_scream_4.png} \label{BA_exp_4}}  \\
    \subfigure[$I_1$] {\includegraphics[height=2in]{pics/BA_lighting_1.png} \label{BA_lgt_1}}
    \subfigure[$I_2$] {\includegraphics[height=2in]{pics/BA_lighting_2.png} \label{BA_lgt_2}}
    \subfigure[$w$] {\includegraphics[height=2in]{pics/BA_lighting_3.png} \label{BA_lgt_3}}
    \subfigure[$I_2^w$] {\includegraphics[height=2in]{pics/BA_lighting_4.png} \label{BA_lgt_4}}
    \label{BA_failures}
    \end{center}
    \end{figure}

\end{block}
\end{column}%1



%-- Column 2 ---------------------------------------------------
\begin{column}{0.41\linewidth}

        \begin{block}{Section 2}

        \begin{figure}[t]  %hp
        \begin{center}
        \subfigure[] {\includegraphics[height=2in]{pics/face51.png} }
        \subfigure[] {\includegraphics[height=2in]{pics/face51_expressions.png} }
        \subfigure[] {\includegraphics[height=2in]{pics/face51_lightings.png} }
        \end{center}
        \end{figure}


\end{block}

\end{column}%3

\end{columns}
\end{frame}
\end{document}

Ideally I want each figure to reset the subfigure captions starting from (a) alternately removing the letters while keeping the caption would be OK.

share|improve this question
    
Please add to your question a minimal working example illustrating your problem. –  Gonzalo Medina Jun 15 '11 at 21:15
    
@Gonzalo Medina, I've edited the question a little bit. –  carlosdc Jun 15 '11 at 21:37
add comment

1 Answer

up vote 2 down vote accepted

You are using the now obsolete package subfigure; you should use subcaption instead.

The reason why the numbering for the subfigures does not reset is because you are not using a caption for the figures (and the subfigure counter resets every time the figure counter is incremented, which wont happen without a caption). A quick fix would be to add

\setcounter{subfigure}{0}

just before each new group of figures to manually restart the counter (or to add in the preamble

\renewcommand\thesubfigure{}

to suppress the numbering for the subfigures, as you also propose in your question).

An automatic solution can be obtained by using a \caption for the figures; if you want to suppress the name Figure and the label separator : that the use of \caption causes, then one possibility is to use in the preamble

\usepackage{caption}
\DeclareCaptionStyle{mystyle}{name=none}
\captionsetup[figure]{style=mystyle}
\usepackage{floatflt,subfigure}

and to write \caption{} inside each figure environment.

share|improve this answer
    
@carlosdc: I discovered the real reason for the problem. I updated my answer, providing one possible correct and automatic solution. –  Gonzalo Medina Jun 15 '11 at 23:23
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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