thesis.tex 3.69 KB
Newer Older
Martin Potthast's avatar
Martin Potthast committed
1 2 3 4 5 6 7 8 9 10 11
%\documentclass[german,bachelor]{webisthesis}
\documentclass[english,master]{webisthesis}
% When you change the language, pdflatex may halt on recompilation.
% Just hit enter to continue and recompile again. This should fix it.

%
% Values
% ------
\ThesisSetTitle{The Title of my Thesis}
\ThesisSetKeywords{These, Are, My keywords} % only for PDF meta attributes

Johannes Kiesel's avatar
Johannes Kiesel committed
12
\ThesisSetAuthor{First name Surname}
Martin Potthast's avatar
Martin Potthast committed
13
\ThesisSetStudentNumber{01234}
Johannes Kiesel's avatar
Johannes Kiesel committed
14 15
\ThesisSetDateOfBirth{1}{1}{1984}
\ThesisSetPlaceOfBirth{Duckburg}
Martin Potthast's avatar
Martin Potthast committed
16 17 18

\ThesisSetSupervisors{Prof.\ Dr.\ Benno Stein,Prof.\ Dr.\ Unknown Yet}

Johannes Kiesel's avatar
Johannes Kiesel committed
19
\ThesisSetSubmissionDate{31}{2}{2022}
Martin Potthast's avatar
Martin Potthast committed
20 21 22 23 24 25 26 27 28 29 30 31 32 33

%
% Suggested Packages
% ------------------
\usepackage[sort&compress]{natbib}
%   Allows citing in different ways (e.g., only the authors if you use the
%   citation again within a short time).
%
\usepackage{booktabs}
%    For tables ``looking the right way''.
%
%\usepackage{tabularx}
%    Enables tables with columns that automatically fill the page width.
%
Johannes Kiesel's avatar
Johannes Kiesel committed
34
%\usepackage[ruled,algochapter]{algorithm2e}
Martin Potthast's avatar
Martin Potthast committed
35 36 37 38 39 40
%    A package for pseudo code algorithms.
%
%\usepackage{amsmath}
%    For tabular-style formatting of mathematical environments.
%

Johannes Kiesel's avatar
Johannes Kiesel committed
41 42 43
%
% Commenting (by your supervisor)
% -------------------------------
44
\usepackage{xcolor}
Johannes Kiesel's avatar
Johannes Kiesel committed
45 46 47 48 49 50 51
\usepackage{soul}
\newcommand{\bscom}[2]{%
  % #1 Original text.
  % #2 Replacement text.
    \st{\scriptsize\,#1}{\color{blue}\scriptsize\,#2}%
  }

Martin Potthast's avatar
Martin Potthast committed
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
% Create links in the pdf document
% Hyperref has some incompatibilities with other packages
% Some other packages must be loaded before, some after hyperref
% Additional options to the hyperref package can be provided in the braces []
\usehyperref[backref] % This will add back references in the bibliography

\begin{document}
\begin{frontmatter}
  \begin{abstract}
    A short summary.
  \end{abstract}

  \tableofcontents

  %\chapter*{Acknowledgements} % optional
  %I thank the authors of the webisthesis template for their excellent work!

  %\listoffigures % optional

  %\listoftables % optional

  %\listofalgorithms % optional
  %    requires package algorithm2e

  % optional: list of symbols/notation (e.g., using the nomencl package)
\end{frontmatter}

\chapter{Introduction}\label{introduction}
% Showing natbib citation commands
Let us get started by citing \citet{manning:1999}!
So what did \citeauthor{manning:1999} do in \citeyear{manning:1999}?
Good question!
% Showing hyperref reference commands
Maybe it is answered in \autoref{introduction} on page~\pageref{introduction}?
Just to have something show up in the list of figures, I included \autoref{fig:a}.
\begin{figure}[bt]% bottom or top of page (for small figures/tables)
  \begin{center}{\huge\bf A}\end{center}
  \caption{The first letter in the Roman alphabet.}\label{fig:a}
\end{figure}
Johannes Kiesel's avatar
Johannes Kiesel committed
91 92
% \formatdate (or \formatdateshort)
This date does not exist: \formatdateshort{30}{2}{2014}
Martin Potthast's avatar
Martin Potthast committed
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
and is the same as \formatdate{30}{2}{2014}.
% An example table
And here is some table with some numbers (\autoref{tab:numbers})
which deserves to be on an extra page.
\begin{table}[p]% extra page (usually for large figures/tables)
  \caption{Tables have their captions above, figures below.}
  \begin{center}
    \begin{tabular}{lccc}\toprule
      \multicolumn{4}{c}{Some numbers}\\\midrule
      & 1999 & 2000 & 2001 \\\cmidrule(l){2-4}
      % cmidrule: A line from 2nd to 4th column, trimmed on the left hand side
      Distance (km) & 23 & 18 & 42 \\
      Awesomeness (aws) & 3.2 & 8.1 & 2.4 \\\bottomrule
    \end{tabular}
  \end{center}\label{tab:numbers}%
\end{table}

% Appendix
\appendix
\chapter{My First Appendix}
This was just missing.

% Bibliography
\bibliographystyle{plainnat} % requires package natbib. An alternative is apalike
\bibliography{literature}    % load file literature.bib

\end{document}