# Forward/Inverse Search Does Not work on certain tex files

I have this weird issue with forward and inverse searches. I am using WinEdt + Sumatra combination. The forward and inverse search works perfectly on certain some .tex files, but fails on some others.

Currently, I am working on a .tex file and the inverse search always points to the end of a section. Where ever I double click in a particular section of the pdf, the inverse search points to the end of that section in the .tex file.

Moreover, when I try to perform forward search (Shift+F8) from the .tex file, the section in the pdf file doesn't get highlighted.

There are other .tex files where both the searches work perfectly. What could be the issue with this .tex file?

-
Perhaps you can build a minimal working example (MWE) and show us the situation where the forward invers search fails (use package filecontents to include a second tex file if necceccary). Are you sure your WinEdt is well configured? Which version do you use (actual is 7)? –  Kurt Oct 25 '12 at 23:30
Also are you using \include, \import etc. ? –  percusse Oct 25 '12 at 23:38
percusse: I am not using \include or \import. Kurt: The .tex file is a template that I have downloaded. So, I don't know which part might be causing the problem in order to build a MWE. If you do need to have a look at the template, it can be found here. pamitc.org/cvpr13/files/cvpr2013AuthorKit.zip And yes, I am sure that I have configured WinEdt properly. I have been using this configuration to edit 3-4 other .tex files and none of them have given me any problems. I am using WinEdt Build: 20120329 (v. 7.0). –  Vittal Oct 26 '12 at 5:03

In TeXmaker synctex (i.e. jump to pdf or jump to source) fails if either the directory or the file name contains a space. In TeXworks (and TeXnicCenter) synctex fails only if the file name contains a space. Maybe WinEdt behaves like TeXmaker.