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!
dialog-show ref. – dasausTeR Jul 08 '16 at 13:46command-sequenceto first paste, thenchar-backward, theninset-modifywith the appropriate arguments? Another answer would be that there is currently an open bug (I believe) asking that the reference is introduced in the last remembered formatting. Maybe this would solve the issue as well. – G.M. Jul 08 '16 at 20:04