diff options
| author | 2024-03-05 15:37:51 +0000 | |
|---|---|---|
| committer | 2026-11-07 06:40:16 +0000 | |
| commit | d604af036dd2c14490c0bffd6239901d9a5a7c1e (patch) | |
| tree | 98f3c8fb253bfc4691dc30a0a0c8525cf3ad6f37 /ox-init.el | |
| download | article-master.tar.gz | |
Diffstat (limited to 'ox-init.el')
| -rw-r--r-- | ox-init.el | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/ox-init.el b/ox-init.el new file mode 100644 index 0000000..1144907 --- /dev/null +++ b/ox-init.el | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | ;;; ox-init --- Initialization script for async org exprort session | ||
| 2 | ;;; Commentary: | ||
| 3 | ;;; Code: | ||
| 4 | (org-babel-do-load-languages | ||
| 5 | 'org-babel-load-languages | ||
| 6 | '((latex . t) | ||
| 7 | (C . t))) | ||
| 8 | |||
| 9 | (require 'ox-extra) | ||
| 10 | (ox-extras-activate '(ignore-headlines)) | ||
| 11 | |||
| 12 | (require 'oc-bibtex) | ||
| 13 | |||
| 14 | (setq org-latex-src-block-backend 'minted) | ||
| 15 | |||
| 16 | (setq org-latex-bib-compiler "biber") | ||
| 17 | |||
| 18 | (setq org-latex-remove-logfiles nil) | ||
| 19 | |||
| 20 | (setq org-latex-pdf-process '("%latex -shell-escape -interaction nonstopmode -output-directory %o %f" | ||
| 21 | "%bib %b" | ||
| 22 | "%latex -shell-escape -interaction nonstopmode -output-directory %o %f")) | ||
| 23 | (setq org-latex-classes '(("spbstu-article" "\\documentclass[12pt]{spbstu-article}" | ||
| 24 | ("\\section{%s}" . "\\usection{%s}") | ||
| 25 | ("\\subsection{%s}" . "\\subsection*{%s}") | ||
| 26 | ("\\subsubsection{%s}" . "\\subsubsection*{%s}") | ||
| 27 | ("\\paragraph{%s}" . "\\paragraph*{%s}") | ||
| 28 | ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))) | ||
| 29 | |||
| 30 | ;;; ox-init.el ends here | ||
