Article View: comp.text.tex
Article #1978Re: How to test the page value of a float?
From: Donald Arseneau
Date: Wed, 02 Sep 1992 09:47
Date: Wed, 02 Sep 1992 09:47
17 lines
1104 bytes
1104 bytes
In article <1992Sep1.150736.5707@irisa.fr>, louarn@irisa.fr (Philippe Louarn) writes...
>I want to be able to test the value of the page number where a floating
>figure WILL be put.
>
>I tried :
>
>\begin{figure}[p]
>\ifodd\value{page} <DO_SOMETHING> \else <DO_ANOTHER_THING>\fi
>\end{figure}
>
>That does not run, cause the \value{page} give me the value of
>the current page (where the figure is declared) and not the value
>of the page where the figure will be put.
Use \pageref and it should work on the second pass through LaTeX.
Donald
Technical Details
Message-ID:
<2SEP199202472416@reg.triumf.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!decwrl!access.usask.ca!kakwa.ucs.ualberta.ca!unixg.ubc.ca!reg.triumf.ca!asndReferences:
<1992Sep1.150736.5707@irisa.fr>Show Full Headers
Complete Article Headers
Newsgroups: comp.text.tex Path: arc1-ca.pugleaf.net!sparky!uunet!decwrl!access.usask.ca!kakwa.ucs.ualberta.ca!unixg.ubc.ca!reg.triumf.ca!asnd From: asnd@reg.triumf.ca (Donald Arseneau) Subject: Re: How to test the page value of a float? Message-ID: <2SEP199202472416@reg.triumf.ca> News-Software: VAX/VMS VNEWS 1.41 Sender: news@unixg.ubc.ca (Usenet News Maintenance) Nntp-Posting-Host: reg.triumf.ca Organization: TRIUMF: Tri-University Meson Facility References: <1992Sep1.150736.5707@irisa.fr> Date: Wed, 2 Sep 1992 09:47:00 GMT Lines: 17