LaTeX forum ⇒ GeneralForward and inverse Search Topic is solved

General information and discussion about TeXnicCenter
peternaaijen
Posts: 7
Joined: Wed Jun 02, 2010 4:39 pm

Forward and inverse Search

Postby peternaaijen » Wed Sep 25, 2013 4:56 pm

Hi,

just installed TXC 2.0 (64bit) and Sumatra 2.3.2 on Windows 7.
Despite having tried all suggestions in viewtopic.php?f=31&t=22586 and viewtopic.php?f=31&t=22293, I can't get the forward and inverse search working properly with Sumatra (which is a pity, since having these features working was the only reason to install Sumatra in the first place, tried Adobe Acrobat 11 before without success).

Compilation works fine, Sumatra is opened and the PDF looks fine as well. However, TXC gives me the 'cannot execute command' error related to the forward search command.

My settings in the viewer tab in the "Build -> Define Output Profiles" menu:

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

View Project's Output:
DDE command:
"%bm.pdf"
server: sumatra, topic: control

Forward search:
DDE command:
[ForwardSearch("%bm.pdf","%Wc",%l,0,0,1)]
server: sumatra, topic: control

Close document before running LaTeX:
Do not close


Also the inverse search doesn't word: nothing happens when double clicking the PDF. The inverse search command line within Sumatra is set to:

"C:\Program Files\TeXnicCenter\TeXnicCenter.exe" /ddecmd "[goto('%f','%l')]"
(which is the result of having the viewer executable path within TNC set to:
"C:\Program Files (x86)\SumatraPDF\SumatraPDF.exe" -inverse-search "\"C:\Program Files\TeXnicCenter\TeXnicCenter.exe\" /ddecmd \"[goto('%f','%l')]\"")

Any ideas why both forward and inverse search do not work?
(Tips to get these working for Adobe Acrobat are welcome as well )

Tags:

peternaaijen
Posts: 7
Joined: Wed Jun 02, 2010 4:39 pm

Postby peternaaijen » Wed Sep 25, 2013 7:29 pm

Problem solved uninstalling both MiKTeX 2.9 (32 bit) and TeXnicCenter 2.0 (64 bit). I installed MiKTeX 2.9 (64 bit) and TeXnicCenter 2.0 (64 bit), choosing all default options during installation. Everything works like a charm now, no build settings adapted.

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

Postby localghost » Wed Sep 25, 2013 8:35 pm

Starting TeXnicCenter (TXC), pressing Alt+F7 and starting the wizard to rebuild the profiles would have been much easier and faster. I don't think that migrating from 32bit to 64bit for MiKTeX makes the difference.


Thorsten
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

peternaaijen
Posts: 7
Joined: Wed Jun 02, 2010 4:39 pm

Postby peternaaijen » Thu Sep 26, 2013 1:39 pm

localghost wrote:Starting TeXnicCenter (TXC), pressing Alt+F7 and starting the wizard to rebuild the profiles would have been much easier and faster. I don't think that migrating from 32bit to 64bit for MiKTeX makes the difference.


Thorsten


Trust me, I tried that before going for the rigourous approach. Some build profiles made by the wizard (or during installation of TNC) are different with the new Miktex installed. (Can't verify the exact differences anymore since 32 bit Miktex was uninstalled of course.) have to agree though that it is at least surprising that Miktex affects the viewer behavior/settings that much. anyway: still glad everything works now.

bhavnesh
Posts: 1
Joined: Mon Sep 22, 2014 8:18 am

Postby bhavnesh » Mon Sep 22, 2014 8:24 am

LaTex
Run LaTex in this profile
C:\Program Files\MiKTeX 2.9\miktex\bin\x64\pdflatex.exe

-synctex=-1 -interaction=nonstopmode "%Wm"
C:\Program Files\MiKTeX 2.9\miktex\bin\x64\bibtex.exe
"%tm"
C:\Program Files\MiKTeX 2.9\miktex\bin\x64\makeindex.exe
"%tm.idx" -t "%tm.ilg" -o "%tm.ind"

For viewer tab
DDE command selected in both tab . Then write this code.
"C:\Program Files (x86)\SumatraPDF\SumatraPDF.exe"
"%bm.pdf"
SUMATRA
Control
[ForwardSearch("%bm.pdf","%Wc",%l,0,0,1)]
SUMATRA
Control
Happy Latex setting
BHAVNESH- PANCHAL
bhanu1arya@gmail.com


Return to “General”

Who is online

Users browsing this forum: No registered users and 2 guests