[Top][All Lists]

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

Re: [Bug-AUCTeX] 11.85; Biblatex vs. RefTex

From: Ralf Angeli
Subject: Re: [Bug-AUCTeX] 11.85; Biblatex vs. RefTex
Date: Thu, 25 Jun 2009 20:40:41 +0200

* Andreas Breitbach (2009-06-25) writes:

> Am Dienstag, den 23.06.2009, 21:07 +0200 schrieb Ralf Angeli:
>> I'm not sure what you mean here.  AUCTeX does not install RefTeX.  But
>> Emacs comes with RefTeX included.  The files below
>> /usr/share/emacs/22.2/lisp/textmodes/reftex likely belong to this latter
>> version.
> Yes, that's what I was originally assuming: RefTeX coming with AUCTeX, not 
> with Emacs(not considering that there's also a LaTeX mode in Emacs).
>> >> Upon moving them to a directory in my ~, the complaints are gone.
>> Which files?
> The files in /usr/share/emacs/22.2/lisp/textmodes/reftex 

It's usually not a good idea to mess around in /usr/share because this
is the domain of the package system.  So as soon as you update Emacs,
the changes will be gone.

>> >> Setting up the Makefile with the above mentioned directory turns out
>> >> "2009-04-29" on "C-h v reftex-version <RET>".
>> Which directory?
> That's how the Makefile looks now:
> # Where local software is found
> prefix=/usr/share
> # Where local lisp files go.
> lispdir=$(prefix)/emacs/22.2/lisp/textmodes

Again, not a good idea.  Especially the prefix setting is bad because
installation routines usually expect to be directories like `bin',
`share' or `man' below it.  In case of the RefTeX Makefile this is not
so much a problem as long as you change `lispdir' (what you did) and
`infodir', but still ...

If you want a clean installation I suggest you uninstall Emacs via the
package system and clean any remains below /usr/share/emacs/22.2/lisp.
Manually cleaning /usr/local/share/emacs/site-lisp from a previous
RefTeX installation attempt might also be a good idea.  Then install
Emacs again via the package system and install RefTeX using the default
Makefile, i.e. without making any changes in it.  This should install
RefTeX below /usr/local and the installation should override the one
coming with Emacs.

This is at least how it is working in my setup with the difference that
I am using a self-compiled Emacs which is installed below /usr/local as
well.  If the installation of RefTeX in /usr/local does not work with an
Emacs installed below /usr then this would likely be a bug in the
installation procedure which should be fixed.  (It could also be a
problem with the Emacs package provided by Ubuntu.)

>> I cannot reproduce the error with a CVS version of Emacs.  Before I
>> start testing with Emacs 22, could you please check if you can reproduce
>> the error by starting Emacs with the following command line?
>> emacs -Q -l auctex --eval "(progn (require 'reftex) (add-hook 
>> 'LaTeX-mode-hook 'turn-on-reftex) (setq reftex-plug-into-AUCTeX t 
>> reftex-cite-format \"\\\\footcite[]{%l}\" reftex-cite-prompt-optional-args 
>> t))" Emacs-bug.tex
>> Then type `C-c [ 2 0 0 0 <RET> <RET> 3 <RET>'.  In my case this inserts
>> \footcite[3]{InternationalSecurity.1Summer.2000}
>> into the buffer.
> That also works for me now.

That means everything is working now?

>> Also, I am still not convinced that the CVS version of RefTeX is
>> installed correctly on your computer.
> Which would be the litmus test to check for the installation?

The version number is an indicator.  Another one would be if other
RefTeX Lisp files are found at the right spot which can be checked with
something like `M-x locate-library <RET> reftex-base <RET>'.  Yet
another one would be if the documentation can be found with `C-h i d m
RefTeX <RET>' and relates to the new version (there is a version number
on the first page).


reply via email to

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