Current location - Education and Training Encyclopedia - Graduation thesis - The reverse search function of SumatraPDF suddenly failed. What should I do now?
The reverse search function of SumatraPDF suddenly failed. What should I do now?
1. To start after WinEdt 6 (or 7) is installed, first configure the compiler and select the Options- > option in the menu bar. Configuration->; Click "MiKTeX"

2. Next, configure PDF Viewer, and select Options-> in the menu bar of WinEdt 6 (or 7); Execution mode-> PDF viewer->; Click the "Browse" button on the right and select the path of SumatraPDF program in the pop-up window.

" D:\ Program Files(x86)\ CTEX \ CTEX \ CTEX \ bin \ sumatrapdf . exe ",

Be sure to write it in the SumatraPDF.exe file! "D:\Program Files (x86)\CTeX" is the installation path of CTeX software suite on my computer. You can also make some changes according to your software installation path. Please note that your entire full path must be written in a SumatraPDF.exe file. At the same time, remove the hook in front of the automatic detection! (Otherwise, when WinEdt 7 is opened next time, the system will automatically set powerful pdf reading software such as adobe to load automatically, so that it cannot be automatically defaulted to SumatraPDF, and the generated PDF file cannot be automatically popped up by SumatraPDF after compiling tex files next time. ), at the same time, it should be noted that the option before "use -synctex switch when -src is enabled" at the bottom of the PDF Viewer window needs to be checked! ! ! OK is good! This hook is very important, and many times it can't be reversed because it has not been checked! ! ! Moreover, it is necessary to observe whether there is a-src symbol in the status bar at the bottom of the WinEdt 6 (or 7) editing interface (the status bar can be turned on and off by selecting the view in the menu bar). If only there were. (Sometimes there are too many checks, so if you can't remember what you shouldn't check, just select the option-> Execution mode-> The default button is in the first column of the console application, so many things will be restored to the default state of the system, but be careful to check "Remove the hook in front of automatic detection!" Mention here. The option before "use -sync tex switch when -src is enabled" should be ticked, and the process flow column mentioned later should be ticked to start the viewer, so that after compiling pdfLatex and xeLatex, the pdf file viewed by Sumatrapdf can be automatically opened, and further, the forward search can be realized by ticking! It is also important to search forward! ! ! )

3. Please pay special attention to setting the reverse search path in the settings in SumatraPDF, and in SumatraPDF-& gt;; Click Settings in the menu bar. Option, and fill in "d: \ program files (x86) \ ctex \ winedt7 \ winedt7.exe" "[open (|% f |) in the blank of the last line under the SumatraPDF option window that pops up; SelPar(%l, 8)] "To set this, the front part is the path of WinEdt.exe's program to execute WinEdt 6 (or 7) in your computer, followed by the command. Use" "between the two, especially" ",otherwise the command cannot be executed.

4. In addition, to make Sumatrapdf automatically pop up the contents of pdf after WinEdt 6 (or 7) compilation, open WinEdt editor in WinEdt 7 menu bar. Option execution mode laTeX or TeX or AMSTeX or XeLaTeX or pdfLatex or pdfTeX or xeLatex or XeTeX or LuaTeX or luatex or TeXify (select and execute the following operations in turn to ensure that the forward search function can be realized in different editing modes), check start viewer in the flow bar of its panel, and automatically open the PDF file viewed by smartpdf after the compilation of PDFLaTeX and XeLateX. Further check the forward search to realize the forward search between tex documents and pdf generated documents!

-Description.

WinEdt 6 (or 7) panel has two buttons: PDF Preview and PDF Search. After compiling a TeX document with LaTeX or TeX or AMSTeX or XeLaTeX or PDFLaTeX or PDFTeX or XeLateX or XeTeX or LuaLaTeX or LuaTeX or TeXify, click the first button to view the generated PDF file, and double-click a line on the PDF page to jump to the corresponding source code of the TeX document (generally, one line is marked with a dark blue background). This is a reverse search function. The forward search function refers to clicking the mouse cursor to the left on a source code of a TeX document, and then clicking the "PDF Search" button to the left to jump to a corresponding line on the PDF page (generally, a line is marked with a light blue background). This kind of mutual jump is very convenient for the writing and revision of the paper.

-

You can now use PDFLaTeX to compile TeX documents in WinEdt 6 (or 7) editor. After generating the PDF file, select the PDF Preview and PDF Search buttons in the upper right corner of the panel and try TEX.