-----Original Message----- From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of Hugo Hinterberger Sent: 26 September 2014 12:53 PM
> The reason I asked here first is the context of LyX that might be > relevant in this case (why don't you just write \secref instead of > \vref) I didn't mean to sound dismissive. Asking here first was definitely the right thing to do. > As I noticed before the actual format I want is "Formatted Reference > on Page <Page>". > > I now have a solution that works on the mwe: > \def\formatreftext#1:#2 {\csname#1ref\endcsname[vref]{#2}} > \def\vref#1{\formatreftext #1 } Glad to hear you got it working, and thanks for posting your solution to the list. Jim