Update org-latex settings
This commit is contained in:
parent
ff9d35d026
commit
75bcf695be
1 changed files with 30 additions and 12 deletions
42
init.el
42
init.el
|
@ -1714,18 +1714,6 @@ Uses `mk/hyperspec-dir-locations' to find the directory."
|
|||
(org-agenda-custom-commands
|
||||
'(("p" "Projects"
|
||||
((tags "PROJECT")))))
|
||||
;; LATEX
|
||||
(org-latex-packages-alist nil)
|
||||
(org-latex-pdf-process '("latexmk -lualatex -shell-escape -quiet -f %f"))
|
||||
(org-latex-compiler "lualatex")
|
||||
(org-latex-tables-booktabs t)
|
||||
(org-latex-images-centered t)
|
||||
(org-latex-prefer-user-labels t)
|
||||
(org-latex-toc-command "\\tableofcontents\n\\listoffigures")
|
||||
(org-latex-listings nil)
|
||||
(org-latex-listings-options nil)
|
||||
(org-latex-src-block-backend 'listings)
|
||||
(org-latex-inputenc-alist '((\"utf8\" . \"utf8x\")))
|
||||
;; PLANTUML
|
||||
(org-plantuml-exec-mode 'jar)
|
||||
(org-plantuml-jar-path "~/plantuml.jar")
|
||||
|
@ -1768,6 +1756,36 @@ Uses `mk/hyperspec-dir-locations' to find the directory."
|
|||
|
||||
;; Define custom LaTeX class with specific formatting
|
||||
(with-eval-after-load 'ox-latex
|
||||
(setq org-latex-packages-alist nil)
|
||||
(setq org-latex-default-packages-alist '(("AUTO" "polyglossia" t ("xelatex" "lualatex"))))
|
||||
(setq org-latex-pdf-process '("latexmk -lualatex -shell-escape -quiet -f %f"))
|
||||
(setq org-latex-compiler "lualatex")
|
||||
(setq org-latex-tables-booktabs t)
|
||||
(setq org-latex-images-centered t)
|
||||
(setq org-latex-prefer-user-labels t)
|
||||
(setq org-latex-toc-command "\\tableofcontents\n\\listoffigures\n\\lstlistoflistings\n")
|
||||
(setq org-latex-listings nil)
|
||||
(setq org-latex-listings-options nil)
|
||||
(setq org-latex-src-block-backend 'listings)
|
||||
(setq org-latex-inputenc-alist '((\"utf8\" . \"utf8x\")))
|
||||
(setq org-latex-hyperref-template
|
||||
"\\hypersetup{
|
||||
pdfstartview={FitV},
|
||||
pdfview={FitV},
|
||||
pdfpagemode={UseOutlines},
|
||||
bookmarksopen=true,
|
||||
bookmarksnumbered=true,
|
||||
hidelinks,
|
||||
linkcolor=darkgray,
|
||||
filecolor=darkgray,
|
||||
urlcolor=darkgray,
|
||||
citecolor=darkgray,
|
||||
pdfauthor={%a},
|
||||
pdftitle={%t},
|
||||
pdfkeywords={%k},
|
||||
pdfsubject={%d},
|
||||
pdfcreator={%c},
|
||||
pdflang={%L}}\n")
|
||||
(setq org-latex-classes nil)
|
||||
(add-to-list 'org-latex-classes
|
||||
;; ~/.emacs.d/texmf/tex/latex/mycustomstyles/
|
||||
|
|
Loading…
Add table
Reference in a new issue