LyXBackward and forward search in Lyx 2.0 with SumatraPdf

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
TimB
Posts: 3
Joined: Thu Sep 12, 2013 10:43 am

Backward and forward search in Lyx 2.0 with SumatraPdf

Post by TimB »

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!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Backward and forward search in Lyx 2.0 with SumatraPdf

Post by localghost »

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? […]
What about reading something about SyncTeX in the LyX Wiki?


Best regards and welcome to the board
Thorsten
TimB
Posts: 3
Joined: Thu Sep 12, 2013 10:43 am

Re: Backward and forward search in Lyx 2.0 with SumatraPdf

Post by TimB »

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?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Backward and forward search in Lyx 2.0 with SumatraPdf

Post by localghost »

And did you think about asking for help on one of the LyX mailing lists? On this forum advanced LyX users are very rare.
TimB
Posts: 3
Joined: Thu Sep 12, 2013 10:43 am

Re: Backward and forward search in Lyx 2.0 with SumatraPdf

Post by TimB »

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
scottkosty
Site Moderator
Posts: 542
Joined: Sat Sep 01, 2012 6:38 am

Re: Backward and forward search in Lyx 2.0 with SumatraPdf

Post by scottkosty »

I agree with localghost. For this kind of problem you might want to try emailing lyx-users@lists.lyx.org
scottkosty
Site Moderator
Posts: 542
Joined: Sat Sep 01, 2012 6:38 am

Backward and forward search in Lyx 2.0 with SumatraPdf

Post by scottkosty »

See the following solution, as Enrico Forestieri explains here: https://www.mail-archive.com/lyx-users@ ... 98118.html
For 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).
https://www.mail-archive.com/lyx-users@ ... 98118.html
Post Reply