GeneralDoubleclick in dvi to jump to the passage in tex-file

General information and discussion about TeXnicCenter
Post Reply
uwe
Posts: 2
Joined: Thu Aug 09, 2007 5:28 pm

Doubleclick in dvi to jump to the passage in tex-file

Post by uwe »

What do I have to do to enable the feature mentioned in the subject? It once worked, but now it doesn't.
Does this only work for the dvi or even for the ps/pdf?

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

Doubleclick in dvi to jump to the passage in tex-file

Post by localghost »

The feature you are looking for is called Inverse DVI Search. You can find it after starting YaP in the View menu under Options. Check whether TeXnicCenter is detected by YaP. If not, generate a new item and give the following command line.

Code: Select all

C:\Program Files\TeXnicCenter\TEXCNTR.EXE /ddecmd "[goto('%f', '%l')]"
But you can not use this feature without instructing the LaTeX compiler to insert so called source specials into the DVI code. You can achieve that by calling the LaTeX compiler with the right parameters. TeXnicCenter usually calls the compiler with the following default parameters.

Code: Select all

--src -interaction=nonstopmode -max-print-line=120 "%Wm"
Check these settings in all your build profiles (Alt+F7) except "LaTeX => PDF" and add --src as a minimum to the command line of the LateX compiler if necessary.
uwe
Posts: 2
Joined: Thu Aug 09, 2007 5:28 pm

Re: Doubleclick in dvi to jump to the passage in tex-file

Post by uwe »

Hey, that works.
Thanks!!
Post Reply