unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Emacs TeXInfo mode, reverse search, and Texinfo-generated DVIs?
@ 2006-06-13  7:01 Charlie Zender
  2006-06-13  8:29 ` Reiner Steib
  0 siblings, 1 reply; 4+ messages in thread
From: Charlie Zender @ 2006-06-13  7:01 UTC (permalink / raw)


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 :)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Emacs TeXInfo mode, reverse search, and Texinfo-generated DVIs?
  2006-06-13  7:01 Emacs TeXInfo mode, reverse search, and Texinfo-generated DVIs? Charlie Zender
@ 2006-06-13  8:29 ` Reiner Steib
  2006-06-13 18:23   ` Charlie Zender
  0 siblings, 1 reply; 4+ messages in thread
From: Reiner Steib @ 2006-06-13  8:29 UTC (permalink / raw)


On Tue, Jun 13 2006, Charlie Zender wrote:

> Does anyone have reverse search working on Texinfo-generated DVIs?

WFM, with AUCTeX's texinfo mode.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Emacs TeXInfo mode, reverse search, and Texinfo-generated DVIs?
  2006-06-13  8:29 ` Reiner Steib
@ 2006-06-13 18:23   ` Charlie Zender
  2006-06-13 21:05     ` David Kastrup
  0 siblings, 1 reply; 4+ messages in thread
From: Charlie Zender @ 2006-06-13 18:23 UTC (permalink / raw)


Reiner Steib wrote:
> On Tue, Jun 13 2006, Charlie Zender wrote:
> 
>> Does anyone have reverse search working on Texinfo-generated DVIs?
> 
> WFM, with AUCTeX's texinfo mode.

When I use AUCTeX's texinfo mode I can click on the DVI and it
will open an emacs window with the source buffer positioned at
the correct location. What I would like to get working is the
the reverse, i.e., the ability to stay in my Emacs source buffer
and execute an Emacs command that causes the DVI to move to the
location corresponding to the point in the source buffer.
Do you have that working? If so, please send exact commands.

Here's what I tried but this fails with AucTeX texinfo mode (works
fine with LaTeX and TeX modes, though):

;; 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 :)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Emacs TeXInfo mode, reverse search, and Texinfo-generated DVIs?
  2006-06-13 18:23   ` Charlie Zender
@ 2006-06-13 21:05     ` David Kastrup
  0 siblings, 0 replies; 4+ messages in thread
From: David Kastrup @ 2006-06-13 21:05 UTC (permalink / raw)


Charlie Zender <zender@uci.edu> writes:

> Reiner Steib wrote:
>> On Tue, Jun 13 2006, Charlie Zender wrote:
>>
>>> Does anyone have reverse search working on Texinfo-generated DVIs?
>>
>> WFM, with AUCTeX's texinfo mode.
>
> When I use AUCTeX's texinfo mode I can click on the DVI and it
> will open an emacs window with the source buffer positioned at
> the correct location. What I would like to get working is the
> the reverse, i.e., the ability to stay in my Emacs source buffer
> and execute an Emacs command that causes the DVI to move to the
> location corresponding to the point in the source buffer.
> Do you have that working? If so, please send exact commands.

C-c C-t C-s turns on source special mode, and C-c C-v will kick the
viewer.  Of course, since the default viewer is xdvi, you will have to
change the values in TeX-output-view-style properly so that it will
also kick kdvi.  With luck, just adding the %dS option will work.

It seems backwards to use something like "kdvi-search" in connection
with AUCTeX: AUCTeX has all the necessary tools, hooks and
cranberries.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-06-13 21:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-13  7:01 Emacs TeXInfo mode, reverse search, and Texinfo-generated DVIs? Charlie Zender
2006-06-13  8:29 ` Reiner Steib
2006-06-13 18:23   ` Charlie Zender
2006-06-13 21:05     ` David Kastrup

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).