Update komageneral styles

This commit is contained in:
Marcus Kammer 2024-10-31 19:34:37 +01:00
parent cc9d279f0b
commit ae21b733e5
Signed by: marcuskammer
GPG key ID: C374817BE285268F
3 changed files with 32 additions and 11 deletions

View file

@ -1709,15 +1709,13 @@ Uses `mk/hyperspec-dir-locations' to find the directory."
(with-eval-after-load 'ox-latex
(add-to-list 'org-latex-classes
'("koma-general"
"\\documentclass[a4paper,10pt,captions=tableheading,twoside=false]{scrartcl}
% ~/.emacs.d/texmf/tex/latex/mycustomstyles/
\\usepackage{komageneral}"
"% ~/.emacs.d/texmf/tex/latex/mycustomstyles/
\\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

View file

@ -1,13 +1,18 @@
;; -*- lexical-binding: t; -*-
(TeX-add-style-hook
"komageneral"
(lambda ()
(setq TeX-command-extra-options
"-shell-escape")
(TeX-add-to-alist 'LaTeX-provided-class-options
'(("scrartcl" "a4paper" "10pt" "captions=tableheading" "twoside=false")))
(TeX-add-to-alist 'LaTeX-provided-package-options
'(("fontspec" "") ("geometry" "") ("scrlayer-scrpage" "") ("titlesec" "") ("enumitem" "") ("caption" "") ("fancyhdr" "") ("microtype" "") ("biblatex" "") ("graphicx" "") ("etoolbox" "")))
'(("microtype" "expansion" "protrusion=true") ("ulem" "normalem") ("adjustbox" "Export")))
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "path")
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "url")
(add-to-list 'LaTeX-verbatim-macros-with-delims-local "path")
(add-to-list 'LaTeX-verbatim-macros-with-delims-local "url")
(TeX-run-style-hooks
"latex2e"
"fontspec"
"geometry"
"scrlayer-scrpage"
@ -17,13 +22,29 @@
"fancyhdr"
"microtype"
"biblatex"
"float"
"xcolor"
"listings"
"longtable"
"wrapfig"
"rotating"
"ulem"
"amsmath"
"amssymb"
"capt-of"
"hyperref"
"booktabs"
"polyglossia"
"grffile"
"unicode-math"
"adjustbox"
"graphicx"
"scrartcl"
"scrartcl10"
"etoolbox")
(TeX-add-symbols
'("TitlePage" 2)
'("TitlePage" 3)
'("code" 1)
'("important" 1))
(LaTeX-add-bibliographies
"yourbibliography"))
'("important" 1)))
:latex)

View file

@ -29,6 +29,8 @@
\usepackage{graphicx} % Added for including images
% \addbibresource{yourbibliography.bib}
\documentclass[a4paper,10pt,captions=tableheading,twoside=false]{scrartcl}
\setdefaultlanguage{english}
\setotherlanguages{german}