Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Referencing multiple figures

5,968 views
Skip to first unread message

Srimal Jayawardena

unread,
Apr 21, 2010, 9:21:36 PM4/21/10
to sri...@gmail.com
Hi

I have 15 figures that cannot fit into 1 figure with subfigures.

How can I refer to them withing my text like Figures 1-15.?

I tried something like Figures \ref{figure1} - \ref{figure2} but the

figures come in a random order (not the order I include them in the
latex file - which is ok with me)

so I end up with something like Figures 4-8 instead of Figures 1-15.

I guess even having a an individual \ref for each figure like FIgures
\ref{figure1}, \ref{figure2}, ...
\ef{figure15} will appear as 4,5,2,5,... instead of 1,2,3...15.

Is there a better approach?

How can I elegantly refer to all my 15 figures from within the text?

Thanks in advance

Srimal.

Robin Fairbairns

unread,
Apr 22, 2010, 12:17:38 PM4/22/10
to
On 2010-04-22, Srimal Jayawardena <sri...@gmail.com> wrote:
> I have 15 figures that cannot fit into 1 figure with subfigures.
>
> How can I refer to them withing my text like Figures 1-15.?
>
> I tried something like Figures \ref{figure1} - \ref{figure2} but the
>
> figures come in a random order (not the order I include them in the
> latex file - which is ok with me)

not with me.

figures defined by \begin{figure} ... \end{figure} _don't_ get out of
order in latex (the code wouldn't know how to do it!)

> so I end up with something like Figures 4-8 instead of Figures 1-15.

given the above, i don't see how the issue arises.

> I guess even having a an individual \ref for each figure like FIgures
> \ref{figure1}, \ref{figure2}, ...
> \ef{figure15} will appear as 4,5,2,5,... instead of 1,2,3...15.
>
> Is there a better approach?
>
> How can I elegantly refer to all my 15 figures from within the text?

i think we need a description of how you're coding all this. given
that one assumes you're not using \begin{figure} ... \end{figure}, the
answer to this will depend on what code you are _actually_ using.
--
Robin Fairbairns, Cambridge

Peter Flynn

unread,
Apr 23, 2010, 7:22:01 PM4/23/10
to
Robin Fairbairns wrote:
[...]

> figures defined by \begin{figure} ... \end{figure} _don't_ get out of
> order in latex (the code wouldn't know how to do it!)

Actually, they can, alas. If an oversize figure that is *not* specified
as [p] will not fit on the current page, it will get put at the end of
the chapter instead of being placed on the next empty page, while the
remaining (smaller) figures in the chapter are handled correctly in
sequence. I can probably re-concoct my draft thesis where this happened
a few times if you want an example.

///Peter

Donald Arseneau

unread,
Apr 24, 2010, 8:00:19 AM4/24/10
to
On Apr 23, 4:22 pm, Peter Flynn <peter.n...@m.silmaril.ie> wrote:

Peter,

I would have to see such an example before I believed your
assertion.

Donald Arseneau.

Peter Flynn

unread,
Apr 24, 2010, 6:07:27 PM4/24/10
to

I'll wait for it to reoccur. I was surprised at the time: my
recollection was that I had to scroll down in kdvi to find the figure,
past many smaller ones, until I got to the end of the chapter. But it's
also possible that my memory was cloded by the lateness of the hour and
the excess of caffeine in my bloodstream.

///Peter

0 new messages