Re: More hyperref bogosity SOLVED

2011-03-29 Thread Steve Litt
On Thursday 24 March 2011 17:28:57 Jacob Bishop wrote:
 On Thu, Mar 24, 2011 at 3:10 PM, Steve Litt 
sl...@troubleshooters.comwrote:
  Hi all,
  
  I have an appendix listing the several processes in my book, with cross
  references pointing to the pages on which these processes are discussed,
  using
  a text:myprocess-discussion-start and text:myprocess-discussion-end
  labels within the book's text. All of the cross references print the
  correct page number, but several go to the wrong page (an earlier page)
  if you click them.
  However, many of the cross references go to the correct page when
  clicked. I
  see no distinction between the ones that screw up and the ones that work
  correctly.
  
  Before I take a half a day or more slowly deconstructing this 110,000
  word book to form a small test case, does anyone have any ideas why some
  cross references would screw up?
 
 I really don't know all that much about this problem. All I know is that
 when I did my thesis in LyX, I had some links going to wrong pages. To fix
 it, I had to use some ERT with \phantomsection in certain places, if I
 remember correctly. It's my understanding this has to do with how the marks
 are set for hyperref to deal with them. I'm certain there are others who
 know more, but this might help.
 
 Jacob

Hi all,

It was exactly what Jacob said, and it's actually a well known problem with a 
well known solution.

Hyperref was never meant to go with just any old label. Hyperref was built to 
refer to the current chapter, section, subsection, subsubsection, etc, 
containing the label. It's also meant to refer to the inside of a float, but 
that's beyond the scope of the current discussion.

Anyway, remember this: when you create a crossreference to a label, the page 
number is exactly that of the label, but hyperref jumps to the beginning of 
the smallest containing chapter, section, subsection etc containing that 
label.

So the hyperref people made the \phantomsection command to make a little tiny 
fake section. Whenever you make a label that isn't at the front of a chapter, 
section etc and isn't in a float, if you're using hyperref you MUST put an ERT 
\phantomsection immediately before the label. This will cure the problem I 
mentioned.

Remember, the \phantomsection goes before the *label*, not before the 
crossreference.

Happy hyperreffing.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: More hyperref bogosity SOLVED

2011-03-29 Thread Steve Litt
On Thursday 24 March 2011 17:28:57 Jacob Bishop wrote:
 On Thu, Mar 24, 2011 at 3:10 PM, Steve Litt 
sl...@troubleshooters.comwrote:
  Hi all,
  
  I have an appendix listing the several processes in my book, with cross
  references pointing to the pages on which these processes are discussed,
  using
  a text:myprocess-discussion-start and text:myprocess-discussion-end
  labels within the book's text. All of the cross references print the
  correct page number, but several go to the wrong page (an earlier page)
  if you click them.
  However, many of the cross references go to the correct page when
  clicked. I
  see no distinction between the ones that screw up and the ones that work
  correctly.
  
  Before I take a half a day or more slowly deconstructing this 110,000
  word book to form a small test case, does anyone have any ideas why some
  cross references would screw up?
 
 I really don't know all that much about this problem. All I know is that
 when I did my thesis in LyX, I had some links going to wrong pages. To fix
 it, I had to use some ERT with \phantomsection in certain places, if I
 remember correctly. It's my understanding this has to do with how the marks
 are set for hyperref to deal with them. I'm certain there are others who
 know more, but this might help.
 
 Jacob

Hi all,

It was exactly what Jacob said, and it's actually a well known problem with a 
well known solution.

Hyperref was never meant to go with just any old label. Hyperref was built to 
refer to the current chapter, section, subsection, subsubsection, etc, 
containing the label. It's also meant to refer to the inside of a float, but 
that's beyond the scope of the current discussion.

Anyway, remember this: when you create a crossreference to a label, the page 
number is exactly that of the label, but hyperref jumps to the beginning of 
the smallest containing chapter, section, subsection etc containing that 
label.

So the hyperref people made the \phantomsection command to make a little tiny 
fake section. Whenever you make a label that isn't at the front of a chapter, 
section etc and isn't in a float, if you're using hyperref you MUST put an ERT 
\phantomsection immediately before the label. This will cure the problem I 
mentioned.

Remember, the \phantomsection goes before the *label*, not before the 
crossreference.

Happy hyperreffing.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: More hyperref bogosity

2011-03-29 Thread Steve Litt
On Thursday 24 March 2011 17:28:57 Jacob Bishop wrote:
> On Thu, Mar 24, 2011 at 3:10 PM, Steve Litt 
wrote:
> > Hi all,
> > 
> > I have an appendix listing the several processes in my book, with cross
> > references pointing to the pages on which these processes are discussed,
> > using
> > a text:myprocess-discussion-start and text:myprocess-discussion-end
> > labels within the book's text. All of the cross references print the
> > correct page number, but several go to the wrong page (an earlier page)
> > if you click them.
> > However, many of the cross references go to the correct page when
> > clicked. I
> > see no distinction between the ones that screw up and the ones that work
> > correctly.
> > 
> > Before I take a half a day or more slowly deconstructing this 110,000
> > word book to form a small test case, does anyone have any ideas why some
> > cross references would screw up?
> 
> I really don't know all that much about this problem. All I know is that
> when I did my thesis in LyX, I had some links going to wrong pages. To fix
> it, I had to use some ERT with \phantomsection in certain places, if I
> remember correctly. It's my understanding this has to do with how the marks
> are set for hyperref to deal with them. I'm certain there are others who
> know more, but this might help.
> 
> Jacob

Hi all,

It was exactly what Jacob said, and it's actually a well known problem with a 
well known solution.

Hyperref was never meant to go with just any old label. Hyperref was built to 
refer to the current chapter, section, subsection, subsubsection, etc, 
containing the label. It's also meant to refer to the inside of a float, but 
that's beyond the scope of the current discussion.

Anyway, remember this: when you create a crossreference to a label, the page 
number is exactly that of the label, but hyperref jumps to the beginning of 
the smallest containing chapter, section, subsection etc containing that 
label.

So the hyperref people made the \phantomsection command to make a little tiny 
fake section. Whenever you make a label that isn't at the front of a chapter, 
section etc and isn't in a float, if you're using hyperref you MUST put an ERT 
\phantomsection immediately before the label. This will cure the problem I 
mentioned.

Remember, the \phantomsection goes before the *label*, not before the 
crossreference.

Happy hyperreffing.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: More hyperref bogosity

2011-03-24 Thread Jacob Bishop
On Thu, Mar 24, 2011 at 3:10 PM, Steve Litt sl...@troubleshooters.comwrote:

 Hi all,

 I have an appendix listing the several processes in my book, with cross
 references pointing to the pages on which these processes are discussed,
 using
 a text:myprocess-discussion-start and text:myprocess-discussion-end labels
 within the book's text. All of the cross references print the correct page
 number, but several go to the wrong page (an earlier page) if you click
 them.
 However, many of the cross references go to the correct page when clicked.
 I
 see no distinction between the ones that screw up and the ones that work
 correctly.

 Before I take a half a day or more slowly deconstructing this 110,000 word
 book to form a small test case, does anyone have any ideas why some cross
 references would screw up?


I really don't know all that much about this problem. All I know is that
when I did my thesis in LyX, I had some links going to wrong pages. To fix
it, I had to use some ERT with \phantomsection in certain places, if I
remember correctly. It's my understanding this has to do with how the marks
are set for hyperref to deal with them. I'm certain there are others who
know more, but this might help.

Jacob


Re: More hyperref bogosity

2011-03-24 Thread Jacob Bishop
On Thu, Mar 24, 2011 at 3:10 PM, Steve Litt sl...@troubleshooters.comwrote:

 Hi all,

 I have an appendix listing the several processes in my book, with cross
 references pointing to the pages on which these processes are discussed,
 using
 a text:myprocess-discussion-start and text:myprocess-discussion-end labels
 within the book's text. All of the cross references print the correct page
 number, but several go to the wrong page (an earlier page) if you click
 them.
 However, many of the cross references go to the correct page when clicked.
 I
 see no distinction between the ones that screw up and the ones that work
 correctly.

 Before I take a half a day or more slowly deconstructing this 110,000 word
 book to form a small test case, does anyone have any ideas why some cross
 references would screw up?


I really don't know all that much about this problem. All I know is that
when I did my thesis in LyX, I had some links going to wrong pages. To fix
it, I had to use some ERT with \phantomsection in certain places, if I
remember correctly. It's my understanding this has to do with how the marks
are set for hyperref to deal with them. I'm certain there are others who
know more, but this might help.

Jacob


Re: More hyperref bogosity

2011-03-24 Thread Jacob Bishop
On Thu, Mar 24, 2011 at 3:10 PM, Steve Litt wrote:

> Hi all,
>
> I have an appendix listing the several processes in my book, with cross
> references pointing to the pages on which these processes are discussed,
> using
> a text:myprocess-discussion-start and text:myprocess-discussion-end labels
> within the book's text. All of the cross references print the correct page
> number, but several go to the wrong page (an earlier page) if you click
> them.
> However, many of the cross references go to the correct page when clicked.
> I
> see no distinction between the ones that screw up and the ones that work
> correctly.
>
> Before I take a half a day or more slowly deconstructing this 110,000 word
> book to form a small test case, does anyone have any ideas why some cross
> references would screw up?
>
>
I really don't know all that much about this problem. All I know is that
when I did my thesis in LyX, I had some links going to wrong pages. To fix
it, I had to use some ERT with \phantomsection in certain places, if I
remember correctly. It's my understanding this has to do with how the marks
are set for hyperref to deal with them. I'm certain there are others who
know more, but this might help.

Jacob