Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I wanna use texmaker+sumatra, winEdt8+sumatra and texnic Center+sumatra together. I set the SumatraPDF Inverse-Search option on all editors. But the SumatraPDF Inverse-Search does not work on WinEdt and TexMaker While working on Texnic Center.

TexMaker setting: enter image description here

winEdt setting: enter image description here

TexnicCenter setting: enter image description here

share|improve this question
3  
Here is a detailed manual on how to use synctex with Sumatra PDF: william.famille-blum.org/blog/… –  Henri Menke Jul 27 '13 at 11:34
    
WinEdt and TC already recognizes SumatraPDF. But you need to choose what to do for inverse search. –  percusse Jul 27 '13 at 11:35
    
I edited my question. –  Angel Jul 27 '13 at 13:13
1  
@Angel SumatraPDF doesn't know which editor compiled the document. It only knows which editor it should send the inverse-search request as given in the SumatraPDF configuration. Even if you compile with WinEdt it will call TeXnicCenter if it is setup like that. In other words, they don't know each other, they are connected via SyncTeX –  percusse Jul 27 '13 at 13:46
    
anybody help me –  Angel Jul 28 '13 at 21:31

2 Answers 2

This is a kludge I would try (I didn't): just install SumatraPDF on several locations, each one configured against a different program. If the configuration is stored by directory (and not in the registry or similar) I see no reason why this won't work. Is quite inelegant, but if you don't mind...

share|improve this answer

The Problem is, mentioned in the questions comment, that SumatraPDF is linked to the Latex-Compiler through synctex and doesnt know, which created the resulting PDF.

You can use the inverse-search command through the a commandlineswitch of SumatraPDF:-inverse-search. The commands are:

TeXnicCenter:

-inverse-search "\"C:\Program Files\TeXnicCenter\TEXCNTR.EXE\" /ddecmd \"[goto('%f', '%l')]\""

Note the escapecharacters for doublequotes.

WinEdt:

-inverse-search "\"C:\Program Files\WinEdt Team\WinEdt\winedt.exe\" \"[Open(|%f|);SelPar(%l,8)]\""

Note the escapecharacters for doublequotes.

TexMaker:

-inverse-search "\"C:\Program Files\Texmaker\texmaker.exe\" \"%f\" -line %l"

Note the escapecharacters for doublequotes.

Explanations

Most applications use DDE-commands to interact. So does TeXnicCenter and WinEdt. For inverse-search SumatraPDF has to comunicate with the PDF-producing application. In that case you have to say SumatraPDF which application is the PDF-producer to communicate with. This works with the commandlineswitch I mentioned above. By clicking the view button in the LatexIDE you should start SumatraPDF with the correct parameters.

"C:\Program Files\SumatraPDF\SumatraPDF.exe" "PathToPDF" -inverse-search "PathToEditor InverseSearchCommand"

Additional you can use -reuse-instance to not open a new PDF-window each time. Also its possible to use only the Latexide applications filename instead of the full path, if the Path of the LatexIDE application is in the systems PATH variable.

Inverse search works for TeXnicCenter, because you added the "TeXnicCenter inverse Search DDE command" correct in SumatraPDFs commandline.

In WinEdt you inserted the correct commandlineswitch but no executable to use for the inverse-search. So use the parameter I mentioned above.

In TexMaker you used no comandlineswitch after all. Add the parameter I mentioned above.

All the informations found in the net: TeXnicCenter and WinEdt, TexMaker

share|improve this answer
    
Nice explanation, but this doesn't answer the question... How to let SumatraPDF know which editor has been called by? BTW it is WinEdt, not WinEdit. –  karlkoeller Sep 18 '13 at 17:53
1  
@karlkoeller I edited the misspelling of WinEdt. The answer of the question is that you call the pdfviewer with an additional commandlineswitch which includes the path to the caller. In this case the pdfviewer knows who called and is able to call back. On the other hand its not possible that you open the pdfviewer manually with an pdf and then want to invoke a inverse-search. Theoretically the pdfviewer uses the last used (the last calling) application. Additionally its only possible to use inverse-search if you compile the Tex-document for at least one time with the correct parameters. –  RoKi0815 Sep 19 '13 at 6:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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