Autocompleting \ cite {} with emacs + auctex gives "cite: there is no such entry in the database"

I am running Emacs 23.1.1 and AucTeX 11.85 on a Ubuntu 8.10 machine. After opening the tex file, the first time I try to use the autocomplete command \ cite {}, I get

"cite: information not available, use` cc & 'to get it. "

in the minibuffer. After doing "cc &" I get

"bytecode: no BibTeX record with quote key."

Subsequent calls to \ cite give me a message

"cite: there is no such entry in the database."

I have a library of libraries in my tex file, and the \ cite {} entries I made manually work as expected.

I have the following in my .emacs

(require 'reftex) (setq-default TeX-master nil) (add-hook 'LaTeX-mode-hook 'TeX-PDF-mode) ;turn on pdf-mode. AUCTeX ;will call pdflatex to ;compile instead of latex. (add-hook 'LaTeX-mode-hook 'LaTeX-math-mode) ;turn on math-mode by ;default (add-hook 'LaTeX-mode-hook 'reftex-mode) ;turn on REFTeX mode by ;default (add-hook 'LaTeX-mode-hook 'flyspell-mode) ;turn on flyspell mode by ;default (setq reftex-plug-into-AUCTeX t) (setq TeX-auto-save t) (setq TeX-save-query nil) (setq TeX-parse-self t) (setq-default TeX-master nil) 

I also tried the sentences in the Suggestion for \ cite in Emacs with AUCTeX , but it didn't work either.

Alejandro.

+6
emacs auctex
source share
2 answers

Cc [works. (I'm not sure that after entering \ cite {I should get the completion, but I'm happy with the other solution.)

+4
source share

I followed the previously mentioned steps and found that Cc [works well. I was also able to browse the available quotes using the following commands:

1.) Cc
2.) type: \ cite
3.) type: searchTerm

Where searchTerm is a regular expression for an element in your .bib file. As mentioned earlier, before running \ cite auto-complete, make sure you run bibtex and latex.

+2
source share

All Articles