Update org settings

This commit is contained in:
Marcus Kammer 2025-01-07 14:49:24 +01:00
parent da00611ccf
commit 14beefc5a5
Signed by: marcuskammer
GPG key ID: C374817BE285268F

24
init.el
View file

@ -1702,19 +1702,19 @@ Uses `mk/hyperspec-dir-locations' to find the directory."
(org-agenda-custom-commands
'(("p" "Projects"
((tags "PROJECT")))))
;; LATEX
(org-latex-packages-alist nil)
;; Define the process to convert Org to PDF using XeLaTeX
(org-latex-pdf-process '("latexmk -lualatex -shell-escape -quiet -f %f"))
;; Set the compiler to XeLaTeX
(org-latex-compiler "lualatex")
(org-latex-tables-booktabs t)
(org-latex-images-centered t)
;; Enable listings and other table-related features
(org-latex-prefer-user-labels t)
(org-latex-toc-command "\\tableofcontents\n\\listoffigures")
(org-latex-listings nil)
(org-latex-src-block-backend 'listings)
;; Customize the appearance of listings (source code blocks)
(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")
(org-plantuml-args `("-headless" "-charset" "UTF-8" "-config" ,(expand-file-name "~/.emacs.d/plantuml/plantuml.config")))
@ -1756,17 +1756,17 @@ 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-classes nil)
(add-to-list 'org-latex-classes
;; ~/.emacs.d/texmf/tex/latex/mycustomstyles/
'("koma-general"
"\\documentclass[a4paper,11pt,captions=tableheading,twoside=false]{scrartcl}
% ~/.emacs.d/texmf/tex/latex/mycustomstyles/
"\\documentclass[11pt]{scrartcl}
\\usepackage{komageneral}"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
(setq org-latex-default-class "koma-general"))
(setq org-html-protect-char-alist
@ -1817,13 +1817,9 @@ Uses `mk/hyperspec-dir-locations' to find the directory."
:custom
(org-roam-completion-everywhere nil)
(org-roam-dailies-capture-templates
'(("d" "default" entry "* %<%R> %?"
:if-new (file+head "%<%F>.org" "#+title: %<%F>\n"))))
'(("d" "default" entry "* %<%R> %?" :if-new (file+head "%<%F>.org" "#+title: %<%F>\n"))))
(org-roam-capture-templates
'(("d" "default" plain
"%?"
:if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n")
:unnarrowed t))))
'(("d" "default" plain "%?" :if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n") :unnarrowed t))))
(use-package org-roam-ui
:after org-roam