Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am using MikTeX 2.9 on Windows. I am using, among other packages, hyperref in my MASc thesis and I just noticed something strange. I have an \autoref to a table in a paragraph and the link spans pages. That is, the whole link is "Table 4.1", but "Ta-" is at the bottom of page 39 while "ble 4.1" is at the top of page 40.

When this happens, the page header for page 40 (e.g. "Chapter 4. Blah blah blah 40") has a hyperref box around it and links to table 4.1, as do each of "Ta-" and "ble 4.1".

Is this a known bug? I have done some quick searching on Google and on here but haven't come up with anything. I apologize that I don't have a minimum working example for you at the moment, I am trying to submit it this morning. If I have time I will add a MWE this evening.

share|improve this question
1  
you might try putting the ref into an \mbox so that it doesn't break. even a forced line break before the ref would probably not do too much other damage, although the line that now begins "Ta-" may be stretched. this sounds like a bug (though i'm not sure where), so an example, even a heavily contrived one, would be really useful. oh, welcome to TeX.sx! –  barbara beeton Jan 7 '13 at 13:10
2  
As an alternative to the solution proposed by @barbarabeeton you could just rephrase your text a bit in the vicinity of the page break to make TeX break the page at another point in the text. –  Benedikt Bauer Jan 7 '13 at 13:19
    
Related (duplicate?): tex.stackexchange.com/questions/77853/… –  egreg Jan 7 '13 at 14:10
add comment

1 Answer

It is a known limitation, from README of hyperref:

Links across pages
------------------
  In general they have problems:
  * Some driver doesn't support them at all (see above).
  * The driver allows it, but the link result might include
    the footer and/or header, or an error message can
    occur sometimes.

As workaround the link should not break across pages. \mbox (see Barbara Beeton's comment) can help, but the stretchability of the space inside gets lost as side effect of the boxing.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.