# [texhax] naming of figures after \ref{} order

Philip G. Ratcliffe philipratcliffe at tiscali.it
Thu Feb 5 22:12:13 CET 2004

> I set my figures and tables to be numbered continously but
> realized that the order of the figures/tables assigns the
> number and not the position of the \ref{} in the text. So when I
> \ref{} on the first page several big figure which I put
> in a separate section but add one figure right on the first page
> even when named at last it is labelled fig. 1.
> Neither in the FAQ nor google prompted an appropriate result
> concerning this problem. I would appreciate if you
> point me to the correct "naming" , FAQ number or command
> respectively modification of the one below,

But this is the correct behaviour; figures are numbered according to their
appearance in the text and not according to when they are referenced.  It
would be very odd to have Fig. 10 on page one followed at a later stage by
Fig. 1, 2 etc.  Why on earth should you want such a numbering scheme.  Or
have I misunderstood something?

Cordialmente,  Philip G. Ratcliffe