Update doc about forward search.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36650 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2010-12-02 01:56:45 +00:00
parent f01e1e202f
commit 0a34788bba
2 changed files with 45 additions and 10 deletions

View File

@ -1,5 +1,5 @@
#LyX 2.0.0svn created this file. For more info see http://www.lyx.org/
\lyxformat 407
\lyxformat 410
\begin_document
\begin_header
\textclass scrbook
@ -74,7 +74,7 @@ End
\font_sans default
\font_typewriter default
\font_default_family default
\use_xetex false
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
@ -6742,6 +6742,46 @@ ip
page of the file --- Evince or xpdf --- for these cases you can use external
call of synctex.
Please study the prepared examples in the Preferences dialog.
The values replaced in the setting:
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
$$n
\end_layout
\end_inset
for row number,
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
$$t
\end_layout
\end_inset
for exported temporary .tex file,
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
$$o
\end_layout
\end_inset
exported output file (either dvi or pdf, depending on which one exists
in the temp dir).
\end_layout
\begin_layout Standard
When viewing, LyX dynamically choose proper preview format based on the
presence of .dvi or .pdf file in the temporary directory (i.e.
what format have you used for viewing this particular document).
\end_layout
\begin_layout Chapter

View File

@ -2828,16 +2828,11 @@ void LyXAction::init()
{ LFUN_SERVER_GOTO_FILE_ROW, "server-goto-file-row", ReadOnly | NoBuffer, System },
/*!
* \var lyx::FuncCode lyx::LFUN_FORWARD_SEARCH
* \li Action: Sets the cursor position in the previewed (e.g. dvi) file based on the row
* \li Action: Sets the cursor position in the previewed (dvi/pdf) file based on the row
number in LyX window.
* \li Notion: The external program used for forward search call can be specified in
\forward_search_dvi and \forward_search_pdf RC settings.
By default, the value for pdf is empty, while for dvi it is\n
"xdvi -sourceposition $$n:$$t $$o"\n
The values replaced in the call: $$n for row number, $$t for
exported temporary .tex file, $$o exported output file, either
dvi or pdf, depending on which one exists in the temp dir
(preferred is dvi).
LyX Output preferences. See Additional manual for details of these
settings.
* \li Syntax: forward-search
* \li Origin: sanda, 14 Apr 2010
* \endvar