PhD (without cover) looks pretty good. Time to move onto MSc.
This commit is contained in:
@@ -34,6 +34,9 @@
|
||||
%%% Macros for SI Units in text
|
||||
%% e.g. \SI{9.8}{\meter\per\second}
|
||||
|
||||
\usepackage[final]{listings}
|
||||
%%% Formatting code inclusion and snippets
|
||||
%% "final" option to force it to display code
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
\begin{document}
|
||||
@@ -96,12 +99,12 @@ Student et al.\cite{student2015awesome} of which I am an author.
|
||||
}
|
||||
|
||||
|
||||
%\coverchapter{Publications}
|
||||
%% Some Dissertations present the related papers first
|
||||
%\chapter*{Publications}
|
||||
%% Some Dissertations present the related papers first, but this is sometimes in Preface
|
||||
\clearpage{}
|
||||
\tableofcontents{}\clearpage%TODO: remove toc from toc
|
||||
\listoffigures{}\clearpage%%RUM: "List of figures"
|
||||
\listoftables{}\clearpage%%RUM: "List of tables"
|
||||
\tableofcontents{}\clearpage
|
||||
\listoffigures{}\clearpage
|
||||
\listoftables{}\clearpage
|
||||
|
||||
%% The list of abbreviations is an example of a special list
|
||||
%% Other lists may be added, such as lists of algorithms, symbols, theorems, etc.
|
||||
@@ -123,16 +126,34 @@ $c$ &Speed of Light &\SI{2.99E8}{\meter\per\second\square}\\
|
||||
|
||||
\mainmatter{}
|
||||
\aliaspagestyle{chapter}{empty}
|
||||
%% If you would like to separate chapters into different files, use
|
||||
%% \include{chapterfile.tex}
|
||||
\chapter{The First Chapter}
|
||||
\section{Introduction}
|
||||
\lipsum[0-20]
|
||||
% Don't put page numbers on the chapter changes
|
||||
|
||||
%% If you would like to separate chapters into different files, use
|
||||
%% \include{chapterfile}
|
||||
%% WARNING: Make sure that all of these files (and any new ones)
|
||||
%% are UTF-8 otherwise you will get weird encoding errors.
|
||||
\part{The First Part} % Parts optional but useful in longer documents
|
||||
\chapter{The First Chapter}
|
||||
\include{introduction}%Chapter in introduction.tex
|
||||
\section{Another Section}
|
||||
\part{The Second Part} % Parts optional but useful in longer documents
|
||||
|
||||
\bibliographystyle{ieeetran}
|
||||
\bibliography{references}
|
||||
|
||||
%% If appendices are needed, uncomment the following line
|
||||
%% and include the appendices in separate files
|
||||
\appendix{}%%RUM: "Appendicies (as appropriate)
|
||||
\input{code} % as an example, perhaps some of your code
|
||||
|
||||
%\backmatter{} % Sections after this don't get numbers
|
||||
%% We prefer that all elements be numbered
|
||||
|
||||
%%%%%%%%%%%%% SHOW INDEX %%%%%%%%%%%%%%%%%%
|
||||
%% Index, optional. A good idea on longer documents
|
||||
\clearforchapter{}
|
||||
\printindex{}%%RUM: Not mentioned
|
||||
|
||||
\end{document}
|
||||
%%% Local Variables:
|
||||
%%% mode: latex
|
||||
|
||||
84
code.tex
Normal file
84
code.tex
Normal file
@@ -0,0 +1,84 @@
|
||||
\chapter{Code}\label{cha:code}
|
||||
You can put code in your document using the \texttt{listings} package, which is
|
||||
loaded. Be aware that the listings
|
||||
package does not put code in your document if you are in draft mode
|
||||
unless you give it the \texttt{final} option.
|
||||
|
||||
There is an example java (Listing~\ref{src:Data_Bus.java}) and XML
|
||||
file (Listing~\ref{src:AndroidManifest.xml}). Thanks to the
|
||||
\texttt{url} package, you can typeset OSX and unix paths like this:
|
||||
\path{/afs/rnd.ru.is/project/thesis-template}. Windows paths:
|
||||
\path{C:\windows\temp\ }. Note: The \texttt{menukey} package has
|
||||
similar functionality but may cause problems.
|
||||
|
||||
If you are trying to include multiple different languages, you should
|
||||
go read the documentation and set these up as below. You
|
||||
will save yourself a lot of effort, especially if you have to fix
|
||||
anything.
|
||||
|
||||
%% This default style make long lines wrap nicely
|
||||
\lstdefinestyle{default}{
|
||||
%basicstyle=\footnotesize\ttfamily,%
|
||||
numbers=left,%
|
||||
numberstyle=\tiny,%
|
||||
numberfirstline=true,%
|
||||
stepnumber=2,%
|
||||
numbersep=5pt,%
|
||||
columns=fullflexible,%
|
||||
tabsize=4,%
|
||||
frame=lines,%
|
||||
breaklines=true,% break long lines
|
||||
prebreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\color{red}\hookleftarrow}}, % red arrow
|
||||
postbreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\color{red}\hookrightarrow}}, % red arrow
|
||||
% from http://tex.stackexchange.com/questions/116534/lstlisting-line-wrapping
|
||||
}
|
||||
\lstset{%
|
||||
language=,%default similar to verbatim
|
||||
style=default,
|
||||
}
|
||||
|
||||
%% The pre-defined languages we want to use.
|
||||
\lstloadlanguages{Java, XML}
|
||||
|
||||
%% We can also define a new language (so we can change some formatting)
|
||||
%% 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"
|
||||
\lstdefinelanguage[android]{XML}%
|
||||
{ %
|
||||
sensitive=false,% case-insensitive
|
||||
classoffset=0, % first class
|
||||
morekeywords={manifest},
|
||||
classoffset=1, % second class
|
||||
morekeywords={uses, sdk, application, activity},
|
||||
keywordstyle=\color{blue}, % set a color
|
||||
classoffset=0, % reset back to 0
|
||||
}
|
||||
|
||||
%% We use listing styles to adjust the appearance
|
||||
%% Be careful you do not make a recursive style nor language!!
|
||||
%% This makes use of the listing package to show program output
|
||||
\lstdefinestyle{progoutput}{
|
||||
language=sh,
|
||||
frame=single,
|
||||
breaklines=true,
|
||||
prebreak=\textbackslash,
|
||||
captionpos=b,
|
||||
basicstyle=\small\ttfamily,
|
||||
showstringspaces=false
|
||||
}
|
||||
|
||||
%%I have put the source code in the \directory{src/} folder.
|
||||
\lstinputlisting[language=Java, firstline=1,
|
||||
lastline=40, caption={Data\_Bus.java: Setting up the class.},
|
||||
label={src:Data_Bus.java}]{src/Data_Bus.java}
|
||||
|
||||
\lstinputlisting[language={[android]XML}, firstline=1, lastline=20,
|
||||
caption={AndroidManifest.xml: Configuration for the Android UI.},
|
||||
label={src:AndroidManifest.xml}]{src/AndroidManifest.xml}
|
||||
|
||||
%% TODO: fix wrapping from custom.sty
|
||||
|
||||
%%% Local Variables:
|
||||
%%% mode: latex
|
||||
%%% TeX-master: "PHD-NAME-YEAR"
|
||||
%%% End:
|
||||
56
introduction.tex
Normal file
56
introduction.tex
Normal file
@@ -0,0 +1,56 @@
|
||||
\chapter{Introduction\label{cha:introduction}}
|
||||
%% \ifdraft only shows the text in the first argument if you are in draft mode.
|
||||
%% These directions will disappear in other modes.
|
||||
State the objectives of the exercise. Ask yourself:
|
||||
\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
|
||||
solution interesting or novel?
|
||||
|
||||
\section{Background}
|
||||
Provide background about the subject matter (e.g. How was morse code
|
||||
developed? How is it used today?.
|
||||
|
||||
This is a place where there are usually many citations.
|
||||
It is suspicious when there is not.
|
||||
Include the purpose of the different equipment and your design intent.
|
||||
Include references to relevant scientific/technical work and books.
|
||||
What other examples of similar designs exist?
|
||||
How is your approach distinctive?
|
||||
|
||||
If you have specifications or related standards, these must be
|
||||
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}
|
||||
|
||||
\section{Example Section}
|
||||
\begin{figure}
|
||||
\centering
|
||||
\includegraphics[width=0.3\textwidth]{ru-logo}
|
||||
\caption[RU Logo]{Reykjavík University Logo, used with permission.}\label{fig:ru-logo}
|
||||
\end{figure}
|
||||
\begin{table}
|
||||
\centering
|
||||
\begin{tabular}{ll}
|
||||
$x$& $x^{2}$\\
|
||||
1 &1\\
|
||||
2 &4\\
|
||||
3 &9\\
|
||||
\end{tabular}
|
||||
\caption{Table of squared numbers}\label{tab:numbers}
|
||||
\end{table}
|
||||
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.
|
||||
There is a helpful list of squared numbers in Table~\ref{tab:numbers}.
|
||||
|
||||
The test text ``Lorem Ipsum''\index{Lorem Ipsum} is from an ancient text from 45 B.C. \cite{cicero46deFinibus, lipsomwebsite}\\
|
||||
\lipsum[1-5]
|
||||
\subsection{Subsection}
|
||||
\lipsum[6-10]
|
||||
\subsubsection{SubSubsection}
|
||||
\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}
|
||||
\lipsum[11-18]
|
||||
|
||||
%%% Local Variables:
|
||||
%%% mode: latex
|
||||
%%% TeX-master: "PHD-NAME-YEAR"
|
||||
%%% End:
|
||||
15
rubook.sty
15
rubook.sty
@@ -348,9 +348,6 @@
|
||||
\begin{center}\em}
|
||||
{\end{center}\normalfont\end{vplace}\end{cover}}
|
||||
|
||||
|
||||
|
||||
|
||||
%%%%%%%%%%%% DRAFT AND PROOF MARKS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\newcommand{\draftmark}{}
|
||||
\newcommand{\draftbigmark}{}
|
||||
@@ -363,7 +360,7 @@
|
||||
\aliaspagestyle{book}{simple}
|
||||
\aliaspagestyle{chapter}{plain}%At the beginning we want page numbers on chapters
|
||||
\aliaspagestyle{cleared}{simple}
|
||||
\aliaspagestyle{part}{simple}
|
||||
\aliaspagestyle{part}{empty}
|
||||
\aliaspagestyle{title}{simple}
|
||||
\aliaspagestyle{titlinpage}{empty}
|
||||
|
||||
@@ -384,16 +381,6 @@
|
||||
\makeoddfoot{cover}{}{}{}
|
||||
\makeevenfoot{cover}{}{}{}
|
||||
|
||||
\makepagestyle{covernum} % but maybe we need to have numbers anyway on some pages
|
||||
\makeevenhead{covernum}{\thepage}{}{}
|
||||
\makeoddhead{covernum}{}{}{\thepage}
|
||||
|
||||
|
||||
|
||||
\AtBeginDocument{\addtocontents{toc}{\protect\thispagestyle{chapter}}}%The TOC should use the cover format
|
||||
\AtBeginDocument{\addtocontents{lof}{\protect\thispagestyle{chapter}}}%The TOC should use the cover format
|
||||
\AtBeginDocument{\addtocontents{lot}{\protect\thispagestyle{chapter}}}%The TOC should use the cover format
|
||||
|
||||
\newcommand{\coverchapter}[1]{\clearforchapter\pagestyle{cover}\chapter{#1}\thispagestyle{cover}}
|
||||
|
||||
|
||||
|
||||
27
src/AndroidManifest.xml
Normal file
27
src/AndroidManifest.xml
Normal file
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.example.mycoolapp"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0" >
|
||||
|
||||
<uses-sdk
|
||||
android:minSdkVersion="13"
|
||||
android:targetSdkVersion="13" />
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:icon="@drawable/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:theme="@style/AppTheme" >
|
||||
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:label="@string/app_name" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
</application>
|
||||
</manifest>
|
||||
25
src/Data_Bus.java
Normal file
25
src/Data_Bus.java
Normal file
@@ -0,0 +1,25 @@
|
||||
package com.example.mycoolapp;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
import android.widget.TextView;
|
||||
|
||||
// I am creating a comment that is very very long to demonstrate how the line wrapping system works. You should see a symbol to annotate that it has been wrapped to the next line.
|
||||
public class Data_Bus extends Activity {
|
||||
Button Next;
|
||||
TextView textdisplay1, textdisplay2;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
// TODO Auto-generated method stub
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.adc_databustest);
|
||||
Next = (Button) findViewById (R.id.checkButton);
|
||||
textdisplay1 = (TextView) findViewById (R.id.tvTop);
|
||||
textdisplay2 = (TextView) findViewById (R.id.tvBottom);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user