Hi Jobst,
"Hoffmann, Jobst" <[email protected]> writes:
> I found a special problem: I took your example as tst_02.tex and I got
> upon C-x C-e
>
> Debugger entered--Lisp error: (error "\\bibliography statement missing
> or .bib files not found")
> signal(error ("\\bibliography statement missing or .bib files not
> found"))
> error("\\bibliography statement missing or .bib files not found")
> reftex-get-bibfile-list()
> eval((reftex-get-bibfile-list) nil)
> elisp--eval-last-sexp(nil)
> eval-last-sexp(nil)
> funcall-interactively(eval-last-sexp nil)
> call-interactively(eval-last-sexp nil nil)
> command-execute(eval-last-sexp)
>
> Then I copied tst_02.tex to tst_04.tex and I got upon C-x C-e :
>
> ("/home/ax006ho/TeX/tests/biblatex/biblatex-examples_short.bib")
>
> I can reproduce the behaviour any time.
>
> I attach both files - diff showed no difference -, do you see any
> difference?
Nope, they look identical to me as well.
> I don't have clue what's going on here.
Me either. The only difference I currently see are the entries in our
.emacs files. For RefTeX, I only have these lines:
(require 'reftex)
(add-hook 'LaTeX-mode-hook #'turn-on-reftex)
(setq reftex-plug-into-AUCTeX t)
Maybe you adjust your setting as well, restart Emacs and try it again.
Did you try my other suggestion to select
Ref->Parse Document->Entire Document
from the menu?
> Did I get you right, that these are the only lines I need in my .emacs:
> (add-hook 'LaTeX-mode-hook #'turn-on-reftex)
> (setq reftex-plug-into-AUCTeX t)
> (setq reftex-bibliography-commands '("bibliography"
> "nobibliography"
> "addbibresource"))
See above. Actually, you don't need to set
`reftex-bibliography-commands' as well. It has a sensible default.
Which Emacs version are you using?
Best, Arash