diff --git a/latexoptions.tex b/latexoptions.tex index 7a6922ba88f1d1487bec37aabf446ef013a2f8d9..801148162b2ab3b315901b4748ec4b4f9a24b162 100644 --- a/latexoptions.tex +++ b/latexoptions.tex @@ -94,3 +94,12 @@ {}{}{0pt}{} } + +\makeatletter +\newcommand{\sectionauthor}[1]{% + {\parindent0pt\vspace*{-5pt}% + \linespread{1.1}\large\scshape#1% + \par\nobreak\vspace*{10pt}} + \@afterheading% +} +\makeatother diff --git a/main.tex b/main.tex index f4486e799bbb4ae5ad6be5b39f25b1011629175e..adbb34f52510b5099e094efc3f60a2603eddef89 100644 --- a/main.tex +++ b/main.tex @@ -44,24 +44,31 @@ % \end{figure} % NOTE: Use \input when including .tex-documents on the same page. \insert causes new page -% NOTE: Add authors and reviewers to chapters. Used \section{title \protect\footnote{Author: NAME, Reviewer: NAME} +% NOTE: Add authors and reviewers to chapters. Use \sectionauthor{Author: First Last\\Reviewer: First2 Last2} % NOTE: Maybe add a simple dictionary with shortenings? like MCU (Main Control Unit) \section{Introduction} + %\sectionauthor{Author: T. Esting\\Reviewer: R. Ewing} \input{./chapters/introduction} \newpage -\section{Background \protect\footnote{Author: Fredrik Grönlund, Reviewer: Daniel Björk}} % Is it Mineshaft or dump shaft or what? ~Frog its mine shaft //kamal +%\section{Background \protect\footnote{Author: Fredrik Grönlund, Reviewer: Daniel Björk}} +\section{Background } +\sectionauthor{Author: Fredrik Grönlund\\Reviewer: Daniel Björk} \input{./chapters/background} \newpage -\section{Specification of Requirements \protect\footnote{Author: Henrik Tjäder, Reviewer: Fredrik Grönlund}} +%\section{Specification of Requirements \protect\footnote{Author: Henrik Tjäder, Reviewer: Fredrik Grönlund}} +\section{Specification of Requirements} +\sectionauthor{Author: Henrik Tjäder\\Reviewer: Fredrik Grönlund} \input{./chapters/specs_reqs} \newpage -\section{System Design \protect\footnote{Author: Daniel Björk, Reviewer: Kamal Alkahwati}} +%\section{System Design \protect\footnote{Author: Daniel Björk, Reviewer: Kamal Alkahwati}} +\section{System Design} +\sectionauthor{Author: Daniel Björk\\Reviewer: Kamal Alkahwati} \subsection{Static Design} \subsubsection{Class Diagram} \begin{figure}[H] @@ -102,12 +109,15 @@ \newpage % Max section -\section{Hardware \protect\footnote{Author: Max Unander, Reviewer: Lars Jonsson}} +%\section{Hardware \protect\footnote{Author: Max Unander, Reviewer: Lars Jonsson}} +\section{Hardware} +\sectionauthor{Author: Max Unander\\Reviewer: Lars Jonsson} \input{./hardware/hardware} % Lars section \newpage -\section{Flight Control \protect\footnote{Author: Lars Jonsson, Reviewer: Max Unander}} +\section{Flight Control} +\sectionauthor{Author: Lars Jonsson\\Reviewer: Max Unander} \input{./control/copter_control}