summaryrefslogtreecommitdiff
path: root/thesis.sty
blob: 8526f2a137cd64e6e2f79a74fe6cc83a1f9dfda7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{thesis}[2013/01/15 HSW EuI Thesis-Style]
\RequirePackageWithOptions{docbook}

\usepackage[doublespacing]{setspace}
\setlength{\textwidth}{17.5cm}

\usepackage{listings}
\lstset{
  basicstyle=\singlespacing
}

\let\oldtableofcontents\tableofcontents
\def\tableofcontents{
\begin{singlespacing}
	\oldtableofcontents
\end{singlespacing}
}

\let\olditemize\itemize
\renewcommand\itemize{
\olditemize
\setlength{\itemsep}{1pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}
}

% Start with every section on a new page.
\let\oldsection\section
\def\section{
\newpage
\oldsection
}

\def\DBKcover{
%\ifthenelse{\equal{\DBKedition}{}}{\def\edhead{}}{\def\edhead{Ed. \DBKedition}}

% interligne double
\setlength{\oldbaselineskip}{\baselineskip}
\setlength{\baselineskip}{2\oldbaselineskip}
\textsf{
\vfill
\vspace{2.5cm}
\begin{center}
  \huge{\textbf{\DBKtitle}}\\ %
  \ifx\DBKsubtitle\relax\else%
    \underline{\ \ \ \ \ \ \ \ \ \ \ }\\ %
    \ \\ %
    \huge{\textbf{\DBKsubtitle}}\\ %
  \fi
  \underline{\ \ \ \ \ \ \ \ \ \ \ }\\ %
  \ \\ %
  \large{\textbf{\DBKauthor}}\\ %
\end{center}
\vfill
\setlength{\baselineskip}{\oldbaselineskip}
\hspace{1cm}
\vspace{1cm}
\begin{center}
%\begin{tabular}{p{7cm} p{7cm}}
%\Large{\DBKreference{} \edhead} & \\
%\end{tabular}
\begin{figure}[!h]
		\begin{minipage}{0.8\textwidth}
			\textbf{Hochschule Wismar} \\ %
			University of Applied Sciences \\ %
			Technology, Business and Design	\\ %
			Fakultät für Ingenieurwissenschaften, Bereich EuI \\ %
		%\rule{\textwidth}{0.5pt}
		\end{minipage}
		\begin{minipage}[r]{0.1\textwidth}
			\begin{flushright}
				\includegraphics[height=6\baselineskip]{image/HS-Wismar_Logo-FIW.pdf}
			\end{flushright}
		\end{minipage}
\end{figure}
\end{center}
}

% Format for the other pages
\newpage
\setlength{\baselineskip}{\oldbaselineskip}
%\chead[]{\DBKcheadfront}
\lfoot[]{}
}


%%% Following is a copy of asciidoc-dblatex.sty %%%

% Sidebar is a boxed minipage that can contain verbatim.
% Changed shadow box to double box.
\renewenvironment{sidebar}[1][0.95\textwidth]{
  \hspace{0mm}\newline%
  \noindent\begin{Sbox}\begin{minipage}{#1}%
  \setlength\parskip{\medskipamount}%
}{
  \end{minipage}\end{Sbox}\doublebox{\TheSbox}%
}

% For DocBook literallayout elements, see `./dblatex/dblatex-readme.txt`.
\usepackage{alltt}