help-gnu-emacs
[Top][All Lists]

## Re: AucTeX 11.83 and MikTeX 2.5

 From: yaakov . oshman Subject: Re: AucTeX 11.83 and MikTeX 2.5 Date: 20 Sep 2006 02:04:32 -0700 User-agent: G2/1.0

```Hi,

I have just installed Emacs22+Auctex (preview enabled!) on my Win
XP/SP2 system with MikTeX 2.5.  I used the customization procedure
described above (thanks for the explanations!) but could not solve one
mystery:  in compiling multi-file articles, composed of a master file
and some others, the source specials that get added to the dvi file do
not include the file extensions (*.tex); hence, when trying to do
inverse search from YAP, emacs opens a blank new file that has the
correct file name -- without the extension...  I could solve the
problem by modifying the inclusion commands (in the master file) to,
e.g., \input{filename.tex} (as opposed to what I had before:
\input{filename}), but this is "not elegant", and not having the
extensions *did work* in the previous versions of emacs (21.3)+auctex!
My question is, then: how to customize auctex to pass on the file
extensions as well to YAP in the source specials?

Yaakov.
PS  Maybe this is relevant: I am using gnuserv, and the code added to
my .emacs file is:

(require 'gnuserv)
(gnuserv-start)
(setq gnuserv-frame (selected-frame))

Robert McDonald wrote:
> Ralf Angeli wrote:
> >
> > Please don't edit files directly.  There is a reason these things are
> > implemented as a customizable option.  What Reiner meant was that you
> > use `M-x customize-variable RET TeX-output-view-style RET', change the
> > value and save it.
>  >
> <snip>
> >
> > Ouch!  Please don't recommend something like that!  Again, there is
> > the possibility to change the variable values without changing a
> > file.  Don't do this!
> >
>
> Thank you Ralf. You're quite right on all counts. Implementing Reiner's
> original change as a customization fixes everything. After reading
> through the various AucTeX files trying to figure out what was going on,
> for some reason it never occurred to me to customize to solve the
> problem, and so I didn't pick up on that from Reiner's suggestion. Also,
> to be honest, I didn't really understand tex-source-specials-mode (for
> my purposes it suffices to leave specials on all the time) so I didn't
> understand the greater ramifications you mentioned. But now that I see
> how it works and how easily it adapts to different systems, my
> admiration for AucTeX and Emacs is all the greater.
>
> Thanks!
>
> Bob

```