🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #12013

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

#12013
From: Charlie Zender
Date: Tue, 13 Jun 2006 07:01
32 lines
2169 bytes
Hi,

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
TeXInfo?

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?

Thanks,
Charlie

;; 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, surname@uci.edu, Department of Earth System Science
3228 Croul Hall, UC Irvine, Irvine CA 92697-3100. (949) 824-2987 :)
Technical Details
Message-ID: <448E62CC.4030909@uci.edu>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!newsfeed.stanford.edu!newsfeed.news.ucla.edu!news.usc.edu!news.service.uci.edu!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f9e16,f311c3d85316bd35,start
X-Google-Thread: 103b8b,f311c3d85316bd35,start
X-Google-Attributes: gidf9e16,gid103b8b,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!newsfeed.stanford.edu!newsfeed.news.ucla.edu!news.usc.edu!news.service.uci.edu!not-for-mail
From: Charlie Zender <zender@uci.edu>
Newsgroups: comp.text.tex,gnu.emacs.help
Subject: Emacs TeXInfo mode, reverse search, and Texinfo-generated DVIs?
Date: Tue, 13 Jun 2006 00:01:32 -0700
Organization: University of California at Irvine
Lines: 32
Message-ID: <448E62CC.4030909@uci.edu>
Reply-To: zender@uci.edu
NNTP-Posting-Host: ip68-109-196-84.oc.oc.cox.net
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
User-Agent: Thunderbird 1.5.0.2 (X11/20060522)