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.

  • how did you get the inverse search to work.. i can't even get that.. using windows 7 lyx 2.0.5
    – Alex
    Dec 14, 2012 at 5:37
  • I am not using windows. Suggest that you start a new question to have it answered.
    – ggg
    Dec 21, 2012 at 3:05

1 Answer 1


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"


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+.

  • 1
    I just edited the LyX wiki as well.
    – joon
    Jan 17, 2013 at 17:07
  • In LyX "Document settings... > Output" the default for "Custom Macro" seems to be \usepackage[active]{srcltx} rather than \synctex=-1 as stated in the LyX wiki. For LyX with Okular 0.14.3 (on openSUSE), it seems necessary to set "Custom Macro" to \synctex=-1. Then forward and inverse search are working.
    – e-birk
    Apr 6, 2013 at 23:08
  • you should maybe also change your pdf file type opener in LyX to okular --unique so that okular does not throw up a new tab on each forward search.
    – Jaleks
    Feb 24, 2021 at 14:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.