wiki:Latex/Examples/Structure

Basic Structure

\documentclass[twoside,BCOR12mm,draft=true,draft,fontsize=12]{scrbook}
\usepackage{scrhack} % repair some problems of komascript with other packages

%\usepackage{ngerman} % use if you write in german

\usepackage[utf8]{inputenc} % character encoding
\usepackage[T1]{fontenc}

\usepackage{hyperref} % adds real links for references and the autoref macro

% redefine the displayed Strings for autoref
\usepackage{xspace}
\def\chapterautorefname{Chap.\xspace}
\def\sectionautorefname{Sec.\xspace}
\def\subsectionautorefname{Sec.\xspace}
\def\figureautorefname{Fig.\xspace}

\title{Example Latex Structure Document}
\subtitle{My Thesis}
\author{Peter Mustermann}
\date{\today}

\begin{document}

\frontmatter
\maketitle

\chapter*{Abstract}
This is my abstract.

\tableofcontents
\listoffigures
\mainmatter

\chapter{Introduction}
Intro

In \autoref{sec:bla} there is stuff.

\section{Related Work}
\label{sec:relatedwork}
Related Work

\subsection{Blubb}

\subsubsection{Bla}
\label{sec:bla}

\paragraph{Foo}
  
\backmatter
\appendix

\chapter{MyApp}  
Hallo
\section{blubbAppendix}
blubb 
\end{document}