On 07/15/2009 10:25 AM, Sam Liddicott wrote:
If I type: server-goto-file-row THISFILENAME.lyx 20
into the Lyx command buffer, it always goes to the top of the document.
(I'm using Lyx 1.6.2).
Am I using the command wrongly...?
Probably. I suspect you haven't run LaTeX on the file yet.
Here's what the docs say:
LFUN_SERVER_GOTO_FILE_ROW
* Action Sets the cursor position based on the row number of generated
TeX file.
* Notion This can be useful for DVI inverse-search or detection of the
problematic line from LaTeX compilation. Note that before this function
can be used export to LaTeX output must occur (in order to map the row
numbers).
* Syntax server-goto-file-row <FILE[.ext]> <ROW_NUMBER>
* Params <FILE>: the filename. Environment variables are expaned in the
path. In case this LFUN does not work make sure you are giving correct
path to the file.If the file is located inside LyX temporary directory
it will be mapped back into the appropriate opened buffer (e.g. for the
case of generated .tex file). .ext: extensions will be automatically
replaced by .lyx.
Note that the row number is that of the LaTeX output file, NOT the LyX
file on screen.
Richard