auctex
[Top][All Lists]
Advanced

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

Re: No valid bibliography in this document


From: Hoffmann, Jobst
Subject: Re: No valid bibliography in this document
Date: Tue, 17 Mar 2020 17:38:06 +0000

Forgot cc. auctex


Hi Arash, 

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?

I don't have clue what's going on here. 

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"))



Am Montag, den 16.03.2020, 21:10 +0100 schrieb Arash Esbati:
> Hi Jobst,
> 
> "Hoffmann, Jobst" <address@hidden> writes:
> 
> > I'm using the current AUCTeX from git://git.savannah.gnu.org/auctex
> > and
> > I try to use \cite for inserting citations.
> 
> The issue you describe below is created by RefTeX.  Since RefTeX is
> bundled with Emacs itself, the question is which Emacs version you're
> using?  I tried your example below with current Emacs from git with
> no
> problem.
> 
> > The file below compiles perfectly with C-c C-a
> > 
> > tst_01.tex
> > ~~~~~~~~~~
> > \documentclass{article}
> > \usepackage[backend=biber]{biblatex}
> > \addbibresource{biblatex-examples_short.bib}
> > \begin{document}
> > \cite{aristotle:anima}
> > 
> > \printbibliography
> > \end{document}
> > ~~~~~~~~~~~
> 
> This is the document I tried:
> 
> tst_01.tex
> --8<---------------cut here---------------start------------->8---
> \documentclass{article}
> 
> \usepackage[backend=biber]{biblatex}
> \addbibresource{biblatex-example_short.bib}
> 
> \begin{document}
> 
> \cite{baez/article} and \cite{aristotle:anima} and
> \cite{aristotle:anima} or \cite{baez/article}.
> 
> \begin{verbatim}
> (reftex-get-bibfile-list)
> \end{verbatim}
> 
> \end{document}
> 
> %%% Local Variables:
> %%% mode: latex
> %%% TeX-master: t
> %%% End:
> --8<---------------cut here---------------end--------------->8---
> 
> I tried both `C-c C-m cite RET' and `C-c [ RET', without problem.
> 
> > When I try to insert the second citation by using the \cite
> > command, an
> > error occurs in the minibuffer:
> > No valid bibliography in this document, and no default available
> 
> What do you see if you put the cursor after (reftex-get-bibfile-list)
> and hit `C-x C-e'?  If nothing, can you select from the menu
> 
>     Ref->Parse Document->Entire Document
> 
> and try it again?
> 
> > In the Messages buffer I can rad the following line:
> > 
> > reftex-offer-bib-menu: No valid bibliography in this document, and
> > no
> > default available
> > 
> > My .emacs contains the following lines concerning the RefTeX
> > ~~~~~~~~~~~
> 
> Please also add:
> 
> (add-hook 'LaTeX-mode-hook #'turn-on-reftex)
> > (setq reftex-plug-into-AUCTeX t)
> > (setq reftex-bibliography-commands '("bibliography"
> >                                      "nobibliography"
> >                                      "addbibresource"))
> > (setq reftex-external-file-finders
> >       '(("tex" . "kpsewhich -format=.tex %f")
> >         ("bib" . "kpsewhich -format=.bib %f")))
> 
> This is actually the default, you can remove this.
> 
> > ~~~~~~~~~~~
> > 
> > What am I missing?
> 
> Hopefully we will find out :)
> 
> Best, Arash
-- 
Prof. Dr. Jobst Hoffmann            Tel:   +49 (241) 6009-5 31 59
Fachhochschule Aachen Abt. Jülich   Fax:   +49 (241) 6009-5 31 89
Fachbereich 09                      email: address@hidden
-- 
Prof. Dr. Jobst Hoffmann            Tel:   +49 (241) 6009-5 31 59
Fachhochschule Aachen Abt. Jülich   Fax:   +49 (241) 6009-5 31 89
Fachbereich 09                      email: address@hidden

Attachment: tst_02.tex
Description: tst_02.tex

Attachment: tst_04.tex
Description: tst_04.tex


reply via email to

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