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
|
;; LaTeX Classes
(with-eval-after-load 'ox-latex
;; Add custom class for: Manuals
(add-to-list 'org-latex-classes
'("manuals"
"\\documentclass[a4paper,12pt]{article} [NO-DEFAULT-PACKAGES] [PACKAGES] [EXTRA]
\\usepackage{fontspec}
\\usepackage[scaled=1]{gentium} \\renewcommand\\familydefault{\\rmdefault}
\\usepackage[scaled=.90]{cascadia-code} \\renewcommand*\\familydefault{\\ttdefault}
\\usepackage[scaled=.85,tabular,lining]{montserrat} \\renewcommand*\\familydefault{\\sfdefault}
\\usepackage[a4paper, left=1in, right=1in, top=1in, bottom=1in]{geometry}
\\setlength{\\textheight}{9.5in}
\\setlength{\\textwidth}{6.5in}
\\usepackage{hyperref}
\\hypersetup{
colorlinks,
citecolor=gray,
filecolor=orange,
linkcolor=black,
urlcolor=NavyBlue
}
\\usepackage{bookmark}
\\usepackage{minted}
\\usepackage[dvipsnames]{xcolor}
\\usepackage{listings}
\\usepackage{fancyhdr}
\\usepackage{lastpage}
\\pagestyle{fancy}
\\fancyhf{}
\\fancyhead[R]{\\bf{\\leftmark}}
\\fancyfoot[C]{\\thepage{} of \\pageref{LastPage}}
\\fancyfoot[R]{ Javier Pacheco }
\\AddToHook{cmd/section/before}{\\clearpage}"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
(add-to-list 'org-latex-classes
'("exam"
"\\documentclass[11pt,addpoints]{exam} [NO-DEFAULT-PACKAGES]
\\usepackage{graphicx}
\\usepackage{pgf,tikz,pgfplots}
\\pgfplotsset{compat=1.15}
\\usepgfplotslibrary{fillbetween}
\\pointpoints{punto}{puntos}
\\pagestyle{headandfoot}"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))))
(setq org-latex-listings 't)
(setq TeX-engine 'xetex)
(use-package auctex
:ensure t)
(setq org-export-allow-bind-keywords t)
(setq org-latex-to-pdf-process
'("xelatex -interaction nonstopmode %f"
"xelatex -interaction nonstopmode %f")) ;; for multiple passes
(setq TeX-command-extra-options "-shell-escape")
(setq org-latex-pdf-process
'("xelatex -shell-escape -interaction nonstopmode -output-directory %o %f"
"xelatex -shell-escape -interaction nonstopmode -output-directory %o %f"
"xelatex -shell-escape -interaction nonstopmode -output-directory %o %f"))
(setq org-latex-listings 'minted) ;; Use minted for code blocks
(setq org-latex-minted-options ;; Here you add the options
'(
("linenos" "true") ;; Enable line numbers.
("numbersep" "2pt") ;; separation of numbers.
("breaklines" "true") ;; enable breaklines.
;; ("frame" "leftline") ;; Add a leftline to the frame.
;; ("framerule" "2pt") ;; Weight of the leftline.
;; ("labelposition" "bottomline") ;; Position of label.
("bgcolor" "GreenYellow!20")
)) ;; color and level of transparency.
|