1

Since today, without having changed ANYTHING to the configuration, Adobe Reader does not work correctly with TexNicCenter anymore. Any time I try to preview a document, TexNicCenter crashes. I suspect that this damned Adobe software has (unsolicitedly) updated itself. Can anyone help me out here? It's driving me nuts...

EDIT Problem has been solved thanks to Sebastiano. I had to follow the following configuration: How to configure TeXnicCenter 2.0 with Sumatra (2013--2016 version)

Basically, Adobe is crap.

Werner
  • 179
  • 2
    Use a decent non-blocking PDF viewer and you should be fine. – Skillmon Oct 03 '18 at 17:13
  • You can use SUMATRA pdf. – Sebastiano Oct 03 '18 at 17:17
  • I have been trying to install Sumatra, literally copying off all the settings described in the manual, but still I get the dreaded [ForwardSearch("%bm.pdf","%Wc",%l,0)] Cannot Execute the Command-message – Werner Oct 03 '18 at 17:19
  • 1
    @Werner Look here: https://tex.stackexchange.com/questions/116981/how-to-configure-texniccenter-2-0-with-sumatra-2013-2016-version – Sebastiano Oct 03 '18 at 17:31
  • Thanks Sebastiano! I thought I did this already in the first place, but I'll probably have missed a step somewhere! – Werner Oct 03 '18 at 17:52
  • 2
    Regarding adobe: you only have to change the server name for AcroViewR18 to AcroViewR19, see https://tex.stackexchange.com/questions/453527/need-to-redefine-output-profile – Ulrike Fischer Oct 03 '18 at 21:44
  • You may wish to change the title/question to reflect the advantage of switching TeXnicCentre from Adobe to SumatraPDF. For those using a W32TeX or TexLive engine (NOT vanilla MiKTeX) you will need to check (Edit) the first AcroViewR/A## entry in pdfddeservername.txt in the \bin or \bin\win32 folder respectively (just adding another twist to the frequent adobe release name changing confusion) Also check the registry and DDE calls match since the Adobe Update mechanism frequently gets it wrong. so there can be upto a dozen places the Adobe revisions may not match –  Oct 04 '18 at 12:08
  • I forgot to mention how recently the version is determined so at the time of writing updates are to 2019 version !! so for many Continuous update users you will need AcroviewR19 for Adobe Reader and AcroviewA19 for Adobe Acrobat unless you have Classic where it's stil a lower number –  Oct 04 '18 at 16:03
  • @Werner there is an alternative to any DDE problems see my answer below (however if you got it working correctly with DDE you may wish to save your settings and compare if the Command line method affects your usage) –  Oct 05 '18 at 13:27

1 Answers1

5

The EZ guide to SumatraPDF with TeXnicCenter

SumatraPDF can be called by DDE (Traditionally) or Command Line (Now Preferred)

Press Alt+F7 (Build > Define Output Profiles)

For any one of the PDF Profiles e.g. LaTeX > PDF

for Executable path it should have something like

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

Don't worry if it doesn't, were going to remove all that crêpe later. If there is nothing then select the … and navigate to the correct c:\Program Files …\SumatraPDF\SumatraPDF.exe then select it then click the open button

IMPORTANT if -inverse-search etc. is not there DO NOT ADD any of the old suggestions

Go back to the editor and using any simple .TeX press Ctrl+Shift+F5 (Build and view)

SumatraPDF should have fired up with the compiled PDF

Go To Settings > Advanced Options

and going down the entries check or change the following

ReuseInstance = true
ReloadModifiedDocuments = true

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

EnableTeXEnhancements = true
UseTabs = true

DONT FORGET TO CTRL+S (File Save)

now a double click in the PDF should take you back to TeXnicCenter either in an included file or the main file. IF not, check the syntax of the InverseSearchCmdLine = matches YOUR location for TeXnicCenter

Back in the editor press Alt+F7 (Build > Define Output Profiles) and for each of the PDF options select viewer

In the Executable path section REMOVE any thing after the .exe

In the View project's Output select Command line argument and check it is "%bm.pdf"

In Forward search change it to -forward-search "%Wc" %l "%bm.pdf"

Check all 5 PDF profile options are the same (Copy and paste) now hit OK enter image description here

Whistles and Bells (Extra bonus features with recent SumatraPDF)

In SumatraPDF Settings > Advanced options there are other settings for color of forward search highlight etc.

If you have a whatever.pdf, whatever.synctex(.gz) and whatever.tex file in the same folder then you can start by opening the PDF and a double click anywhere will open the tex editor with the cursor at the right file position even if the editor was not started first.

If you have multiple (or portable) editors you can set up BATch ComManDs to change the editor name/path via an external -inverse-search call to SumatraPDF however it only needs to be done once per session not at every internal call from the editor.

If you are having problems with the wrong files opening or errors about files not found on path e.g. running on Linux under Wine or unusual project file structure then you will need to adjust the placeholders see the full updated totorial