Update komageneral
This commit is contained in:
parent
0548484e6f
commit
a372ff0da6
2 changed files with 34 additions and 21 deletions
|
@ -8,15 +8,15 @@
|
|||
(TeX-add-to-alist 'LaTeX-provided-package-options
|
||||
'(("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 "href")
|
||||
(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-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-delims-local "lstinline")
|
||||
(TeX-run-style-hooks
|
||||
"fontspec"
|
||||
"geometry"
|
||||
|
|
|
@ -29,6 +29,14 @@
|
|||
\usepackage[a-1a]{pdfx}
|
||||
\usepackage{listings}
|
||||
|
||||
\KOMAoptions{
|
||||
captions=tableheading,
|
||||
twoside=true,
|
||||
toc=listof,
|
||||
titlepage=false,
|
||||
headings=normal
|
||||
}
|
||||
|
||||
\definecolor{darkgray}{RGB}{64,64,64}
|
||||
\definecolor{lightgray}{RGB}{200,200,200}
|
||||
|
||||
|
@ -37,8 +45,6 @@
|
|||
|
||||
\adjustboxset{max size={\textwidth}{0.6\textheight}}
|
||||
|
||||
\KOMAoptions{toc=listof}
|
||||
|
||||
% Font settings
|
||||
\defaultfontfeatures{RawFeature={+zero, +liga}}
|
||||
\setmainfont{Noto Serif}[
|
||||
|
@ -81,14 +87,15 @@
|
|||
marginparwidth=1.5cm
|
||||
}
|
||||
|
||||
|
||||
% % Header and footer settings with scrlayer-scrpage
|
||||
\pagestyle{scrheadings}
|
||||
\clearpairofpagestyles
|
||||
\automark[subsection]{section} % \automark[<right_level>]{<left_level>}
|
||||
\ihead{\pagemark}
|
||||
\chead{\Ifthispageodd{}{\@author}}
|
||||
\ohead{\Ifthispageodd{\leftmark}{\@title}}
|
||||
\ohead{\pagemark}
|
||||
\ihead{\leftmark}
|
||||
% \ihead{\pagemark}
|
||||
% \chead{\Ifthispageodd{}{\@author}}
|
||||
% \ohead{\Ifthispageodd{\leftmark}{\@title}}
|
||||
\setkomafont{pageheadfoot}{\normalfont}
|
||||
\setkomafont{pagehead}{\normalfont}
|
||||
|
||||
|
@ -97,13 +104,16 @@
|
|||
|
||||
% Section formatting with KOMA-Script features
|
||||
\setkomafont{section}{\LARGE\bfseries\sffamily\color{darkgray}}
|
||||
\setkomafont{subsection}{\large\bfseries\sffamily\color{darkgray}}
|
||||
\setkomafont{subsubsection}{\normalsize\bfseries\sffamily\color{darkgray}}
|
||||
\setkomafont{subsection}{\Large\bfseries\sffamily\color{darkgray}}
|
||||
\setkomafont{subsubsection}{\large\bfseries\sffamily\color{darkgray}}
|
||||
|
||||
% \setkomafont{section}{\fontsize{14pt}{17pt}\selectfont\bfseries\sffamily\color{darkgray}}
|
||||
% \setkomafont{subsection}{\fontsize{12pt}{14pt}\selectfont\bfseries\sffamily\color{darkgray}}
|
||||
|
||||
% Define the spacing between title and content
|
||||
\RedeclareSectionCommand[beforeskip=\baselineskip, afterskip=0.5\baselineskip]{section}
|
||||
\RedeclareSectionCommand[beforeskip=\baselineskip, afterskip=0.5\baselineskip]{subsection}
|
||||
\RedeclareSectionCommand[beforeskip=\baselineskip, afterskip=0.5\baselineskip]{subsubsection}
|
||||
\RedeclareSectionCommand[beforeskip=\baselineskip, afterskip=0.2\baselineskip]{section}
|
||||
\RedeclareSectionCommand[beforeskip=\baselineskip, afterskip=0.3\baselineskip]{subsection}
|
||||
\RedeclareSectionCommand[beforeskip=\baselineskip, afterskip=0.4\baselineskip]{subsubsection}
|
||||
|
||||
% Define the spacing between section number and title
|
||||
\renewcommand{\sectionformat}{\thesection\hspace{0.5em}}
|
||||
|
@ -172,9 +182,6 @@
|
|||
numbersep=3pt
|
||||
}
|
||||
|
||||
% Set description items to italic
|
||||
\setlist[description]{font=\normalfont\itshape}
|
||||
|
||||
% Enhance your hyperref setup
|
||||
\hypersetup{
|
||||
colorlinks=true,
|
||||
|
@ -196,3 +203,9 @@
|
|||
\let\oldtabular\tabular
|
||||
\let\endoldtabular\endtabular
|
||||
\renewenvironment{tabular}{\rowcolors{2}{white}{lightgray}\oldtabular}{\endoldtabular}
|
||||
|
||||
% Set consistent spacing for all list types
|
||||
% \setlist{nosep} % Removes vertical spacing
|
||||
\setlist[description]{topsep=3pt, partopsep=0pt, parsep=0pt, itemsep=2pt, font=\normalfont\itshape}
|
||||
\setlist[itemize]{topsep=3pt, partopsep=0pt, parsep=0pt, itemsep=2pt}
|
||||
\setlist[enumerate]{topsep=3pt, partopsep=0pt, parsep=0pt, itemsep=2pt}
|
||||
|
|
Loading…
Add table
Reference in a new issue