From 385cc92bc91e1a6c3724085c060e76bf40c13ed3 Mon Sep 17 00:00:00 2001
From: Rasmus Dahlberg <rasmus@rgdd.se>
Date: Tue, 15 Oct 2024 16:08:16 +0200
Subject: Import PhD thesis

---
 summary/kauparts.sty | 109 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 109 insertions(+)
 create mode 100644 summary/kauparts.sty

(limited to 'summary/kauparts.sty')

diff --git a/summary/kauparts.sty b/summary/kauparts.sty
new file mode 100644
index 0000000..5252ba6
--- /dev/null
+++ b/summary/kauparts.sty
@@ -0,0 +1,109 @@
+%%
+%% This is file `kauparts.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% kautools.dtx  (with options: `parts')
+%% 
+%% This is a generated file.
+%% 
+%% Copyright (c) 2011-2014 Stefan Berthold <stefan.berthold@kau.se>
+%% 
+%% This file is part of the kauthesis bundle.
+%% 
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%%   http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%% 
+%% This work has the LPPL maintenance status `author-maintained'.
+%% 
+%% The Current Maintainer and author of this work is Stefan Berthold.
+%% 
+%% This work consists of all files listed in manifest.txt.
+%% 
+%% kautools.dtx
+%% Copyright (c) 2011-2015 Stefan Berthold <stefan.berthold@kau.se>
+\NeedsTeXFormat{LaTeX2e}[1999/12/01]
+\ProvidesPackage{kauparts}
+    [2014/10/22 v1.15 Karlstad University kautools bundle]
+\RequirePackage{xkeyval}
+
+\define@cmdkeys[kup]{pkg}[kup@]{vshift,vstep}
+\setkeys[kup]{pkg}{vshift=2,vstep=0.8}
+
+\ProcessOptionsX[kup]<pkg>
+
+\RequirePackage{calc}
+\RequirePackage{ifthen}
+\RequirePackage{suffix}
+\RequirePackage{tikz}
+\usetikzlibrary{positioning}
+
+\define@cmdkeys[kup]{part}[kup@]{body,label}
+\define@boolkeys[kup]{part}[kup@]{tocentry}
+
+\newcounter{kup@part}
+\newcounter{kup@vertical}
+\setcounter{kup@vertical}{0}
+
+\newcommand*\@titlepagestyle{empty}
+\newcommand\titlepagestyle[1]{\renewcommand*\@titlepagestyle{#1}}
+
+\newcommand\kup@partheadline[2]{%
+  \path[node distance=1ex] (current page.north east) +(3pt,\kup@vshift+\kup@vstep*\arabic{kup@vertical}) %
+    node%
+      [ anchor=north east%
+      , minimum width=2cm+3pt%
+      %, minimum height=7mm%
+      %, draw=black%
+      %, fill=black%
+      , left color=white%
+      , right color=black%
+      , text=white%
+      , font=\LARGE\bfseries%
+      ] (bar) {#1}%
+    node[base left=of bar,font=\LARGE\bfseries] {#2};%
+}
+\newcommand\kaupart[2][]{%
+  \cleardoublepage%
+  \thispagestyle{\@titlepagestyle}%
+  \stepcounter{kup@part}%
+  \setkeys[kup]{part}{body=\relax,label=,tocentry=true,#1}%
+  \providecommand\phantomsection{}%
+  \phantomsection%
+  \ifkup@tocentry%
+    \addcontentsline{toc}{part}{\numberline{\Roman{kup@part}}\textsc{#2}}%
+  \fi%
+  \renewcommand\@currentlabel{\Roman{kup@part}}%
+  \ifthenelse{\equal{\kup@label}{}}{}{\label{\kup@label}}%
+  \begin{tikzpicture}[remember picture,overlay,yscale=-1]%
+    \kup@partheadline{\Roman{kup@part}}{#2}%
+  \end{tikzpicture}%
+  \kup@body
+  \stepcounter{kup@vertical}%
+  \cleardoublepage%
+}
+\WithSuffix\newcommand\kaupart*[2][]{%
+  \cleardoublepage%
+  \thispagestyle{\@titlepagestyle}%
+  \setkeys[kup]{part}{body=\relax,tocentry=true,#1}%
+  \providecommand\phantomsection{}%
+  \phantomsection%
+  \ifkup@tocentry%
+    \addcontentsline{toc}{part}{\textsc{#2}}%
+  \fi%
+  \begin{tikzpicture}[remember picture,overlay,yscale=-1]%
+    \kup@partheadline{\vphantom{X}}{#2}%
+  \end{tikzpicture}%
+  \kup@body
+  \stepcounter{kup@vertical}%
+  \cleardoublepage%
+}
+\endinput
+%%
+%% End of file `kauparts.sty'.
-- 
cgit v1.2.3

