Updates from Overleaf
This commit is contained in:
168
code.tex
168
code.tex
@@ -1,84 +1,84 @@
|
|||||||
\chapter{Code}\label{cha:code}
|
\chapter{Code}\label{cha:code}
|
||||||
You can put code in your document using the \texttt{listings} package, which is
|
You can put code in your document using the \texttt{listings} package, which is
|
||||||
loaded. Be aware that the listings
|
loaded. Be aware that the listings
|
||||||
package does not put code in your document if you are in draft mode
|
package does not put code in your document if you are in draft mode
|
||||||
unless you give it the \texttt{final} option.
|
unless you give it the \texttt{final} option.
|
||||||
|
|
||||||
There is an example java (Listing~\ref{src:Data_Bus.java}) and XML
|
There is an example java (Listing~\ref{src:Data_Bus.java}) and XML
|
||||||
file (Listing~\ref{src:AndroidManifest.xml}). Thanks to the
|
file (Listing~\ref{src:AndroidManifest.xml}). Thanks to the
|
||||||
\texttt{url} package, you can typeset OSX and unix paths like this:
|
\texttt{url} package, you can typeset OSX and unix paths like this:
|
||||||
\path{/afs/rnd.ru.is/project/thesis-template}. Windows paths:
|
\path{/afs/rnd.ru.is/project/thesis-template}. Windows paths:
|
||||||
\path{C:\windows\temp\ }. Note: The \texttt{menukey} package has
|
\path{C:\windows\temp\ }. Note: The \texttt{menukey} package has
|
||||||
similar functionality but may cause problems.
|
similar functionality but may cause problems.
|
||||||
|
|
||||||
If you are trying to include multiple different languages, you should
|
If you are trying to include multiple different languages, you should
|
||||||
go read the documentation and set these up as below. You
|
go read the documentation and set these up as below. You
|
||||||
will save yourself a lot of effort, especially if you have to fix
|
will save yourself a lot of effort, especially if you have to fix
|
||||||
anything.
|
anything.
|
||||||
|
|
||||||
%% This default style make long lines wrap nicely
|
%% This default style make long lines wrap nicely
|
||||||
\lstdefinestyle{default}{
|
\lstdefinestyle{default}{
|
||||||
%basicstyle=\footnotesize\ttfamily,%
|
%basicstyle=\footnotesize\ttfamily,%
|
||||||
numbers=left,%
|
numbers=left,%
|
||||||
numberstyle=\tiny,%
|
numberstyle=\tiny,%
|
||||||
numberfirstline=true,%
|
numberfirstline=true,%
|
||||||
stepnumber=2,%
|
stepnumber=2,%
|
||||||
numbersep=5pt,%
|
numbersep=5pt,%
|
||||||
columns=fullflexible,%
|
columns=fullflexible,%
|
||||||
tabsize=4,%
|
tabsize=4,%
|
||||||
frame=lines,%
|
frame=lines,%
|
||||||
breaklines=true,% break long lines
|
breaklines=true,% break long lines
|
||||||
prebreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\color{red}\hookleftarrow}}, % red arrow
|
prebreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\color{red}\hookleftarrow}}, % red arrow
|
||||||
postbreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\color{red}\hookrightarrow}}, % red arrow
|
postbreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\color{red}\hookrightarrow}}, % red arrow
|
||||||
% from http://tex.stackexchange.com/questions/116534/lstlisting-line-wrapping
|
% from http://tex.stackexchange.com/questions/116534/lstlisting-line-wrapping
|
||||||
}
|
}
|
||||||
\lstset{%
|
\lstset{%
|
||||||
language=,%default similar to verbatim
|
language=,%default similar to verbatim
|
||||||
style=default,
|
style=default,
|
||||||
}
|
}
|
||||||
|
|
||||||
%% The pre-defined languages we want to use.
|
%% The pre-defined languages we want to use.
|
||||||
\lstloadlanguages{Java, XML}
|
\lstloadlanguages{Java, XML}
|
||||||
|
|
||||||
%% We can also define a new language (so we can change some formatting)
|
%% We can also define a new language (so we can change some formatting)
|
||||||
%% Be careful you do not make a recursive style nor language!!
|
%% Be careful you do not make a recursive style nor language!!
|
||||||
%% You can just use the XML language, or in this case create a "dialect"
|
%% You can just use the XML language, or in this case create a "dialect"
|
||||||
\lstdefinelanguage[android]{XML}%
|
\lstdefinelanguage[android]{XML}%
|
||||||
{ %
|
{ %
|
||||||
sensitive=false,% case-insensitive
|
sensitive=false,% case-insensitive
|
||||||
classoffset=0, % first class
|
classoffset=0, % first class
|
||||||
morekeywords={manifest},
|
morekeywords={manifest},
|
||||||
classoffset=1, % second class
|
classoffset=1, % second class
|
||||||
morekeywords={uses, sdk, application, activity},
|
morekeywords={uses, sdk, application, activity},
|
||||||
keywordstyle=\color{blue}, % set a color
|
keywordstyle=\color{blue}, % set a color
|
||||||
classoffset=0, % reset back to 0
|
classoffset=0, % reset back to 0
|
||||||
}
|
}
|
||||||
|
|
||||||
%% We use listing styles to adjust the appearance
|
%% We use listing styles to adjust the appearance
|
||||||
%% Be careful you do not make a recursive style nor language!!
|
%% Be careful you do not make a recursive style nor language!!
|
||||||
%% This makes use of the listing package to show program output
|
%% This makes use of the listing package to show program output
|
||||||
\lstdefinestyle{progoutput}{
|
\lstdefinestyle{progoutput}{
|
||||||
language=sh,
|
language=sh,
|
||||||
frame=single,
|
frame=single,
|
||||||
breaklines=true,
|
breaklines=true,
|
||||||
prebreak=\textbackslash,
|
prebreak=\textbackslash,
|
||||||
captionpos=b,
|
captionpos=b,
|
||||||
basicstyle=\small\ttfamily,
|
basicstyle=\small\ttfamily,
|
||||||
showstringspaces=false
|
showstringspaces=false
|
||||||
}
|
}
|
||||||
|
|
||||||
%%I have put the source code in the \directory{src/} folder.
|
%%I have put the source code in the \directory{src/} folder.
|
||||||
\lstinputlisting[language=Java, firstline=1,
|
\lstinputlisting[language=Java, firstline=1,
|
||||||
lastline=40, caption={Data\_Bus.java: Setting up the class.},
|
lastline=40, caption={Data\_Bus.java: Setting up the class.},
|
||||||
label={src:Data_Bus.java}]{src/Data_Bus.java}
|
label={src:Data_Bus.java}]{src/Data_Bus.java}
|
||||||
|
|
||||||
\lstinputlisting[language={[android]XML}, firstline=1, lastline=20,
|
\lstinputlisting[language={[android]XML}, firstline=1, lastline=20,
|
||||||
caption={AndroidManifest.xml: Configuration for the Android UI.},
|
caption={AndroidManifest.xml: Configuration for the Android UI.},
|
||||||
label={src:AndroidManifest.xml}]{src/AndroidManifest.xml}
|
label={src:AndroidManifest.xml}]{src/AndroidManifest.xml}
|
||||||
|
|
||||||
%% TODO: fix wrapping from custom.sty
|
%% TODO: fix wrapping from custom.sty
|
||||||
|
|
||||||
%%% Local Variables:
|
%%% Local Variables:
|
||||||
%%% mode: latex
|
%%% mode: latex
|
||||||
%%% TeX-master: "PHD-NAME-YEAR"
|
%%% TeX-master: "PHD-NAME-YEAR"
|
||||||
%%% End:
|
%%% End:
|
||||||
|
|||||||
114
introduction.tex
114
introduction.tex
@@ -1,57 +1,57 @@
|
|||||||
\chapter{Introduction\label{cha:introduction}}
|
\chapter{Introduction\label{cha:introduction}}
|
||||||
%% \ifdraft only shows the text in the first argument if you are in draft mode.
|
%% \ifdraft only shows the text in the first argument if you are in draft mode.
|
||||||
%% These directions will disappear in other modes.
|
%% These directions will disappear in other modes.
|
||||||
State the objectives of the exercise. Ask yourself:
|
State the objectives of the exercise. Ask yourself:
|
||||||
\underline{Why} did I design/create the item? What did I aim to
|
\underline{Why} did I design/create the item? What did I aim to
|
||||||
achieve? What is the problem I am trying to solve? How is my
|
achieve? What is the problem I am trying to solve? How is my
|
||||||
solution interesting or novel?
|
solution interesting or novel?
|
||||||
|
|
||||||
\section{Background}
|
\section{Background}
|
||||||
Provide background about the subject matter (e.g. How was morse code
|
Provide background about the subject matter (e.g. How was morse code
|
||||||
developed? How is it used today?.
|
developed? How is it used today?.
|
||||||
|
|
||||||
This is a place where there are usually many citations.
|
This is a place where there are usually many citations.
|
||||||
It is suspicious when there is not.
|
It is suspicious when there is not.
|
||||||
Include the purpose of the different equipment and your design intent.
|
Include the purpose of the different equipment and your design intent.
|
||||||
Include references to relevant scientific/technical work and books.
|
Include references to relevant scientific/technical work and books.
|
||||||
What other examples of similar designs exist?
|
What other examples of similar designs exist?
|
||||||
How is your approach distinctive?
|
How is your approach distinctive?
|
||||||
|
|
||||||
If you have specifications or related standards, these must be
|
If you have specifications or related standards, these must be
|
||||||
described and cited also. As an example, you might cite the specific
|
described and cited also. As an example, you might cite the specific
|
||||||
RoboSub competition website (and documents) if working on the lighting system for an AUV\cite{guls2016auvlight}\index{AUV}
|
RoboSub competition website (and documents) if working on the lighting system for an AUV\cite{guls2016auvlight}\index{AUV}
|
||||||
|
|
||||||
\section{Example Section}
|
\section{Example Section}
|
||||||
\begin{figure}
|
\begin{figure}
|
||||||
\centering
|
\centering
|
||||||
\includegraphics[width=0.3\textwidth]{ru-logo}
|
\includegraphics[width=0.3\textwidth]{ru-logo}
|
||||||
\caption[RU Logo]{Reykjavík University Logo, used with permission.}\label{fig:ru-logo}
|
\caption[RU Logo]{Reykjavík University Logo, used with permission.}\label{fig:ru-logo}
|
||||||
\end{figure}
|
\end{figure}
|
||||||
\begin{table}
|
\begin{table}
|
||||||
\centering
|
\centering
|
||||||
\begin{tabular}{ll}\toprule
|
\begin{tabular}{ll}\toprule
|
||||||
$x$& $x^{2}$\\\midrule
|
$x$& $x^{2}$\\\midrule
|
||||||
1 &1\\
|
1 &1\\
|
||||||
2 &4\\
|
2 &4\\
|
||||||
3 &9\\\bottomrule
|
3 &9\\\bottomrule
|
||||||
\end{tabular}
|
\end{tabular}
|
||||||
\caption{Table of squared numbers}\label{tab:numbers}
|
\caption{Table of squared numbers}\label{tab:numbers}
|
||||||
\end{table}
|
\end{table}
|
||||||
There is an RU logo in Figure~\ref{fig:ru-logo}.
|
There is an RU logo in Figure~\ref{fig:ru-logo}.
|
||||||
This logo will scale according to the width of the text on the page.
|
This logo will scale according to the width of the text on the page.
|
||||||
There is a helpful list of squared numbers in Table~\ref{tab:numbers}.
|
There is a helpful list of squared numbers in Table~\ref{tab:numbers}.
|
||||||
This table is formatted in the style of a book, which is very differerent than the style one is used to in Excel.
|
This table is formatted in the style of a book, which is very differerent than the style one is used to in Excel.
|
||||||
|
|
||||||
The test text ``Lorem Ipsum''\index{Lorem Ipsum} is from an ancient text from 45 B.C. \cite{cicero46deFinibus, lipsomwebsite}\\
|
The test text ``Lorem Ipsum''\index{Lorem Ipsum} is from an ancient text from 45 B.C. \cite{cicero46deFinibus, lipsomwebsite}\\
|
||||||
\lipsum[1-5]
|
\lipsum[1-5]
|
||||||
\subsection{Subsection}
|
\subsection{Subsection}
|
||||||
\lipsum[6-10]
|
\lipsum[6-10]
|
||||||
\subsubsection{SubSubsection}
|
\subsubsection{SubSubsection}
|
||||||
\lipsum[11-15]
|
\lipsum[11-15]
|
||||||
\section[Section with an extremely long name]{Section with a very very very very very very very very very very very very very very very very very very very very long name}
|
\section[Section with an extremely long name]{Section with a very very very very very very very very very very very very very very very very very very very very long name}
|
||||||
\lipsum[11-18]
|
\lipsum[11-18]
|
||||||
|
|
||||||
%%% Local Variables:
|
%%% Local Variables:
|
||||||
%%% mode: latex
|
%%% mode: latex
|
||||||
%%% TeX-master: "PHD-NAME-YEAR"
|
%%% TeX-master: "PHD-NAME-YEAR"
|
||||||
%%% End:
|
%%% End:
|
||||||
|
|||||||
3286
references.bib
3286
references.bib
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user