On Tue, Aug 07, 2001 at 06:34:39PM +0200, Herbert Voss wrote:
> Rem wrote:
> >
> > it doesn't really work.. the figure continues beyond the page...
>
> in preamble
> \newcounter{mySubCounter}
> \newcommand{\myCaption}{}
[...]
Here is a better solution:
1) If you want your figure to have the same number ("Figure 3"), then
just write \addtocounter{figure}{-1} before the caption of the figures
except the first.
2) If you want Figure 3a, Figure 3b etc. then put the following lines in the
preamble:
\newcounter{parentfigure}
\newenvironment{subfigures}{%
\refstepcounter{figure}%
\protected@edef\theparentfigure{\thefigure}%
\setcounter{parentfigure}{\value{figure}}%
\setcounter{figure}{0}%
\def\thefigure{\theparentfigure\alph{figure}}%
\ignorespaces
}{%
\setcounter{figure}{\value{parentfigure}}%
\ignorespacesafterend
}
Put \begin{subfigures}/\end{subfigures} before/after the figures.
See attached files
(the code was taken from the AMS subequations env.)