Hello,
I would like to set up backward and forward search in Lyx 2.0 in connection with the Sumatra pdf reader. I know that there is a documentation in Lyx's help but I don't understand this instruction. I have tried to configure Lyx for backward and forward search but it has not worked.
So, can someone please explain it step by step how to configure Lyx 2.0 for backward and forward search in connection with SumatraPDF?
Thank you for that!
LyX ⇒ Backward and forward search in Lyx 2.0 with SumatraPdf
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Backward and forward search in Lyx 2.0 with SumatraPdf
What about reading something about SyncTeX in the LyX Wiki?TimB wrote:[…] So, can someone please explain it step by step how to configure Lyx 2.0 for backward and forward search in connection with SumatraPDF? […]
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Backward and forward search in Lyx 2.0 with SumatraPdf
Hi,
I have done exactly what the instruction says. But neither the forward nor the backward search works.
Forwardsearch does not work and when I double click in sumatraPDF, it just marks the word yellow.
Can some please explain it in another way. Has someone done it in exact that way how it is recommanded on http://wiki.lyx.org/LyX/SyncTeX?
I have done exactly what the instruction says. But neither the forward nor the backward search works.
Forwardsearch does not work and when I double click in sumatraPDF, it just marks the word yellow.
Can some please explain it in another way. Has someone done it in exact that way how it is recommanded on http://wiki.lyx.org/LyX/SyncTeX?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Backward and forward search in Lyx 2.0 with SumatraPdf
And did you think about asking for help on one of the LyX mailing lists? On this forum advanced LyX users are very rare.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Backward and forward search in Lyx 2.0 with SumatraPdf
Hello,
I have tried to set up backward or inverse search in Lyx with Sumatra PDF on Windows 7. Forward search works fine. I have followed the instructions at http://wiki.lyx.org/LyX/SyncTeX for inverse search. If I double click in a Sumatra PDF document, a Windows command window shortly appears which says that "the system cannot find the file". It does not mean "lyxeditor.cmd" but some other file. I don't know what file it could be. Maybe the lyxeditor.cmd code on this above link is wrong?
I have often read about this error on the web but no solution for that.
Any ideas how to solve this problem?
Thank you,
kind reagards
Tim Breitenbach
I have tried to set up backward or inverse search in Lyx with Sumatra PDF on Windows 7. Forward search works fine. I have followed the instructions at http://wiki.lyx.org/LyX/SyncTeX for inverse search. If I double click in a Sumatra PDF document, a Windows command window shortly appears which says that "the system cannot find the file". It does not mean "lyxeditor.cmd" but some other file. I don't know what file it could be. Maybe the lyxeditor.cmd code on this above link is wrong?
I have often read about this error on the web but no solution for that.
Any ideas how to solve this problem?
Thank you,
kind reagards
Tim Breitenbach
-
- Site Moderator
- Posts: 542
- Joined: Sat Sep 01, 2012 6:38 am
Re: Backward and forward search in Lyx 2.0 with SumatraPdf
I agree with localghost. For this kind of problem you might want to try emailing lyx-users@lists.lyx.org
-
- Site Moderator
- Posts: 542
- Joined: Sat Sep 01, 2012 6:38 am
Backward and forward search in Lyx 2.0 with SumatraPdf
See the following solution, as Enrico Forestieri explains here: https://www.mail-archive.com/lyx-users@ ... 98118.html
https://www.mail-archive.com/lyx-users@ ... 98118.htmlFor some reason, miktex does not understand/obey the command lyx inserts
into the preamble when you check the "Enable Forward/Reverse Search"
button in the toolbar and does not generate the necessary info.
The generation of the required info can be forced by changing the
converter "LaTeX (pdflatex) -> PDF (pdflatex)" in
Preferences->File handling->Converters from the default "pdflatex $$i"
to "pdflatex -synctex=1 $$i" (i.e., by adding the -synctex=1 switch).
After that it should work (supposing that you performed the necessary
configuration as explained in the above link).