From d867536d41fb37b8b421e0992604005f73be9ea8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Gr=C3=B6nlund?= <fredrik.gronlund.o@gmail.com> Date: Wed, 14 Dec 2016 13:01:21 +0100 Subject: [PATCH] Added new sectionauthor command. Applied to main.tex. --- latexoptions.tex | 9 +++++++++ main.tex | 22 ++++++++++++++++------ 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/latexoptions.tex b/latexoptions.tex index 7a6922b..8011481 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 f4486e7..adbb34f 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} -- GitLab