GeneralNeed to close DVI View before new Compilation

General information and discussion about TeXnicCenter
Post Reply
s567
Posts: 3
Joined: Sun Jan 20, 2013 2:39 pm

Need to close DVI View before new Compilation

Post by s567 »

I am using TeXnicCenter (TXC) and my DVI viewer is Yap. I configured Yap for inverse DVI search by inserting in the command line the following:

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

Now, the "Inverse DVI Search" is working but every time that I compile again to DVI I need first to close Yap because otherwise I get error.

How can I fix this problem?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
MartinC
Posts: 153
Joined: Wed Jan 17, 2007 10:09 pm

Re: Need to close DVI View before new Compilation

Post by MartinC »

Your Yap inverse search configuration is wrong. It should be (on "command line", and not DDE):

View Project's Output: -1 "%bm.dvi"

Forward Search: -1 -s "%l%bm.tex" "%bm.dvi"

Close Document Before Running Latex: Do not close
s567
Posts: 3
Joined: Sun Jan 20, 2013 2:39 pm

Need to close DVI View before new Compilation

Post by s567 »

HI Martin,

Thanks for answering my question.
But still, what should I do with the configuration that inside the YAP viewer?
There I have:
"C:\Program Files\TeXnicCenter\TeXnicCenter.exe" /ddecmd "[goto('%f', '%l')]"

I did follow your instruction and change my configurations in TeXniCenter
but I still get error once I compile without closing YAP...
MartinC
Posts: 153
Joined: Wed Jan 17, 2007 10:09 pm

Re: Need to close DVI View before new Compilation

Post by MartinC »

For Latex, you need to put:

-src -interaction=nonstopmode "%Wm"

for the command line arguments.

In Yap, you need to put:

/ddecmd "[goto('%f','%l')]"

in the Inverse Search command line arguments.

And what is the error that you get ?
s567
Posts: 3
Joined: Sun Jan 20, 2013 2:39 pm

Need to close DVI View before new Compilation

Post by s567 »

HI,

thanks for your answer. I made the change according to your instruction, but still I get error:

Code: Select all

MiKTeX Problem Report
Message: DDE connection could not be established.
Data: 16394
Source: Programs\MiKTeX\Yap\MFC\yap.cpp
Line: 796
MiKTeX: 2.9
...
MartinC
Posts: 153
Joined: Wed Jan 17, 2007 10:09 pm

Re: Need to close DVI View before new Compilation

Post by MartinC »

Maybe you should post this problem on the Miktex forums.
Post Reply