REFACTOR: split into several smaller files

This commit is contained in:
Jean-Claude 2022-06-13 16:28:31 +02:00
parent 59cc711e62
commit b2661a7fb6
Signed by: jeanclaude
GPG Key ID: 8A300F57CBB9F63E
4 changed files with 84 additions and 78 deletions

26
preamble.tex Normal file
View File

@ -0,0 +1,26 @@
%! TEX root = ./thesis.tex
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{lscape}
\usepackage{psfrag}
\usepackage[usenames]{color}
\usepackage{bbm}
\usepackage[update]{epstopdf}
% \pdfminorversion=7
\usepackage[bookmarks,pdfstartview=FitH,pdfborder={0 0 0}]{hyperref}
\usepackage{verbatim}
\usepackage{listings}
\usepackage{textcomp}
\usepackage{fancyhdr}
\usepackage{multirow}
\usepackage{tikz}
\usepackage{lipsum}
\usepackage{xcolor}
\usepackage[margin=1in]{geometry}
\newcommand{\hint}[1]{{\color{blue} \em #1}}
\newcommand{\todo}[1]{\textcolor{red}{TODO: #1}\PackageWarning{TODO:}{#1!}}

View File

@ -1,92 +1,45 @@
\documentclass[11pt,oneside]{book}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{lscape}
\usepackage{psfrag}
\usepackage[usenames]{color}
\usepackage{bbm}
\usepackage[update]{epstopdf}
% \pdfminorversion=7
\usepackage[bookmarks,pdfstartview=FitH,a4paper,pdfborder={0 0 0}]{hyperref}
\usepackage{verbatim}
\usepackage{listings}
\usepackage{textcomp}
\usepackage{fancyhdr}
\usepackage{multirow}
\usepackage{tikz}
\usepackage{lipsum}
\usepackage{xcolor}
\usepackage[margin=1in]{geometry}
\newcommand{\hint}[1]{{\color{blue} \em #1}}
\input{./preamble.tex}
\input{./variables.tex}
\begin{document}
\todo{Add correct data to variables}
% DOCUMENT INFORMATION
\newcommand*{\authorName}{John Doe}
\newcommand*{\supervisorName}{Prof.\,Dr.\,Kaveh Razavi}
\newcommand*{\tutorName}{Tutor's Fullname}
\newcommand*{\thesisTitle}{Title}
\newcommand*{\thesisType}{Bachelor/Master Thesis or Semester Project}
\newcommand*{\authorEmail}{john.doe@student.ethz.ch}
\newcommand*{\authorLegi}{23-456-789}
\newcommand*{\authorSemester}{4}
\input{./title.tex}
\begin{titlepage}
\centering
\includegraphics[width=\textwidth]{figures/header}\\[60mm]
%
{\Huge\bf\sf{
\thesisTitle %\\[5mm]
% Second Line of Thesis Title
}}\\[10mm]
{\Large\bf\sf \thesisType}\\[3mm]
%
{\Large\bf\sf Author: \authorName} \\[5mm]
{\sf Tutor: \tutorName}\\[5mm]
{\sf Supervisor: \supervisorName}\\[30mm]
%
{\sf December 2022 to July 2023}
\end{titlepage}
\thispagestyle{empty}
\newpage
\pagenumbering{roman}
\input{./chapters/00-abstract.tex}
\thispagestyle{empty}
\newpage
\pagenumbering{roman}
\input{chapters/00-abstract}
\clearpage
\setcounter{tocdepth}{2}
\tableofcontents
\clearpage
\clearpage
\setcounter{tocdepth}{2}
\tableofcontents
\clearpage
\pagenumbering{arabic}
\pagenumbering{arabic}
\input{./chapters/10-introduction.tex}
\input{./chapters/20-background.tex}
\input{./chapters/30-design.tex}
\input{./chapters/40-implementation.tex}
\input{./chapters/50-evaluation.tex}
\input{./chapters/60-discussion.tex}
\input{./chapters/70-related_work.tex}
\input{./chapters/80-conclusion.tex}
\clearpage
\addcontentsline{toc}{chapter}{References}
\bibliographystyle{acm}
\bibliography{refs}
\input{chapters/10-introduction}
\input{chapters/20-background}
\input{chapters/30-design}
\input{chapters/40-implementation}
\input{chapters/50-evaluation}
\input{chapters/60-discussion}
\input{chapters/70-related_work}
\input{chapters/80-conclusion}
\clearpage
\appendix
\pagenumbering{Roman}
\clearpage
\addcontentsline{toc}{chapter}{References}
\bibliographystyle{acm}
\bibliography{refs}
\input{./chapters/90-appendix.tex}
\clearpage
\appendix
\pagenumbering{Roman}
\input{chapters/90-appendix}
\clearpage
\input{chapters/99-declaration_originality}
\clearpage
\input{./chapters/99-declaration_originality.tex}
\end{document}

17
title.tex Normal file
View File

@ -0,0 +1,17 @@
%! TEX root = ./thesis.tex
\begin{titlepage}
\centering
\includegraphics[width=\textwidth]{figures/header}\\[60mm]
%
{\Huge\bf\sf{
\thesisTitle %\\[5mm]
% Second Line of Thesis Title
}}\\[10mm]
{\Large\bf\sf \thesisType}\\[3mm]
%
{\Large\bf\sf Author: \authorName} \\[5mm]
{\sf Tutor: \tutorName}\\[5mm]
{\sf Supervisor: \supervisorName}\\[30mm]
%
{\sf \dateDuration}
\end{titlepage}

10
variables.tex Normal file
View File

@ -0,0 +1,10 @@
%! TEX root = ./thesis.tex
\newcommand*{\authorName}{Jean-Claude Graf}
\newcommand*{\supervisorName}{Prof.\,Dr.\,Kaveh Razavi}
\newcommand*{\tutorName}{Johannes Wikner}
\newcommand*{\thesisTitle}{Speculative Retbleed}
\newcommand*{\thesisType}{Bachelor Thesis}
\newcommand*{\authorEmail}{dummy@superdummy.com}
\newcommand*{\authorLegi}{XX-XxX-xXx}
\newcommand*{\authorSemester}{6}
\newcommand*{\dateDuration}{February 2022 to August 2023}