From 16dcfdfa80bb889ea2a26ac6d852fb0eb2911415 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20Simonyi?= Date: Tue, 2 Nov 2021 16:44:37 +0100 Subject: [PATCH] oc-csl: Fix footnote status reporting for wrapped citations * lisp/oc-csl.el (org-cite-csl--create-structure): Update footnote information when citation is wrapped in a footnote. --- lisp/oc-csl.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/oc-csl.el b/lisp/oc-csl.el index 94de97e33..be9ac8f39 100644 --- a/lisp/oc-csl.el +++ b/lisp/oc-csl.el @@ -501,7 +501,8 @@ INFO is the export state, as a property list." ;; a footnote, but isn't yet. (when (and (not footnote) (org-cite-csl--note-style-p info)) (org-cite-adjust-note citation info) - (org-cite-wrap-citation citation info)) + (org-cite-wrap-citation citation info) + (setq footnote (org-element-lineage citation '(footnote-reference)))) ;; Return structure. (apply #'citeproc-citation-create `(:note-index