TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using TeXnicCenter 2 Beta 1 (on a Windows Vista machine) and I am trying to use the forward search. It is configured with SumatraPDF so that when I press F5 to View Output, SumatraPDF comes to the front and highlights the section where my cursor lives.

However this only works correctly when I execute View Output from the main file; if I try to execute View Output from an input file in the project, I get an error saying Forward Search cannot execute, and Sumatra appears saying that there is an error loading the nonexistent .pdf file.

Is there any way to get forward search to work from included files using TeXnicCenter?

share|improve this question
up vote 3 down vote accepted

In my case, I only had to go to Project -> Create with active file as main file when my main file was active, and everything now goes fine with SumatraPDF.

Otherwise, if you already have an opened project, from the same menu execute Properties and indicate your main file.

share|improve this answer
Thanks. At first this didn't seem to work, but after I ran Build Output from the input file it now appears to work. – user14222 May 27 '13 at 18:24
Not at all... :-) – karlkoeller May 27 '13 at 19:18

Your Answer


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.