-
Notifications
You must be signed in to change notification settings - Fork 9
/
BScThesis.tex
288 lines (229 loc) · 8.88 KB
/
BScThesis.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
%% sample template file for a BSc Thesis
%% The default is the norsk version with two sided setup:
\documentclass[%
norsk, %% comment for english version
% oneside %% uncomment for onesided layout
% nosummary %% uncomment if no summary page should be generated
]{USN-BSc}
% --- Bibliography setup ---
%%% default is the "ieee" style
\usepackage[style=ieee, sorting=none]{biblatex}
%%% If you want to use "author-year" style
%%% where `\cite{Foo2011}` generates "Foo et al. (2011)"
%%% and `\parencite{Foo2011}` generates "(Foo et al. 2011)"
%%% then comment the line above and use
%\usepackage[style=authoryear]{biblatex}
%%% or
%%% if you want to use "alphabetic" style then use
%%% where `cite[Foo2011]` generates "[Foo11]"
%%% then comment the line above and use
%\usepackage[style=alphabetic]{biblatex}
%%% instead.
%% load the bib file:
\addbibresource{thesis.bib}
\usepackage{lipsum} % just for providing fill text used in this template
% --- general setup ---
%% Please fill in the following parameters:
\newcommand{\mytitle}{%
%% title:
<tittel>
}
\newcommand{\mysubtitle}{%
%% subject code:
<emnekode og emnenavn>
}
\newcommand{\myauthor}{%
%% group code:
<gruppekode>
}
\newcommand{\supervisor}{%
%% supervisor:
<super name>}
\begin{document}
% --- title page setup ---
\USNtitlepage%
%% Please provide the following information:
%% #1 semster:
{1}
%% #2 optional figure (set to {} if not wanted)
{\vfill
{\normalsize <Eventuell figur>}
\includegraphics[draft,width=\textwidth]{USN_logo_en}}
%% #3 date
{} % leave this empty to deactivate display
%% #4 group members
{%
<første deltaker, NB! Ingen signatur her>\\
<andre deltaker, NB! Ingen signatur her>\\
<tredje deltaker, NB! Ingen signatur her>\\
<fjerde deltaker, NB! Ingen signatur her>\\
<femte deltaker, NB! Ingen signatur her>\\
<sjette deltaker, NB! Ingen signatur her>
}
%% #5 Project partner:
{<name>}
%% #6 Norwegian Summary:
{%
\lipsum[7]
}
%% #7 English Summary:
{%
\lipsum[7]
}
%% The chapter name for preface is set depending on language
\chapter*{\USNpreface}
\label{sec:preface}
\addcontentsline{toc}{chapter}{\USNpreface}
<Skriv forordet her
\lipsum[1]>
Porsgrunn, \today
% We no longer need signatures here...
% \bigskip
% % Fill in your names in the table:
% \begin{center}
% \begin{tabular}{ll}
% \makebox[50mm]{\hrulefill} \hspace{40mm} & \makebox[50mm]{\hrulefill} \\
% <deltaker> & <deltaker> \\[20mm]
% \makebox[50mm]{\hrulefill} \hspace{40mm} & \makebox[50mm]{\hrulefill} \\
% <deltaker> & <deltaker>
% \end{tabular}
% \end{center}
% \vfill
%% table of contents
\tableofcontents
\addcontentsline{toc}{chapter}{\contentsname}
\listoffigures % out-comment if unwanted
\addcontentsline{toc}{section}{\listfigurename}
\listoftables % out-comment if unwanted
\addcontentsline{toc}{section}{\listtablename}
\chapter*{Nomenclature}
\label{sec:nomenclature}
\begin{longtable}{ll}
\textbf{Symbol} & \textbf{Explanation}\endhead\\
A/D & Analogue-Digital-Converter \\
CMR & Common Mode Rejection \\
foo & Foo \\
bar & Bar
\end{longtable}
\chapter{Innledning}
\label{ch:intro}
<Skriv innledningen her
Disposisjon: Bakgrunn – detaljbeskrivelse – mål – metoder – avgrensinger – leserveiledning.
>
\section{Bakgrunn}
\label{sec:back}
\lipsum[4]
\begin{equation}
e = m c^2
\end{equation}
\lipsum[5]
\chapter{Hovedkapitlene}
\label{ch:main}
<Begynn hvert hovedkapittel med å fortelle hva kapittelet dreier seg om.>
\section{Underkapittel}
\label{sec:underkappittel}
<Her følger eksempler på objekter som ofte brukes i en rapport og hvordan de skal nummereres.>
Under er det en tabell som benevnes \tabref{tab:number} (\LaTeX-kode: \verb#\tabref{tab:number}#). OBS! Legg merke til at tabellteksten skal være på oversiden av tabellen.
\begin{table}[!ht]
\caption{The different number systems}
\label{tab:number}
\centering
\begin{tabular}{|r|l|}
\hline
7C0 & hexadecimal \\
3700 & octal \\ \cline{2-2}
11111000000 & binary \\
\hline \hline
1984 & decimal \\
\hline
\end{tabular}
\end{table}
\section{Enda en underkapittel}
\label{sec:endaunderkappittel}
Under følger en figur og medfølgende figurtekst, \figref{fig:usn-logo} (\LaTeX-kode: \verb#\figref{fig:usn-logo}#), som skal plasseres under bildet/figuren. Figuren og figurteksten skal være midtstilt.
\begin{figure}[!ht]
\centering
\includegraphics[width=0.8\textwidth]{USN_logo}
\caption{Norwegian (bokmål) variant of the USN logo}
\label{fig:usn-logo}
\end{figure}
\lipsum
\begin{figure}[!ht]
\centering
\includegraphics[width=0.8\textwidth]{USN_logo_en}
\caption{English variant of the USN logo.}
\label{fig:usn-logo-en}
\end{figure}
\lipsum[9]
\chapter{Diskusjon}
\label{sec:diskusjon}
<Utfør diskusjonen her>
The differential forms of Maxwell's equations as found by Heaviside, while completely valid, are now considered somewhat archaic, and have been replaced by the more useful (equivalent) integral forms. Each law is named according to the person(s) who originally discovered the connections represented by the equation. Here are the four equations\eqref{eq:gaussele} to \eqref{eq:max}
\begin{eqnarray}
\text{Gauss' law for electricity:}& \displaystyle \oint{\vec{E}\cdot\mathrm{d}\vec{A}}&=\frac{Q_{enc}}{\epsilon_0}\label{eq:gaussele}\\
\text{Gauss' law for magnetism:}& \displaystyle \oint{\vec{B}\cdot\mathrm{d}\vec{A}}&=0\label{eq:gaussmag}\\
\text{Faraday's law:}& \displaystyle\oint{\vec{E}\cdot\mathrm{d}\vec{s}}&=-\frac{\emph{d}\phi_b}{\mathrm{d}t}\label{eq:fara}\\
\text{Ampere-Maxwell law:}& \displaystyle\oint{\vec{B}\cdot\mathrm{d}\vec{s}}&=\mu_0\epsilon_0\frac{\emph{d}\phi_e}{\mathrm{d}t}+\mu_0 i_{enc}\label{eq:max}
\end{eqnarray}
Note: $\oint$ is used to specify a closed loop integral, also known as a line integral. It simply means that in the calculations, we must go all the way around the loop; we can't stop part way through or the equations won't be valid.
\chapter{Konklusjon}
\label{sec:konklusjon}
<Skriv konklusjonen her>
\begin{table}[!ht]
\caption{The weather forecast}
\centering
\begin{tabular}{| l | l | l | p{5cm} |}
\hline
Day & Min Temp & Max Temp & Summary \\ \hline
Monday & 11C & 22C & A clear day with lots of sunshine.
However, the strong breeze will bring down the temperatures. \\ \hline
Tuesday & 9C & 19C & Cloudy with rain, across many northern regions. Clear spells
across most of Scotland and Northern Ireland,
but rain reaching the far northwest. \\ \hline
Wednesday & 10C & 21C & Rain will still linger for the morning.
Conditions will improve by early afternoon and continue
throughout the evening. \\
\hline
\end{tabular}
\end{table}
% A dummy command that causes all bibliographyentries to be displayed
% even though there were not cited in the document. Used for demonstration
% purposes only in this template file.
~\nocite{*}
\cleardoublepage
% The bibliography should be displayed here...
\printbibliography[heading=bibintoc]
% You rather like to call the bibliography "References"? Then use this instead:
%\printbibliography[heading=bibintoc, title={References}]
\appendix
%\renewcommand{\appendixname}{NEWNAME} %% You can change the name of the appendix chapter
%\part{Published and Submitted Papers} %% DO NOT USE \part FOR MONOGRAPH
%\label{part:papers}
\chapter[Short Title of Paper A]{Title of Paper A (probably very long and therefore not good to have in the header)}
\label{paper-a}
\paragraph{Note}
Since some papers tend to have a rather long title it is good to provide the optional short title which then will be displayed in the table of contents and header instead of the long original title.
On the openening page of the chapter the orginal \emph{long} title will be displayed.\bigskip
\emph{Short descriptive text of paper follows here.}\bigskip
The paper itself needs to be included in the published form as PDF on the next pages.
This can be done using the \texttt{pdfpages} package by adding the command:
\begin{verbatim}
\includepdf{pages=-,openright}{Filename}
\end{verbatim}
You can omit the \texttt{.pdf} when specifying the \texttt{Filename}. Also you should include always include the option \texttt{openright} since it would look strange to have the paper starting at the back of the cover page.
There are more options like only adding specific pages:
\begin{verbatim}
\includepdf{pages=2-6,openright}{Filename.pdf}
\end{verbatim}
For more options see Appendix~\ref{paper-b} where the most important pages of the \texttt{pdfpages} manual were inlcuded using \texttt{pdfpages}.
%%% Command to include a PDF file directly including all pages:
\chapter[Short Title of Paper B]{Title of Paper B}
\label{paper-b}
Short descriptive text of paper follows here.
Here we included the first five pages of the \texttt{pdfpages} manual itself.
\includepdf[pages=1-5,openright]{fig/pdfpages}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End: