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
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
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.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
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