From cc7d3adff3ec08c69e76eb15e60a3cb2e6156d7a Mon Sep 17 00:00:00 2001 From: Gerard Vermeulen Date: Tue, 4 Jan 2022 13:11:21 +0100 Subject: [PATCH] Configure ob-latex --- README.org | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.org b/README.org index bfe852b..9c2a6bf 100644 --- a/README.org +++ b/README.org @@ -883,6 +883,18 @@ The code in listing [[lst:customize-org-babel]], [[lst:customize-org]], and (with-eval-after-load 'ob-python (custom-set-variables '(org-babel-python-command "python -E"))) + + (with-eval-after-load 'ob-latex + (custom-set-variables + '(org-babel-latex-preamble + (lambda (_) + "\\documentclass[preview]{standalone}\n")) + '(org-babel-latex-begin-env + (lambda (_) + "\\begin{document}\n")) + '(org-babel-latex-end-env + (lambda (_) + "\\end{document}\n")))) #+end_src #+caption[Customize =Org=]: