Advertisement
Guest User

Thesis.cls

a guest
Oct 11th, 2013
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 12.55 KB | None | 0 0
  1. %%
  2. %% This is file `Thesis.cls', based on 'ECSthesis.cls', by Steve R. Gunn
  3. %% generated with the docstrip utility.
  4. %%
  5. %% Created by Steve R. Gunn, modified by Sunil Patel: www.sunilpatel.co.uk
  6.  
  7. \NeedsTeXFormat{LaTeX2e}[1996/12/01]
  8. \ProvidesClass{Thesis}
  9.              [2007/22/02 v1.0
  10.   LaTeX document class]
  11. \def\baseclass{book}
  12. \DeclareOption*{\PassOptionsToClass{\CurrentOption}{\baseclass}}
  13. \def\@checkoptions#1#2{
  14.  \edef\@curroptions{\@ptionlist{\@currname.\@currext}}
  15.  \@tempswafalse
  16.  \@tfor\@this:=#2\do{
  17.    \@expandtwoargs\in@{,\@this,}{,\@curroptions,}
  18.    \ifin@ \@tempswatrue \@break@tfor \fi}
  19.  \let\@this\@empty
  20.  \if@tempswa \else \PassOptionsToClass{#1}{\baseclass}\fi
  21. }
  22. \@checkoptions{11pt}{{10pt}{11pt}{12pt}}
  23. \PassOptionsToClass{a4paper}{\baseclass}
  24. \ProcessOptions\relax
  25. \LoadClass{\baseclass}
  26. \newcommand\bhrule{\typeout{------------------------------------------------------------------------------}}
  27.  
  28. \newcommand\Declaration[1]{
  29. \btypeout{Eidesstattliche Erkl\"arung}
  30. \addtotoc{Eidesstattliche Erkl\"arung}
  31. \thispagestyle{plain}
  32. \null\vfil
  33. %\vskip 60\p@
  34. \begin{center}{\huge\bf Eidesstattliche Erkl\"arung\par}\end{center}
  35. %\vskip 60\p@
  36. {\normalsize #1}
  37. \vfil\vfil\null
  38. %\cleardoublepage
  39. }
  40.  
  41. \newcommand\btypeout[1]{\bhrule\typeout{\space #1}\bhrule}
  42. \def\today{\ifcase\month\or
  43.  January\or February\or March\or April\or May\or June\or
  44.  July\or August\or September\or October\or November\or December\fi
  45.  \space \number\year}
  46. \usepackage{setspace}
  47. \onehalfspacing
  48. \setlength{\parindent}{0pt}
  49. \setlength{\parskip}{2.0ex plus0.5ex minus0.2ex}
  50. \usepackage{vmargin}
  51. \setmarginsrb           { 1.5in}  % left margin
  52.                         { 0.6in}  % top margin
  53.                         { 1.0in}  % right margin
  54.                         { 0.8in}  % bottom margin
  55.                         {  20pt}  % head height
  56.                         {0.25in}  % head sep
  57.                         {   9pt}  % foot height
  58.                         { 0.3in}  % foot sep
  59. \raggedbottom
  60. \setlength{\topskip}{1\topskip \@plus 5\p@}
  61. \doublehyphendemerits=10000       % No consecutive line hyphens.
  62. \brokenpenalty=10000              % No broken words across columns/pages.
  63. \widowpenalty=9999                % Almost no widows at bottom of page.
  64. \clubpenalty=9999                 % Almost no orphans at top of page.
  65. \interfootnotelinepenalty=9999    % Almost never break footnotes.
  66. \usepackage{fancyhdr}
  67. \lhead[\rm\thepage]{\fancyplain{}{\sl{\rightmark}}}
  68. \rhead[\fancyplain{}{\sl{\leftmark}}]{\rm\thepage}
  69. \chead{}\lfoot{}\rfoot{}\cfoot{}
  70. \pagestyle{fancy}
  71. \renewcommand{\chaptermark}[1]{\btypeout{\thechapter\space #1}\markboth{\@chapapp\ \thechapter\ #1}{\@chapapp\ \thechapter\ #1}}
  72. \renewcommand{\sectionmark}[1]{}
  73. \renewcommand{\subsectionmark}[1]{}
  74. \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
  75. \hbox{}
  76. \thispagestyle{empty}
  77. \newpage
  78. \if@twocolumn\hbox{}\newpage\fi\fi\fi}
  79. \usepackage{amsmath,amsfonts,amssymb,amscd,amsthm,xspace}
  80. \theoremstyle{plain}
  81. \newtheorem{example}{Example}[chapter]
  82. \newtheorem{theorem}{Theorem}[chapter]
  83. \newtheorem{corollary}[theorem]{Corollary}
  84. \newtheorem{lemma}[theorem]{Lemma}
  85. \newtheorem{proposition}[theorem]{Proposition}
  86. \newtheorem{axiom}[theorem]{Axiom}
  87. \theoremstyle{definition}
  88. \newtheorem{definition}[theorem]{Definition}
  89. \theoremstyle{remark}
  90. \newtheorem{remark}[theorem]{Remark}
  91. \usepackage[centerlast,small,sc]{caption}
  92. \setlength{\captionmargin}{20pt}
  93. \newcommand{\fref}[1]{Figure~\ref{#1}}
  94. \newcommand{\tref}[1]{Table~\ref{#1}}
  95. \newcommand{\eref}[1]{Equation~\ref{#1}}
  96. \newcommand{\cref}[1]{Chapter~\ref{#1}}
  97. \newcommand{\sref}[1]{Section~\ref{#1}}
  98. \newcommand{\aref}[1]{Appendix~\ref{#1}}
  99. \renewcommand{\topfraction}{0.85}
  100. \renewcommand{\bottomfraction}{.85}
  101. \renewcommand{\textfraction}{0.1}
  102. \renewcommand{\dbltopfraction}{.85}
  103. \renewcommand{\floatpagefraction}{0.75}
  104. \renewcommand{\dblfloatpagefraction}{.75}
  105. \setcounter{topnumber}{9}
  106. \setcounter{bottomnumber}{9}
  107. \setcounter{totalnumber}{20}
  108. \setcounter{dbltopnumber}{9}
  109. \usepackage{graphicx}
  110. \usepackage{epstopdf}
  111. \usepackage[scriptsize]{subfigure}
  112. \usepackage{booktabs}
  113. \usepackage{rotating}
  114. \usepackage{listings}
  115. \usepackage{lstpatch}
  116. \lstset{captionpos=b,
  117.        frame=tb,
  118.        basicstyle=\scriptsize\ttfamily,
  119.        showstringspaces=false,
  120.        keepspaces=true}
  121. \lstdefinestyle{matlab} {
  122.        language=Matlab,
  123.        keywordstyle=\color{blue},
  124.        commentstyle=\color[rgb]{0.13,0.55,0.13}\em,
  125.        stringstyle=\color[rgb]{0.7,0,0} }
  126. \usepackage[pdfpagemode={UseOutlines},bookmarks=true,bookmarksopen=true,
  127.   bookmarksopenlevel=0,bookmarksnumbered=true,hypertexnames=false,
  128.   colorlinks,linkcolor={blue},citecolor={blue},urlcolor={red},
  129.   pdfstartview={FitV},unicode,breaklinks=true]{hyperref}
  130. \pdfstringdefDisableCommands{
  131.   \let\\\space
  132. }
  133.  
  134. \newcommand*{\supervisor}[1]{\def\supname{#1}}
  135. \newcommand*{\examiner}[1]{\def\examname{#1}}
  136. \newcommand*{\degree}[1]{\def\degreename{#1}}
  137. \newcommand*{\authors}[1]{\def\authornames{#1}}
  138. \newcommand*{\addresses}[1]{\def\addressnames{#1}}
  139. \newcommand*{\university}[1]{\def\univname{#1}}
  140. \newcommand*{\UNIVERSITY}[1]{\def\UNIVNAME{#1}}
  141. \newcommand*{\department}[1]{\def\deptname{#1}}
  142. \newcommand*{\DEPARTMENT}[1]{\def\DEPTNAME{#1}}
  143. \newcommand*{\group}[1]{\def\groupname{#1}}
  144. \newcommand*{\GROUP}[1]{\def\GROUPNAME{#1}}
  145. \newcommand*{\faculty}[1]{\def\facname{#1}}
  146. \newcommand*{\FACULTY}[1]{\def\FACNAME{#1}}
  147. \newcommand*{\subject}[1]{\def\subjectname{#1}}
  148. \newcommand*{\keywords}[1]{\def\keywordnames{#1}}
  149. \supervisor  {Prof. Dr. W. Kowarschick}
  150. \examiner    {}
  151. \degree      {Bachelor of Science}
  152. \authors     {S\"oren Liebich}
  153. \university  {\texorpdfstring{\href{http://www.hs-augsburg.de/}
  154.                {Hochschule f\"ur angewandte Wissenschaften Augsburg}}
  155.                {Hochschule f\"ur angewandte Wissenschaften Augsburg}}
  156. \UNIVERSITY  {\texorpdfstring{\href{http://www.hs-augsburg.de/}
  157.                {HOCHSCHULE F\"UR ANGEWANDTE WISSENSCHAFTEN AUGSBURG}}
  158.                {HOCHSCHULE F\"UR ANGEWANDTE WISSENSCHAFTEN AUGSBURG}}
  159. \department  {\texorpdfstring{\href{http://www.hs-augsburg.de/}
  160.                {Hochschule f\"ur angewandte Wissenschaften Augsburg}}
  161.                {Hochschule f\"ur angewandte Wissenschaften Augsburg}}
  162. \DEPARTMENT  {\texorpdfstring{\href{http://www.hs-augsburg.de/}
  163.                {HOCHSCHULE F\"UR ANGWWANDTE WISSENSCHAFTEN AUGSBURG}}
  164.                {HOCHSCHULE F\"UR ANGWWANDTE WISSENSCHAFTEN AUGSBURG}}
  165. \group       {\texorpdfstring{\href{Research Group Web Site URL Here (include http://)}
  166.                {Research Group Name}}
  167.                {Research Group Name}}
  168. \GROUP       {\texorpdfstring{\href{Research Group Web Site URL Here (include http://)}
  169.                {RESEARCH GROUP NAME (IN BLOCK CAPITALS)}}
  170.                {RESEARCH GROUP NAME (IN BLOCK CAPITALS)}}
  171. \faculty     {\texorpdfstring{\href{http://www.hs-augsburg.de/fakultaet/informatik/studium/studiengang/in_bac/index.html}
  172.                {Informatik}}
  173.                {Informatik}}
  174. \FACULTY     {\texorpdfstring{\href{Fhttp://www.hs-augsburg.de/fakultaet/informatik/studium/studiengang/in_bac/index.html}
  175.                {INFORMATIK}}
  176.                {INFORMATIK}}
  177. \addresses   {}
  178. \subject     {Erstellung eines Risikoanalysetools für CQ5 Projekte auf Basis der vorhandenen Testszenarien sowie korrelierten Fehlerquoten.}
  179. \keywords    {}
  180. \renewcommand\maketitle{
  181.  \btypeout{Title Page}
  182.  \hypersetup{pdftitle={\@title}}
  183.  \hypersetup{pdfsubject=\subjectname}
  184.  \hypersetup{pdfauthor=\authornames}
  185.  \hypersetup{pdfkeywords=\keywordnames}
  186.  \thispagestyle{empty}
  187.  \begin{titlepage}
  188.    \let\footnotesize\small
  189.    \let\footnoterule\relax
  190.    \let \footnote \thanks
  191.    \setcounter{footnote}{0}
  192.    \null\vfil
  193.    \vskip 60\p@
  194.    \begin{center}
  195.      \setlength{\parskip}{0pt}
  196.      {\large\textbf{\UNIVNAME}\par}
  197.      \vfill
  198.      {\huge \bf \@title \par}
  199.      \vfill
  200.      {\LARGE von \par}
  201.      \smallskip
  202.      {\LARGE \authornames \par}
  203.      \vfill
  204.      {\large Bachelorarbeit eingereicht im Rahmen \par}
  205.      {\large der Bachelorpr\"ufung im Studiengang Informatik \par}
  206.      \bigskip
  207.      \bigskip
  208.      {\large an der \par}
  209.      {\large \facname \par}
  210.      {\large \deptname \par}
  211.      \bigskip
  212.      \bigskip
  213.      \bigskip
  214.      {\Large \@date \par}
  215.      \bigskip
  216.    \end{center}
  217.    \par
  218.    \@thanks
  219.    \vfil\null
  220.  \end{titlepage}
  221.  \setcounter{footnote}{0}%
  222.   \global\let\thanks\relax
  223.   \global\let\maketitle\relax
  224.   \global\let\@thanks\@empty
  225.   \global\let\@author\@empty
  226.   \global\let\@date\@empty
  227.   \global\let\@title\@empty
  228.   \global\let\title\relax
  229.   \global\let\author\relax
  230.   \global\let\date\relax
  231.   \global\let\and\relax
  232.   \cleardoublepage
  233. }
  234.  
  235. %\newenvironment{abstract}
  236. %{
  237. %  \btypeout{Abstract Page}
  238. %  \thispagestyle{empty}
  239. %  \null\vfil
  240. %  \begin{center}
  241. %    \setlength{\parskip}{0pt}
  242. %    {\normalsize \UNIVNAME \par}
  243. %    \bigskip
  244. %    {\huge{\textit{Zusammenfassung}} \par}
  245. %    \bigskip
  246. %    {\normalsize \facname \par}
  247. %    {\normalsize \deptname \par}
  248. %    \bigskip
  249. %    {\normalsize Bachelor of Science\par}
  250. %    \bigskip
  251. %    {\normalsize\bf \@title \par}
  252. %    \medskip
  253. %    {\normalsize von \authornames \par}
  254. %    \bigskip
  255. %  \end{center}
  256. %}
  257. \newcommand\abstract[1]{
  258. \btypeout{Zusammenfassung}
  259. \addtotoc{Zusammenfassung}
  260. \thispagestyle{plain}
  261. \begin{center}{\huge{\textit{Zusammenfassung}} \par}\end{center}
  262. {\normalsize #1}
  263. \vfil\vfil\null
  264.  
  265. }
  266. {
  267.  \vfil\vfil\vfil\null
  268.  \cleardoublepage
  269. }
  270. \addtocounter{secnumdepth}{1}
  271. \setcounter{tocdepth}{3}
  272. \newcounter{dummy}
  273. \newcommand\addtotoc[1]{
  274. \refstepcounter{dummy}
  275. \addcontentsline{toc}{chapter}{#1}}
  276. \renewcommand\tableofcontents{
  277. \btypeout{Inhalt}
  278. \begin{spacing}{1}{
  279.    \setlength{\parskip}{1pt}
  280.    \if@twocolumn
  281.      \@restonecoltrue\onecolumn
  282.    \else
  283.      \@restonecolfalse
  284.    \fi
  285.    \chapter*{\contentsname
  286.        \@mkboth{
  287.           \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}
  288.    \@starttoc{toc}
  289.    \if@restonecol\twocolumn\fi
  290.   \cleardoublepage
  291. }\end{spacing}
  292. }
  293. \renewcommand\listoffigures{
  294. \btypeout{Abbildungsverzeichnis}
  295. \addtotoc{Abbildungsverzeichnis}
  296. \begin{spacing}{1}{
  297.    \setlength{\parskip}{1pt}
  298.    \if@twocolumn
  299.      \@restonecoltrue\onecolumn
  300.    \else
  301.      \@restonecolfalse
  302.    \fi
  303.    \chapter*{\listfigurename
  304.      \@mkboth{\MakeUppercase\listfigurename}
  305.              {\MakeUppercase\listfigurename}}
  306.    \@starttoc{lof}
  307.    \if@restonecol\twocolumn\fi
  308.    \cleardoublepage
  309. }\end{spacing}
  310. }
  311. \renewcommand\listoftables{
  312. \btypeout{Tabellen}
  313. \addtotoc{Tabellen}
  314. \begin{spacing}{1}{
  315.    \setlength{\parskip}{1pt}
  316.    \if@twocolumn
  317.      \@restonecoltrue\onecolumn
  318.    \else
  319.      \@restonecolfalse
  320.    \fi
  321.    \chapter*{\listtablename
  322.      \@mkboth{
  323.          \MakeUppercase\listtablename}{\MakeUppercase\listtablename}}
  324.    \@starttoc{lot}
  325.    \if@restonecol\twocolumn\fi
  326.    \cleardoublepage
  327. }\end{spacing}
  328. }
  329. \newcommand\listsymbolname{Abbreviations}
  330. \usepackage{longtable}
  331. \newcommand\listofsymbols[2]{
  332. \btypeout{\listsymbolname}
  333. \addtotoc{\listsymbolname}
  334.    \chapter*{\listsymbolname
  335.      \@mkboth{
  336.          \MakeUppercase\listsymbolname}{\MakeUppercase\listsymbolname}}
  337. \begin{longtable}[c]{#1}#2\end{longtable}\par
  338.    \cleardoublepage
  339. }
  340. \newcommand\listconstants{Physical Constants}
  341. \usepackage{longtable}
  342. \newcommand\listofconstants[2]{
  343. \btypeout{\listconstants}
  344. \addtotoc{\listconstants}
  345.    \chapter*{\listconstants
  346.      \@mkboth{
  347.          \MakeUppercase\listconstants}{\MakeUppercase\listconstants}}
  348. \begin{longtable}[c]{#1}#2\end{longtable}\par
  349.    \cleardoublepage
  350. }
  351. \newcommand\listnomenclature{Symbole}
  352. \usepackage{longtable}
  353. \newcommand\listofnomenclature[2]{
  354. \btypeout{\listnomenclature}
  355. \addtotoc{\listnomenclature}
  356.    \chapter*{\listnomenclature
  357.      \@mkboth{
  358.          \MakeUppercase\listnomenclature}{\MakeUppercase\listnomenclature}}
  359. \begin{longtable}[c]{#1}#2\end{longtable}\par
  360.    \cleardoublepage
  361. }
  362. \newcommand\acknowledgements[1]{
  363. \btypeout{Danksagung}
  364. \addtotoc{Danksagung}
  365. \thispagestyle{plain}
  366. \begin{center}{\huge{\textit{Danksagung}} \par}\end{center}
  367. {\normalsize #1}
  368. \vfil\vfil\null
  369.  
  370. }
  371. \newcommand\dedicatory[1]{
  372. \btypeout{Dedicatory}
  373. \thispagestyle{plain}
  374. \null\vfil
  375. \vskip 60\p@
  376. \begin{center}{\Large \sl #1}\end{center}
  377. \vfil\null
  378. \cleardoublepage
  379. }
  380. \renewcommand\backmatter{
  381.  \if@openright
  382.    \cleardoublepage
  383.  \else
  384.    \clearpage
  385.  \fi
  386.  \addtotoc{\bibname}
  387.  \btypeout{\bibname}
  388.  \@mainmatterfalse}
  389. \endinput
  390. %%
  391. %% End of file `Thesis.cls'.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement