Commit 4b8bab14 authored by Stefan Herrnleben's avatar Stefan Herrnleben
Browse files

Add listings to thesis template

implements #1
parent b942e778
......@@ -5,4 +5,7 @@
*.blg
*.log
*.toc
*.out
\ No newline at end of file
*.out
*.lof
*.lol
*.lot
\ No newline at end of file
%!TEX root = thesis.tex
\chapter*{Acronyms}
\addcontentsline{toc}{chapter}{Acronyms}
\begin{acronym}
\acro{TBD}[TBD]{To Be Done}
\end{acronym}
\ No newline at end of file
......@@ -6,6 +6,19 @@
\section{Section A}
\label{sec:approach:section-a}
\begin{table}[h]
\caption{This is an example table to be listed in List of Tables.}
\label{tab:example}
\centering
\begin{tabular}{|c|c|}
\hline
& \\
\hline
& \\
\hline
\end{tabular}
\end{table}
\section{Section B}
\label{sec:approach:section-b}
......@@ -2,3 +2,4 @@
\chapter{Evaluation}
\label{ch:evaluation}
......@@ -3,3 +3,11 @@
\chapter{Implementation}
\label{ch:implementation}
\begin{lstlisting}[language=erlang, frame=single, breaklines=true, numbers=left, caption={Hello World Program in Erlang.}]
-module(hello).
-export([hello_world/0]).
hello_world() -> io:fwrite("hello, world\n").
\end{lstlisting}
......@@ -3,6 +3,5 @@
\chapter{Introduction}
\label{ch:introduction}
\cite{KiHeKo2014-LT-DLIM}
\dots
\ac{TBD}
......@@ -3,3 +3,4 @@
\chapter{Related Work}
\label{ch:relatedwork}
\cite{KiHeKo2014-LT-DLIM}
\ No newline at end of file
......@@ -4,6 +4,8 @@
% Thesis - Main document
% ----------------------------------------------------------------
\usepackage{listings}
\usepackage{acronym}
%% -------------------------------
%% | Information for PDF file |
......@@ -129,6 +131,22 @@
\include{conclusion}
%% ----------------
%% | Listings |
%% ----------------
\addcontentsline{toc}{chapter}{\listfigurename}
\listoffigures
\addcontentsline{toc}{chapter}{\listtablename}
\listoftables
\addcontentsline{toc}{chapter}{\lstlistlistingname}
\lstlistoflistings
\include{acronyms}
%% --------------------
%% | Bibliography |
%% --------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment