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?
General ⇒ Need to close DVI View before new Compilation
Re: Need to close DVI View before new Compilation
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
View Project's Output: -1 "%bm.dvi"
Forward Search: -1 -s "%l%bm.tex" "%bm.dvi"
Close Document Before Running Latex: Do not close
Need to close DVI View before new Compilation
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...
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...
Re: Need to close DVI View before new Compilation
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 ?
-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 ?
Need to close DVI View before new Compilation
HI,
thanks for your answer. I made the change according to your instruction, but still I get error:
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
...
Re: Need to close DVI View before new Compilation
Maybe you should post this problem on the Miktex forums.