report.tex 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. %%% DOCUMENT BEGIN
  2. \input{pre}
  3. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  4. %%%%%%%%%%%%%%%%%%%% FILL INN THE DETAILS %%%%%%%%%%%%%%%%%%%%%%%%%
  5. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  6. %%%%%%%%%%%%%%%%%%%%%% Personal details %%%%%%%%%%%%%%%%%%%%%%%%%%%
  7. \def \myname{My name}
  8. \def \mysign{abc123}
  9. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  10. %%%%%%%%%%%%%%%%%%%%%%% Course details %%%%%%%%%%%%%%%%%%%%%%%%%%%%
  11. \def \university{University of Tromsø \\The Arctic University of Norway}
  12. \def \coursecode{XXX-0000}
  13. \def \coursename{Course name}
  14. \def \coursedep{Department of ...} % e.g Computer Science
  15. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  16. %%%%%%%%%%%%%%%%%%%%%% Document details %%%%%%%%%%%%%%%%%%%%%%%%%%%
  17. \def \doctype{Assignment} % project, thesis etc.
  18. \def \docnum{0} % Assigment 1, 2, 3 etc?
  19. \def \docdesc{My assignment} % Assignment header
  20. \def \docdate{\today} % Will be todays date
  21. %%%%%%%%%%%%%%%%%%%% DONE EDITING DETAILS %%%%%%%%%%%%%%%%%%%%%%%%%
  22. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  23. % NO EDIT %%%%%%%%%%%%%%% VARIABLES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  24. \def \thetitle {\coursecode\ \coursename} % The title
  25. \def \thesubtitle {\doctype\ \#\docnum: \docdesc} % The subtitle
  26. \def \theauthor {\myname\ -- \mysign} % The author
  27. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  28. % NO EDIT %%%%%%%%%%%%%% PAGE STYLE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  29. \pagestyle{fancy}
  30. \pagestyle{fancyplain} % or: empty, plain, fancy
  31. \renewcommand{\headrulewidth}{1pt}
  32. \renewcommand{\footrulewidth}{0pt}
  33. \lhead{\fancyplain{}{\thetitle\ -- \thesubtitle}} % left header
  34. \chead{} % center header
  35. \rhead{\fancyplain{}{\theauthor{}}} % right header
  36. \lfoot{} % left footer
  37. \cfoot{Page {\thepage} of \pageref{LastPage}} % center footer
  38. \rfoot{} % right footer
  39. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  40. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  41. %%%%%%%%%%%%%%%%%%%%%%%%% DOCUMENT BEGIN %%%%%%%%%%%%%%%%%%%%%%%%%%
  42. \begin{document} % Nothing more to do here
  43. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  44. % NO EDIT %%%%%%%%%%%%% DOCUMENT FRONTPAGE %%%%%%%%%%%%%%%%%%%%%%%%
  45. \begin{titlepage}
  46. \begin{center}
  47. \textsc{\\[3.5cm] \huge \university}\\[1.5cm]
  48. \textsc{\LARGE \thetitle}\\[0.5cm]
  49. \textsc{\Large \thesubtitle}\\[1.5cm]
  50. \LARGE{\theauthor} \\[0.5cm] \large{\coursedep}
  51. \vfill
  52. {\large \docdate}
  53. \end{center}
  54. \thispagestyle{empty}
  55. \end{titlepage}
  56. \newpage{}
  57. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  58. % NO EDIT %%%%%%%%%%%%% TABLE OF CONTENTS %%%%%%%%%%%%%%%%%%%%%%%%%
  59. \thispagestyle{empty}
  60. \tableofcontents{}
  61. \newpage{}
  62. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  63. %%%%%%%%%%%%%%%%%%%%%%%%% DOCUMENT BODY %%%%%%%%%%%%%%%%%%%%%%%%%%%
  64. % Start counting pages from document body (excl. frontpage and Toc)
  65. \setcounter{page}{1}
  66. %%%%%%%%%%%%%%%%%%%% INTRO TECHNICAL REPORT %%%%%%%%%%%%%%%%%%%%%%%
  67. % A technical report complements and describes the work which has
  68. % been done, e.g:
  69. % – Contribution and lessons learned
  70. % – To enable the reader to gain insight and to reproduce the work
  71. % Structured report:
  72. % – Follows some basic principles (covered for in each section)
  73. %%%%%%%%%%%%%%%%%%% DESCRIPTION INTRODUCTION %%%%%%%%%%%%%%%%%%%%%%
  74. % Gives a brief introduction to the problem
  75. % – E.g. “In this paper, we describe the design and implementation
  76. % of a set ADT.”
  77. % A subsection can state the requirements for the particular
  78. % assignment/problem. The introduction should not give away to many
  79. % details or discoveries (this comes later).
  80. \section{Introduction}
  81. \label{sec:intro}
  82. This report-template adopts the suggested report structure given
  83. by the Department of Computer Science at The University of Tromsø.
  84. Each section is commented with the information it should contain,
  85. e.g (from source code from Section~\ref{sec:intro}):
  86. \begin{verbatim}
  87. %%%%%%%%%%%%%%%%%%% DESCRIPTION INTRODUCTION %%%%%%%%%%%%%%%%%%%%%%
  88. % Gives a brief introduction to the problem
  89. % - E.g. In this paper, we describe the design and implementation
  90. % of a set ADT.
  91. % A subsection can state the requirements for the particular
  92. % assignment/problem. The introduction should not give away to many
  93. % details or discoveries (this comes later).
  94. \end{verbatim}
  95. All the dummy text shown in the report is create by a simple method called ”lipsum”, just remove it or comment it out with a \%-sign.
  96. \subsection{Bibliography}
  97. \label{sub:bibliography}
  98. This template uses Natbib\footnote{http://merkel.texture.rocks/Latex/natbib.php} to generate the bibliography. All elements in the reference list is stored in the file \emph{bibliography.bib}, which you open and edit as a normal text-file.
  99. There is a Chrome extension \citep{BibTe3:online} that can easily create a BibText-entry for you, which works nice with the Natbib file. Ensure that the identifier \footnote{e.g @book\{\-identifier\-, ... \}, see bibliography.bib for examples} is unique.
  100. \subsubsection{Compiling and lost references}
  101. \label{ssub:compilinglostref}
  102. \begin{itemize}
  103. \item LaTeX has some issues with bibliography-files, and these need to be compiled up to three times. In Gummy I usually press the detect button three times and compile three times, under the tab ”Bibliography” all the way to the right above the preview pane.
  104. \item Please note that you must reference an element in the bibliography file to get it shown in the actual reference list, and this must be already done when compiling the bibliography. Read more about this in the comments (in the source code) for the section bibliography.
  105. \end{itemize}
  106. % subsubsection compilinglostref (end)
  107. % subsection bibliography (end)
  108. \subsection{Citation example}
  109. \label{sub:citation}
  110. In this report we will cover a implementation of Blablabla \citep[page 188-220]{patterson2013computer}. Our implementation must use the standard ThisIsIt \citep*[page 3-5]{Publi6:Online}.
  111. % subsection citation (end)
  112. \subsection{Resources to LaTeX}
  113. \label{sub:resources}
  114. See the folder "Resources" for many tips and tricks :) - GOOD LUCK.
  115. % subsection resources (end)
  116. % section intro (end)
  117. %%%%%%%%%%%%%%% DESCRIPTION TECHNICAL BACKGROUND %%%%%%%%%%%%%%%%%%
  118. % Covers the topics needed to solve the problem
  119. % – E.g. a high-level description of linked-lists and/or trees
  120. % – “What you needed to know before solving the problem”
  121. % Does NOT explain your solution
  122. % – This is covered in the design and implementation sections
  123. \section{Technical background}
  124. \label{sec:techback}
  125. % Content
  126. \lipsum[2-3] % Generate dummy text
  127. % section techback (end)
  128. %%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION DESIGN %%%%%%%%%%%%%%%%%%%%%%%%%
  129. % “How did you solve the problem?” Give a detailed description of
  130. % your solution, e.g:
  131. % – Set union was implemented using a merge algorithm (along with
  132. % a description of the algorithm).
  133. % Should NOT contain references to actual code, i.e:
  134. % – The solution should be language (C, Python etc.) and platform
  135. % (Windows, Linux) agnostic.
  136. % Figures are essential!
  137. \section{Design}
  138. \label{sec:design}
  139. % Content
  140. \lipsum[4-5] % Generate dummy text
  141. % section design (end)
  142. %%%%%%%%%%%%%%%%%%% DESCRIPTION IMPLEMENTATION %%%%%%%%%%%%%%%%%%%%%
  143. % Technical details to how the problem was solved
  144. % (briefly) and (can) contain the answer to:
  145. % – Which language was used?
  146. % – Any troubles during the implementation?
  147. % – Any bugs?
  148. % – How was the development process?
  149. % This is NOT a step-by-step explanation of the implementation
  150. % – As the report is a high-level description of how a problem was solved
  151. % – Don’t copy and paste code into the report
  152. \section{Implementation}
  153. \label{sec:implementation}
  154. % Content
  155. \lipsum[4-5] % Generate dummy text
  156. % section implementation (end)
  157. %%%%%%%%%%%%%%%%%%%%% DESCRIPTION DISCUSSION %%%%%%%%%%%%%%%%%%%%%%%
  158. % Discuss the design choices made
  159. % – In favor of your solution
  160. % – Compare to other solutions (e.g. trees vs lists)
  161. % Non-functional aspects
  162. % – Performance, scalability, robustness etc.
  163. % – Use Big-Oh notation to describe the algorithms
  164. \section{Discussion}
  165. \label{sec:discussion}
  166. % Content
  167. \lipsum[4-5] % Generate dummy text
  168. % section discussion (end)
  169. %%%%%%%%%%%%%%%%%%%%% DESCRIPTION EVALUATION %%%%%%%%%%%%%%%%%%%%%%%
  170. % Prove that your implementation is correct and performs as should.
  171. % Correctness checking:
  172. % – Validating that the behavior and output is correct given
  173. % some input.
  174. % Performance:
  175. % – Metrics such as time, storage cost and memory consumption
  176. % – Compare your solution to others
  177. % – Graphs (e.g. insertion time in list with increasing size)
  178. \subsection{Evaluation}
  179. \label{sub:evaluation}
  180. % Content
  181. \lipsum[4-5] % Generate dummy text
  182. % subsection evaluation (end)
  183. %%%%%%%%%%%%%%%%%%%%% DESCRIPTION CONCLUSION %%%%%%%%%%%%%%%%%%%%%%%
  184. % Sum up by restating the problem and solution
  185. % – E.g. “In this report we have described a set ADT.”
  186. % Follow up with a brief summary of the solution along with
  187. % lessons learned
  188. % – E.g. “By using lists, we were able to implement set operation
  189. % in linear time”
  190. \section{Conclusion}
  191. \label{sec:conclusion}
  192. % Content
  193. \lipsum[4-5] % Generate dummy text
  194. % section conclusion (end)
  195. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  196. %%%%%%%%%%%%%%%%%%%%%%%%%%% BIBLIOGRAPHY %%%%%%%%%%%%%%%%%%%%%%%%%%%
  197. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  198. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% NOTES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  199. %
  200. % Edit the file "bibliography.bib" and add all your references to
  201. % this file. The syntax is Bibtex, which you can read more about
  202. % here: http://www.bibtex.org/Format/.
  203. %
  204. % There are also examples on how to format these entries in the
  205. % file, but as a tip there are many websites who offers a link
  206. % such as «cite this page», that will generate this bibtex-entry
  207. % for you.
  208. %
  209. % IMPORTANT!
  210. % 1. A bibtex-entry must be cited to show up in the bibliography.
  211. % More about cite, citet, citep here: https://goo.gl/sGjup3
  212. % 2. There is a bug in either bibtex or latex, so you must(!)
  213. % 2.1 Compile the bibtex-file (after citation) 2-3 times.
  214. % 2.2 Compile the latex-file (after citation) 2-3 times.
  215. %
  216. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  217. \newpage
  218. % if you want surname, firstname, change to "lastnamefirst"
  219. \bibliographystyle{natbib-bsts/firstnamefirst}
  220. \bibliography{bibliography}
  221. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  222. %%%%%%%%%%%%%%%%%%%%%%%%%%% DOCUMENT END %%%%%%%%%%%%%%%%%%%%%%%%%%
  223. \end{document}
  224. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%