Thesis

LaTeX - Template for a bachelor/master thesis

Category

masters

License

Free to use (MIT)

File

thesis.tex

thesis.texRead-only preview
\documentclass[
	11pt, 
	a4paper, 
	twoside,
	parskip=half*, % Line spacing for paragraphs
	openright,  % openany -> on which page should new chapters start
	listof=totoc, % Include listings in the table of contents
	bibliography=totoc, % adding a bibliography to the table of contents
	index=totoc, % add index directory to the table of contents
  toc=chapterentrywithdots, % Set dots in the table of contents also for chapters
  numbers=noenddot, % removes the last dot after X.X.X.
  %chapterprefix=true % changes the display of the chapter, adds "Chapter" to the chapter number
]{scrbook}

\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{url}
\usepackage[autostyle=true,german=quotes]{csquotes}
\usepackage[T1]{fontenc}
\usepackage{pdfpages}
\usepackage{textcomp}
\usepackage{amsmath} % math environment

% ---------------------------
% |    Meta-Data for PDF    |
% ---------------------------
\usepackage[
  pdftex,
  pdfauthor={Jon Doe},
  pdftitle={Thesis Template},
  pdfsubject={Bachelorthesis},
  pdfkeywords={Thesis;Template;LaTeX},
  pdfproducer={LaTeX},
  pdfcreator={pdfLaTeX},
  pdfduplex={DuplexFlipLongEdge}, %Alt.: Simplex or DuplexFlipShortEdge 
  pdflang={de}, % en
  bookmarksopen,
  bookmarksnumbered,
]{hyperref}

% ------------------
% |    Settings    |
% ------------------
\input{settings/bibliography.tex}
\input{settings/graphics.tex}
\input{settings/tables.tex}
\input{settings/colors.tex}
\input{settings/layout.tex}
\input{settings/listings.tex}
\input{settings/links.tex}
\input{settings/commands}
\input{settings/bookmarks}

\begin{document}

% -------------------
% |    Titlepage    |
% -------------------
% \includepdf[pages=-,templatesize={145mm}{210mm},noautoscale=true,offset=-65 50]{myfile.pdf}
\includepdf[pages={1},offset=25 -40]{chapters/deckblatt.pdf}
% \input{chapters/titlepage} % Use latex title page

% ------------------
% |    Abstract    |
% ------------------
\cleardoubleoddpage	
\pdfbookmark[section]{Kurzfassung}{abstract} % Abstract as bookmark
\input{chapters/abstract}
\input{chapters/eid}

% ---------------------------
% |    Table of contents    |
% ---------------------------
\cleardoubleoddpage	
\pdfbookmark[section]{\contentsname}{toc} % toc is part of the bookmarks but not part the toc itself
\newpage\thispagestyle{empty}
{
  \pagestyle{empty}
  \addtocontents{toc}{\protect\thispagestyle{empty}} 
  \tableofcontents
  \clearpage
}

% -----------------
% |    Indexes    |
% -----------------
\frontmatter
\pagenumbering{Roman}
\listoffigures
\listoftables
\lstlistoflistings 

% ------------------
% |    Chapters    |
% ------------------
\mainmatter
\setcounter{page}{1}
\input{chapters/chapter1}
\input{chapters/chapter2}
\input{chapters/chapter3}
\input{chapters/chapter4}
\input{chapters/chapter5}

% ------------------
% |    Appendix    |
% ------------------
\appendix
\cleardoubleoddpage
\pagenumbering{Roman}
\setcounter{page}{7}
\input{chapters/appendix}

% ----------------------
% |    Bibliography    |
% ----------------------
\printbibliography
% \printbibheading[title=Literatur]
% \printbibliography[heading=subbibliography, type=online, title={Online}]
% \printbibliography[heading=subbibliography, type=book, title={Literatur}]
% \printbibliography[heading=subbibliography,title={Der ganze Rest},nottype=online,notkeyword=Norm,notkeyword=sekundaer]

\end{document}
Preview
Thesis preview
Thesis LaTeX Template | Bibby | Bibby AI