blob: 4bd25c8e795489e522ac28326effe84886c2a3b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
;; set up babel languages
(org-babel-do-load-languages
'org-babel-load-languages
'((perl . t)
(sh . t)
(python . t)
(R . t)
(emacs-lisp . t)
(latex . t)))
;; don't ask for confirmation before running code
(setq org-confirm-babel-evaluate nil)
;; babel minted latex export
;; modified from
;; http://orgmode.org/worg/org-tutorials/org-latex-export.html
(setq org-export-latex-listings 'minted)
(setq org-export-latex-custom-lang-environments
'((R "rcode")
(sh "shcode")
(python "pythoncode")))
;; (setq org-export-latex-minted-options
;; '(("frame" "lines")
;; ("fontsize" "\\scriptsize")
;; ("linenos" "")))
(setq org-latex-to-pdf-process
'("pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"
"pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"
"pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"))
|