Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DDE control TeXnicCenter

I use TeXnicCenter for LaTeX and would like to have the DDE controls working to easily view the pdf versions. Acrobat X seems to have changed the servername and this is breaking things. I tried "AcroViewR10" or "acroviewR10" and other combination, but still it does not work.

As a work around, using command line argument "%bm.pdf" works, but I manually need to close the pdf everytime before recompiling. So, it takes an extra click or so.

Can anyone give some insight to solve the problem either by fixing DDE or how to close the pdf automatically when it is recompiled?

like image 251
Bill Avatar asked Feb 14 '11 23:02

Bill


3 Answers

Actually, the answers from Martyn and Adam Nellis solved this problem. Thanks a lot, folks. I am just putting it step by step, so someone else can use it.

Step1: Adobe ReaderX In Adobe Reader X, go to Edit>Preferences>General and uncheck "Enable Protected Mode at startup".

Step2: TeXnicCenter Go to Build->Define Output Profiles-> choose "Latex to PDF" -> Viewer tab

2.1. For "View Project's Output" & "Forward Search"

  • Command: [DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]
  • Server: AcroViewR10 Topic: control

2.2. For "Close Document"

  • Command: [DocClose("%bm.pdf")]
  • Server: AcroViewR10 Topic: control (use this option even if you use Adobe Reader 11)
like image 149
user330167 Avatar answered Sep 21 '22 15:09

user330167


For those using Acrobat X pro, the server should be AcroviewA10 and the excecutable should be Acrobat.exe

like image 20
Dave Tompkins Avatar answered Sep 21 '22 15:09

Dave Tompkins


For the newer version of Adobe [DocClose] doesn't work anymore. So you have to make updates. In texnicCenter hit Alt+F7, go to Viewer TAB and follow the example accordingly (works on Win7 with Adobe11):

in Executable path you have to have something like "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe"

View Project's Output >>> Choose "command line argument" and enter "%bm.pdf" in command

Forward Search >>> Choose "command line argument" and enter "%bm.pdf" in command

And finally *THE MOST IMPORTANT OPTION* Close Document Before Running (La)Tex >>> Choose "DDE" and enter "[AppExit]" in command "AcroViewR11" in Server "control" in Topic

like image 29
Claudia Avatar answered Sep 19 '22 15:09

Claudia