Re: Command-buffer inset-insert syntax
> Just to make it complete: the syntax is > >inset-apply ref LatexCommand reference ""\end_inset > > where is the name of the referenced label and > is one of the following: > >ref -- >eqref -- () >pageref -- >vpageref -- on >vref -- on >prettyref -- Formatted reference > > As well on the updated function list: > http://wiki.lyx.org/LyX/LyxFunctionList thanks i'll add it to the doxy docs later. pavel
Re: Command-buffer inset-insert syntax
Perfect, THANKS! Just to make it complete: the syntax is inset-apply ref LatexCommand reference ""\end_inset where is the name of the referenced label and is one of the following: ref -- eqref -- () pageref -- vpageref -- on vref -- on prettyref -- Formatted reference As well on the updated function list: http://wiki.lyx.org/LyX/LyxFunctionList Regards Toby
Re: Command-buffer inset-insert syntax
> So I tried inset-insert ref LatexCommand ref reference "tst:2" you mean this? inset-apply ref LatexCommand ref reference "tst:2"\end_inset p
Re: Command-buffer inset-insert syntax
Hi, lyx -dbg action I tried that using all debug messages, but the output does not help me too much: This is the debug-output when I insert the reference LyXFunc::dispatch: cmd: action: 231 arg: 'ref LatexCommand ref reference "tst:1" \end_inset ' x: 0 y: 0 LyXFunc::dispatch: cmd: action: 232 arg: 'ref LatexCommand ref reference "tst:1" \end_inset ' x: 0 y: 0 void __thiscall lyx::InsetText::doDispatch(class lyx::Cursor &,class lyx::FuncRequest &) [ cmd.action = 232] Text::dispatch: cmd: action: 232 arg: 'ref LatexCommand ref reference "tst:1" \end_inset ' x: 0 y: 0 So I tried inset-insert ref LatexCommand ref reference "tst:2" This produced a error message "LyX: Insert Command: ref" "Unknown parameter name:" and the debug output LyXFunc::dispatch: cmd: action: 232 arg: 'ref LatexCommand ref reference "tst:2"' x: 0 y: 0 void __thiscall lyx::InsetText::doDispatch(class lyx::Cursor &,class lyx::FuncRequest &) [ cmd.action = 232] Text::dispatch: cmd: action: 232 arg: 'ref LatexCommand ref reference "tst:2"' x: 0 y: 0 Somehow it seems to get close but I don't know what to change... Regards Toby Original Message Subject: Re: Command-buffer inset-insert syntax From: Pavel Sanda <[EMAIL PROTECTED]> To: lyx-users@lists.lyx.org Date: Mon Feb 25 2008 21:45:45 GMT+0100 For versions of LyX subsequent to 1.4, you have to use |inset-insert| instead. The format is |LYXCMD::inset-insert ref LatexCommand ref reference referenceName \end_inset|. There's also an optional "name NAME" argument that seems to work in docbook: |NAME|. But I don't understand how to do it. How can I insert a "Formated reference" to the label "sec:test"? try if you can read something from the console output when you put the reference through GUI (run lyx in debug mode, eg: lyx -dbg action) please report back the correct version if you succeed. Additionally I'd like to use the command-buffer to go to a label. In http://wiki.lyx.org/LyX/LyxFunctionList1-3-2 I found reference-goto but this functions does not seem to be available in 1.5.x any more. Is there an other function allowing to go to given label via command-buffer in 1.5.x? LFUN_REFERENCE_GOTO -> LFUN_REFERENCE_NEXT pavel
Re: Command-buffer inset-insert syntax
>For versions of LyX subsequent to 1.4, you have to use >|inset-insert| instead. The format is >|LYXCMD::inset-insert ref LatexCommand ref reference >referenceName \end_inset|. There's also an optional "name NAME" >argument that seems to work in docbook: |linkend="referenceName">NAME|. > > But I don't understand how to do it. How can I insert a "Formated > reference" to the label "sec:test"? try if you can read something from the console output when you put the reference through GUI (run lyx in debug mode, eg: lyx -dbg action) please report back the correct version if you succeed. > Additionally I'd like to use the command-buffer to go to a label. In > http://wiki.lyx.org/LyX/LyxFunctionList1-3-2 I found reference-goto but > this functions does not seem to be available in 1.5.x any more. Is there an > other function allowing to go to given label via command-buffer in 1.5.x? LFUN_REFERENCE_GOTO -> LFUN_REFERENCE_NEXT pavel
Command-buffer inset-insert syntax
Hi, I'd like to insert a cross-reference via the command-buffer. Unfortunately I'm note sure about the syntax. I found the following on http://wiki.lyx.org/LyX/InsertingReferences: For versions of LyX subsequent to 1.4, you have to use |inset-insert| instead. The format is |LYXCMD::inset-insert ref LatexCommand ref reference referenceName \end_inset|. There's also an optional "name NAME" argument that seems to work in docbook: |NAME|. But I don't understand how to do it. How can I insert a "Formated reference" to the label "sec:test"? Additionally I'd like to use the command-buffer to go to a label. In http://wiki.lyx.org/LyX/LyxFunctionList1-3-2 I found reference-goto but this functions does not seem to be available in 1.5.x any more. Is there an other function allowing to go to given label via command-buffer in 1.5.x? Regards Toby