Function: org-cite-csl-finalizer

org-cite-csl-finalizer is a byte-compiled function defined in oc-csl.el.gz.

Signature

(org-cite-csl-finalizer OUTPUT KEYS FILES STYLE BACKEND INFO)

Documentation

Add "hanging" package if missing from LaTeX output.

OUTPUT is the export document, as a string. INFO is the export state, as a property list.

Source Code

;; Defined in /usr/src/emacs/lisp/org/oc-csl.el.gz
(defun org-cite-csl-finalizer (output _keys _files _style _backend info)
  "Add \"hanging\" package if missing from LaTeX output.
OUTPUT is the export document, as a string.  INFO is the export state, as a
property list."
  (org-require-package 'citeproc)
  (if (not (eq 'org-latex (org-cite-csl--output-format info)))
      output
    (with-temp-buffer
      (save-excursion (insert output))
      (when (search-forward "\\begin{document}" nil t)
	(goto-char (match-beginning 0))
	;; Insert the CSL-specific parts of the LaTeX preamble.
	(insert (org-cite-csl--generate-latex-preamble info)))
      (buffer-string))))