Update komageneral styles
This commit is contained in:
parent
cc9d279f0b
commit
ae21b733e5
3 changed files with 32 additions and 11 deletions
6
init.el
6
init.el
|
@ -1709,15 +1709,13 @@ Uses `mk/hyperspec-dir-locations' to find the directory."
|
||||||
(with-eval-after-load 'ox-latex
|
(with-eval-after-load 'ox-latex
|
||||||
(add-to-list 'org-latex-classes
|
(add-to-list 'org-latex-classes
|
||||||
'("koma-general"
|
'("koma-general"
|
||||||
"\\documentclass[a4paper,10pt,captions=tableheading,twoside=false]{scrartcl}
|
"% ~/.emacs.d/texmf/tex/latex/mycustomstyles/
|
||||||
% ~/.emacs.d/texmf/tex/latex/mycustomstyles/
|
\\usepackage{komageneral}"
|
||||||
\\usepackage{komageneral}"
|
|
||||||
("\\section{%s}" . "\\section*{%s}")
|
("\\section{%s}" . "\\section*{%s}")
|
||||||
("\\subsection{%s}" . "\\subsection*{%s}")
|
("\\subsection{%s}" . "\\subsection*{%s}")
|
||||||
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
|
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
|
||||||
("\\paragraph{%s}" . "\\paragraph*{%s}")
|
("\\paragraph{%s}" . "\\paragraph*{%s}")
|
||||||
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
|
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
|
||||||
|
|
||||||
(setq org-latex-default-class "koma-general"))
|
(setq org-latex-default-class "koma-general"))
|
||||||
|
|
||||||
(setq org-html-protect-char-alist
|
(setq org-html-protect-char-alist
|
||||||
|
|
|
@ -1,13 +1,18 @@
|
||||||
;; -*- lexical-binding: t; -*-
|
|
||||||
|
|
||||||
(TeX-add-style-hook
|
(TeX-add-style-hook
|
||||||
"komageneral"
|
"komageneral"
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(setq TeX-command-extra-options
|
(setq TeX-command-extra-options
|
||||||
"-shell-escape")
|
"-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
|
(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
|
(TeX-run-style-hooks
|
||||||
|
"latex2e"
|
||||||
"fontspec"
|
"fontspec"
|
||||||
"geometry"
|
"geometry"
|
||||||
"scrlayer-scrpage"
|
"scrlayer-scrpage"
|
||||||
|
@ -17,13 +22,29 @@
|
||||||
"fancyhdr"
|
"fancyhdr"
|
||||||
"microtype"
|
"microtype"
|
||||||
"biblatex"
|
"biblatex"
|
||||||
|
"float"
|
||||||
|
"xcolor"
|
||||||
|
"listings"
|
||||||
|
"longtable"
|
||||||
|
"wrapfig"
|
||||||
|
"rotating"
|
||||||
|
"ulem"
|
||||||
|
"amsmath"
|
||||||
|
"amssymb"
|
||||||
|
"capt-of"
|
||||||
|
"hyperref"
|
||||||
|
"booktabs"
|
||||||
|
"polyglossia"
|
||||||
|
"grffile"
|
||||||
|
"unicode-math"
|
||||||
|
"adjustbox"
|
||||||
"graphicx"
|
"graphicx"
|
||||||
|
"scrartcl"
|
||||||
|
"scrartcl10"
|
||||||
"etoolbox")
|
"etoolbox")
|
||||||
(TeX-add-symbols
|
(TeX-add-symbols
|
||||||
'("TitlePage" 2)
|
'("TitlePage" 3)
|
||||||
'("code" 1)
|
'("code" 1)
|
||||||
'("important" 1))
|
'("important" 1)))
|
||||||
(LaTeX-add-bibliographies
|
|
||||||
"yourbibliography"))
|
|
||||||
:latex)
|
:latex)
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,8 @@
|
||||||
\usepackage{graphicx} % Added for including images
|
\usepackage{graphicx} % Added for including images
|
||||||
% \addbibresource{yourbibliography.bib}
|
% \addbibresource{yourbibliography.bib}
|
||||||
|
|
||||||
|
\documentclass[a4paper,10pt,captions=tableheading,twoside=false]{scrartcl}
|
||||||
|
|
||||||
\setdefaultlanguage{english}
|
\setdefaultlanguage{english}
|
||||||
\setotherlanguages{german}
|
\setotherlanguages{german}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue