Is there any way to find all the cross references to a label in a LyX document?

One solution is to search through the source file, but I was wondering if there is anything provided in the GUI.

2 Answers 2


Your best bet here is to activate theOutline panel with View --> Outline Pane (Document --> Outline in older versions of LyX), and choose Labels and references. There you'll get a list of all labels, and you can expand each item to get links to the places where it is referenced.

It also shows the type of reference.

enter image description here

  • This is works too. I think the two methods exposed here are complementary. Thanks
    – Bogdan
    Commented Sep 4, 2013 at 2:53
  • Note that this feature is located under the View menu in later versions of LyX and is called Outline Pane.
    – Zero3
    Commented Jan 6, 2016 at 17:39
  • @Zero3 Thanks for the note, I updated my answer. Commented Jan 6, 2016 at 20:49

Your best bet here is to use a LaTeX-based approach via showkeys. Just add the package to your LaTeX preamble:

\usepackage{showkeys}% http://ctan.org/pkg/showkeys

It highlights \labels in the margin, and \refs inline:

enter image description here

\usepackage{showkeys}% http://ctan.org/pkg/showkeys
\section{First section}\label{first}
See section~\ref{last}.
\section{Second section}\label{second}
See section~\ref{first}.
\section{Last section}\label{last}
See section~\ref{first}.
  • Thanks. Works like a charm. There are some issues when the \ref(s) are too close together and the highlights overlap, but it does the job.
    – Bogdan
    Commented Sep 3, 2013 at 20:44
  • @Bogdan: That's true - the setting of keys is made in such a way so as to not influence the document layout. From a technical point of view, this means that the keys have no vertical/horizontal length. As such, they overlap with other things. But that's why this would/should only be used as a debugging tool.
    – Werner
    Commented Sep 3, 2013 at 20:46

You must log in to answer this question.

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