Skip to content

Commit

Permalink
Don't apply textual mode when citation style is numeric or label
Browse files Browse the repository at this point in the history
  • Loading branch information
andras-simonyi committed Mar 7, 2024
1 parent e3911d8 commit 23b0ff4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion citeproc-cite.el
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
(require 'citeproc-sort)
(require 'citeproc-subbibs)

(declare-function citeproc-style-category "citeproc-style" (style))

(cl-defstruct (citeproc-citation (:constructor citeproc-citation-create))
"A struct representing a citation.
CITES is a list of alists describing individual cites,
Expand Down Expand Up @@ -228,7 +230,8 @@ For the optional INTERNAL-LINKS argument see
(when outer-attrs
(setq result (list outer-attrs result)))
;; Prepend author to textual citations
(when (eq (citeproc-citation-mode c) 'textual)
(when (and (eq (citeproc-citation-mode c) 'textual)
(not (member (citeproc-style-category style) '("numeric" "label"))))
(let* ((first-elt (car cites)) ;; First elt is either a cite or a cite group.
;; If the latter then we need to locate the
;; first cite as the 2nd element of the first
Expand Down

0 comments on commit 23b0ff4

Please sign in to comment.