Helge Hafting wrote:
>
> I want my floats to look slightly different
> depending on wether they are on odd or even pages.
>
> I have a latex macro that takes care of that.
>
> But it looks like \value{page} isn't up
> to date in the middle of a float?
I noticed that references to a float get
the correct page number. So the latex is
capable of giving correct information.
I resorted to using a macro that
sets a label immediately followed by a
pagenumber reference to that label.
This is always correct, and can be used
in a /ifthenelse to see if the
page is even or odd.
The macro got complicated because I need to use it in
many floats - so it uses a counter to set
unique labels. I wonder if there is a better
way to obtain pagenumbers even inside a float?
> Is it
> possible to know, while generating
> text in a float, which page number it happens on?
> At least wether that page is odd or even?
>
> I noticed that a float on page 5
> believed it was on page 4
> where the float command was. But there were
> no room for a float on page 4.
> \arabic{page} gave me 4 (inside the float)
> even though it appeared on page 5.