Discussion:
[AUCTeX] (LaTeX-bibitem-list) returns nil.
Shiyao Ma
2017-04-29 09:32:00 UTC
Permalink
Hi,

I'd like to get all the entries of my bib file.
My tex master is "main.tex", and bib filename is "main.bib", there is already an entry \bibliography{main}.

When running (LaTeX-bibitem-list),  it simply returns nil.

How to solves this?

Best,
Mosè Giordano
2017-04-29 09:38:13 UTC
Permalink
Hi Shiyao,
Post by Shiyao Ma
Hi,
I'd like to get all the entries of my bib file.
My tex master is "main.tex", and bib filename is "main.bib", there is
already an entry \bibliography{main}.
When running (LaTeX-bibitem-list), it simply returns nil.
How to solves this?
Do you use RefTeX to manage bibliography? That's a really powerful
package shipped with Emacs, you only have to activate it and plug into
AUCTeX, see https://www.gnu.org/software/auctex/manual/reftex.html#SEC50

Anyway, did you enable file parsing, as suggested in the Quick Start
section of the manual?

Bye,
Mosè
Shiyao Ma
2017-04-29 14:29:51 UTC
Permalink
Hi Mose,

I installed RefTex but I am not accustomed to the way it works.

I am in the middle of writing a completion plugin for bibs.

  (setq TeX-auto-save t)
  (setq TeX-parse-self t)
are all enabled.

I wonder what else should be made so that  (LaTeX-bibitem-list) correctly returns all the bibitems.


Best.
Post by Mosè Giordano
Hi Shiyao,
Post by Shiyao Ma
Hi,
I'd like to get all the entries of my bib file.
My tex master is "main.tex", and bib filename is "main.bib", there is
already an entry \bibliography{main}.
When running (LaTeX-bibitem-list), it simply returns nil.
How to solves this?
Do you use RefTeX to manage bibliography? That's a really powerful
package shipped with Emacs, you only have to activate it and plug into
AUCTeX, see https://www.gnu.org/software/auctex/manual/reftex.html#SEC50
Anyway, did you enable file parsing, as suggested in the Quick Start
section of the manual?
Bye,
MosÚ
Mosè Giordano
2017-05-01 10:16:53 UTC
Permalink
Hi Shiyao,

sorry for the late reply.
Post by Shiyao Ma
Hi Mose,
I installed RefTex but I am not accustomed to the way it works.
What do you refer to? If you plug RefTeX into AUCTeX, it acts as a
backend, you still continue to use the same AUCTeX interface to manage
bibliography.
Post by Shiyao Ma
I am in the middle of writing a completion plugin for bibs.
(setq TeX-auto-save t)
(setq TeX-parse-self t)
are all enabled.
I wonder what else should be made so that (LaTeX-bibitem-list) correctly
returns all the bibitems.
Where is the bibliography file located? Do you have an autogenerated
file for it? If the file is in the same directory as the main TeX
file, you just need to edit the file (no actual edit, saving the file
will trigger parsing of the file). Please note that due to a
long-standing issue in AUCTeX, the bibliography file should not have
the same base name as the TeX files.

Bye,
Mosè

Loading...