[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Emacs TeXInfo mode, reverse search, and Texinfo-generated DVIs?

From: Charlie Zender
Subject: Emacs TeXInfo mode, reverse search, and Texinfo-generated DVIs?
Date: Tue, 13 Jun 2006 00:01:32 -0700
User-agent: Thunderbird (X11/20060522)


I starting using Emacs with 'kdvi-search and LaTeX with --src-specials
so that I get "reverse search" capabilities when between my KDVI viewer
and my Emacs .tex buffer. I work on a number of long .tex files and find
this ability very useful. My question is if/how to get this working with

I tried adding a "texinfo-mode-hook" a la the working LaTeX mode hook
for kdvi-search but Emacs texinfo mode seems not to understand it.
Yes, I am sure the Texinfo-generated DVI contains the necessary --src-specials
information (next version of texi2dvi will pass through the --src-specials
command straight to TeX, for now I just export TEX='tex --src-specials').
Does anyone have reverse search working on Texinfo-generated DVIs?


;; KDVI compatibility for reverse search 20060529
(add-to-list 'load-path (expand-file-name "~/elisp/"))
(require 'kdvi-search)
(add-hook 'LaTeX-mode-hook (lambda () (local-set-key "\C-x\C-j" 'kdvi-jump-to-line))) (add-hook 'tex-mode-hook (lambda () (local-set-key "\C-x\C-j" 'kdvi-jump-to-line))) (add-hook 'texinfo-mode-hook (lambda () (local-set-key "\C-x\C-j" 'kdvi-jump-to-line)))

Charlie Zender,, Department of Earth System Science
3228 Croul Hall, UC Irvine, Irvine CA 92697-3100. (949) 824-2987 :)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]