Merge pull request #2838 from patrl/remove-ivy-bibtex

Remove Ivy/helm-bibtex
This commit is contained in:
Henrik Lissner 2020-04-07 17:30:17 -04:00 committed by GitHub
commit 76097f84fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 19 deletions

View file

@ -1,10 +1,5 @@
;;; lang/latex/+ref.el -*- lexical-binding: t; -*- ;;; lang/latex/+ref.el -*- lexical-binding: t; -*-
(when (stringp +latex-bibtex-file)
(setq bibtex-completion-bibliography (list (expand-file-name +latex-bibtex-file))
reftex-default-bibliography bibtex-completion-bibliography))
(use-package! reftex (use-package! reftex
:hook (LaTeX-mode . reftex-mode) :hook (LaTeX-mode . reftex-mode)
:config :config

View file

@ -28,7 +28,6 @@ Provide a helping hand when working with LaTeX documents.
+ Change PDF viewer to Okular or ~latex-preview-pane~ + Change PDF viewer to Okular or ~latex-preview-pane~
+ Bibtex editor + Bibtex editor
+ Autocompletion using ~company-mode~ + Autocompletion using ~company-mode~
+ Ivy or Helm for selecting bibliography
+ Compile your .tex code only once using LatexMk + Compile your .tex code only once using LatexMk
** Module Flags ** Module Flags
@ -43,7 +42,6 @@ Provide a helping hand when working with LaTeX documents.
+ [[https://github.com/alexeyr/company-auctex][company-auctex]]* + [[https://github.com/alexeyr/company-auctex][company-auctex]]*
+ [[https://github.com/TheBB/company-reftex][company-reftex]]* + [[https://github.com/TheBB/company-reftex][company-reftex]]*
+ [[https://github.com/vspinu/company-math][company-math]]* + [[https://github.com/vspinu/company-math][company-math]]*
+ [[https://github.com/tmalsburg/helm-bibtex][ivy-bibtex]]* or [[https://github.com/tmalsburg/helm-bibtex][helm-bibtex]]*
+ [[https://github.com/cdominik/cdlatex][cdlatex]] (=+cdlatex=) + [[https://github.com/cdominik/cdlatex][cdlatex]] (=+cdlatex=)
* Prerequisites * Prerequisites
@ -86,14 +84,11 @@ environment.systemPackages = [ pkgs.texlive.combined.scheme-medium ];
* Customization * Customization
** Specifying the location of a bibtex file & corresponding PDFs ** Specifying the location of a bibtex file & corresponding PDFs
The reftex and bibtex-completion packages have two variables that allow you to Reftex has a variable that allow you to
specify where it should find your bibliography file(s) and their corresponding specify where it should find your bibliography file(s):
PDFs:
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq reftex-default-bibliography "/your/bib/file.bib") (setq reftex-default-bibliography "/your/bib/file.bib")
;; Optionally specifying a location for the corresponding PDFs
(setq bibtex-completion-library-path (list "/your/bib/pdfs"))
#+END_SRC #+END_SRC
** Changing the PDFs viewer ** Changing the PDFs viewer

View file

@ -3,9 +3,6 @@
(defvar +latex-indent-level-item-continuation 4 (defvar +latex-indent-level-item-continuation 4
"Custom indentation level for items in enumeration-type environments") "Custom indentation level for items in enumeration-type environments")
(defvar +latex-bibtex-file nil
"File AUCTeX (specifically RefTeX) uses to search for citations.")
(defvar +latex-enable-unicode-math nil (defvar +latex-enable-unicode-math nil
"If non-nil, use `company-math-symbols-unicode' backend in LaTeX-mode, "If non-nil, use `company-math-symbols-unicode' backend in LaTeX-mode,
enabling unicode symbols in math regions. This requires the unicode-math latex enabling unicode symbols in math regions. This requires the unicode-math latex

View file

@ -19,7 +19,3 @@
(package! company-auctex :pin "48c42c58ce") (package! company-auctex :pin "48c42c58ce")
(package! company-reftex :pin "275ef708f0") (package! company-reftex :pin "275ef708f0")
(package! company-math :pin "a796053590")) (package! company-math :pin "a796053590"))
(when (featurep! :completion ivy)
(package! ivy-bibtex :pin "d4471232be"))
(when (featurep! :completion helm)
(package! helm-bibtex :pin "d4471232be"))