[OS X TeX] LaTeX question regarding \pageref
Gary L. Gray
gray at engr.psu.edu
Tue Jul 1 20:23:12 EDT 2008
On Jul 1, 2008, at 5:58 PM, Ross Moore wrote:
> Hi Gary,
>
> On 02/07/2008, at 7:12 AM, Gary L. Gray wrote:
>>
>>> 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? :-)
>
> Make sure that LaTeX sees a \par (e.g., a blank line)
> at the end of each item, *before* the next \item .
>
> Otherwise TeX does not know that the paragraph has actually finished
> yet.
> This could mean that the next \label (when at the start of the item,
> as you had it previously) gets processed before the line-breaking
> for the previous contents have been established.
>
> The \par ensures that the paragraph (i.e., the item content) has
> finished,
> so makes for cleaner processing.
Thanks Ross. That, along with Axel's suggestion to put the \label at
the end of each item rather than at the beginning as I had done,
appears to solve the problem.
-- Gary
More information about the MacOSX-TeX
mailing list