Am Dienstag, den 17.03.2020, 22:22 +0100 schrieb Arash Esbati:
> 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)
> 

I've reduced my settings to these three lines, no change.

> 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?

Yes, I did it yesterday, it didn't help; now at this moment I did it
again and it works!?????????

I'm curious about tomorrow...

> 
> > 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?

Emacs 26.3 from Fedora, all updates - if any - applied, several packages
from melpa and of my own.

> 
> Best, Arash

Now I tried another example, a step to multi file projects. I applied
all the tricks, but the message was always:-(

"\\bibliography statement missing or .bib files not found"

I attach the example - the bibliographic file comes with biblatex, so I
assume that you have your own copy, it is in the BIBINPUTS serach path
and it works in another example, I've also linked it into the current
directory -, how is it working for you?

Kind regards
Jobst
-- 
Prof. Dr. Jobst Hoffmann            email: [email protected]

\newif\ifsinglebibliography
\def\argsingle{single}
\ifx\lecturearg\argsingle
\def\refsectionmode{chapter}
\singlebibliographyfalse
\else
\def\refsectionmode{none}
\singlebibliographytrue
\fi

\documentclass[12pt]{scrreprt}

\usepackage[backend=biber,      % Biber und biblatex
            autolang=hyphen,    % Trennung gemäß der mit
                                % babel gesetzten Sprache
            style=alphabetic,   % Verweise ähnlich zu
                                % alpha.bst: XXX00
            citestyle=alphabetic, % mehrere Titel eines
                                % Autors werden XXX00a,
                                % XXX00b, ... zitiert
            giveninits=false,   % Vornamen werden nicht
                                % abgekürzt
            refsection=\refsectionmode,    % Zitate werden in
                                % Abhängigkeit von \refsectionmode
                                % zusammengeführt
            ]{biblatex}

\addbibresource{biblatex-examples.bib}

\begin{document}

\ifsinglebibliography
\let\include\input
\fi

\include{chapter_one}
\include{chapter_two}
\include{chapter_three}
\include{literature}

% debug code for getting the the current bib files by applying
% the key combination C-x C-e at the point behind the closing
% parenthesis
\iffalse
\begin{verbatim}
(reftex-get-bibfile-list)
\end{verbatim}
\fi

\end{document}

%%% Local Variables:
%%% mode: latex
%%% TeX-PDF-mode: t
%%% TeX-engine: luatex
%%% TeX-master: t
%%% mode: flyspell
%%% ispell-local-dictionary: "deutsch8"
%%% mode: outline-minor-mode
%%% End:
(TeX-add-style-hook
 "lecture_multi"
 (lambda ()
   (TeX-add-to-alist 'LaTeX-provided-class-options
                     '(("scrreprt" "12pt")))
   (add-to-list 'LaTeX-verbatim-macros-with-braces-local "url")
   (add-to-list 'LaTeX-verbatim-macros-with-braces-local "path")
   (add-to-list 'LaTeX-verbatim-macros-with-delims-local "url")
   (add-to-list 'LaTeX-verbatim-macros-with-delims-local "path")
   (TeX-run-style-hooks
    "latex2e"
    "chapter_one"
    "chapter_two"
    "chapter_three"
    "literature"
    "scrreprt"
    "scrreprt12")
   (TeX-add-symbols
    "argsingle"
    "refsectionmode"
    "include")
   (LaTeX-add-bibliographies
    "biblatex-examples"))
 :latex)

Reply via email to