Tassilo Horn <[email protected]> writes:

> For the time being, you can put
>
> (defun reftex-using-biblatex-p ()
>   "Return non-nil if we are using biblatex rather than bibtex."
>   (if (boundp 'TeX-active-styles)
>       ;; the sophisticated AUCTeX way
>       (member "biblatex" TeX-active-styles)
>     ;; poor-man's check...
>     (save-excursion
>       (re-search-forward "^[^%\n]*?\\\\usepackage.*{biblatex}" nil t))))
>
> into your ~/.emacs.

Ah, not quite.  You have to ensure that it's evaluated after
reftex-parse has been loaded:

--8<---------------cut here---------------start------------->8---
(with-eval-after-load 'reftex-parse
  (defun reftex-using-biblatex-p ()
    "Return non-nil if we are using biblatex rather than bibtex."
    (if (boundp 'TeX-active-styles)
        ;; the sophisticated AUCTeX way
        (member "biblatex" TeX-active-styles)
      ;; poor-man's check...
      (save-excursion
        (re-search-forward "^[^%\n]*?\\\\usepackage.*{biblatex}" nil t)))))
--8<---------------cut here---------------end--------------->8---

Bye,
Tassilo

Attachment: signature.asc
Description: PGP signature

_______________________________________________
auctex-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to