forked from gjkerns/IPSUR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit-ipsur.el
94 lines (85 loc) · 3.05 KB
/
init-ipsur.el
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
;; IPSUR: Introduction to Probability and Statistics Using R
;; Copyright (C) 2014 G. Jay Kerns
;;
;; This file is part of IPSUR.
;;
;; IPSUR is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;;
;; IPSUR is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
::
;; You should have received a copy of the GNU General Public License
;; along with IPSUR. If not, see <http://www.gnu.org/licenses/>.
(defvar org-dist "~/git/org-mode")
(add-to-list 'load-path (concat org-dist "/lisp"))
(add-to-list 'load-path (concat org-dist "/contrib/lisp"))
(setq load-path (cons "~/git/ESS/lisp" load-path))
(require 'ess-site)
(setq ess-ask-for-ess-directory nil)
(require 'org)
(require 'ox-latex)
(setq org-confirm-babel-evaluate nil)
(org-babel-do-load-languages
'org-babel-load-languages
'((R . t)
(emacs-lisp . t)
(latex . t)
(org . t)
(sh . t)))
(setq org-entities-user nil)
(setq org-export-latex-packages-alist nil)
(setq ox-latex-classes nil)
(setq ox-latex-tables-booktabs nil)
(setq ox-latex-title-command nil)
(setq org-export-latex-hyperref-format "\\ref{%s}")
(setq org-latex-toc-command "\\tableofcontents\n\n")
(setq ox-latex-classes nil)
(add-to-list 'org-latex-classes
'("scrbook"
"\\documentclass{scrbook}
[NO-DEFAULT-PACKAGES]"
("\\chapter{%s}" . "\\chapter*{%s}")
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")))
(setq org-publish-project-alist
'(
("ipsurlatex-org"
:base-directory "~/git/IPSUR/"
:base-extension "org"
:exclude "INSTALL.org"
:publishing-directory "~/git/IPSUR/tex"
:publishing-function org-latex-publish-to-latex
:auto-sitemap nil
:makeindex nil
)
("ipsurlatex-ps"
:base-directory "~/git/IPSUR/fig/"
:base-extension "ps"
:recursive t
:publishing-directory "~/git/IPSUR/tex/fig"
:publishing-function org-publish-attachment)
("ipsurlatex-pdf"
:base-directory "~/git/IPSUR/fig/"
:base-extension "pdf"
:recursive t
:publishing-directory "~/git/IPSUR/tex/fig"
:publishing-function org-publish-attachment)
("ipsurlatex-tex"
:base-directory "~/git/IPSUR/include/"
:base-extension "tex"
:publishing-directory "~/git/IPSUR/tex/include"
:publishing-function org-publish-attachment)
("ipsurlatex-other"
:base-directory "~/git/IPSUR/include/"
:base-extension "bib"
:publishing-directory "~/git/IPSUR/tex/include"
:publishing-function org-publish-attachment)
("ipsurlatex" :components ("ipsurlatex-org" "ipsurlatex-tex" "ipsurlatex-pdf" "ipsurlatex-other" "ipsurlatex-ps"))
))