From 8b3541430bfc0cfc587f8d7236d407f0698cdd2b Mon Sep 17 00:00:00 2001 From: dominikpegler Date: Tue, 21 Nov 2023 15:36:49 +0100 Subject: [PATCH] enable evaluation of date field if year is not defined --- bibtex-completion.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bibtex-completion.el b/bibtex-completion.el index f32f672..f35d497 100644 --- a/bibtex-completion.el +++ b/bibtex-completion.el @@ -1191,7 +1191,7 @@ string if FIELD is not present in ENTRY and DEFAULT is nil." (_ ;; Real fields: (let ((value (bibtex-completion-get-value field entry))) - (if value + (if (or value (and field (string= field "year"))) (pcase field ;; https://owl.english.purdue.edu/owl/resource/560/06/ ("author" (bibtex-completion-apa-format-authors value))