[Tex/LaTex] Cross reference in tex code in LyX


I'm working with LyX. Do you know how to apply cross reference when using "Tex code" option in LyX?

That's the example of what I'm writing in Tex code:


Where I should put the label in this case so that cross reference option can work?

I hope the question is clear…thank you for your help!

Best Answer

You are not using LyX's interface for managing labels and cross-references. As such, if you're using \label{abc} in an ERT (or "TeX code"), then you need to also use an ERT for the reference \ref{abc} as well.

enter image description here

enter image description here