In writing my thesis in LyX I make frequent use of the label-copy-as-reference function - mainly from equations but also with other labels. The labels are however not pasted as formatted reference which I think I should use for later flexibility (via the refstyle package). Changing every pasted label manually is not my preferred option ;)
Entering the inset-insert function into the mini-buffer
inset-insert ref LatexCommand formatted reference "eq:foo" \end_inset
I mangaged to paste
eq:foo in the desired format into my text. How can I nest a function into inset-insert which replaces
eq:foo by a previously-copied label (stored in the clipboard)? I was not able to work it out from How to make use of selected text using LyX commands and command sequences?
PS: Many belated thanks to those behind LyX and this great forum!