Skip to content

Commit 4d8ed47

Browse files
committed
initial commit
0 parents  commit 4d8ed47

File tree

9 files changed

+2898
-0
lines changed

9 files changed

+2898
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.log
2+
*.aux
3+
*.log
4+
*.toc

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#LaTeX document class for bachelor and master theses written at the Institute for Web Science and Technologies
2+
The document class "WeSTthesis.cls" is based on "cgBA.cls" which was provided by the [Research Group Mueller](http://www.uni-koblenz-landau.de/koblenz/fb4/institute/icv/agmueller). It is oriented at the style guides provided by the examination board of the [Faculty of Computer Science](http://www.uni-koblenz-landau.de/campus-koblenz/fb4) at the [University of Koblenz-Landau](http://www.uni-koblenz-landau.de/). The document class provides a cover sheet template, a statement on source usage and publication, and some basic text formatting. The file [example.tex](example.tex) contains some of the most important LaTeX packages for writing a bachelor or master thesis.
3+
4+
#Usage
5+
The following command is used to include the document class in the .tex document.
6+
7+
\documentclass[<options>]{WeSTthesis}
8+
9+
The following options are supported:
10+
11+
- f|m|fm - gender used in the title: female, male, or both (required)
12+
- bachelor|master - bachelor or master thesis (required)
13+
- group - prints two statements after the cover page (optional)
14+
- times|palatino - used font (only one can be applied at the same time, the default font is "Computer Modern") (optional)
15+
- twoside - layout for two-sided print (optional)
16+
- binding - adds 8mm on the left/right side for binding (optional)
17+
- frames - prints additional frames to check the document layout (optional)
18+
19+
If the option `twoside` is activated, there are blank pages inserted after the cover page and its following statement(s).
20+
21+
The following commands are used to format the cover sheet template. They are used before `\begin{document}`.
22+
23+
\title{thesis title}
24+
\author{author(s) name(s)}
25+
26+
\degreecourse{degree course}
27+
28+
\firstreviewer{Name of the first reviewer (incl. academic title)}
29+
\firstreviewerinfo{institute/research group}
30+
31+
\secondreviewer{Name of the second reviewer (incl. academic title)}
32+
\secondreveiwerinfo{insititute/research group or external institution}
33+
34+
The following commands are used after the `\begin{document}` statement.
35+
36+
\maketitle % prints the cover page and a statement about used sources and publication
37+
38+
\selectlanguage{english} % optional: change document language from ngerman to english
39+
40+
\varclearpage % \cleardoublepage if twoside is set and \clearpage if not (useful for switching between two-side and single-side)
41+
42+
#Example
43+
For an example see [example.tex](example.tex). The output should look like [example.pdf](example.pdf).
44+

WeSTthesis.cls

Lines changed: 246 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,246 @@
1+
%*******************************************************************************
2+
% WeSTthesis.cls
3+
%
4+
% LaTeX document class for bachelor and master theses written at the Institute
5+
% for Web Science and Technologies.
6+
%
7+
% (C) 2013 Institute for Web Science and Technologies <west@uni-koblenz.de>
8+
% University of Koblenz-Landau, Campus Koblenz
9+
%
10+
% Special thanks to Prof. Stefan Mueller for allowing the adaptation of
11+
% cgBA.cls.
12+
%
13+
% 2013/05/15 v0.1 Martin Koerner<info@mkoerner.de> initial version
14+
%*******************************************************************************
15+
16+
17+
%--- Identification ------------------------------------------------------------
18+
19+
\NeedsTeXFormat{LaTeX2e}
20+
\ProvidesClass{WeSTthesis}[2013/05/15 v0.1 Document class for bachelor and master theses written at the Institute for Web Science and Technologies, University of Koblenz-Landau, Campus Koblenz.]
21+
22+
23+
%--- Declaration of variables --------------------------------------------------
24+
25+
\newif\iffemalemale
26+
\newif\iffemale
27+
\newif\ifmale
28+
29+
\newif\ifgroup
30+
31+
\newif\ifbachelor
32+
\newif\ifmaster
33+
34+
\newif\iftimes
35+
\newif\ifpalatino
36+
37+
\newif\iftwoside
38+
39+
\newif\ifbinding
40+
41+
\newif\ifframes
42+
43+
44+
%--- Initialization of variables -----------------------------------------------
45+
46+
\DeclareOption{fm}{\femalemaletrue}
47+
\DeclareOption{f}{\femaletrue}
48+
\DeclareOption{m}{\maletrue}
49+
50+
\DeclareOption{group}{\grouptrue}
51+
52+
\DeclareOption{bachelor}{\bachelortrue}
53+
\DeclareOption{master}{\mastertrue}
54+
55+
\DeclareOption{times}{\timestrue}
56+
\DeclareOption{palatino}{\palatinotrue}
57+
58+
\DeclareOption{twoside}{\twosidetrue\PassOptionsToClass{twoside}{article}}
59+
60+
\DeclareOption{binding}{\bindingtrue}
61+
62+
\DeclareOption{frames}{\framestrue}
63+
64+
65+
%--- Execution of options ------------------------------------------------------
66+
67+
68+
\ProcessOptions
69+
70+
%--- Loading of packages -------------------------------------------------------
71+
72+
\LoadClass[a4paper,11pt,titlepage]{article}
73+
% Default: Computer Modern (TeX-Standard)
74+
\iftimes
75+
\RequirePackage{times} % font type Times New Roman
76+
\fi
77+
\ifpalatino
78+
\RequirePackage{palatino} % font type Book Antiqua/Palatino
79+
\fi
80+
81+
\ifbinding
82+
% twoside does not include a binding offset itself
83+
\ifframes
84+
% showframe option for testing the layout
85+
\RequirePackage[bindingoffset=8mm,showframe]{geometry}
86+
\else
87+
\RequirePackage[bindingoffset=8mm]{geometry}
88+
\fi
89+
\else
90+
\ifframes
91+
% showframe option for testing the layout
92+
\RequirePackage[showframe]{geometry}
93+
\else
94+
\RequirePackage[]{geometry}
95+
\fi
96+
\fi
97+
98+
99+
%--- Code ----------------------------------------------------------------------
100+
101+
\iftwoside
102+
\newcommand{\varclearpage}{\cleardoublepage}
103+
\else
104+
\newcommand{\varclearpage}{\clearpage}
105+
\fi
106+
107+
\newcommand{\degreecourse}[1]{\def\degreecourse{#1}}
108+
109+
\newcommand{\firstreviewer}[1]{\def\firstreviewer{#1}}
110+
\newcommand{\firstreviewerinfo}[1]{\def\firstreviewerinfo{#1}}
111+
112+
\newcommand{\secondreviewer}[1]{\def\secondreviewer{#1}}
113+
\newcommand{\secondreviewerinfo}[1]{\def\secondreviewerinfo{#1}}
114+
115+
\newcommand{\monthword}{\ifcase\month
116+
\or Januar\or Februar\or M\"arz\or April\or Mai\or Juni\or Juli
117+
\or August\or September\or Oktober\or November\or Dezember\fi
118+
}
119+
120+
% redefine \maketitle
121+
\renewcommand{\maketitle}{
122+
\begin{titlepage}
123+
\begin{center}
124+
\renewcommand{\arraystretch}{.8}
125+
\begin{tabular}{c p{2.25cm} c}
126+
\includegraphics[height=.9cm]{logos/uni-logo-color}
127+
&
128+
{} %empty space between logos
129+
&
130+
\includegraphics[height=.9cm]{logos/institute-logo-color}
131+
\\
132+
\hspace{.71cm}
133+
\begin{footnotesize}
134+
Fachbereich 4: Informatik
135+
\end{footnotesize}
136+
&
137+
{} %empty space between logos
138+
&
139+
\begin{footnotesize}
140+
Institute for Web Science
141+
\end{footnotesize}
142+
\\
143+
&
144+
{} %empty space between logos
145+
&
146+
\begin{footnotesize}
147+
and Technologies
148+
\end{footnotesize}
149+
\end{tabular}\\
150+
\renewcommand{\arraystretch}{1.0} %reset arraystretch to default
151+
\vspace*{1.75cm}
152+
\begin{huge}
153+
\textbf{\@title}\\[1.75cm]
154+
\ifbachelor
155+
Bachelorarbeit\\[.2cm]
156+
\else
157+
\ifmaster
158+
Masterarbeit\\[.2cm]
159+
\else
160+
>>SET GRADE (bachelor or master) IN DOCUMENTCLASS OPTIONS<<
161+
\fi
162+
\fi
163+
\end{huge}
164+
zur Erlangung des Grades
165+
\iffemalemale
166+
einer/eines
167+
\else
168+
\iffemale
169+
einer
170+
\else
171+
\ifmale
172+
eines
173+
\else
174+
>>SET GENDER (fm, f, or m) IN DOCUMENTCLASS OPTIONS<<
175+
\fi
176+
\fi
177+
\fi
178+
\ifbachelor
179+
Bachelor of Science (B.Sc.)\\
180+
\else
181+
\ifmaster
182+
Master of Science (M.Sc.)\\
183+
\else
184+
>>SET GRADE (bachelor or master) IN DOCUMENTCLASS OPTIONS<<
185+
\fi
186+
\fi
187+
im Studiengang \degreecourse\\[.75cm]
188+
\begin{large}
189+
vorgelegt von\\
190+
\end{large}
191+
\begin{Large}
192+
\@author\\[4cm]
193+
\end{Large}
194+
\end{center}
195+
\begin{tabular}{ll}
196+
Erstgutachter: & \firstreviewer\\
197+
{} & \firstreviewerinfo\\[2.5mm]
198+
Zweitgutachter: & \secondreviewer\\
199+
{} & \secondreviewerinfo\\[2cm]
200+
\multicolumn{2}{l}{Koblenz, im\ \monthword\ \the\year}\\
201+
\end{tabular}
202+
\end{titlepage}
203+
\iftwoside
204+
\begin{titlepage}
205+
\null\clearpage
206+
\end{titlepage}
207+
\fi
208+
\newcount\authornumber
209+
\ifgroup
210+
\authornumber=2
211+
\else
212+
\authornumber=1
213+
\fi
214+
\begin{titlepage}
215+
\begin{flushleft}
216+
\loop\ifnum\authornumber>0
217+
\begin{Large}
218+
Erkl{\"a}rung\\[5mm]
219+
\end{Large}
220+
Ich versichere, dass ich die vorliegende Arbeit selbst\"andig verfasst und keine anderen als die angegebenen Quellen und Hilfsmittel benutzt habe.\\[.75cm]
221+
\begin{center}
222+
\begin{tabular}{l p{1cm} cc}
223+
{} & {} & Ja & Nein\\[.5cm]
224+
Mit der Einstellung dieser Arbeit in die Bibliothek& {} & {}\\
225+
bin ich einverstanden. & {} & $\square$ & $\square$\\[.5cm]
226+
Der Ver\"offentlichung dieser Arbeit im Internet& {} & {} & {}\\
227+
stimme ich zu.& {} & $\square$ & $\square$\\
228+
\end{tabular}\\[2cm]
229+
\end{center}
230+
\begin{small}
231+
\dotfill\\
232+
(Ort, Datum)\hfill(Unterschrift)
233+
\end{small}
234+
\advance\authornumber by -1
235+
\ifnum\authornumber>0
236+
\\[2cm]
237+
\fi
238+
\repeat
239+
\end{flushleft}
240+
\end{titlepage}
241+
\iftwoside
242+
\begin{titlepage}
243+
\null\clearpage
244+
\end{titlepage}
245+
\fi
246+
}

example.pdf

65.8 KB
Binary file not shown.

example.tex

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
\documentclass[f,bachelor,binding,twoside,palatino]{WeSTthesis}
2+
% Please read the README.md file for additional information on the parameters and overall usage of WeSTthesis
3+
4+
\usepackage[english,ngerman]{babel} % English and new German spelling
5+
\usepackage[utf8]{inputenc} % correct input encoding
6+
\usepackage[T1]{fontenc} % correct output encoding
7+
\usepackage{graphicx} % enhanced support for graphics
8+
\usepackage{tabularx} % more flexible tabular
9+
\usepackage{amsfonts} % math fonts
10+
\usepackage{amssymb} % math symbols
11+
\usepackage{amsmath} % overall enhancements to math environment
12+
13+
14+
\author{Erika Mustermann}
15+
16+
\title{Die Verbreitung des Begriffes \glqq Mustermann\grqq\ im Zusammenhang mit Beispieltexten}
17+
18+
\degreecourse{Informatik}
19+
20+
\firstreviewer{Prof. Dr. Steffen Staab}
21+
\firstreviewerinfo{Institute for Web Science and Technologies}
22+
23+
\secondreviewer{Max Mustermann}
24+
\secondreviewerinfo{Institute for Web Science and Technologies}
25+
26+
27+
\begin{document}
28+
29+
% optional: change document language from ngerman to english
30+
% \selectlanguage{english}
31+
32+
\maketitle %prints the cover page an empty page if two-sided print
33+
34+
\pagenumbering{roman}
35+
36+
\tableofcontents
37+
38+
\varclearpage
39+
40+
% list of figures
41+
% \listoffigures
42+
% \varclearpage
43+
44+
\pagenumbering{arabic}
45+
46+
% beginning of the actual text section
47+
\section{Lorem Ipsum}
48+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.\\
49+
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
50+
51+
\subsection{Encoding Test}
52+
Städte, Länder, Flüsse
53+
54+
\end{document}

0 commit comments

Comments
 (0)