Skip to content

Commit ef333a1

Browse files
committed
Don't make reftex do a rescan everytime
Documents this in the README. Also includes a couple of cosmetic changes.
1 parent 6f2c61e commit ef333a1

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

README.org

+8
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,14 @@ If a bib file changes, the cache will automatically update the next time you run
333333
Note that cached data preformatted completion candidates are independently tracked by file.
334334
So, for example, if you have one very large bibliography file that changes a lot, you might consider splitting into one large file that is more stable, and one-or-more smaller ones that change more frequently.
335335

336+
*** Reftex and local bibliographic files in LaTeX
337+
338+
Citar relies on the builtin library reftex to find the bibliographic files included in a LaTeX document.
339+
Reftex scan the LaTeX document to find these files and caches them.
340+
If you find that Citar isn't picking up bibliographic entries in the included files it is most likely due to the fact that reftex needs to do a rescan.
341+
You can use ~reftex-parse-all~ or ~reftex-parse-one~ to do such a scan interactively.
342+
This should be only rarely needed.
343+
336344
** Notes
337345

338346
Citar offers configurable note-taking and access integration.

citar-latex.el

+3-5
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
(require 'citar)
1717
(require 'tex nil t)
18-
(require 'reftex-parse)
1918
(require 'reftex-cite)
2019

2120
(defvar TeX-esc)
@@ -33,7 +32,8 @@
3332
"citeauthor*" "Citeauthor*" "citetitle" "citetitle*" "citeyear"
3433
"citeyear*" "citedate" "citedate*" "citeurl" "fullcite"
3534
"footfullcite" "notecite" "Notecite" "pnotecite" "Pnotecite"
36-
"fnotecite") . (["Prenote"] ["Postnote"] t))
35+
"fnotecite")
36+
. (["Prenote"] ["Postnote"] t))
3737
(("nocite" "supercite") . nil))
3838
"Citation commands and their argument specs.
3939
@@ -70,9 +70,7 @@ entry when it is enabled."
7070
;;;###autoload
7171
(defun citar-latex-local-bib-files ()
7272
"Local bibliographic for latex retrieved using reftex."
73-
(ignore-errors
74-
(reftex-access-scan-info t)
75-
(copy-sequence (reftex-get-bibfile-list))))
73+
(ignore-errors (copy-sequence (reftex-get-bibfile-list))))
7674

7775
;;;###autoload
7876
(defun citar-latex-key-at-point ()

0 commit comments

Comments
 (0)