summaryrefslogtreecommitdiffstats
path: root/tex
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tex/docstyle.sty28
1 files changed, 26 insertions, 2 deletions
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:
+