I am currently writing a document in LyX and I'm using hyperref to have links in the ToC, citations etc. The problem is that I added a figure (with float) and when I make a cross-reference in the text, the reference itself becomes a link that leads to the page that contains the actual figure. For example:

------Sample Graphic-------

Figure 1.1: Example of a graphic

And in the text that follows:

As we can see in figure 1.1 there is...

Now if I hover the mouse over 1.1 there is a link pointing to the location of the actual figure. Is there any way to disable the links for figures? Perhaps using "hypersetup" or a renewcommand...?

  • 1
    Would yo like to disable links for tables also, perhaps for cross-references in general?
    – Stefan Kottwitz
    Aug 18, 2010 at 15:52
  • 1
    Why would you want to do this?
    – Caramdir
    Aug 18, 2010 at 16:05
  • I think so, however as I'm not sure on the tables yet can you perhaps give the solution to each case?
    – Andreas K.
    Aug 18, 2010 at 16:07
  • I think it would be consistent to do it for all cross-references or for no one. Otherwise a reader might wonder why he can click on table 1.1 and equation 1.1 but not on figure 1.1, assuming a mistake.
    – Stefan Kottwitz
    Aug 18, 2010 at 16:10
  • @Caramdir Well I'm following instructions as to how I have to write it so... :-P @Stefan Thanks a lot for the answer, works like a charm. However I want to ask (mostly out of curiosity) how could I have done that for figures only?
    – Andreas K.
    Aug 18, 2010 at 16:24

1 Answer 1


You could use the starred form \ref* to suppress the link. If you want to suppress all links for cross-references in your document, you could write


after \begin{document}. With LyX that means, insert it as ERT at the beginning of your document.

Note, this definition wouldn't work this way in the preamble because hyperref makes changes after the preamble. So, it might be done with \AtBeginDocument{...} after loading hyperref but I guess the simple solution may be sufficient.

  • Perfect. I was trying to put something similar in the preamble but that explains it. Thank you.
    – Andreas K.
    Aug 18, 2010 at 16:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .