mirror of
https://github.com/larstvei/dot-emacs.git
synced 2024-11-26 07:28:31 +00:00
Fix org export and babel setup
Using engrave-faces!
This commit is contained in:
parent
4fb674d967
commit
a7e928216d
30
init.org
30
init.org
@ -838,18 +838,26 @@
|
|||||||
:config
|
:config
|
||||||
(setq org-adapt-indentation t
|
(setq org-adapt-indentation t
|
||||||
org-src-fontify-natively t
|
org-src-fontify-natively t
|
||||||
org-confirm-babel-evaluate nil
|
|
||||||
org-export-allow-bind-keywords t
|
|
||||||
org-edit-src-content-indentation 0))
|
org-edit-src-content-indentation 0))
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** LaTeX export
|
** LaTeX export
|
||||||
|
|
||||||
For LaTeX export, I default to using XeLaTeX for compilation, and the [[https://www.ctan.org/pkg/minted][minted]]
|
For LaTeX export, I default to using XeLaTeX for compilation, and the
|
||||||
package for syntax highlighting source blocks. I have PDFs open directly in
|
[[https://github.com/tecosaur/engrave-faces][engrave-faces]] package for syntax highlighting source blocks after the Emacs
|
||||||
Emacs ([[PDF Tools]]). In addition, I have support for a couple of custom LaTeX
|
color theme.
|
||||||
classes.
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
|
||||||
|
;; Convert font-lock faces to other formats
|
||||||
|
(use-package engrave-faces
|
||||||
|
:defer t)
|
||||||
|
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
I have PDFs open directly in Emacs ([[PDF Tools]]). In addition, I have support
|
||||||
|
for a couple of custom LaTeX classes.
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
|
||||||
@ -858,9 +866,8 @@
|
|||||||
:ensure nil
|
:ensure nil
|
||||||
:after org
|
:after org
|
||||||
:config
|
:config
|
||||||
;; Use Minted and XeLaTeX
|
(setq org-export-allow-bind-keywords t
|
||||||
(setq org-latex-src-block-backend 'minted
|
org-latex-src-block-backend 'engraved
|
||||||
org-latex-packages-alist '(("newfloat" "minted"))
|
|
||||||
org-latex-pdf-process
|
org-latex-pdf-process
|
||||||
'("latexmk -pdflatex='xelatex -shell-escape -interaction nonstopmode' -pdf -f %f"))
|
'("latexmk -pdflatex='xelatex -shell-escape -interaction nonstopmode' -pdf -f %f"))
|
||||||
|
|
||||||
@ -892,7 +899,8 @@
|
|||||||
|
|
||||||
** Babel
|
** Babel
|
||||||
|
|
||||||
Add a few languages for org-babel.
|
Add a few languages for Org babel. In addition, don't evaluate code on
|
||||||
|
export by default.
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
|
||||||
@ -901,6 +909,8 @@
|
|||||||
:ensure nil
|
:ensure nil
|
||||||
:after org
|
:after org
|
||||||
:config
|
:config
|
||||||
|
(setq org-export-use-babel nil
|
||||||
|
org-confirm-babel-evaluate nil)
|
||||||
(org-babel-do-load-languages
|
(org-babel-do-load-languages
|
||||||
'org-babel-load-languages
|
'org-babel-load-languages
|
||||||
'((emacs-lisp . t)
|
'((emacs-lisp . t)
|
||||||
|
Loading…
Reference in New Issue
Block a user