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 have been facing this intermittent problem with TeXnicCenter [TC] forward search.

error window

I have gone through many posts in TeX.SX and I have followed what is to be done. It works at times and at times NOT. I am not able to figure out the root cause of the problem.

My configuration for build in [TXC] is as follows:

  • Exec path

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

  • View project output

    DDE Command[sumatra, control] - [Open("%bm.pdf",0,1,1)]

  • Fwd search

    DDE command[sumatra, control] - [ForwardSearch("%bm.pdf","%Wc",%l,0,0,1)]

  • close document before running LaTeX

    Do not close.

Screenshot:

profile window

share|improve this question
    
At content: There is one ' too much, and I would add double quotes, because you have spaces in the path. So try out: "C:\Program Files (x86)\SumatraPDF\SumatraPDF.exe" -inverse-search "\"C:\Program Files\TeXnicCenter\TeXnicCenter.exe\" /ddecmd \"[goto('%f','%l')]\"". Also a suggestion: Add the option -reuse-instance, then the open window is reused. –  Speravir May 5 '13 at 0:08
    
It works fine the first run , but the second run onward it starts giving me the same error. I have never faced this before. Not sure why its random. The new exec path is : "C:\Program Files (x86)\SumatraPDF\SumatraPDF.exe" -reuse-instance -inverse-search "\"C:\Program Files\TeXnicCenter\TeXnicCenter.exe\" /ddecmd \"[goto('%f','%l')]\"" –  abhilash sukumari May 5 '13 at 4:55
    
Then I cannot help anymore. This sounds to me like a strange user right issue, though: Opening allowed, but not updating the windows content. –  Speravir May 5 '13 at 18:16
    
Now its even worse. When I compile (CTRL+F5) or (CTRL+SHIFT+F5) the TeXnicCenter compiles -> Opens Sumatra -> Gets stuck ... It doesnt even show the final PDF output on sumatra. Its like its compiling for ever. –  abhilash sukumari May 5 '13 at 18:53
    
Then your error or mistake must be somewhere else and is a local issue, because everything works fine here. You could try to create a minimal working example (MWE) that illustrates your problem, and post this in a new question. It will be much easier for others to reproduce your situation and find out what the issue is when they see compilable code, starting with \documentclass{...} and ending with \end{document}. –  Speravir May 5 '13 at 19:51
show 3 more comments

closed as too localized by Speravir, Guido, lockstep, Thorsten, T. Verron May 6 '13 at 5:13

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.