[OS X TeX] LaTeX question regarding \pageref

Gary L. Gray gray at engr.psu.edu
Tue Jul 1 17:12:43 EDT 2008


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 orbits of the planets are ellipses, with the Sun at one focus of  
> the ellipse.\label{Kepler1}
> \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? :-)

-- Gary




More information about the MacOSX-TeX mailing list