From 2cced39614be1b8e7a175bb03cc0afefe8d6559a Mon Sep 17 00:00:00 2001
From: Phuc Tran Truong <truongph@informatik.hu-berlin.de>
Date: Sun, 21 Jan 2018 13:26:39 +0100
Subject: [PATCH] exclude subsubsections from table of contents and make sw
 architecture diagram bigger

---
 doc/mainDocument/mainDocument.tex          | 6 ++++++
 doc/mainDocument/sections/architektur.tex  | 2 +-
 doc/mainDocument/sections/organisation.tex | 3 ++-
 3 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/doc/mainDocument/mainDocument.tex b/doc/mainDocument/mainDocument.tex
index 396b4a9f..7c257b9c 100644
--- a/doc/mainDocument/mainDocument.tex
+++ b/doc/mainDocument/mainDocument.tex
@@ -42,9 +42,15 @@
 
 \definecolor{light-gray}{gray}{0.85}
 
+\setcounter{tocdepth}{2}	%exclude subsubsections from table of contents
+
 %%% COMMANDS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \newcommand{\tabHead}[1]{\parbox{0.14\textwidth}{\medskip\textbf{#1}\medskip}}
 \newcommand{\tabBody}[1]{\parbox{0.81\textwidth}{\medskip        #1 \medskip}}
+\newcommand{\changelocaltocdepth}[1]{%
+  \addtocontents{toc}{\protect\setcounter{tocdepth}{#1}}%
+  \setcounter{tocdepth}{#1}%
+}
 
 %%% META INFORMATION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \title{Hochautomatisiertes Fahren}
diff --git a/doc/mainDocument/sections/architektur.tex b/doc/mainDocument/sections/architektur.tex
index d78cabc8..fc9b4344 100644
--- a/doc/mainDocument/sections/architektur.tex
+++ b/doc/mainDocument/sections/architektur.tex
@@ -205,7 +205,7 @@
 	\begin{figure}[h]
 			\begin{center}
 				%\includegraphics[width=\textwidth]{SoftwareArchitektur} %photo
-				\includegraphics[width=0.8\textwidth]{sw_architektur} % some elements missing/ not recognizable
+				\includegraphics[scale=0.45]{sw_architektur} % some elements missing/ not recognizable
 			\end{center}
 			\caption{Softwarearchitektur}
 			\label{fig:sw-arch}
diff --git a/doc/mainDocument/sections/organisation.tex b/doc/mainDocument/sections/organisation.tex
index b90b5683..79fa1b7b 100644
--- a/doc/mainDocument/sections/organisation.tex
+++ b/doc/mainDocument/sections/organisation.tex
@@ -32,7 +32,7 @@
 	%zwischen den Gruppen statt. Im Sinne des Projektes können an Hand
 	%dieser Vergleiche einzelne Komponenten zwischen den Gruppen
 	%ausgetauscht werden, bevor diese mit der Entwicklung fortfahren.
-	
+	\changelocaltocdepth{1}
 	\subsubsection*{MS - Mitte November}\label{MS:beginNov}
 	\addcontentsline{toc}{subsection}{\nameref{MS:beginNov}}
 	\begin{itemize}
@@ -96,6 +96,7 @@
 	\begin{itemize}
 		\item Implementierung weiterer Ausbaustufen 
 	\end{itemize}
+	\changelocaltocdepth{2}
 	
 	\subsection{Aufbau des Dokuments}
 	%V Bild von Franz
-- 
GitLab