# [OS X TeX] LaTeX question regarding \pageref

Axel E. Retif axel.retif at mac.com
Tue Jul 1 17:48:21 EDT 2008

On Jul 1, 2008, at 16:12, Gary L. Gray wrote:

> On Jul 1, 2008, at 4:53 PM, Axel E. Retif wrote:
>
>> On Jul 1, 2008, at 15:40, Gary L. Gray wrote:
>>
>>> Hi.
>>>
>>> I have searched comp.tex.text and looked at the TeX FAQ and
>>> haven't been able to solve a problem I am seeing.
>>>
>>> Say I have an enumerate environment that begins at the bottom of
>>> one page and finishes at the top of another. I want to \label
>>> each \item so that I can reference the page number on which that
>>> \item occurs. When I do this, I find that the \ref for the item
>>> at the top of the second page is returned correctly, but the
>>> \pageref for that item is not. In particular, the first item on
>>> the second page is reported as being on the first page.
>>
>> I think the only way would be
>>
>> \item
>> The line joining a planet to the Sun sweeps out equal areas in
>> equal times as the planet travels around the Sun.\label{Kepler2}
>
> That sort of fixes it. I moved all three labels and, interestingly,
> now the second item breaks in the middle of it -- it did not do
> this before moving the labels. Why must LaTeX do these things? :-)

Beats me, really! Sometimes I get different output with

“... <end of paragraph text>.\index{xxx}” and

“... <end of paragraph text>.
\index{xxx}”

Best,

Axel