I have been facing this intermittent problem with TeXnicCenter [TC] forward search.
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:
'
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."C:\Program Files (x86)\SumatraPDF\SumatraPDF.exe" -reuse-instance -inverse-search "\"C:\Program Files\TeXnicCenter\TeXnicCenter.exe\" /ddecmd \"[goto('%f','%l')]\""
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.\documentclass{...}
and ending with\end{document}
.