aboutsummaryrefslogtreecommitdiff
path: root/summary/kaumasters.cls
blob: e76504b38dc16f948bc66418cc4392f0cc62a742 (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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
%%
%% This is file `kaumasters.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% kauthesis.dtx  (with options: `masters')
%% 
%% 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.
%% 
%% kauthesis.dtx
%% Copyright (c) 2011-2015 Stefan Berthold <stefan.berthold@kau.se>
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{kaumasters}
    [2014/12/04 v1.16 Karlstad University thesis layout]
\LoadClass{article}
\RequirePackage{kauclear}
\RequirePackage{kaumeta}
\RequirePackage{kaulist}
\RequirePackage{kaulanguage}
\newif\if@kaufont\@kaufontfalse
\DeclareOption{garamond}{\@kaufonttrue}
\ProcessOptions\relax
\if@kaufont
\RequirePackage{garamondx}
\RequirePackage[garamondx,cmbraces]{newtxmath}
\fi
\RequirePackage[paper=a4,pagesize,twoside=semi]{typearea}
\AtBeginDocument{%
  \setname{acknowledgementname}{Acknowledgements}{Tacks\"agelser}%
}
\AtBeginDocument{%
  \setname{keywordname}{Keywords}{Nyckelord}%
}
\AtBeginDocument{%
  \setname{approvalname}{Approved}{Godk\"and}%
}
\AtBeginDocument{%
  \setname{examinationname}{Master's degree}{magisterexamen}%
}
\AtBeginDocument{%
  \setname{approvaltext}%
    {This thesis is submitted in partial fulfillment of the %
      requirements for the \examinationname{} in Computer Science. %
      All material in this thesis which is not my own work has been %
      identified and no material is included for which a degree has %
      previously been conferred.}%
    {Denna uppsats \"ar skriven som en del av det arbete som kr\"avs %
      f\"or att erh\aa lla en \examinationname{} i datavetenskap. Allt %
      material i denna rapport, vilket inte \"ar mitt eget, har blivit %
      tydligt identifierat och inget material \"ar inkluderat som %
      tidigare anv\"ants f\"or erh\aa llande av annan examen.}%
}
\AtBeginDocument{%
  \setname{supervisorname}{Supervisor}{Handledare}%
}
\AtBeginDocument{%
  \setname{examinername}{Examiner}{Examinator}%
}
\let\kauths@maketitle\maketitle
\renewcommand\maketitle{%
  \PackageWarning{maketitle does not serve any purpose in this class.
    The abstract environment reproduces the title instead.}%
}
\let\kauths@abstract\abstract%
\let\kauths@endabstract\endabstract%
\newcommand*\frontmatter{%
  \clearpage%
  \setcounter{page}{3}%
  \renewcommand\thepage{\roman{page}}%
  \renewenvironment{abstract}{%
    \newcommand\keywords{\paragraph{\keywordname:}}%
    \newenvironment{english}{%
      \renewcommand\keywords{\paragraph{Keywords:}}%
      \section*{Abstract}%
    }{%
    }
    \cleardoublepage%
    \section*{\@title}%
    \textsc{\prettylist{\@author}}\par%
    \noindent\textit{\@institute}%
    \section*{\abstractname}%
  }{%
    \cleardoublepage%
  }%
}
\newcommand\approvalpage{%
  \cleardoublepage%
  \newcommand\sig{\makebox[7cm]{\hrulefill}\\}%
  \newcommand\signer[1]{\begin{quote}\sig ##1\end{quote}\mbox{}}%
  \noindent\approvaltext\\\mbox{}\bigskip%
  \foreach \x in \@author {\signer{\x}}%
  \\\mbox{}\bigskip\\\mbox{}\bigskip%
  \approvalname,\\\mbox{}\bigskip%
  \begin{quote}%
    \sig\supervisorname: \@supervisor\\\mbox{}\bigskip\\%
    \sig\examinername: \@examiner
  \end{quote}%
}
\newenvironment{acknowledgements}{%
  \cleardoublepage%
  \section*{\acknowledgementname}%
}{%
  \par\bigskip\bigskip\bigskip\noindent\@place, \@date\hfill \prettylist{\@author}%
  \cleardoublepage%
}
\let\kauths@tableofcontents\tableofcontents
\renewcommand\tableofcontents{%
  \cleardoublepage%
  \kauths@tableofcontents%
}
\newcommand\mainmatter[1][]{%
  \cleardoublepage%
  \renewenvironment{abstract}{\kauths@abstract}{\kauths@endabstract}%
  \setcounter{page}{1}%
  \pagenumbering{arabic}%
}
\endinput
%%
%% End of file `kaumasters.cls'.