emacs.d/bundle/bundle--latex.el

64 lines
2.1 KiB
EmacsLisp
Raw Normal View History

2023-06-09 08:37:40 +02:00
(require 'ox-latex)
(setq org-latex-packages-alist '(("" "listings")
("" "booktabs")
("AUTO" "polyglossia" t ("xelatex" "lualatex"))
("" "grffile")
("" "unicode-math")
("" "xcolor")))
(setq org-latex-pdf-process '("latexmk -xelatex -shell-escape -quiet -f %f"))
(setq org-latex-compiler "xelatex")
(setq org-latex-listings t)
(setq org-latex-tables-booktabs t)
2023-06-09 18:45:05 +02:00
(setq org-latex-images-centered t)
2023-06-09 08:37:40 +02:00
(setq org-latex-listings-options
'(("basicstyle" "\\ttfamily")
("showstringspaces" "false")
("keywordstyle" "\\color{blue}\\textbf")
("commentstyle" "\\color{gray}")
("stringstyle" "\\color{green!70!black}")
("stringstyle" "\\color{red}")
("frame" "single")
("numbers" "left")
("numberstyle" "\\ttfamily")
2023-06-09 08:37:40 +02:00
("columns" "fullflexible")))
(setq org-latex-inputenc-alist '((\"utf8\" . \"utf8x\")))
2021-10-17 10:29:25 +02:00
(with-eval-after-load 'ox-latex
(add-to-list 'org-latex-classes
2023-06-09 08:37:40 +02:00
'("koma-general"
2023-07-31 16:40:06 +02:00
"\\documentclass[a4paper,8pt,captions=tableheading]{scrartcl}
2023-06-09 08:37:40 +02:00
\\linespread{1.25}
\\usepackage{fontspec}
\\defaultfontfeatures{Mapping=tex-text, RawFeature={+zero}}
\\setmainfont{Noto Sans}[BoldFont=*-Medium,ItalicFont=*-Italic]
\\setsansfont{Noto Sans}[BoldFont=*-Medium,ItalicFont=*-Italic]
\\setmonofont{Noto Sans Mono}[BoldFont=*-Medium,Scale=0.8]
2023-07-31 16:40:06 +02:00
\\usepackage{geometry}
\\geometry{
a4paper,
left=1.2cm,
right=2.1cm,
top=1.6cm,
bottom=1.1cm
}
2023-06-09 08:37:40 +02:00
\\usepackage{fancyhdr}
\\pagestyle{fancy}
\\fancyhf{}
\\fancyhead[L]{\\leftmark} % Left header
\\fancyhead[R]{\\thepage} % Right header"
2021-10-17 10:29:25 +02:00
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))))
2023-06-09 08:37:40 +02:00
(setq org-latex-default-class "koma-general")
(eval-after-load 'ox '(require 'ox-koma-letter))