Function: org-cite-bibtex-export-citation

org-cite-bibtex-export-citation is a byte-compiled function defined in oc-bibtex.el.gz.

Signature

(org-cite-bibtex-export-citation CITATION STYLE _ INFO)

Documentation

Export CITATION object.

STYLE is the citation style, as a pair of strings or nil. INFO is the export state, as a property list.

Source Code

;; Defined in /usr/src/emacs/lisp/org/oc-bibtex.el.gz
(defun org-cite-bibtex-export-citation (citation style _ info)
  "Export CITATION object.
STYLE is the citation style, as a pair of strings or nil.  INFO is the export
state, as a property list."
  (let ((references (org-cite-get-references citation)))
    (format "\\%s%s{%s}"
            (pcase style
              (`(,(or "nocite" "n") . ,_) "nocite")
              (_ "cite"))
            (let ((suffix (cdr (org-cite-main-affixes citation))))
              (if suffix
                  (format "[%s]" (org-trim (org-export-data suffix info)))
                ""))
            (mapconcat (lambda (r) (org-element-property :key r))
                       references
                       ","))))