Viewers for PDF, PS, and DVIProblems with SumatraPDF and TexnicCenter

Information and discussion about output viewers related to LaTeX (e.g. Adobe Reader, Ghostview, YAP, ...)
Post Reply
mathias2012
Posts: 2
Joined: Sun Aug 05, 2012 11:36 am

Problems with SumatraPDF and TexnicCenter

Post by mathias2012 »

Hi!

I have two Computer, both running with Windows7 (64 bit). One one computer SumatraPDF and Texniccenter are working find on the other they don't. By pressing F5 after compiling the same Latex-project to view the document I get the forward-search command can not be execited.

The question is why?

***
Installed programms:

- TexnicCenter 1.0 Stable Release Candidate

- SumatraPDF v2.1.1, I downloaded it from the 'sumatraPDF-hompage'

- miktex 2.9

***
Defined profiles (under viewer) for SumatraPDF in Texniccenter:

Path (it differe between the two computers, but the rest is identical):

K:\Programme\SumatraPDF\SumatraPDF.exe -reuse-instance -inverse-search "\"K:\Programme\TeXnicCenter\TEXCNTR.EXE\" /ddecmd \"[goto('%f','%l')]\""

Next:
DDE-commmand:
[Open("%bm.pdf",0,1,1)]

Next:
DDE-command:
[ForwardSearch("%bm.pdf","%Wc",%l,0,0,1)]

No closing before compiling.

Server: SUMATRA
Theme: control

---
Please don't answer things like: Look at this or that manual. I tried several and the point is that it is working on one computer and the other it doesn't.

Another point is that on both computer SumatraPDF forget the inverse search path to TexnicCenter

Hope you can help me.

Best regards
Mathias

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Problems with SumatraPDF and TexnicCenter

Post by localghost »

I can only offer the settings which work for me flawlessly (see attachment). Pay attention to the settings at the mouse cursor.
mathias2012 wrote:[…] Please don't answer things like: Look at this or that manual. I tried several and the point is that it is working on one computer and the other it doesn't. […]
I do it nonetheless (because it is a FAQ).

Best regards and welcome to the board
Thorsten
Attachments
Flawlessly working settings for the Sumatra PDF viewer in TXC2a4 (on Wind0ws XP SP3).
Flawlessly working settings for the Sumatra PDF viewer in TXC2a4 (on Wind0ws XP SP3).
TXC2alpha4-Profiles-PDFLaTeX-Viewer.png (43.83 KiB) Viewed 17018 times
mathias2012
Posts: 2
Joined: Sun Aug 05, 2012 11:36 am

Problems with SumatraPDF and TexnicCenter

Post by mathias2012 »

Thanks for your answer. Have you an idea if there is another PDF viewer which can also do inverse and forward search and show the 'new' compilation without closing?

Update:
I have found it:

By compiling the code there wasn't the right arguments for the compiler. The Argument for the compiler must be on the 'Latex' tab of the output profiles:

Code: Select all

-synctex=-1 -interaction=nonstopmode "%Wm"
Thanks for your help.


Best regards
Mathias
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Problems with SumatraPDF and TexnicCenter

Post by localghost »

mathias2012 wrote:Thanks for your answer. Have you an idea if there is another PDF viewer which can also do inverse and forward search and show the 'new' compilation without closing? […]
TeXworks is shipped with TeX Live and MiKTeX. It has an integrated PDF viewer which supports SyncTeX for forward and inverse search out of the box.
Post Reply