diff --git a/texmf/tex/latex/mycustomstyles/auto/komageneral.el b/texmf/tex/latex/mycustomstyles/auto/komageneral.el index 86e5195a..fb6c9dbe 100644 --- a/texmf/tex/latex/mycustomstyles/auto/komageneral.el +++ b/texmf/tex/latex/mycustomstyles/auto/komageneral.el @@ -6,17 +6,17 @@ (setq TeX-command-extra-options "-shell-escape") (TeX-add-to-alist 'LaTeX-provided-package-options - '(("fontspec" "") ("geometry" "") ("scrlayer-scrpage" "") ("enumitem" "") ("caption" "") ("microtype" "protrusion=true" "expansion=true" "final" "tracking=true" "kerning=true") ("polyglossia" "") ("biblatex" "") ("float" "") ("xcolor" "table") ("booktabs" "") ("grffile" "") ("unicode-math" "") ("adjustbox" "Export") ("graphicx" "") ("etoolbox" "") ("longtable" "") ("wrapfig" "") ("rotating" "") ("ulem" "normalem") ("amsmath" "") ("amssymb" "") ("capt-of" "") ("hyperref" "pdfusetitle") ("array" "") ("pdfx" "a-1a") ("listings" ""))) + '(("fontspec" "") ("geometry" "") ("scrlayer-scrpage" "autooneside=false") ("enumitem" "") ("caption" "") ("microtype" "protrusion=true" "expansion=true" "final" "tracking=true" "kerning=true") ("polyglossia" "") ("biblatex" "") ("float" "") ("xcolor" "table") ("booktabs" "") ("grffile" "") ("unicode-math" "") ("adjustbox" "Export") ("graphicx" "") ("etoolbox" "") ("longtable" "") ("wrapfig" "") ("rotating" "") ("ulem" "normalem") ("amsmath" "") ("amssymb" "") ("capt-of" "") ("hyperref" "pdfusetitle") ("array" "") ("pdfx" "a-1a") ("listings" ""))) (add-to-list 'LaTeX-verbatim-environments-local "lstlisting") - (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-braces-local "lstinline") - (add-to-list 'LaTeX-verbatim-macros-with-braces-local "nolinkurl") - (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperbaseurl") - (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperimage") (add-to-list 'LaTeX-verbatim-macros-with-braces-local "href") - (add-to-list 'LaTeX-verbatim-macros-with-delims-local "path") + (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperimage") + (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperbaseurl") + (add-to-list 'LaTeX-verbatim-macros-with-braces-local "nolinkurl") + (add-to-list 'LaTeX-verbatim-macros-with-braces-local "lstinline") + (add-to-list 'LaTeX-verbatim-macros-with-braces-local "url") + (add-to-list 'LaTeX-verbatim-macros-with-braces-local "path") (add-to-list 'LaTeX-verbatim-macros-with-delims-local "lstinline") + (add-to-list 'LaTeX-verbatim-macros-with-delims-local "path") (TeX-run-style-hooks "fontspec" "geometry" diff --git a/texmf/tex/latex/mycustomstyles/komageneral.sty b/texmf/tex/latex/mycustomstyles/komageneral.sty index f0bf07d5..da9f3a56 100644 --- a/texmf/tex/latex/mycustomstyles/komageneral.sty +++ b/texmf/tex/latex/mycustomstyles/komageneral.sty @@ -3,7 +3,7 @@ % Base packages \usepackage{fontspec} \usepackage{geometry} -\usepackage{scrlayer-scrpage} % Part of KOMA-Script bundle +\usepackage[autooneside=false]{scrlayer-scrpage} % Part of KOMA-Script bundle \usepackage{enumitem} \usepackage{caption} \usepackage[protrusion=true,expansion=true,final,tracking=true,kerning=true]{microtype} @@ -81,13 +81,14 @@ marginparwidth=1.5cm } -% Header and footer settings with scrlayer-scrpage + +% % Header and footer settings with scrlayer-scrpage \pagestyle{scrheadings} \clearpairofpagestyles -\automark[section]{section} % Automatically mark sections -\ihead{\@title} % Section title -% \ohead{\pagemark} -\cfoot{\thepage} +\automark[subsection]{section} % \automark[]{} +\ihead{\pagemark} +\chead{\Ifthispageodd{}{\@author}} +\ohead{\Ifthispageodd{\leftmark}{\@title}} \setkomafont{pageheadfoot}{\normalfont} \setkomafont{pagehead}{\normalfont}