bug-auctex
[Top][All Lists]
Advanced

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

Re: [Bug-AUCTeX] RefTeX cannot manage multiple "bibliography" macros


From: Tassilo Horn
Subject: Re: [Bug-AUCTeX] RefTeX cannot manage multiple "bibliography" macros
Date: Tue, 05 Nov 2013 09:32:31 +0100
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux)

Mosè Giordano <address@hidden> writes:

>> `LaTeX-bibliography-list' contains both bib files, but
>> `LaTeX-bibitem-list' is nil.  Thus, C-c [ completes nothing (but the
>> bib menu is correct).  After picking one entry from that, the next
>> C-c [ completes only the chosen entry.
>
> You have to get the parsed files associated to the the bibliography
> files first (just edit and save them).

Ah, that does the trick.

>>> Maybe we can add a `TeX-run-style-hooks' inside
>>> `TeX-arg-bibliography' and `LaTeX-arg-addbibresource', what do you
>>> think?
>>
>> Could you elaborate what and why that would achieve?
>
> I suggest to add
>     (mapc 'TeX-run-style-hooks styles)
> to the end of `TeX-arg-bibliography' (and something similar to
> `LaTeX-arg-addbibresource'), just like style files of LaTeX packages
> are run inside `LaTeX-arg-usepackage'.  If there is already the parsed
> file associated to the bibliography file, `LaTeX-bibitem-list' will be
> immediately filled without the need to revert the document.  And of
> course we need to hope that the bibliography file has a different name
> from the main document (it's not uncommon to use the same base name),
> but this is a restriction intrinsic to AUCTeX, for the moment.

Sounds good to me.  Please add that explanation as a comment to the
calls.

Bye,
Tassilo



reply via email to

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