Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Thesis.cls 9.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. \NeedsTeXFormat{LaTeX2e}[1996/12/01]
  2. \ProvidesClass{Thesis}
  3. [2007/22/02 v1.0
  4. LaTeX document class]
  5. \def\baseclass{book}
  6. \DeclareOption*{\PassOptionsToClass{\CurrentOption}{\baseclass}}
  7. \def\@checkoptions#1#2{
  8. \edef\@curroptions{\@ptionlist{\@currname.\@currext}}
  9. \@tempswafalse
  10. \@tfor\@this:=#2\do{
  11. \@expandtwoargs\in@{,\@this,}{,\@curroptions,}
  12. \ifin@ \@tempswatrue \@break@tfor \fi}
  13. \let\@this\@empty
  14. \if@tempswa \else \PassOptionsToClass{#1}{\baseclass}\fi
  15. }
  16. \@checkoptions{11pt}{{10pt}{11pt}{12pt}}
  17. \PassOptionsToClass{a4paper}{\baseclass}
  18. \ProcessOptions\relax
  19. \LoadClass{\baseclass}
  20. \newcommand\bhrule{\typeout{------------------------------------------------------------------------------}}
  21. \newcommand\Declaration[1]{
  22. \btypeout{Declaration of Authorship}
  23. \addtotoc{Declaration of Authorship}
  24. \thispagestyle{plain}
  25. \null\vfil
  26. %\vskip 60\p@
  27. \begin{center}{\huge\bf Declaration of Authorship\par}\end{center}
  28. %\vskip 60\p@
  29. {\normalsize #1}
  30. \vfil\vfil\null
  31. %\cleardoublepage
  32. }
  33. \newcommand\btypeout[1]{\bhrule\typeout{\space #1}\bhrule}
  34. \def\today{\ifcase\month\or
  35. January\or February\or March\or April\or May\or June\or
  36. July\or August\or September\or October\or November\or December\fi
  37. \space \number\year}
  38. \usepackage{setspace}
  39. \onehalfspacing
  40. \setlength{\parindent}{0pt}
  41. \setlength{\parskip}{2.0ex plus0.5ex minus0.2ex}
  42. \usepackage{vmargin}
  43. \setmarginsrb { 1.5in} % left margin
  44. { 0.6in} % top margin
  45. { 1.0in} % right margin
  46. { 0.8in} % bottom margin
  47. { 20pt} % head height
  48. {0.25in} % head sep
  49. { 9pt} % foot height
  50. { 0.3in} % foot sep
  51. \raggedbottom
  52. \setlength{\topskip}{1\topskip \@plus 5\p@}
  53. \doublehyphendemerits=10000 % No consecutive line hyphens.
  54. \brokenpenalty=10000 % No broken words across columns/pages.
  55. \widowpenalty=9999 % Almost no widows at bottom of page.
  56. \clubpenalty=9999 % Almost no orphans at top of page.
  57. \interfootnotelinepenalty=9999 % Almost never break footnotes.
  58. \usepackage{fancyhdr}
  59. \lhead[\rm\thepage]{\fancyplain{}{\sl{\rightmark}}}
  60. \rhead[\fancyplain{}{\sl{\leftmark}}]{\rm\thepage}
  61. \chead{}\lfoot{}\rfoot{}\cfoot{}
  62. \pagestyle{fancy}
  63. \renewcommand{\chaptermark}[1]{\btypeout{\thechapter\space #1}\markboth{\@chapapp\ \thechapter\ #1}{\@chapapp\ \thechapter\ #1}}
  64. \renewcommand{\sectionmark}[1]{}
  65. \renewcommand{\subsectionmark}[1]{}
  66. \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
  67. \hbox{}
  68. \thispagestyle{empty}
  69. \newpage
  70. \if@twocolumn\hbox{}\newpage\fi\fi\fi}
  71. \usepackage{amsmath,amsfonts,amssymb,amscd,amsthm,xspace}
  72. \theoremstyle{plain}
  73. \newtheorem{example}{Example}[chapter]
  74. \newtheorem{theorem}{Theorem}[chapter]
  75. \newtheorem{corollary}[theorem]{Corollary}
  76. \newtheorem{lemma}[theorem]{Lemma}
  77. \newtheorem{proposition}[theorem]{Proposition}
  78. \newtheorem{axiom}[theorem]{Axiom}
  79. \theoremstyle{definition}
  80. \newtheorem{definition}[theorem]{Definition}
  81. \theoremstyle{remark}
  82. \newtheorem{remark}[theorem]{Remark}
  83. \usepackage[centerlast,small,sc]{caption}
  84. \setlength{\captionmargin}{20pt}
  85. \newcommand{\fref}[1]{Figure~\ref{#1}}
  86. \newcommand{\tref}[1]{Table~\ref{#1}}
  87. \newcommand{\eref}[1]{Equation~\ref{#1}}
  88. \newcommand{\cref}[1]{Chapter~\ref{#1}}
  89. \newcommand{\sref}[1]{Section~\ref{#1}}
  90. \newcommand{\aref}[1]{Appendix~\ref{#1}}
  91. \renewcommand{\topfraction}{0.85}
  92. \renewcommand{\bottomfraction}{.85}
  93. \renewcommand{\textfraction}{0.1}
  94. \renewcommand{\dbltopfraction}{.85}
  95. \renewcommand{\floatpagefraction}{0.75}
  96. \renewcommand{\dblfloatpagefraction}{.75}
  97. \setcounter{topnumber}{9}
  98. \setcounter{bottomnumber}{9}
  99. \setcounter{totalnumber}{20}
  100. \setcounter{dbltopnumber}{9}
  101. \usepackage{graphicx}
  102. \usepackage{epstopdf}
  103. \usepackage[scriptsize]{subfigure}
  104. \usepackage{booktabs}
  105. \usepackage{rotating}
  106. \usepackage{listings}
  107. \usepackage{lstpatch}
  108. \lstset{captionpos=b,
  109. frame=tb,
  110. basicstyle=\scriptsize\ttfamily,
  111. showstringspaces=false,
  112. keepspaces=true}
  113. \lstdefinestyle{matlab} {
  114. language=Matlab,
  115. keywordstyle=\color{black},
  116. commentstyle=\color[rgb]{0.13,0.55,0.13}\em,
  117. stringstyle=\color[rgb]{0.7,0,0} }
  118. \usepackage[pdfpagemode={UseOutlines},bookmarks=true,bookmarksopen=true,
  119. bookmarksopenlevel=0,bookmarksnumbered=true,hypertexnames=false,
  120. colorlinks,linkcolor={black},citecolor={black},urlcolor={black},
  121. pdfstartview={FitV},unicode,breaklinks=true]{hyperref}
  122. \pdfstringdefDisableCommands{
  123. \let\\\space
  124. }
  125. \newcommand*{\supervisor}[1]{\def\supname{#1}}
  126. \newcommand*{\examiner}[1]{\def\examname{#1}}
  127. \newcommand*{\degree}[1]{\def\degreename{#1}}
  128. \newcommand*{\authors}[1]{\def\authornames{#1}}
  129. \newcommand*{\addresses}[1]{\def\addressnames{#1}}
  130. \newcommand*{\university}[1]{\def\univname{#1}}
  131. \newcommand*{\UNIVERSITY}[1]{\def\UNIVNAME{#1}}
  132. \newcommand*{\department}[1]{\def\deptname{#1}}
  133. \newcommand*{\DEPARTMENT}[1]{\def\DEPTNAME{#1}}
  134. \newcommand*{\group}[1]{\def\groupname{#1}}
  135. \newcommand*{\GROUP}[1]{\def\GROUPNAME{#1}}
  136. \newcommand*{\faculty}[1]{\def\facname{#1}}
  137. \newcommand*{\FACULTY}[1]{\def\FACNAME{#1}}
  138. \newcommand*{\subject}[1]{\def\subjectname{#1}}
  139. \newcommand*{\keywords}[1]{\def\keywordnames{#1}}
  140. \supervisor {}
  141. \examiner {}
  142. \degree {}
  143. \authors {}
  144. \university {\texorpdfstring{\href{University Web Site URL Here (include http://)}
  145. {Technische Hochschule Nürnberg}}
  146. {Technische Hochschule Nürnberg}}
  147. \UNIVERSITY {\texorpdfstring{\href{University Web Site URL Here (include http://)}
  148. {TECHNISCHE HOCHSCHULE NÜRNBERG}}
  149. {TECHNISCHE HOCHSCHULE NÜRNBERG}}
  150. \department {\texorpdfstring{\href{Department or School Web Site URL Here (include http://)}
  151. {Fakultät Elektrotechnik Feinwerktechnik Informationstechnik}}
  152. {Fakultät Elektrotechnik Feinwerktechnik Informationstechnik}}
  153. \DEPARTMENT {\texorpdfstring{\href{Department or School Web Site URL Here (include http://)}
  154. {FAKULTÄT ELEKTROTECHNIK FEINWERKTECHNIK INFORMATIONSTECHNIK}}
  155. {FAKULTÄT ELEKTROTECHNIK FEINWERKTECHNIK INFORMATIONSTECHNIK}}
  156. \group {\texorpdfstring{\href{Research Group Web Site URL Here (include http://)}
  157. {Studiegang Medie Engineering}}
  158. {Studiegang Medie Engineering}}
  159. \GROUP {\texorpdfstring{\href{Research Group Web Site URL Here (include http://)}
  160. {RESEARCH GROUP NAME (IN BLOCK CAPITALS)}}
  161. {RESEARCH GROUP NAME (IN BLOCK CAPITALS)}}
  162. \faculty {\texorpdfstring{\href{Faculty Web Site URL Here (include http://)}
  163. {Fakultät Elektrotechnik Feinwerktechnik Informationstechnik}}
  164. {Fakultät Elektrotechnik Feinwerktechnik Informationstechnik}}
  165. \FACULTY {\texorpdfstring{\href{Faculty Web Site URL Here (include http://)}
  166. {FAKULTÄT ELEKTROTECHNIK FEINWERKTECHNIK INFORMATIONSTECHNIK}}
  167. {FAKULTÄT ELEKTROTECHNIK FEINWERKTECHNIK INFORMATIONSTECHNIK}}
  168. \addresses {}
  169. \subject {}
  170. \keywords {}
  171. \renewcommand\maketitle{
  172. \btypeout{Title Page}
  173. \hypersetup{pdftitle={\@title}}
  174. \hypersetup{pdfsubject=\subjectname}
  175. \hypersetup{pdfauthor=\authornames}
  176. \hypersetup{pdfkeywords=\keywordnames}
  177. \thispagestyle{empty}
  178. \begin{titlepage}
  179. \let\footnotesize\small
  180. \let\footnoterule\relax
  181. \let \footnote \thanks
  182. \setcounter{footnote}{0}
  183. \vskip 60\p@
  184. \begin{center}
  185. \setlength{\parskip}{0pt}
  186. {\text{\univname}\par}
  187. {\facname \par}
  188. \bigskip
  189. \bigskip
  190. { \groupname \par}
  191. \bigskip
  192. \bigskip
  193. \bigskip
  194. { Bachelor-Arbeit von \par}
  195. { \authornames \par}
  196. \bigskip
  197. \bigskip
  198. { \@title \par}
  199. \bigskip
  200. \bigskip
  201. \bigskip
  202. \bigskip
  203. \bigskip
  204. \bigskip
  205. {WS 2018/2019 \par}
  206. \vfill
  207. \begin{flushleft}
  208. {Abgabedatum: \@date\par}
  209. {Betreuer: Prof. Dr. Oliver Hofmann}
  210. \end{flushleft}
  211. \bigskip
  212. \end{center}
  213. \par
  214. \@thanks
  215. \vfil\null
  216. \end{titlepage}
  217. \setcounter{footnote}{0}%
  218. \global\let\thanks\relax
  219. \global\let\maketitle\relax
  220. \global\let\@thanks\@empty
  221. \global\let\@author\@empty
  222. \global\let\@date\@empty
  223. \global\let\@title\@empty
  224. \global\let\title\relax
  225. \global\let\author\relax
  226. \global\let\date\relax
  227. \global\let\and\relax
  228. \cleardoublepage
  229. }
  230. \newenvironment{abstract}
  231. {
  232. \btypeout{Abstract Page}
  233. \thispagestyle{empty}
  234. \begin{center}
  235. {{\text{Abstrakt}} \par}
  236. \bigskip
  237. \bigskip
  238. \bigskip
  239. {\normalsize\bf \@title \par}
  240. \medskip
  241. \bigskip
  242. \end{center}
  243. }
  244. {
  245. \vfil\vfil\vfil\null
  246. \cleardoublepage
  247. }
  248. \addtocounter{secnumdepth}{1}
  249. \setcounter{tocdepth}{6}
  250. \newcounter{dummy}
  251. \newcommand\addtotoc[1]{
  252. \refstepcounter{dummy}
  253. \addcontentsline{toc}{chapter}{#1}}
  254. \renewcommand\tableofcontents{
  255. \btypeout{Table of Contents}
  256. \begin{spacing}{1}{
  257. \setlength{\parskip}{1pt}
  258. \if@twocolumn
  259. \@restonecoltrue\onecolumn
  260. \else
  261. \@restonecolfalse
  262. \fi
  263. \chapter*{\contentsname
  264. \@mkboth{
  265. \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}
  266. \@starttoc{toc}
  267. \if@restonecol\twocolumn\fi
  268. \cleardoublepage
  269. }\end{spacing}
  270. }
  271. \newcommand\dedicatory[1]{
  272. \btypeout{Dedicatory}
  273. \thispagestyle{plain}
  274. \null\vfil
  275. \vskip 60\p@
  276. \begin{center}{\Large \sl #1}\end{center}
  277. \vfil\null
  278. \cleardoublepage
  279. }
  280. \renewcommand\backmatter{
  281. \if@openright
  282. \cleardoublepage
  283. \else
  284. \clearpage
  285. \fi
  286. \addtotoc{\bibname}
  287. \btypeout{\bibname}
  288. \@mainmatterfalse}
  289. \endinput
  290. %%
  291. %% End of file `Thesis.cls'.