Configure ob-latex

This commit is contained in:
Gerard Vermeulen 2022-01-04 13:11:21 +01:00
parent 99de7404ac
commit cc7d3adff3
1 changed files with 12 additions and 0 deletions

View File

@ -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=]: