* lisp/ob-latex.el: Add support for :prologue/:epilogue parameters
(org-babel-expand-body:latex):
This commit is contained in:
parent
92b69d4331
commit
f0a2531bb4
|
@ -138,7 +138,13 @@ exporting the literal LaTeX source."
|
|||
(cdr pair) (format "%S" (cdr pair)))
|
||||
body)))
|
||||
(org-babel--get-vars params))
|
||||
(org-trim body))
|
||||
(let ((prologue (cdr (assq :prologue params)))
|
||||
(epilogue (cdr (assq :epilogue params))))
|
||||
(org-trim
|
||||
(concat
|
||||
(and prologue (concat prologue "\n"))
|
||||
body
|
||||
(and epilogue (concat "\n" epilogue "\n"))))))
|
||||
|
||||
(defun org-babel-execute:latex (body params)
|
||||
"Execute LaTeX BODY according to PARAMS.
|
||||
|
|
Loading…
Reference in New Issue