[comp.text.tex] getting \thepage in figures

harmo@cc.helsinki.fi (Timo Harmo, Fac. of Soc.Sci, U of Helsinki) (09/06/90)

I'm trying to make different formats for {figures} in odd/even pages using
LaTeX.
I have a figure-environment, and inside it I test for

\iffodd\thepage\format1\else\format1\fi

The problem is that \thepage (and \count0) refers to the page where the figure
was defined, not to where it end up, so figures get the wrong format if they
have been moved to next page. Any solutions?

If I do a \label inside the figure I get the correct page with \pageref.
So if I could test for
\iffod\pageref{xxx}... 
that would be one solution. I just get a "missing number" when I try that.

thanks
  -Timo Harmo