Configure ob-latex

This commit is contained in:
Gerard Vermeulen 2022-01-04 13:11:21 +01:00
parent 99de7404ac
commit cc7d3adff3

View File

@ -883,6 +883,18 @@ The code in listing [[lst:customize-org-babel]], [[lst:customize-org]], and
(with-eval-after-load 'ob-python (with-eval-after-load 'ob-python
(custom-set-variables (custom-set-variables
'(org-babel-python-command "python -E"))) '(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 #+end_src
#+caption[Customize =Org=]: #+caption[Customize =Org=]: