From 478d276f0be612cb7d33d0bb22ae3fc3acc97c9c Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Fri, 24 Dec 2021 00:33:57 +0100 Subject: Final version? --- tex/docstyle.sty | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) (limited to 'tex') diff --git a/tex/docstyle.sty b/tex/docstyle.sty index 9575db9..f5db50e 100644 --- a/tex/docstyle.sty +++ b/tex/docstyle.sty @@ -8,7 +8,7 @@ \ProcessOptions\relax % line stretc -\renewcommand{\baselinestretch}{1.25} +\renewcommand{\baselinestretch}{1.2} %% Page Margins (done with KOMA) \PassOptionsToPackage{geometry}{ @@ -130,7 +130,7 @@ \lstset{style=minimalist, escapechar=`} %% Change style of headings etc. -\RedeclareSectionCommand[beforeskip=0pt,afterskip=3\baselineskip]{chapter} +\RedeclareSectionCommand[beforeskip=0pt,afterskip=2\baselineskip]{chapter} \renewcommand*{\chapterformat}{% \chapappifchapterprefix{\nobreakspace} {% @@ -141,4 +141,28 @@ \normalfont\enskip } +\RedeclareSectionCommand[beforeskip=0pt]{paragraph} + +% Set up mdframes +\PassOptionsToPackage{framemethod = tikz}{mdframed} +\RequirePackage{mdframed} +\mdfsetup{% + linecolor = black, + linewidth = 2pt, + % + frametitlefont = {\bfseries\sffamily\color{white}}, + frametitlebackgroundcolor = black, + frametitlerule = true, + middlelinewidth = 2pt, + % + outermargin = 5mm, + innermargin = 5mm, + innertopmargin = 2mm, + innerbottommargin = 8mm, + skipabove = 1cm, + % minimum height + needspace = 6cm, +} + % vim: set ts=2 sw=2 noet: + -- cgit v1.2.1