[Tex/LaTex] How to enable LyX forward search with okular

forward-inverse-searchlyxokular

The title says it. The instructions in http://wiki.lyx.org/LyX/SyncTeX no longer works for forward search. I think the PDF command:
okular --unique "file:$$o#src:$$n $$t"
is no longer working for new TeX software.
Inverse search is workable though.

Best Answer

It works in my machine (openSUSE) with the following options. In LyX, Tools > Preferences > Output > General > PDF command under Forward search:

okular --unique "file:$$o#src:$$n $$f"

or

okular --unique "$$o#src:$$n $$f"

Both worked for me. Hope this solves your problem. And $$f option only works with LyX 2.0.5+.

Related Question