[Tex/LaTex] TeXnicCenter on Windows: Building Problems

texniccenter

I'm having problems building a book file (using the memoir class) in the latest version of TeXnicCenter on Windows 7:

  1. I have a main file which uses \includefrom{} to include each chapter; TeXnicCenter only lets me build from that main file, otherwise it gives a long string of errors. I tried writing %!TEX root = ../realbook.tex at the top of each chapter file, but that doesn't help…

  2. I'm building a PDF directly. When I select "Build and view current file," after it builds, TeXnicCenter opens Adobe Acrobat Reader (without opening the newly-built file) and then freezes for ~15 seconds. Is there any way to fix this?

  3. I cannot build while the PDF is open. It gives me this error: \newcommand{\blank}[1]{\rule{#1}{0.4pt}} Is there something else I can use, maybe a PDF synchronization package for Windows?

Best Answer

As commented to the question the last two problems are Adobe Acrobat specific and due to the fact that Adobe Reader locks the file for editing, hence the file cannot be changed. But some other PDF readers lead by the recent Sumatra PDF can do this seamlessly. WinEdt 6, in fact, looks for Sumatra PDF and uses it as default. Conversely, SumatraPDF also recognize a limited number of editors.

Since your problems except No.1 is solved, the remaining fix/trick/shortcut is to select Build Menu -> Build and View Output instead of Build Menu -> Current View -> Build and View which assumes that you have defined a project and indicated your main file.

Their respective keyboard shortcuts are Ctrl+F5 and Ctrl+Shift+F5 and the first one is the one you might want to use.