Browse Source

Init commit in new Repo

Joachim M. Giæver 7 years ago
parent
commit
a0b635f72a
30 changed files with 6527 additions and 2 deletions
  1. 30 2
      README.md
  2. BIN
      Resources/LaTeX_Course_Resources/.DS_Store
  3. BIN
      Resources/LaTeX_Course_Resources/PDFs/.DS_Store
  4. BIN
      Resources/LaTeX_Course_Resources/PDFs/Empty_Master_Template.pdf
  5. BIN
      Resources/LaTeX_Course_Resources/PDFs/Frontpage_Example.pdf
  6. BIN
      Resources/LaTeX_Course_Resources/PDFs/IntroductionAndTemplate.pdf
  7. BIN
      Resources/LaTeX_Course_Resources/PDFs/LaTeX_Course_Slides.pdf
  8. BIN
      Resources/LaTeX_Course_Resources/TeX Documents/.DS_Store
  9. BIN
      Resources/LaTeX_Course_Resources/TeX Documents/Bibliography/.DS_Store
  10. 1435 0
      Resources/LaTeX_Course_Resources/TeX Documents/Bibliography/Template_LastNameFirst_Alphabetical.bst
  11. 31 0
      Resources/LaTeX_Course_Resources/TeX Documents/Bibliography/database_template.bib
  12. 163 0
      Resources/LaTeX_Course_Resources/TeX Documents/Empty_Master_Template.tex
  13. BIN
      Resources/LaTeX_Course_Resources/TeX Documents/Figures/.DS_Store
  14. BIN
      Resources/LaTeX_Course_Resources/TeX Documents/Figures/bibentry_example.pdf
  15. BIN
      Resources/LaTeX_Course_Resources/TeX Documents/Figures/chi1.png
  16. BIN
      Resources/LaTeX_Course_Resources/TeX Documents/Figures/chi2.png
  17. BIN
      Resources/LaTeX_Course_Resources/TeX Documents/Figures/chi3.png
  18. BIN
      Resources/LaTeX_Course_Resources/TeX Documents/Figures/chi4.png
  19. BIN
      Resources/LaTeX_Course_Resources/TeX Documents/Figures/figure_wrapped.pdf
  20. BIN
      Resources/LaTeX_Course_Resources/TeX Documents/Figures/higgs.jpg
  21. BIN
      Resources/LaTeX_Course_Resources/TeX Documents/Figures/relative_difference_v0450pdf.pdf
  22. 1089 0
      Resources/LaTeX_Course_Resources/TeX Documents/IntroductionAndTemplate.tex
  23. 539 0
      Resources/LaTeX_Course_Resources/TeX Documents/LaTeX_Course_Slides.tex
  24. BIN
      Resources/Natbib reference sheet.pdf
  25. 23 0
      bibliography.bib
  26. 1435 0
      natbib-bsts/firstnamefirst.bst
  27. 1435 0
      natbib-bsts/surnamefirst.bst
  28. 71 0
      pre.tex
  29. BIN
      report.pdf
  30. 276 0
      report.tex

+ 30 - 2
README.md

@@ -1,3 +1,31 @@
-# UIT-Report
+UIT-Report
+==========
 
-This report-template adopts the suggested report structure given  by the Department of Computer Science at The University of Tromsø.
+This report-template adopts the suggested report structure given  by the Department of Computer Science at The University of Tromsø.
+
+## Use:
+
+1. Just edit the report.tex and bibliography.bib file.
+2. Read comments in report.tex for each section, e.g:
+
+```latex
+%%%%%%%%%%%%%%% DESCRIPTION TECHNICAL BACKGROUND %%%%%%%%%%%%%%%%%%
+% Covers the topics needed to solve the problem
+% – E.g. a high-level description of linked-lists and/or trees
+% – “What you needed to know before solving the problem”
+% Does NOT explain your solution
+% – This is covered in the design and implementation sections
+```
+
+Remember to compile 2-3 times each time you updated/detected your bibliography to get it working (LaTeX bugs.....). More about this in the comments for bibliography, in the source code (report.tex).
+
+### Requirements
+* Install (Ubuntu): ```sudo apt-get install texlive-extra-utils texlive-xetex```
+
+## Use Gummi for LaTeX:
+* Install (Ubuntu): ```sudo apt-get install gummi```
+* http://en.wikipedia.org/wiki/Gummi_(software)
+
+### Gummy config?
+OK! 
+-> Comming.

BIN
Resources/LaTeX_Course_Resources/.DS_Store


BIN
Resources/LaTeX_Course_Resources/PDFs/.DS_Store


BIN
Resources/LaTeX_Course_Resources/PDFs/Empty_Master_Template.pdf


BIN
Resources/LaTeX_Course_Resources/PDFs/Frontpage_Example.pdf


BIN
Resources/LaTeX_Course_Resources/PDFs/IntroductionAndTemplate.pdf


BIN
Resources/LaTeX_Course_Resources/PDFs/LaTeX_Course_Slides.pdf


BIN
Resources/LaTeX_Course_Resources/TeX Documents/.DS_Store


BIN
Resources/LaTeX_Course_Resources/TeX Documents/Bibliography/.DS_Store


+ 1435 - 0
Resources/LaTeX_Course_Resources/TeX Documents/Bibliography/Template_LastNameFirst_Alphabetical.bst

@@ -0,0 +1,1435 @@
+%% File: `plainnat.bst'
+%% A modification of `plain.bst' for use with natbib package 
+%%
+%% Copyright 1993-2007 Patrick W Daly
+%% Max-Planck-Institut f\"ur Sonnensystemforschung
+%% Max-Planck-Str. 2
+%% D-37191 Katlenburg-Lindau
+%% Germany
+%% E-mail: daly@mps.mpg.de
+%%
+%% This program can be redistributed and/or modified under the terms
+%% of the LaTeX Project Public License Distributed from CTAN
+%% archives in directory macros/latex/base/lppl.txt; either
+%% version 1 of the License, or any later version.
+%%
+ % Version and source file information:
+ % \ProvidesFile{natbst.mbs}[2007/11/26 1.93 (PWD)]
+ %
+ % BibTeX `plainnat' family
+ %   version 0.99b for BibTeX versions 0.99a or later,
+ %   for LaTeX versions 2.09 and 2e.
+ %
+ % For use with the `natbib.sty' package; emulates the corresponding
+ %   member of the `plain' family, but with author-year citations.
+ %
+ % With version 6.0 of `natbib.sty', it may also be used for numerical
+ %   citations, while retaining the commands \citeauthor, \citefullauthor,
+ %   and \citeyear to print the corresponding information.
+ %
+ % For version 7.0 of `natbib.sty', the KEY field replaces missing
+ %   authors/editors, and the date is left blank in \bibitem.
+ %
+ % Includes field EID for the sequence/citation number of electronic journals
+ %  which is used instead of page numbers.
+ %
+ % Includes fields ISBN and ISSN.
+ %
+ % Includes field URL for Internet addresses.
+ %
+ % Includes field DOI for Digital Object Idenfifiers.
+ %
+ % Works best with the url.sty package of Donald Arseneau.
+ %
+ % Works with identical authors and year are further sorted by
+ %   citation key, to preserve any natural sequence.
+ %
+ENTRY
+  { address
+    author
+    booktitle
+    chapter
+    doi
+    eid
+    edition
+    editor
+    howpublished
+    institution
+    isbn
+    issn
+    journal
+    key
+    month
+    note
+    number
+    organization
+    pages
+    publisher
+    school
+    series
+    title
+    type
+    url
+    volume
+    year
+  }
+  {}
+  { label extra.label sort.label short.list }
+
+INTEGERS { output.state before.all mid.sentence after.sentence after.block }
+
+FUNCTION {init.state.consts}
+{ #0 'before.all :=
+  #1 'mid.sentence :=
+  #2 'after.sentence :=
+  #3 'after.block :=
+}
+
+STRINGS { s t }
+
+FUNCTION {output.nonnull}
+{ 's :=
+  output.state mid.sentence =
+    { ", " * write$ }
+    { output.state after.block =
+        { add.period$ write$
+          newline$
+          "\newblock " write$
+        }
+        { output.state before.all =
+            'write$
+            { add.period$ " " * write$ }
+          if$
+        }
+      if$
+      mid.sentence 'output.state :=
+    }
+  if$
+  s
+}
+
+FUNCTION {output}
+{ duplicate$ empty$
+    'pop$
+    'output.nonnull
+  if$
+}
+
+FUNCTION {output.check}
+{ 't :=
+  duplicate$ empty$
+    { pop$ "empty " t * " in " * cite$ * warning$ }
+    'output.nonnull
+  if$
+}
+
+FUNCTION {fin.entry}
+{ add.period$
+  write$
+  newline$
+}
+
+FUNCTION {new.block}
+{ output.state before.all =
+    'skip$
+    { after.block 'output.state := }
+  if$
+}
+
+FUNCTION {new.sentence}
+{ output.state after.block =
+    'skip$
+    { output.state before.all =
+        'skip$
+        { after.sentence 'output.state := }
+      if$
+    }
+  if$
+}
+
+FUNCTION {not}
+{   { #0 }
+    { #1 }
+  if$
+}
+
+FUNCTION {and}
+{   'skip$
+    { pop$ #0 }
+  if$
+}
+
+FUNCTION {or}
+{   { pop$ #1 }
+    'skip$
+  if$
+}
+
+FUNCTION {new.block.checka}
+{ empty$
+    'skip$
+    'new.block
+  if$
+}
+
+FUNCTION {new.block.checkb}
+{ empty$
+  swap$ empty$
+  and
+    'skip$
+    'new.block
+  if$
+}
+
+FUNCTION {new.sentence.checka}
+{ empty$
+    'skip$
+    'new.sentence
+  if$
+}
+
+FUNCTION {new.sentence.checkb}
+{ empty$
+  swap$ empty$
+  and
+    'skip$
+    'new.sentence
+  if$
+}
+
+FUNCTION {field.or.null}
+{ duplicate$ empty$
+    { pop$ "" }
+    'skip$
+  if$
+}
+
+FUNCTION {emphasize}
+{ duplicate$ empty$
+    { pop$ "" }
+    { "\emph{" swap$ * "}" * }
+  if$
+}
+
+INTEGERS { nameptr namesleft numnames }
+
+FUNCTION {format.names}
+{ 's :=
+  #1 'nameptr :=
+  s num.names$ 'numnames :=
+  numnames 'namesleft :=
+    { namesleft #0 > }
+    { s nameptr "{ll,~}{ff}{vv~}{, jj}" format.name$ 't :=
+      nameptr #1 >
+        { namesleft #1 >
+            { ", " * t * }
+            { numnames #2 >
+                { "," * }
+                'skip$
+              if$
+              t "others" =
+                { " et~al." * }
+                { " and " * t * }
+              if$
+            }
+          if$
+        }
+        't
+      if$
+      nameptr #1 + 'nameptr :=
+      namesleft #1 - 'namesleft :=
+    }
+  while$
+}
+
+FUNCTION {format.key}
+{ empty$
+    { key field.or.null }
+    { "" }
+  if$
+}
+
+FUNCTION {format.authors}
+{ author empty$
+    { "" }
+    { author format.names }
+  if$
+}
+
+FUNCTION {format.editors}
+{ editor empty$
+    { "" }
+    { editor format.names
+      editor num.names$ #1 >
+        { ", editors" * }
+        { ", editor" * }
+      if$
+    }
+  if$
+}
+
+FUNCTION {format.isbn}
+{ isbn empty$
+    { "" }
+    { new.block "ISBN " isbn * }
+  if$
+}
+
+FUNCTION {format.issn}
+{ issn empty$
+    { "" }
+    { new.block "ISSN " issn * }
+  if$
+}
+
+FUNCTION {format.url}
+{ url empty$
+    { "" }
+    { new.block "URL \url{" url * "}" * }
+  if$
+}
+
+FUNCTION {format.doi}
+{ doi empty$
+    { "" }
+    { new.block "\doi{" doi * "}" * }
+  if$
+}
+
+FUNCTION {format.title}
+{ title empty$
+    { "" }
+    { title "t" change.case$ }
+  if$
+}
+
+FUNCTION {format.full.names}
+{'s :=
+  #1 'nameptr :=
+  s num.names$ 'numnames :=
+  numnames 'namesleft :=
+    { namesleft #0 > }
+     { s nameptr "{jj}{vv~}{ll,~}{ff}" format.name$ 't :=
+      nameptr #1 >
+        {
+          namesleft #1 >
+            { ", " * t * }
+            {
+              numnames #2 >
+                { "," * }
+                'skip$
+              if$
+              t "others" =
+                { " et~al." * }
+                { " and " * t * }
+              if$
+            }
+          if$
+        }
+        't
+      if$
+      nameptr #1 + 'nameptr :=
+      namesleft #1 - 'namesleft :=
+    }
+  while$
+}
+
+FUNCTION {author.editor.full}
+{ author empty$
+    { editor empty$
+        { "" }
+        { editor format.full.names }
+      if$
+    }
+    { author format.full.names }
+  if$
+}
+
+FUNCTION {author.full}
+{ author empty$
+    { "" }
+    { author format.full.names }
+  if$
+}
+
+FUNCTION {editor.full}
+{ editor empty$
+    { "" }
+    { editor format.full.names }
+  if$
+}
+
+FUNCTION {make.full.names}
+{ type$ "book" =
+  type$ "inbook" =
+  or
+    'author.editor.full
+    { type$ "proceedings" =
+        'editor.full
+        'author.full
+      if$
+    }
+  if$
+}
+
+FUNCTION {output.bibitem}
+{ newline$
+  "\bibitem[" write$
+  label write$
+  ")" make.full.names duplicate$ short.list =
+     { pop$ }
+     { * }
+   if$
+  "]{" * write$
+  cite$ write$
+  "}" write$
+  newline$
+  ""
+  before.all 'output.state :=
+}
+
+FUNCTION {n.dashify}
+{ 't :=
+  ""
+    { t empty$ not }
+    { t #1 #1 substring$ "-" =
+        { t #1 #2 substring$ "--" = not
+            { "--" *
+              t #2 global.max$ substring$ 't :=
+            }
+            {   { t #1 #1 substring$ "-" = }
+                { "-" *
+                  t #2 global.max$ substring$ 't :=
+                }
+              while$
+            }
+          if$
+        }
+        { t #1 #1 substring$ *
+          t #2 global.max$ substring$ 't :=
+        }
+      if$
+    }
+  while$
+}
+
+FUNCTION {format.date}
+{ year duplicate$ empty$
+    { "empty year in " cite$ * warning$
+       pop$ "" }
+    'skip$
+  if$
+  month empty$
+    'skip$
+    { month
+      " " * swap$ *
+    }
+  if$
+  extra.label *
+}
+
+FUNCTION {format.btitle}
+{ title emphasize
+}
+
+FUNCTION {tie.or.space.connect}
+{ duplicate$ text.length$ #3 <
+    { "~" }
+    { " " }
+  if$
+  swap$ * *
+}
+
+FUNCTION {either.or.check}
+{ empty$
+    'pop$
+    { "can't use both " swap$ * " fields in " * cite$ * warning$ }
+  if$
+}
+
+FUNCTION {format.bvolume}
+{ volume empty$
+    { "" }
+    { "volume" volume tie.or.space.connect
+      series empty$
+        'skip$
+        { " of " * series emphasize * }
+      if$
+      "volume and number" number either.or.check
+    }
+  if$
+}
+
+FUNCTION {format.number.series}
+{ volume empty$
+    { number empty$
+        { series field.or.null }
+        { output.state mid.sentence =
+            { "number" }
+            { "Number" }
+          if$
+          number tie.or.space.connect
+          series empty$
+            { "there's a number but no series in " cite$ * warning$ }
+            { " in " * series * }
+          if$
+        }
+      if$
+    }
+    { "" }
+  if$
+}
+
+FUNCTION {format.edition}
+{ edition empty$
+    { "" }
+    { output.state mid.sentence =
+        { edition "l" change.case$ " edition" * }
+        { edition "t" change.case$ " edition" * }
+      if$
+    }
+  if$
+}
+
+INTEGERS { multiresult }
+
+FUNCTION {multi.page.check}
+{ 't :=
+  #0 'multiresult :=
+    { multiresult not
+      t empty$ not
+      and
+    }
+    { t #1 #1 substring$
+      duplicate$ "-" =
+      swap$ duplicate$ "," =
+      swap$ "+" =
+      or or
+        { #1 'multiresult := }
+        { t #2 global.max$ substring$ 't := }
+      if$
+    }
+  while$
+  multiresult
+}
+
+FUNCTION {format.pages}
+{ pages empty$
+    { "" }
+    { pages multi.page.check
+        { "pages" pages n.dashify tie.or.space.connect }
+        { "page" pages tie.or.space.connect }
+      if$
+    }
+  if$
+}
+
+FUNCTION {format.eid}
+{ eid empty$
+    { "" }
+    { "art." eid tie.or.space.connect }
+  if$
+}
+
+FUNCTION {format.vol.num.pages}
+{ volume field.or.null
+  number empty$
+    'skip$
+    { "\penalty0 (" number * ")" * *
+      volume empty$
+        { "there's a number but no volume in " cite$ * warning$ }
+        'skip$
+      if$
+    }
+  if$
+  pages empty$
+    'skip$
+    { duplicate$ empty$
+        { pop$ format.pages }
+        { ":\penalty0 " * pages n.dashify * }
+      if$
+    }
+  if$
+}
+
+FUNCTION {format.vol.num.eid}
+{ volume field.or.null
+  number empty$
+    'skip$
+    { "\penalty0 (" number * ")" * *
+      volume empty$
+        { "there's a number but no volume in " cite$ * warning$ }
+        'skip$
+      if$
+    }
+  if$
+  eid empty$
+    'skip$
+    { duplicate$ empty$
+        { pop$ format.eid }
+        { ":\penalty0 " * eid * }
+      if$
+    }
+  if$
+}
+
+FUNCTION {format.chapter.pages}
+{ chapter empty$
+    'format.pages
+    { type empty$
+        { "chapter" }
+        { type "l" change.case$ }
+      if$
+      chapter tie.or.space.connect
+      pages empty$
+        'skip$
+        { ", " * format.pages * }
+      if$
+    }
+  if$
+}
+
+FUNCTION {format.in.ed.booktitle}
+{ booktitle empty$
+    { "" }
+    { editor empty$
+        { "In " booktitle emphasize * }
+        { "In " format.editors * ", " * booktitle emphasize * }
+      if$
+    }
+  if$
+}
+
+FUNCTION {empty.misc.check}
+{ author empty$ title empty$ howpublished empty$
+  month empty$ year empty$ note empty$
+  and and and and and
+  key empty$ not and
+    { "all relevant fields are empty in " cite$ * warning$ }
+    'skip$
+  if$
+}
+
+FUNCTION {format.thesis.type}
+{ type empty$
+    'skip$
+    { pop$
+      type "t" change.case$
+    }
+  if$
+}
+
+FUNCTION {format.tr.number}
+{ type empty$
+    { "Technical Report" }
+    'type
+  if$
+  number empty$
+    { "t" change.case$ }
+    { number tie.or.space.connect }
+  if$
+}
+
+FUNCTION {format.article.crossref}
+{ key empty$
+    { journal empty$
+        { "need key or journal for " cite$ * " to crossref " * crossref *
+          warning$
+          ""
+        }
+        { "In \emph{" journal * "}" * }
+      if$
+    }
+    { "In " }
+  if$
+  " \citet{" * crossref * "}" *
+}
+
+FUNCTION {format.book.crossref}
+{ volume empty$
+    { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
+      "In "
+    }
+    { "Volume" volume tie.or.space.connect
+      " of " *
+    }
+  if$
+  editor empty$
+  editor field.or.null author field.or.null =
+  or
+    { key empty$
+        { series empty$
+            { "need editor, key, or series for " cite$ * " to crossref " *
+              crossref * warning$
+              "" *
+            }
+            { "\emph{" * series * "}" * }
+          if$
+        }
+        'skip$
+      if$
+    }
+    'skip$
+  if$
+  " \citet{" * crossref * "}" *
+}
+
+FUNCTION {format.incoll.inproc.crossref}
+{ editor empty$
+  editor field.or.null author field.or.null =
+  or
+    { key empty$
+        { booktitle empty$
+            { "need editor, key, or booktitle for " cite$ * " to crossref " *
+              crossref * warning$
+              ""
+            }
+            { "In \emph{" booktitle * "}" * }
+          if$
+        }
+        { "In " }
+      if$
+    }
+    { "In " }
+  if$
+  " \citet{" * crossref * "}" *
+}
+
+FUNCTION {article}
+{ output.bibitem
+  format.authors "author" output.check
+  author format.key output
+  new.block
+  format.title "title" output.check
+  new.block
+  crossref missing$
+    { journal emphasize "journal" output.check
+      eid empty$
+        { format.vol.num.pages output }
+        { format.vol.num.eid output }
+      if$
+      format.date "year" output.check
+    }
+    { format.article.crossref output.nonnull
+      eid empty$
+        { format.pages output }
+        { format.eid output }
+      if$
+    }
+  if$
+  format.issn output
+  format.doi output
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {book}
+{ output.bibitem
+  author empty$
+    { format.editors "author and editor" output.check
+      editor format.key output
+    }
+    { format.authors output.nonnull
+      crossref missing$
+        { "author and editor" editor either.or.check }
+        'skip$
+      if$
+    }
+  if$
+  new.block
+  format.btitle "title" output.check
+  crossref missing$
+    { format.bvolume output
+      new.block
+      format.number.series output
+      new.sentence
+      publisher "publisher" output.check
+      address output
+    }
+    { new.block
+      format.book.crossref output.nonnull
+    }
+  if$
+  format.edition output
+  format.date "year" output.check
+  format.isbn output
+  format.doi output
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {booklet}
+{ output.bibitem
+  format.authors output
+  author format.key output
+  new.block
+  format.title "title" output.check
+  howpublished address new.block.checkb
+  howpublished output
+  address output
+  format.date output
+  format.isbn output
+  format.doi output
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {inbook}
+{ output.bibitem
+  author empty$
+    { format.editors "author and editor" output.check
+      editor format.key output
+    }
+    { format.authors output.nonnull
+      crossref missing$
+        { "author and editor" editor either.or.check }
+        'skip$
+      if$
+    }
+  if$
+  new.block
+  format.btitle "title" output.check
+  crossref missing$
+    { format.bvolume output
+      format.chapter.pages "chapter and pages" output.check
+      new.block
+      format.number.series output
+      new.sentence
+      publisher "publisher" output.check
+      address output
+    }
+    { format.chapter.pages "chapter and pages" output.check
+      new.block
+      format.book.crossref output.nonnull
+    }
+  if$
+  format.edition output
+  format.date "year" output.check
+  format.isbn output
+  format.doi output
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {incollection}
+{ output.bibitem
+  format.authors "author" output.check
+  author format.key output
+  new.block
+  format.title "title" output.check
+  new.block
+  crossref missing$
+    { format.in.ed.booktitle "booktitle" output.check
+      format.bvolume output
+      format.number.series output
+      format.chapter.pages output
+      new.sentence
+      publisher "publisher" output.check
+      address output
+      format.edition output
+      format.date "year" output.check
+    }
+    { format.incoll.inproc.crossref output.nonnull
+      format.chapter.pages output
+    }
+  if$
+  format.isbn output
+  format.doi output
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {inproceedings}
+{ output.bibitem
+  format.authors "author" output.check
+  author format.key output
+  new.block
+  format.title "title" output.check
+  new.block
+  crossref missing$
+    { format.in.ed.booktitle "booktitle" output.check
+      format.bvolume output
+      format.number.series output
+      format.pages output
+      address empty$
+        { organization publisher new.sentence.checkb
+          organization output
+          publisher output
+          format.date "year" output.check
+        }
+        { address output.nonnull
+          format.date "year" output.check
+          new.sentence
+          organization output
+          publisher output
+        }
+      if$
+    }
+    { format.incoll.inproc.crossref output.nonnull
+      format.pages output
+    }
+  if$
+  format.isbn output
+  format.doi output
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {conference} { inproceedings }
+
+FUNCTION {manual}
+{ output.bibitem
+  format.authors output
+  author format.key output
+  new.block
+  format.btitle "title" output.check
+  organization address new.block.checkb
+  organization output
+  address output
+  format.edition output
+  format.date output
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {mastersthesis}
+{ output.bibitem
+  format.authors "author" output.check
+  author format.key output
+  new.block
+  format.title "title" output.check
+  new.block
+  "Master's thesis" format.thesis.type output.nonnull
+  school "school" output.check
+  address output
+  format.date "year" output.check
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {misc}
+{ output.bibitem
+  format.authors output
+  author format.key output
+  title howpublished new.block.checkb
+  format.title output
+  howpublished new.block.checka
+  howpublished output
+  format.date output
+  format.issn output
+  format.url output
+  new.block
+  note output
+  fin.entry
+  empty.misc.check
+}
+
+FUNCTION {phdthesis}
+{ output.bibitem
+  format.authors "author" output.check
+  author format.key output
+  new.block
+  format.btitle "title" output.check
+  new.block
+  "PhD thesis" format.thesis.type output.nonnull
+  school "school" output.check
+  address output
+  format.date "year" output.check
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {proceedings}
+{ output.bibitem
+  format.editors output
+  editor format.key output
+  new.block
+  format.btitle "title" output.check
+  format.bvolume output
+  format.number.series output
+  address output
+  format.date "year" output.check
+  new.sentence
+  organization output
+  publisher output
+  format.isbn output
+  format.doi output
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {techreport}
+{ output.bibitem
+  format.authors "author" output.check
+  author format.key output
+  new.block
+  format.title "title" output.check
+  new.block
+  format.tr.number output.nonnull
+  institution "institution" output.check
+  address output
+  format.date "year" output.check
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {unpublished}
+{ output.bibitem
+  format.authors "author" output.check
+  author format.key output
+  new.block
+  format.title "title" output.check
+  new.block
+  note "note" output.check
+  format.date output
+  format.url output
+  fin.entry
+}
+
+FUNCTION {default.type} { misc }
+
+
+MACRO {jan} {"January"}
+
+MACRO {feb} {"February"}
+
+MACRO {mar} {"March"}
+
+MACRO {apr} {"April"}
+
+MACRO {may} {"May"}
+
+MACRO {jun} {"June"}
+
+MACRO {jul} {"July"}
+
+MACRO {aug} {"August"}
+
+MACRO {sep} {"September"}
+
+MACRO {oct} {"October"}
+
+MACRO {nov} {"November"}
+
+MACRO {dec} {"December"}
+
+
+
+MACRO {acmcs} {"ACM Computing Surveys"}
+
+MACRO {acta} {"Acta Informatica"}
+
+MACRO {cacm} {"Communications of the ACM"}
+
+MACRO {ibmjrd} {"IBM Journal of Research and Development"}
+
+MACRO {ibmsj} {"IBM Systems Journal"}
+
+MACRO {ieeese} {"IEEE Transactions on Software Engineering"}
+
+MACRO {ieeetc} {"IEEE Transactions on Computers"}
+
+MACRO {ieeetcad}
+ {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
+
+MACRO {ipl} {"Information Processing Letters"}
+
+MACRO {jacm} {"Journal of the ACM"}
+
+MACRO {jcss} {"Journal of Computer and System Sciences"}
+
+MACRO {scp} {"Science of Computer Programming"}
+
+MACRO {sicomp} {"SIAM Journal on Computing"}
+
+MACRO {tocs} {"ACM Transactions on Computer Systems"}
+
+MACRO {tods} {"ACM Transactions on Database Systems"}
+
+MACRO {tog} {"ACM Transactions on Graphics"}
+
+MACRO {toms} {"ACM Transactions on Mathematical Software"}
+
+MACRO {toois} {"ACM Transactions on Office Information Systems"}
+
+MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
+
+MACRO {tcs} {"Theoretical Computer Science"}
+
+
+READ
+
+FUNCTION {sortify}
+{ purify$
+  "l" change.case$
+}
+
+INTEGERS { len }
+
+FUNCTION {chop.word}
+{ 's :=
+  'len :=
+  s #1 len substring$ =
+    { s len #1 + global.max$ substring$ }
+    's
+  if$
+}
+
+FUNCTION {format.lab.names}
+{ 's :=
+  s #1 "{vv~}{ll}" format.name$
+  s num.names$ duplicate$
+  #2 >
+    { pop$ " et~al." * }
+    { #2 <
+        'skip$
+        { s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
+            { " et~al." * }
+            { " and " * s #2 "{vv~}{ll}" format.name$ * }
+          if$
+        }
+      if$
+    }
+  if$
+}
+
+FUNCTION {author.key.label}
+{ author empty$
+    { key empty$
+        { cite$ #1 #3 substring$ }
+        'key
+      if$
+    }
+    { author format.lab.names }
+  if$
+}
+
+FUNCTION {author.editor.key.label}
+{ author empty$
+    { editor empty$
+        { key empty$
+            { cite$ #1 #3 substring$ }
+            'key
+          if$
+        }
+        { editor format.lab.names }
+      if$
+    }
+    { author format.lab.names }
+  if$
+}
+
+FUNCTION {author.key.organization.label}
+{ author empty$
+    { key empty$
+        { organization empty$
+            { cite$ #1 #3 substring$ }
+            { "The " #4 organization chop.word #3 text.prefix$ }
+          if$
+        }
+        'key
+      if$
+    }
+    { author format.lab.names }
+  if$
+}
+
+FUNCTION {editor.key.organization.label}
+{ editor empty$
+    { key empty$
+        { organization empty$
+            { cite$ #1 #3 substring$ }
+            { "The " #4 organization chop.word #3 text.prefix$ }
+          if$
+        }
+        'key
+      if$
+    }
+    { editor format.lab.names }
+  if$
+}
+
+FUNCTION {calc.short.authors}
+{ type$ "book" =
+  type$ "inbook" =
+  or
+    'author.editor.key.label
+    { type$ "proceedings" =
+        'editor.key.organization.label
+        { type$ "manual" =
+            'author.key.organization.label
+            'author.key.label
+          if$
+        }
+      if$
+    }
+  if$
+  'short.list :=
+}
+
+FUNCTION {calc.label}
+{ calc.short.authors
+  short.list
+  "("
+  *
+  year duplicate$ empty$
+  short.list key field.or.null = or
+     { pop$ "" }
+     'skip$
+  if$
+  *
+  'label :=
+}
+
+FUNCTION {sort.format.names}
+{ 's :=
+  #1 'nameptr :=
+  ""
+  s num.names$ 'numnames :=
+  numnames 'namesleft :=
+    { namesleft #0 > }
+    {
+      s nameptr "{vv{ } }{ll{ }}{  ff{ }}{  jj{ }}" format.name$ 't :=
+      nameptr #1 >
+        {
+          "   "  *
+          namesleft #1 = t "others" = and
+            { "zzzzz" * }
+            { numnames #2 > nameptr #2 = and
+                { "zz" * year field.or.null * "   " * }
+                'skip$
+              if$
+              t sortify *
+            }
+          if$
+        }
+        { t sortify * }
+      if$
+      nameptr #1 + 'nameptr :=
+      namesleft #1 - 'namesleft :=
+    }
+  while$
+}
+
+FUNCTION {sort.format.title}
+{ 't :=
+  "A " #2
+    "An " #3
+      "The " #4 t chop.word
+    chop.word
+  chop.word
+  sortify
+  #1 global.max$ substring$
+}
+
+FUNCTION {author.sort}
+{ author empty$
+    { key empty$
+        { "to sort, need author or key in " cite$ * warning$
+          ""
+        }
+        { key sortify }
+      if$
+    }
+    { author sort.format.names }
+  if$
+}
+
+FUNCTION {author.editor.sort}
+{ author empty$
+    { editor empty$
+        { key empty$
+            { "to sort, need author, editor, or key in " cite$ * warning$
+              ""
+            }
+            { key sortify }
+          if$
+        }
+        { editor sort.format.names }
+      if$
+    }
+    { author sort.format.names }
+  if$
+}
+
+FUNCTION {author.organization.sort}
+{ author empty$
+    { organization empty$
+        { key empty$
+            { "to sort, need author, organization, or key in " cite$ * warning$
+              ""
+            }
+            { key sortify }
+          if$
+        }
+        { "The " #4 organization chop.word sortify }
+      if$
+    }
+    { author sort.format.names }
+  if$
+}
+
+FUNCTION {editor.organization.sort}
+{ editor empty$
+    { organization empty$
+        { key empty$
+            { "to sort, need editor, organization, or key in " cite$ * warning$
+              ""
+            }
+            { key sortify }
+          if$
+        }
+        { "The " #4 organization chop.word sortify }
+      if$
+    }
+    { editor sort.format.names }
+  if$
+}
+
+
+FUNCTION {presort}
+{ calc.label
+  label sortify
+  "    "
+  *
+  type$ "book" =
+  type$ "inbook" =
+  or
+    'author.editor.sort
+    { type$ "proceedings" =
+        'editor.organization.sort
+        { type$ "manual" =
+            'author.organization.sort
+            'author.sort
+          if$
+        }
+      if$
+    }
+  if$
+  "    "
+  *
+  year field.or.null sortify
+  *
+  "    "
+  *
+  cite$
+  *
+  #1 entry.max$ substring$
+  'sort.label :=
+  sort.label *
+  #1 entry.max$ substring$
+  'sort.key$ :=
+}
+
+ITERATE {presort}
+
+SORT
+
+STRINGS { longest.label last.label next.extra }
+
+INTEGERS { longest.label.width last.extra.num number.label }
+
+FUNCTION {initialize.longest.label}
+{ "" 'longest.label :=
+  #0 int.to.chr$ 'last.label :=
+  "" 'next.extra :=
+  #0 'longest.label.width :=
+  #0 'last.extra.num :=
+  #0 'number.label :=
+}
+
+FUNCTION {forward.pass}
+{ last.label label =
+    { last.extra.num #1 + 'last.extra.num :=
+      last.extra.num int.to.chr$ 'extra.label :=
+    }
+    { "a" chr.to.int$ 'last.extra.num :=
+      "" 'extra.label :=
+      label 'last.label :=
+    }
+  if$
+  number.label #1 + 'number.label :=
+}
+
+FUNCTION {reverse.pass}
+{ next.extra "b" =
+    { "a" 'extra.label := }
+    'skip$
+  if$
+  extra.label 'next.extra :=
+  extra.label
+  duplicate$ empty$
+    'skip$
+    { "{\natexlab{" swap$ * "}}" * }
+  if$
+  'extra.label :=
+  label extra.label * 'label :=
+}
+
+EXECUTE {initialize.longest.label}
+
+ITERATE {forward.pass}
+
+REVERSE {reverse.pass}
+
+FUNCTION {bib.sort.order}
+{ sort.label  'sort.key$ :=
+}
+
+ITERATE {bib.sort.order}
+
+SORT
+
+FUNCTION {begin.bib}
+{   preamble$ empty$
+    'skip$
+    { preamble$ write$ newline$ }
+  if$
+  "\begin{thebibliography}{" number.label int.to.str$ * "}" *
+  write$ newline$
+  "\providecommand{\natexlab}[1]{#1}"
+  write$ newline$
+  "\providecommand{\url}[1]{\texttt{#1}}"
+  write$ newline$
+  "\expandafter\ifx\csname urlstyle\endcsname\relax"
+  write$ newline$
+  "  \providecommand{\doi}[1]{doi: #1}\else"
+  write$ newline$
+  "  \providecommand{\doi}{doi: \begingroup \urlstyle{rm}\Url}\fi"
+  write$ newline$
+}
+
+EXECUTE {begin.bib}
+
+EXECUTE {init.state.consts}
+
+ITERATE {call.type$}
+
+FUNCTION {end.bib}
+{ newline$
+  "\end{thebibliography}" write$ newline$
+}
+
+EXECUTE {end.bib}

+ 31 - 0
Resources/LaTeX_Course_Resources/TeX Documents/Bibliography/database_template.bib

@@ -0,0 +1,31 @@
+@Article{havnes07,
+AUTHOR = {Havnes, O. and N{\ae}sheim, L. I.},
+TITLE = {On the secondary charging effects and structure of mesospheric dust particles impacting on rocket probes},
+JOURNAL = {Annales Geophysicae},
+VOLUME = {25},
+YEAR = {2007},
+NUMBER = {3},
+PAGES = {623--637},
+DOI = {10.5194/angeo-25-623-2007}
+}
+
+
+@article {havnes96,
+author = {Havnes, O. and Tr{\o}im, J. and Blix, T. and Mortensen, W. and N{\ae}sheim, L. I. and Thrane, E. and T{\o}nnesen, T.},
+title = {First detection of charged dust particles in the {E}arth's mesosphere},
+journal = {Journal of Geophysical Research: Space Physics},
+volume = {101},
+number = {A5},
+issn = {2156-2202},
+doi = {10.1029/96JA00003},
+pages = {10839--10847},
+year = {1996},
+}
+
+@phdthesis{tomsic1,
+	Title = "Collisions between water clusters and surfaces",
+	Author = "Anna Tomsic",
+	Isbn = "91-974011-1-0",
+	School = "G{\"o}teborg University",
+	Year = "2001",
+	}

+ 163 - 0
Resources/LaTeX_Course_Resources/TeX Documents/Empty_Master_Template.tex

@@ -0,0 +1,163 @@
+ 
+\documentclass[11pt, a4paper, twoside, titlepage]{book}
+\usepackage[latin1]{inputenc}
+\usepackage{amsmath,amsfonts,amssymb,amsthm,mathtools} % Most people will need these for mathematics
+
+%Figures
+\usepackage{graphicx}	%Graphics package
+\usepackage[center]{caption}
+\usepackage{subcaption}
+\usepackage{wrapfig}  % Wrap text around figures	
+\usepackage{float} % To place figures correctly
+
+\usepackage{makeidx} % Probably important.
+\usepackage{listings} % To include code-snippets
+\usepackage{color}
+\usepackage{hyperref} % Clickable links to urls, internal and external references etc.
+
+
+\lstset{
+    basicstyle=\footnotesize\ttfamily,
+  identifierstyle=\bfseries\color{green!40!black},
+  commentstyle=\itshape\color{purple!40!black},
+  keywordstyle=\color{blue},
+  stringstyle=\color{orange},
+}
+
+
+\usepackage{pdfpages}	% Packages to handle certain issues with the pdf conversion and landscape figures/tables
+\usepackage{lscape} 
+
+\usepackage[authoryear,square]{natbib} % References/bibliography package
+\usepackage{footnote}
+\usepackage[titletoc]{appendix} % Appendix + add to table of contents
+\usepackage{sidecap}
+
+% Table packages
+\usepackage{tabularx}
+\makesavenoteenv{tabular}
+\makesavenoteenv{table}
+\usepackage{array}
+\usepackage{booktabs}
+\newcommand*\rot{\rotatebox{90}}
+
+\usepackage{changepage}
+\usepackage{verbatim}
+\usepackage{cprotect}
+\usepackage{cancel}
+
+
+%Special in-document vector graphics:
+\usepackage{tikz}
+\usetikzlibrary{shapes.geometric,calc,positioning,3d,intersections,arrows}
+\usetikzlibrary{decorations.markings}
+\usepackage{pgfplots}
+
+
+% Custom characters
+\newcommand{\slfrac}[2]{\left.#1\middle/#2\right.} % Long on-line fraction-slash: \slfrac
+\newcommand{\degree}{\ensuremath{^\circ}} % The 'degree' character : \degree
+\DeclareRobustCommand{\orderof}{\ensuremath{\mathcal{O}}} % The 'Order of' character: \orderof
+
+
+
+
+%Epigraph / quote
+\usepackage{epigraph}
+\setlength\epigraphwidth{.8\textwidth}
+\setlength\epigraphrule{0pt}
+
+
+
+\title{Typesetting your Master's Thesis with \LaTeX -- A pragmatic approach.}
+		
+\author{%
+	\large
+	\textsc{Tarjei Antonsen}\\[2mm]
+	\normalsize	University of Troms{\o} \\
+	\normalsize	\href{mailto:tarjei.antonsen@uit.no}{tarjei.antonsen@uit.no}
+	\vspace{-5mm}
+	}
+\date{October 2014}
+
+
+% START OF MAIN DOCUMENT
+\begin{document}
+
+\maketitle
+\frontmatter
+
+
+%ABSTRACT
+\chapter*{\centering \begin{normalsize}Abstract\end{normalsize}}
+\addcontentsline{toc}{chapter}{Abstract} 
+You are currently reading the abstract which is the summary of the following work. Often the reader will benefit from a short introduction to the subject of which the thesis concerns itself and where the current work contributes to this. The methods used should be introduced, with emphasis on the improving aspects of your method. Important or never before used parameter values can be mentioned -- such as $\rho_s=3000$ kgm$^{-3}$. The most important results and discussions should also be mentioned accordingly to the conclusions. If you have concluded with something which renders the findings of e.g. \citet{tomsic1,havnes07} redundant, you may also mention this as an additional selling point.
+\clearpage
+
+
+
+%ACKNOWLEDGEMENTS
+\chapter{Acknowledgments}
+Above all, I wish to express my sincerest gratitude to my supervisor Prof. Bob Saget.\\ 
+\\
+I also love my girlfriend. LOL, JK, don't have one. I am sad.
+\\
+\\
+\qquad \emph{Barack Obama},\\
+\qquad \emph{October 2014}
+
+\newpage
+
+\thispagestyle{empty}
+\vspace*{\fill}
+\epigraph{\itshape Begin at the beginning, the King said gravely, ``I like big butts and I cannot lie''}{---Lewis Carroll, \textit{Sir Mix-A-Lot in Wonderland}}
+
+
+% ADD TABLE OF CONTENTS
+\tableofcontents
+
+
+\mainmatter
+
+% FIRST CHAPTER
+\chapter{Introduction}
+\TeX\  and \LaTeX\ are a typesetting system and document preparation language, respectively, which have become the \emph{de facto} standard in academia.
+
+
+\section{The main TeX-document}
+
+There isn't really much too you main document. It is just a plain text file in the .tex-format, and if you really wanted to, you could write your entire thesis in any notepad. The biggest advantage with using \LaTeX\ editors and specialized software, is that the code is color coded and usually well-presented. Apart from that, with the ''few'' commands you need when writing a thesis, I always prefer using the most basic programs without 'too many options' (e.g. TeXShop). If you are bombarded with opportunities, the probability of using some unnecessary option will be significant. Many users, however, may save some time by using the built-in macros and shortcuts which many distributions have, and this is of course recommended.
+
+\subsection{Sectional hierarchy of the 'book' format}
+A thesis is normally structured into chapters which contain sections and subsections. The primary commands to make a new object of one of these classes are:
+
+\begin{verbatim}
+\chapter{...}
+\section{...}
+\subsection{...}
+\subsubsection{...}
+\end{verbatim}
+
+
+% Commands to include a figure:
+%\begin{figure}
+%\includegraphics[width=\textwidth]{your-figure's-file-name}
+%\caption{\label{fig:your-figure}Caption goes here.}
+%\end{figure}
+
+
+
+%APPENDICES
+\begin{appendices}
+\noappendicestocpagenum
+\addappheadtotoc
+
+\chapter{How to pronounce \LaTeX}\label{pron}
+Who the balls cares? \citet{havnes96}
+
+\end{appendices}
+
+\bibliographystyle{Bibliography/Template_LastNameFirst_Alphabetical}
+\bibliography{Bibliography/database_template}
+\end{document}
+

BIN
Resources/LaTeX_Course_Resources/TeX Documents/Figures/.DS_Store


BIN
Resources/LaTeX_Course_Resources/TeX Documents/Figures/bibentry_example.pdf


BIN
Resources/LaTeX_Course_Resources/TeX Documents/Figures/chi1.png


BIN
Resources/LaTeX_Course_Resources/TeX Documents/Figures/chi2.png


BIN
Resources/LaTeX_Course_Resources/TeX Documents/Figures/chi3.png


BIN
Resources/LaTeX_Course_Resources/TeX Documents/Figures/chi4.png


BIN
Resources/LaTeX_Course_Resources/TeX Documents/Figures/figure_wrapped.pdf


BIN
Resources/LaTeX_Course_Resources/TeX Documents/Figures/higgs.jpg


BIN
Resources/LaTeX_Course_Resources/TeX Documents/Figures/relative_difference_v0450pdf.pdf


+ 1089 - 0
Resources/LaTeX_Course_Resources/TeX Documents/IntroductionAndTemplate.tex

@@ -0,0 +1,1089 @@
+ 
+\documentclass[11pt, a4paper, twoside, titlepage]{book}
+\usepackage[latin1]{inputenc}
+\usepackage{amsmath,amsfonts,amssymb,amsthm,mathtools} % Most people will need these for mathematics
+
+%Figures
+\usepackage{graphicx}	%Graphics package
+\usepackage[center]{caption}
+\usepackage{subcaption}
+\usepackage{wrapfig}  % Wrap text around figures	
+\usepackage{float} % To place figures correctly
+
+\usepackage{makeidx} % Probably important.
+\usepackage{listings} % To include code-snippets
+\usepackage{color}
+\usepackage{hyperref} % Clickable links to urls, internal and external references etc.
+
+
+\lstset{
+    basicstyle=\footnotesize\ttfamily,
+  identifierstyle=\bfseries\color{green!40!black},
+  commentstyle=\itshape\color{purple!40!black},
+  keywordstyle=\color{blue},
+  stringstyle=\color{orange},
+}
+
+
+\usepackage{pdfpages}	% Packages to handle certain issues with the pdf conversion and landscape figures/tables
+\usepackage{lscape} 
+
+\usepackage[authoryear,square]{natbib} % References/bibliography package
+\usepackage{footnote}
+\usepackage[titletoc]{appendix} % Appendix + add to table of contents
+\usepackage{sidecap}
+
+\usepackage{lipsum}  % Make dummy text
+
+
+% Table packages
+\usepackage{tabularx}
+\makesavenoteenv{tabular}
+\makesavenoteenv{table}
+\usepackage{array}
+\usepackage{booktabs}
+\newcommand*\rot{\rotatebox{90}}
+
+\usepackage{changepage}
+\usepackage{verbatim}
+\usepackage{cprotect}
+\usepackage{cancel}
+
+
+%Special in-document vector graphics:
+\usepackage{tikz}
+\usetikzlibrary{shapes.geometric,calc,positioning,3d,intersections,arrows}
+\usetikzlibrary{decorations.markings}
+\usepackage{pgfplots}
+
+
+% Custom characters
+\newcommand{\slfrac}[2]{\left.#1\middle/#2\right.} % Long on-line fraction-slash: \slfrac
+\newcommand{\degree}{\ensuremath{^\circ}} % The 'degree' character : \degree
+\DeclareRobustCommand{\orderof}{\ensuremath{\mathcal{O}}} % The 'Order of' character: \orderof
+
+
+
+
+%Epigraph / quote
+\usepackage{epigraph}
+\setlength\epigraphwidth{.8\textwidth}
+\setlength\epigraphrule{0pt}
+
+
+
+\title{Typesetting your Master's Thesis with \LaTeX -- A pragmatic approach.}
+		
+\author{%
+	\large
+	\textsc{Tarjei Antonsen}\\[2mm]
+	\normalsize	University of Troms{\o} \\
+	\normalsize	\href{mailto:tarjei.antonsen@uit.no}{tarjei.antonsen@uit.no}
+	\vspace{-5mm}
+	}
+\date{October 2014}
+
+\begin{document}
+
+\maketitle
+\frontmatter
+
+\chapter*{\centering \begin{normalsize}Abstract\end{normalsize}}
+\addcontentsline{toc}{chapter}{Abstract}
+\noindent This work is a short introduction to \LaTeX\ and how to typeset and format a Master's thesis in it. The document itself also functions as a most basic template for a Master's thesis. This allows for students to write their own thesis directly in to the template without any extensive additional formatting, in addition to being flexible for personalization and further tweaking. In either scenario, the student should end up with a Master's thesis of high quality; superior to any commercial text editor, without mentioning specific softwares (yes, it is indeed MS Word and OpenOffice).
+
+You are currently reading the abstract which is the summary of the following work. Often the reader will benefit from a short introduction to the subject of which the thesis concerns itself and where the current work contributes to this. The methods used should be introduced, with emphasis on the improving aspects of your method. Important or never before used parameter values can be mentioned -- such as $\rho_s=3000$ kgm$^{-3}$. The most important results and discussions should also be mentioned accordingly to the conclusions. If you have concluded with something which renders the findings of e.g. \citet{tomsic1,havnes07} redundant, you may also mention this as an additional selling point.
+\clearpage
+
+\chapter{Acknowledgments}
+Above all, I wish to express my sincerest gratitude to my supervisor Prof. Bob Saget.\\ 
+\\
+I also love my girlfriend. LOL, JK, don't have one. I am sad.
+\\
+\\
+\qquad \emph{Barack Obama},\\
+\qquad \emph{October 2014}
+
+\newpage
+
+\thispagestyle{empty}
+\vspace*{\fill}
+\epigraph{\itshape Begin at the beginning, the King said gravely, ``I like big butts and I cannot lie''}{---Lewis Carroll, \textit{Sir Mix-A-Lot in Wonderland}}
+
+
+
+
+\tableofcontents
+\mainmatter
+
+
+\chapter{Introduction}
+\TeX\  and \LaTeX\ are a typesetting system and document preparation language, respectively, which have become the \emph{de facto} standard in academia. Due to its versatility and the fact that it is highly customizable, \LaTeX\ is also the most common tool to use when typesetting a Master's thesis. In this text we introduce this tool with a pragmatic approach, i.e. we skip the name-dropping of esoteric commands and low level 'programming' in \TeX. Indeed, if I were to comment on every command and macro used in this document, the course would become long and tedious. A certain amount of self study should accompany the understanding of this text.
+
+The first chapter will introduce the work area, i.e. the TeX-file, in which you write your thesis. A standard disposition for a typical Maser's thesis is also presented. Chapter~\ref{chp:refer} introduces the topic of referencing; internally and to literature. The topics are introduced in such a manner that a novice should be able to utilize the basic function of bibliography handling in \LaTeX. For the curious student, hints to the further investigation of built-in functions are given. In chapter~\ref{chp:figtab} we introduce the formatting of figures and tables. The most common types are shown by examples, and the more sophisticated TikZ-package for making in-document vector graphics is also introduced. This last point will not be interesting for the average reader, but it is an option worth looking in to if one wants to include figures of professional quality. A good alternative to this -- importing \LaTeX-figures in vector format from MatLab -- will also be introduced. General typesetting of equations and text will also be discussed.
+
+Note that the very document you are currently reading is in a format that will fit very well with a Master's thesis. The document contains several hints and quick-fixes to common problems with \LaTeX which the average user is very likely to encounter. The pragmatic user can merely use the source code for this introduction as the template for their own thesis. There are currently no definitive rules (or templates) for the appearance of a Master's thesis at UiT. Many students therefore modify their thesis according to personal preferences. This is allowed and can yield a nice result, but my advice is that you keep the thesis to a classical formal looking document -- Less is more (it really isn't, though). 
+
+
+
+
+\section{The preamble}
+The preamble is basically everything which is specified before the command \verb|\maketitle| in your main document. It mainly consists of a list of \emph{packages} which you want to include to typeset your thesis. The command \verb|\usepackage[Preference]{Name}| will add a certain package with the preference you want. E.g. \verb|\usepackage[center]{caption}| will center your figure captions in floating environments. Do not worry to much about what packages to include. The source code to this text probably contains all the packages you will need (almost too many), and the addition of other packages is done by writing the presented command into the preamble. Most \LaTeX-distributions already have all the normal packages downloaded, so the issue with manually downloading packages can normally be avoided. 
+
+The specification of custom commands can also be done in the preamble. For instance, the 'degree' character is not built in, and we can manually make the character by specifying:
+\begin{verbatim}
+\newcommand{\degree}{\ensuremath{^\circ}} 
+\end{verbatim}
+So that I can say: '$71\degree$ Nord' is a bag of horse manure. However, you will most likely not need to specify many custom commands, and macros, and Google will help you if you absolutely must.
+
+A last, rather important, command is the very first one of the entire document: \verb|\documentclass[11pt, a4paper, twoside, titlepage]{book}|. This command specifies the main style of your entire document. I must comment on two of the specified preferences. The first option '\textbf{11pt}' specifies the font size. I strongly recommend to use 11 pt instead of 12 pt for two reasons: 1) It looks better, 2) Using 12 pt does \emph{not} make your document particularly longer; try it. The option '\textbf{twoside}' is the recommended option to use for documents which are to be \emph{printed} physically on both sides of the sheets. You may have noticed that in this document, the even and odd pages have different margins to overcome the loss of margins towards the middle of the printed book when it is opened.
+
+
+\section{The main TeX-document}
+
+There isn't really much too you main document. It is just a plain text file in the .tex-format, and if you really wanted to, you could write your entire thesis in any notepad. The biggest advantage with using \LaTeX\ editors and specialized software, is that the code is color coded and usually well-presented. Apart from that, with the ''few'' commands you need when writing a thesis, I always prefer using the most basic programs without 'too many options' (e.g. TeXShop). If you are bombarded with opportunities, the probability of using some unnecessary option will be significant. Many users, however, may save some time by using the built-in macros and shortcuts which many distributions have, and this is of course recommended.
+
+\subsection{Sectional hierarchy of the 'book' format}
+A thesis is normally structured into chapters which contain sections and subsections. The primary commands to make a new object of one of these classes are:
+
+\begin{verbatim}
+\chapter{...}
+\section{...}
+\subsection{...}
+\subsubsection{...}
+\end{verbatim}
+
+\noindent These commands will also add the object to the table of contents. It is of course possible to add an object which is \emph{not} numbered and which is emitted from the table of contents. This is done by simply adding an asterisk before the object name, e.g.:
+
+\begin{verbatim}
+\subsection*{Example 1}
+\end{verbatim}
+
+\subsection{An alternative main TeX-file -- Modular \LaTeX}
+So far we have presented the main TeX document in such a way that it should be written in one large file. Some \LaTeX-users, especially programmers and computer scientists, will insist to treat the thesis main file as exactly this: a \emph{main} file which simply gathers the chapters and where no substance is provided. This is certainly a neat method, but it does offer a problem in that it is by far less searchable than the normal fused file. A Master's thesis usually consists of relatively few and possibly long chapters. It is clear that the benefits of separating chapters will vanish when the chapters in their own sense are long and 'messy'. A problem I often encountered when using external chapters was that when searching for a certain reference, phrase or whatever, which I \emph{knew} was in the thesis somewhere, it often ended up being in a different chapter than in the first or second chapter I searched in. If you still want to include chapters via external files, these two commands will do the task:
+
+\begin{verbatim}
+\include{/path/folder/file}
+\input{/path/folder/file}
+\end{verbatim}
+
+
+
+\section{Disposition of a Master's thesis}
+The disposition of a thesis is, of course, completely dependent on the type of study and to some degree personal preferences. Many students, including me, have a hard time starting to shape their thesis without a rough outline or plan. I therefore present below a very general setup of a thesis in which each of the points will normally be so important that they deserve an entire chapter:
+
+\begin{description}
+  \item[I] \hfill \\
+  \textbf{Introduction}. Breifly describe the history and current state of knowledge of your field. Motivate your study and describe your angle of attack. Mention important results. Finally, give a summary of the outline of the thesis. 
+  \item[II] \hfill \\
+  \textbf{Background}. Extensively describe the components involved in your thesis; both general and on a more basic level. This must be well referenced and backed up by the literature. Try to include as many new studies as possible, as it shows that you are on par with the current knowledge.
+  \item[III] \hfill \\
+  \textbf{Methods}. Your approach to the problem. You may describe how your methods differ from other approaches here.
+  \item[IV] \hfill \\
+  \textbf{Theoretical model}. If you have developed or you are using a theoretical model, e.g. in simulations or other considerations, discuss them here. For purely theoretical studies, this is your most important chapter and it will normally overlap with the methodology description. Derivations may be presented here.
+  \item[V] \hfill \\
+  \textbf{Results}. Present and thoroughly describe your findings.
+  \item[VI] \hfill \\
+   \textbf{Discussion}. Discuss your findings. Assess the successfulness of your approach. Discuss how your work contributes to the current literature.
+  \item[VII] \hfill \\
+  \textbf{Conclusions} 
+\end{description}
+
+\noindent Depending on the type of study, some of these points may be skipped or fused together with others. In most cases, a thesis will not benefit from having many additional chapters than the ones proposed here. To describe the connections between topics which may seem natural to separate between in a single chapter, is certainly an art which is appreciated in the assessment of a thesis as it can show that a candidate has a deep understanding of his field.
+
+
+\section{A general note on customization of the thesis layout}
+As this text is merely a short introduction to thesis writing in \LaTeX, only a handful of commands will be presented, and we offer only the most classic and simple template for a Master's thesis. This will offer students who consult this guide and its corresponding resources many degrees of freedom when it comes to personal styling. This is allowed and encouraged, as long as the graphical expression does not steal attention from the content. As mentioned, UiT has no definite constraints on the thesis layout, but it is recommended that the candidate follow the official graphical profile of the university. The official front page  for a Master's thesis and other graphical details may be found at \url{http://uit.no/ansatte/grafiskprofil/artikkel?p_document_id=349513}.
+
+
+\chapter{Referencing}\label{chp:refer}
+\epigraph{\itshape I always wanted to place a lame quote in the start of a chapter. Get to the chapter!}{---Arnold Schwarzenegger, \textit{Mein Kopf}}
+
+
+\section{Internal references}
+By internal references we mean references to chapters, sections, figures, tables, equations etc. which is in your thesis. Two simple commands will get you a long way. First you will need to create a label for the object you want to refer to. In the first line of this chapter I have included the command \verb|\label{chp:refer}|. To cite the chapter, we simply use :
+\begin{verbatim}
+~\ref{chp:refer}
+\end{verbatim}
+which produces this:~\ref{chp:refer}. The \verb|\ref| command should be used for all internal references except when you are referring to equations. The command
+
+\begin{verbatim}
+\eqref{very_short_equation}
+\end{verbatim}
+
+\noindent can be used to refer to e.g. eq.~\eqref{very_short_equation} below, which is the shortest and most comprehendible equation in the world.
+
+\begin{align}\label{very_short_equation}
+\vec{F}_{drag} &= \pi r_d^2 m_g n_g v_{th,g}(\vec{v}_g-\vec{v}_d)\frac{1}{u}\Biggl\{\frac{1}{\sqrt{\pi}}\left(u + \frac{1}{2u}\right)\text{exp}(-u^2)\nonumber \\
+&+ \left(1+u^2-\frac{1}{4u^2}\right) \text{erf}(u)\Biggr\}
+\end{align}
+
+\section{A proper bibliography}
+The standard \LaTeX\ bibliography support has its main limitations in its few formatting options and that the implementation tends to become 'messy' when dealing with several citations. We introduce here how to combine the \textbf{natbib}-package with BibTeX for handling the bibliography, as it offers complete control over the style of both the citations and  the bibliography itself.
+
+The main advantage of this method is that all citations are separated from your main document in a database file from which references are imported. This saves your work file hundreds of lines of code. It should also be mentioned that most scientific journals will let you export the citation (online) of almost all their published material in the BibTeX-format -- you will rarely need to physically write down a reference to an article. In addition to this, BibTeX/natbib offers full control over the style in which citations are presented. However, it must be stressed that the classical styles (Harvard Number-Year, Numeric etc.) are recommended for use in a Master's thesis. A few options are discussed below.
+
+\subsection{The bibliography database}
+Bibliography management with the tools mentioned above allows us to use multiple database files, however one single file is in most cases preferable. The bibliography database is essentially just a text file -- in the \textbf{.bib} format. An entry in the database consists of fields such as the mandatory author, journal name, volume, year etc. but can also be extended to contain e.g. digital object identifier (DOI). This latter data field is not required but recommended as it makes the lookup of an article much easier. It should be noted that different publication types require different data fields, and BibTeX will automatically format the bibliography entry according to the specified type.
+
+\subsection*{Example}
+In this example we show the input and output of one database entry of the type 'article', which is the type you will be referring to the most. As mentioned, other publication types such as 'book', 'phdthesis', 'inproceedings', etc. require a different data field setup. I refer to the WikiBook on this topic -- \url{http://en.wikibooks.org/wiki/LaTeX/Bibliography_Management} -- if you need to manually write in such references. The following input will produce the output seen in figure~\ref{bibentry}:
+
+
+\begin{verbatim}
+@article {havnes96,
+author = {Havnes, O. and Tr{\o}im, J. and Blix, T. and 
+         Mortensen, W. and N{\ae}sheim, L. I. and Thrane, E. and 
+         T{\o}nnesen, T.},
+title = {First detection of charged dust particles 
+         in the {E}arth's mesosphere},
+journal = {Journal of Geophysical Research: Space Physics},
+volume = {101},
+number = {A5},
+issn = {2156-2202},
+doi = {10.1029/96JA00003},
+pages = {10839--10847},
+year = {1996},
+}
+\end{verbatim}
+
+\begin{figure}[H]
+ \centering
+	\includegraphics[width=0.9\textwidth]{Figures/bibentry_example}
+		\cprotect \caption{An example of a bibliography entry. Note that the first entry, 'havnes96', is the citation key. This is unique and specified by the user.}
+			\label{bibentry}
+ \end{figure}
+\noindent The only data field here which is not required is the 'doi'-field, but this is strongly recommended. Abstracts and url's (because of their messy presentations -- use DOI) for articles should not be included.
+
+
+\subsection{How to create and include a database}
+The first thing you need is a database file in the .bib-format. Included in the resources of this introduction is an example file named '\verb|database_template.bib|' -- use this. 
+
+The next step to conquer \xcancel{the world} bibliography management, is to include your references. This is ridiculously easy  with BibTeX. The fastest way to do this is to google the article you are looking for and visit its page at the publisher (normally the top hit). Somewhere on the article home page there should exist a button which says something like 'Export citation' (to BibTeX) -- et voila! Sometimes you must download an entire .bib-file just for the one reference, but remember: Copy/Paste is your friend.
+
+There are a number of other options. The online databases of Google Scholar, Harvard ADSABS, WebOfKnowledge and UiT's own Munin are other portals which offer a fast way to export citations directly. 
+
+If you do need to  write in a bibliography entry manually, it is often preferable to just write the reference directly into your main .bib-file. Software such as BibDesk and EndNote are bibliography management programs which have GUIs for entering items. In any case, it is good practice to include the reference to a work the second you use it. Never write a reference directly in your text (!) The method described below in section~\ref{citation_style} is the safest way to avoid redundant citations.
+
+
+\subsection{Citation style and use}\label{citation_style}
+
+The format of a citation is mainly a concern of the \textbf{natbib}-package. The possibilities are endless, and the citation style is frequently a discussion topic among \LaTeX\-users. There are no definite requirements to bibliography style at UiT, but we present here a style inspired by one of the most common formats; The Harvard  style with a so-called Author-Year format. If you intend to customize your own thesis' citations and bibliography, my best tip is: do not get too fancy with the references. In any case, the most common styles are listed in \url{http://en.wikibooks.org/wiki/LaTeX/Bibliography_Management#Natbib}.
+
+An important note to students who intend to use the standard style bibliography, is that there might be problems with the format of the bibliography it self. In the standard bibliography styles of natbib, the surnames does not come first even though the list is alphabetical after the surnames. This is fixed in the appended bibliography style \verb|'Template_LastNameFirst_Alphabetical.bst'|. To use this style, just include the file in the same folder as your tex-file.\\
+\\
+In the preamble the following should be specified:
+\begin{verbatim}
+\usepackage[authoryear,square]{natbib}
+\end{verbatim}
+The 'square' denotes the shape of the parenthesis or brackets used. My favorite is square, but 'round' is the most common choice. To include the bibliography style file and the database file, the following should be specified at the end of the document, right before the command \verb|\end{document}|:
+
+\begin{verbatim}
+\bibliographystyle{Template_LastNameFirst_Alphabetical}
+\bibliography{database_template}
+\end{verbatim}
+
+\noindent When citing there are mainly two commands one will need:
+
+\begin{verbatim}
+\citet{something00}
+\end{verbatim}
+
+\noindent which will produce the standard citation, e.g. Something et al. $\left[2000\right]$, and:
+
+\begin{verbatim}
+\citep{havnes96}
+\end{verbatim}
+
+\noindent which will produce the citation \citep{havnes96}, i.e. in parenthesis. You may also add comments, such as: 
+
+\begin{verbatim}
+\citep[see][eq. 6]{havnes96}
+\end{verbatim}
+
+\noindent which will produces the citation \citep[see][eq. 6]{havnes96}. For further options, check the WikiBook.
+
+
+
+
+
+\chapter{Figures and tables}\label{chp:figtab}
+The traditional thesis contains a large number of figures, tables and miscellaneous graphical objects. How these are presented and how they look is from a graphical point of view the most important aspect of your thesis -- more important than 'blinging' up your document with all sorts of fancy headers and other details. Now, if you present data from experiments in your figures, the data will speak for itself and the assessment of your work should in principle not include the graphics itself. That being said, a thesis with $\orderof(10)$ well presented figures is a delight to read and will only give plus points in the overall assessment.
+
+In section~\ref{figures} we present different types of figures and give a short tutorial on how to produce different figure styles. Section~\ref{formats} gives a brief introduction to figure formats, general presentation and how to produce \LaTeX\ style figures with MatLab. We also present, in section~\ref{tikz}, a package called TikZ for making vector graphics and plots directly in your TeX document. This option can be time consuming and require a little more than a basic understanding of \LaTeX, but will produce professional looking outputs fitting even for the most well-known scientific journals.
+
+The end of the chapter introduces shortly how to format tables and lists with a few different options.
+
+
+
+\section{Figures}\label{figures}
+Figure handling with \LaTeX\ usually offers few problems one takes certain precautions. Including the two packages 'float' and 'graphicx' in the preamble;
+
+\begin{verbatim}
+\usepackage{graphicx}
+\usepackage{float}
+\end{verbatim}
+
+\noindent will provide a versatile framework to handle figures, with few issues.
+
+The following lines will import and typeset figure~\ref{reldiff}:  
+
+\begin{verbatim}
+\begin{figure}[h]
+\centering
+	\includegraphics[width=0.75\textwidth]{Figures/relative_difference_v0450pdf}
+\caption{Example figure created with MatLab.}
+\label{reldiff}
+\end{figure}
+\end{verbatim}
+
+\noindent This is a standard setup for importing, typesetting and centering any figure. The width of the figure should be specified by the author, and the specifier \verb|[h]| is the option of placement of the figure/float. This is discussed in more depth below.
+
+ \begin{figure}[h]
+ \centering
+	\includegraphics[width=0.75\textwidth]{Figures/relative_difference_v0450pdf}
+		\caption{Example figure created with MatLab.}
+		\label{reldiff}
+\end{figure}
+
+Even though the figure environment will function well with the \verb|[h]| specifier, during the course of the typesetting of your thesis you are likely to encounter a few problems. I'll thus discuss some common issues.
+
+The mentioned specifier \emph{h} means 'approximately here', and \LaTeX\ will look for a way to place the figure as close as possible to where you have specified in the document. This rarely happens -- and it should certainly not. \LaTeX\ will place the figures (or 'floats' as we may call them) according to the most correct syntax per definition. However, for various reasons, the typesetter may not find obvious spots to put the figures, and one might get en error such as \emph{'Too many unprocessed floats'}. The following command:
+
+\begin{verbatim}
+\clearpage
+\end{verbatim}
+
+\noindent will then force all floats (i.e. figures and tables etc.) to be typeset. This can be smart to do by default in the end of each chapter or long sections to prevent that figures from a certain section gets printed in the next.
+
+Another possible issue is that the choices the typesetter does for you will not always be perfect. On rare occasions you'll possibly need to force the figure to stay exactly where you put it in the text. This kind of tweaking is very common to perform in the finishing stages of the typesetting when no new floats are to be placed or text is to be added. In this case, simply swap the specifier \verb|[h]| with \verb|[H]|, but be careful not to use this option too much. Section~\ref{formats} elaborates on the float specifiers.
+
+
+\subsection*{Wrapped figures}
+\begin{wrapfigure}{r}{0.55\textwidth}
+  \vspace{-25pt}
+\begin{center}
+	\centering
+	 \includegraphics[width=0.53\textwidth]{Figures/figure_wrapped.pdf}
+	\end{center}
+	 \vspace{-20pt}
+	\caption{A wrapped figure often requires 
+		fiddling with parameters.}
+	\label{wrap}
+	\vspace{-10pt}
+\end{wrapfigure}
+
+This figure type can in certain circumstances be the best way to present a figure, but it can be notoriously tricky to place correctly. If you plan to use this type, you will most probably need to mess around with a few parameters. The few times I have utilized this option I have used the following code which I realize now is total rubbish. It does however work, but can imagine a few other ways to solve this. Google at your own (last) will.\\
+
+{\footnotesize
+\noindent \begin{minipage}{\textwidth}
+\begin{lstlisting}[language={[LATEX]TeX},frame=single]
+
+\subsection*{Wrapped figures}
+\begin{wrapfigure}{r}{0.55\textwidth}
+  \vspace{-25pt}
+ \begin{center}
+   \centering
+   \includegraphics[width=0.53\textwidth]{Figures/figure_wrapped.pdf}
+  \end{center}
+  \vspace{-20pt}
+
+\caption{A wrapped figure often requires 
+	fiddling with parameters.}
+\label{wrap}
+\vspace{-10pt}
+\end{wrapfigure}
+\end{lstlisting}
+\end{minipage}
+}
+
+\subsection{Formats and general presentation}\label{formats}
+The format, i.e. the file type, of your imported figure should be such that it has a resolution which is higher than the printed thesis which is normally 300 dpi. Said more pragmatically: stay away from jpegs and other compressed formats and use formats with a high resolution, preferably vector graphics. You do not need to save space for your Master's thesis, it deserves only the best quality figures. The best formats are EPS, PDF and TIFF, and if you ask me they are equally good. A minor benefit of the first two formats is that they can be exported from for instance MatLab in a vector format which only saves the graphical objects them selves, which in practice means that plots with only lines and primitive shapes take up almost no space. To directly make \LaTeX\ labels in MatLab use the following syntax:
+ 
+\begin{verbatim}
+ylabel('Some parameter, $\frac{P\cdot m^2}{N}$ ',...
+       'FontSize',11,'interpreter','latex')
+\end{verbatim}
+
+Now for the issue with where and how to place the figures. We have earlier encountered the standard placement specifier \verb|[h]| which will most often place normal size figures correctly according to good typesetting. A few notes should be made. Tables and figures which span over the entire width of a page look best at the top. The specifier for this is \verb|[t]|. You may also place an object at the bottom of a page by using \verb|[b]|. I refer to the WikiBook on the subject of float handling for further options. An option which will not be discussed here is the \emph{subfigure} environment which allows for placing figures into columns or rows, this is however a common feature to use in many works. The Wiki also covers this. \\
+\\
+\noindent \textbf{Wiki:}\\
+\url{http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions}
+
+
+
+\section{TikZ -- Superb looking vector graphics.}\label{tikz}
+This section will not include any code (which may be found in the  document TeX-file), and will only present a few neat examples of what TikZ can be used to create. Together with the package \textbf{pgfplots}, TikZ is great tool for producing vector graphics directly in a TeX-file. I won't lie, if you choose to pursue this option, you must invest a little time in the figure preparation. Importing your own data series into TikZ is possible and straightforward. The novice way to use TikZ/pgfplots is to browse the large online gallery of pgfplots and find a figure which resembles what you want to produce and modify the given code. Libraries can be found at:\\
+\\
+\url{http://pgfplots.sourceforge.net/gallery.html} and \\ 
+\url{http://www.texample.net/tikz/}.
+
+\subsection*{A few examples}
+
+\begin{figure}[h]
+\centering
+\begin{tikzpicture}[scale=0.8, baseline]
+\begin{axis}[
+	axis x line=bottom,
+	axis y line=left,
+	axis y discontinuity=crunch,
+	axis x discontinuity=crunch,
+	grid=major,
+	%ymin=0.4e-9,
+	%xmin=0.008, 
+	xlabel=Height (km),ylabel=Negative current ($\cdot10^{-10}$A), 
+	xticklabels={81,81.05,81.1},xtick={2,7,12},
+	yticklabels={-3,-5,-8},ytick={1,1.4,1.8},
+]
+\addplot[blue,mark=none,
+	 domain=2:4,samples=501]
+	{ln(x)}node [pos=0.3,pin={-10:$V_{BP}=10V$},inner sep=1pt] {};	
+   \addplot[dashed,blue] plot coordinates {
+          (4,1.38629)
+          (4,1.18629)
+        };       
+\addplot[blue,mark=none,
+	 domain=4:6,samples=501]
+	{ln(x)-0.2}node [pos=0.4,pin={-40:$0V$},inner sep=1pt] {};	
+   \addplot[dashed,blue] plot coordinates {
+          (6,1.5917594)
+          (6,1.2917594)
+        };        
+\addplot[blue,mark=none,
+	 domain=6:8,samples=501]
+	{ln(x)-0.5}node [pos=0.5,pin={-80:$-10V$},inner sep=1pt] {};	
+   \addplot[dashed,blue] plot coordinates {
+          (8,1.87944)
+          (8,1.57944)
+        };
+ \addplot[blue,mark=none,
+	 domain=8:10,samples=501]
+	{ln(x)-0.2}node [pos=0.3,pin={-86:$0V$},inner sep=1pt] {};
+   \addplot[dashed,blue] plot coordinates {
+          (10,2.30258)
+          (10,2.10258)
+        };	
+
+ \addplot[blue,mark=none,
+	 domain=10:12,samples=501]
+	{ln(x)}node [pos=0.3,pin={-86:$10V$},inner sep=1pt] {};
+	
+	 \addplot[blue, dotted,
+	 domain=2:12,samples=501]
+	{ln(x)};
+		
+\end{axis}
+\end{tikzpicture}
+\caption{Crunched axes and in-figure text.}
+\label{detectionoffrags}
+\end{figure}
+
+
+ 
+ \begin{figure}[h]
+ \label{fig:lard}
+ \begin{subfigure}[t]{0.48\textwidth}
+	\centering
+\begin{tikzpicture}[scale=0.8, baseline]
+\begin{axis}[
+	axis x line=bottom,
+	axis y line=left,
+	axis y discontinuity=crunch,
+	axis x discontinuity=crunch,
+	grid=major,
+	ymin=0.7e-2,
+	%xmin=0.008, 
+	xlabel=Fragment radius (m),ylabel=Braking length (m)
+]
+\addplot[blue,mark=none,
+	 domain=0.2e-9:0.8e-9,samples=501]
+	{33037373*x};
+\end{axis}
+\end{tikzpicture}
+\end{subfigure}
+	~\qquad\qquad
+\begin{subfigure}[b]{0.44\textwidth}
+\centering
+ \begin{tikzpicture}[scale=0.4]
+\node [draw, cylinder, shape aspect=4, rotate=90, minimum height=5cm,minimum width=3cm] (c) {};
+\node[anchor=west] at (5.1,5) {$n_g$};
+\node[anchor=west] at (5.1,0) {$m_g$};
+\coordinate(htop) at ($(c.before top)!-1*.1!(c.after top)$);
+\coordinate(hbot) at ($(c.after bottom)!-1*.1!(c.before bottom)$);
+\coordinate(hlab) at ($(htop)!.5!(hbot)+(c.north)!.9!(c.center)$);
+\draw[<->] (hbot)--(htop);
+\path (hlab) node {$L$}; %Modify height label here
+\coordinate (center) at ($(c.before top)!0.5!(c.after top)$);
+\coordinate (rlab) at ($(center) !0.5!(c.after top)$);
+\coordinate (rtop) at ($(center)!-1*.1!(c.after top)$);
+\draw[<->] (rtop) -- (c.after top);
+\path (rlab) node[above] {$r_d$}; %Modify radius label here
+\draw[fill] (0,0.5) circle [radius=0.20];
+\draw[->](0,0.5)--(0,-1.5);
+\draw[->,>=stealth](3,3) to [out=60,in=180] (5,5);
+\draw[->,>=stealth](3,-2) to [out=60,in=180] (5,0);
+
+ \draw (-3.5,0.5) arc (180:360:3.5cm and 1cm);
+  \draw[dashed] (3.5,0.5) arc (0:180:3.5cm and 1cm);
+    \draw (0,0.5) circle (3.5cm);
+    \shade[ball color=blue!10!white,opacity=0.20] (0,0.5) circle (3.5cm);
+\end{tikzpicture} 
+	\end{subfigure}
+	\caption{Graph and schematic.}
+	\label{fig:lard}
+ \end{figure}
+
+
+
+\begin{figure}[h]
+ \centering
+\begin{tikzpicture}
+\begin{axis}[
+scale only axis,
+	grid=both,
+	xmin=0.05,
+	xmax = 2.15, 
+	ymin=-13,
+	ymax=12,
+	ylabel=$V_{BP}$ (V),xlabel=Radius (nm),
+	axis y line=left,
+     axis x line*=bottom,
+	]
+\addplot[black, mark=square,line width=1.5pt] coordinates {(0.9,9) (1.2,9)};
+\addplot[black, mark=square,line width=1.5pt] coordinates {(1.05,8) (1.4,8)};
+\addplot[black, mark=square,line width=1.5pt] coordinates {(1.3,5) (1.6,5)};
+\addplot[black,dashed,mark options=solid, mark=square,line width=1.5pt] coordinates {(1.5,0) (1.8,0)};
+\addplot[black, dashed, mark=square,mark options=solid,line width=1.5pt] coordinates {(1.8,-10) (2.1,-10)};
+\addplot[black, mark=square,mark options=solid,line width=1.5pt] coordinates {(0.4,11) (0.7,11)};
+
+\end{axis}
+\begin{semilogyaxis}[blue,
+     scale only axis,
+     ymin=5,ymax=145000,
+   axis y line=right,
+     axis x line=none,
+     xmin=0.05,
+     xmax = 2.15, 
+     enlargelimits=false,axis on top=true,
+     ylabel=MSP concentration (cm$^{-3}$nm$^{-1}$),ylabel near ticks]
+     \addplot[blue, mark=triangle*, mark size = 4pt,line width=1pt] coordinates {(0.15, 100000) (0.4,10000) (0.9,1000) (1.4,100) (2.1,10)};
+   \end{semilogyaxis}
+\end{tikzpicture}
+	\caption{Double y-axes tells the reader that he is probably looking at something important.}
+			\label{ranges_concentration}
+ \end{figure}
+
+\begin{figure}[h]
+\qquad \quad
+\begin{tikzpicture}
+\begin{axis}[cycle multi list={
+	  black\nextlist
+	  solid,{dashed,mark options={solid}}\nextlist
+	  mark=none,mark=*,mark=x,mark=o,mark=square,
+	},
+legend entries={$V_{BP}=10$V,$V_{BP}=0$V,$V_{BP}=-10$V,$V_{BP}=5$V,$V_{BP}=8$V,$V_{BP}=9$V},
+legend pos=outer north east,
+grid=major,
+axis x line=bottom,
+	axis y line=left,
+	ymax =1.05,
+	xlabel=initial fragment radius (m) ,ylabel= Relative current ($I_{xV}/I_{ref}$)]
+	\addplot[dotted] coordinates {(1.0e-9,1) (1.1e-9,1) (1.2e-9,1) (1.3e-9,1) (1.4e-9,1) (1.5e-9,1) (1.6e-9,1) (1.7e-9,1) (1.8e-9,1) (1.9e-9,1) (2.0e-9,1) (2.1e-9,1)};
+	\addplot coordinates {(1.3e-9,0) (1.4e-9,0.06) (1.5e-9,0.3) (1.6e-9,0.54) (1.7e-9,0.78) (1.8e-9,1)};
+	\addplot coordinates {(1.6e-9,0) (1.7e-9,0.08) (1.8e-9,0.32) (1.9e-9,0.56) (2.0e-9,0.82) (2.1e-9,1)};
+	\addplot coordinates {(1.1e-9,0) (1.2e-9,0.12) (1.3e-9,0.36) (1.4e-9,0.6) (1.5e-9,0.84) (1.6e-9,1)};
+	\addplot coordinates {(1.0e-9,0.2) (1.1e-9,0.42) (1.2e-9,0.66) (1.3e-9,0.88) (1.4e-9,1)};
+	\addplot[dashed] coordinates {(1.0e-9,0.48) (1.1e-9,0.70) (1.2e-9,1)};
+\end{axis}
+\end{tikzpicture}
+\caption{With legend. A tip: when publishing in scientific journals, figures with color can cost quite a lot to get printed. A workaround is then to make your figures with black lines and different line styles/markers only.}
+\label{fig:smallgaps}
+\end{figure}
+
+
+\clearpage
+
+
+
+\section{Tables}
+The normal tabular environment, which is the environment in which you actually make the table, have  many limitations. The best tip I can give is that you should make a standard table which looks decent, and include the packages you need for making that table and subsequently add packages as you go along modifying your template. The following lines added to the preamble will add formatting options for tables sufficient for most applications. 
+
+\begin{verbatim}
+\usepackage{tabularx}
+\makesavenoteenv{tabular}
+\makesavenoteenv{table}
+\usepackage{array}
+\usepackage{booktabs}
+\newcommand*\rot{\rotatebox{90}}
+\end{verbatim}
+
+\subsection*{A standard table}
+The following lines of code will produce the table shown in table~\ref{tab1}. Note that the placement specifier \verb|[ht]| is used here; a better choice for broad tables. In \verb|\begin{tabular}|, the limiter '$|$' denotes a column which is separated by a line; \textbf{c} denotes that each entry should be centered in its cell; the character \verb|&| separates between column, and \verb|\\| starts a new line (while \verb|\hline| typesets the line).\\
+
+{\small
+\noindent \begin{minipage}{\textwidth}
+\begin{lstlisting}[language={[LATEX]TeX},frame=single]
+\begin{table}[ht]
+ \caption{Captions for tables should 
+ be placed above the table!}
+\begin{tabular}{c|cc|cc|cc}
+ &\multicolumn{2}{c}{$v_0 = 350 m/s$}
+ &\multicolumn{2}{|c}{$v_0 = 450 m/s$} 
+ & \multicolumn{2}{|c}{$v_0 = 550m/s$}\\
+ \hline
+$r_0 [nm]$ & $E_f [eV]$& Hits [\%]&$E_f [eV]$  & Hits [\%]& $E_f [eV]$ 
+& Hits [\%]\\ \hline
+1.5 & --- & 0.0 & 0.0 -- 4.3 & 30.0 & 0.0 -- 12.4 & 86.0 \\
+1.6 & --- & 0.0 & 0.0 -- 7.6 & 54.0 & 2.6 -- 17.9 & 100.0 \\
+1.7 & 0.0--2.1 &12.0 &0.0--11.6 & 78.0 & 6.2--24.3 &100.0\\
+1.8 & 0.0--4.5 & 32.0&1.3--16.2 &100.0 & 10.5--31.8&100.0\\
+\end{tabular}
+\label{tab1}
+\end{table}
+\end{lstlisting}
+\end{minipage}
+}
+
+
+
+\begin{table}[ht]
+ \caption{Captions for tables should be placed above the table!}
+\begin{tabular}{c|cc|cc|cc}
+ &\multicolumn{2}{c}{$v_0 = 350 m/s$}&\multicolumn{2}{|c}{$v_0 = 450 m/s$} &\multicolumn{2}{|c}{$v_0 = 550m/s$}\\
+ \hline
+$r_0 [nm]$ & $E_f [eV]$& Hits [\%]     & $E_f [eV]$  & Hits [\%]   & $E_f [eV]$ & Hits [\%]   \\ \hline
+1.5 & --- & 0.0 & 0.0 -- 4.3 & 30.0 & 0.0 -- 12.4 & 86.0 \\
+1.6 & --- & 0.0 & 0.0 -- 7.6 & 54.0 & 2.6 -- 17.9 & 100.0 \\
+1.7 & 0.0 -- 2.1 & 12.0 & 0.0 -- 11.6 & 78.0 & 6.2 -- 24.3 & 100.0 \\
+1.8 & 0.0 -- 4.5 & 32.0 & 1.3 -- 16.2 & 100.0 & 10.5 -- 31.8 & 100.0 \\
+\end{tabular}
+\label{tab1}
+\end{table}
+ 
+
+\subsection*{Tables with figures}
+A table with embedded figures is often a nice way to represent concepts which are abstract. In the presented example in table~\ref{tab:chi}, the dynamic shape factors for different shapes are given. This is an abstract topic, and the confusion which may arise if just the name of the shape is presented is hopefully avoided. An important note: footnotes in tables are not straight forward. From my personal experiences, it is easier to simply hard code the footnotes in the table such as in the current example, but you can however still use the \textbf{cite}-commands. The following code produces the output.\\
+
+{\footnotesize
+\noindent \begin{minipage}{\textwidth}
+\begin{lstlisting}[language={[LATEX]TeX},frame=single]
+\begin{table}[t]
+\caption{Example of table with figures.}
+\begin{tabular}{lp{1.5cm}cc}
+\hline
+Particle type&&Diameter relations&Dynamic shape factor,$\chi$\\ 
+\hline
+\hline
+\rule{0pt}{8ex}   
+\parbox[c]{1em}{\includegraphics[width=2cm]{Figures/chi1}} 
+&Sphere& $d_m=d_{ve}$& $\chi =1$\\
+
+\hspace{1pt} \parbox[c]{1em}{\includegraphics[width=2cm]{Figures/chi2}}
+&Sphere w/voids& $d_m=d_{ve}$& $\chi =1$\\
+\hspace{1pt} \parbox[c]{1em}{\includegraphics[width=2cm]{Figures/chi3} }
+&Agglomerates & $d_m>d_{ve}$& $\chi =1.5-1.6^{~(1}$\\
+\hspace{1pt} \parbox[c]{1em}{\includegraphics[width=2cm]{Figures/chi4} }
+&Dublet& $d_m>d_{ve}$& $\chi =1.12^{~(2}$
+
+\end{tabular}
+\noindent\rule{5cm}{0.4pt}\\
+$^1$ \footnotesize Values from some guys et al. (2010) used for
+ nano-scale chondritic products
+ (Fe$_2$O$_3$, SiO$_2$ and MgO).\\
+ 
+$^2$ From That Guy (1997).
+\normalsize
+\label{tab:chi}
+\end{table}
+\end{lstlisting}
+\end{minipage}
+}
+
+
+\begin{table}[t]
+\caption{Example of table with figures.}
+\begin{tabular}{lp{1.5cm}cc}
+\hline
+Particle type & &Diameter relations & Dynamic shape factor, $\chi$ \\ 
+\hline
+\hline
+\rule{0pt}{8ex}   
+\parbox[c]{1em}{\includegraphics[width=2cm]{Figures/chi1}} &Sphere 		& $d_m=d_{ve}$	& $\chi =1$\\
+\hspace{1pt} \parbox[c]{1em}{\includegraphics[width=2cm]{Figures/chi2}}&Sphere w/voids		& $d_m=d_{ve}$	& $\chi =1$\\
+\hspace{1pt} \parbox[c]{1em}{\includegraphics[width=2cm]{Figures/chi3} }&Agglomerates 		& $d_m>d_{ve}$	& $\chi =1.5-1.6^{~(1}$\\
+\hspace{1pt} \parbox[c]{1em}{\includegraphics[width=2cm]{Figures/chi4} }&Dublet 		& $d_m>d_{ve}$	& $\chi =1.12^{~(2}$
+\end{tabular}
+\noindent\rule{5cm}{0.4pt}\\
+$^1$ \footnotesize Values from some guys et al. (2010) used for
+ nano-scale chondritic products (Fe$_2$O$_3$, SiO$_2$ and MgO).\\
+$^2$ From That Guy (1997).
+\normalsize
+\label{tab:chi}
+\end{table}
+
+\subsection*{Tables with rotated text}
+Flipping text a certain angle is a feature which is often required. For this purpose we construct a very simple macro in the preamble, here named '\textbf{rot}',  which simply rotates the entire object a specified angle (here $90\degree$):
+
+\begin{verbatim}
+\newcommand*\rot{\rotatebox{90}}
+\end{verbatim}
+
+\noindent To use this, as shown in table~\ref{tab:rot} below, we have used e.g. \verb|\rot{\rlap{MSP}}| to fix in-cell alignment issues.
+
+
+\begin{table}[h]
+\centering
+\caption{Rotating text in tables requires the use of exotic macros.}
+\begin{tabular}{ccccc}
+& $V_{BP}$ & Mean [nm] & $EB^-$ [L,U]& $EB^+$ [L,U] \\
+ \cmidrule[1pt]{2-5}
+\rule{0pt}{4ex}    
+&0 V & 1.5--1.8 & [1.4, 1.8] & [1.6, 2.2] \\
+\rot{\rlap{MSP}}
+&-10 V & 1.8--2.1 & [1.6, 2.2]& [1.8, 2.5] \\ 
+ \cmidrule[1pt]{2-5}
+ \rule{0pt}{4ex}    
+ &0 V& 2.9--N/A& [3, 2.5] & [3.4, N/A] \\
+ \rot{\rlap{ICE}}
+ &-10 V& 3.3--N/A& [3.0, $>3.5$] & N/A
+\end{tabular}
+\label{tab:rot}
+\end{table}
+
+\clearpage
+
+\section{Lists}
+There are a number of different ways to present lists of text or objects in \LaTeX. I simply mention the most common ones below. Note that lists can be nested in \LaTeX.
+
+\subsection*{Bulleted list}
+Use \textbf{itemize}.\\
+
+\begin{minipage}{\linewidth}
+      \centering
+      \begin{minipage}{0.45\linewidth}
+          \begin{verbatim}
+\begin{itemize}
+  \item Earth
+  \item Wind
+  \item Fire
+\end{itemize}
+\end{verbatim}
+      \end{minipage}
+      \hspace{0.05\linewidth}
+      \begin{minipage}{0.45\linewidth}
+          \begin{itemize}
+  \item Earth
+  \item Wind
+  \item Fire
+\end{itemize}      
+\end{minipage}
+  \end{minipage}
+\\
+\subsection*{Numbered list}
+Use \textbf{enumerate}.\\
+
+\begin{minipage}{\linewidth}
+      \centering
+      \begin{minipage}{0.45\linewidth}
+\begin{verbatim}
+\begin{enumerate}
+  \item Six
+  \item Six
+  \item Six, the
+   number of the beast
+\end{enumerate}
+\end{verbatim}
+      \end{minipage}
+      \hspace{0.05\linewidth}
+      \begin{minipage}{0.45\linewidth}
+   \begin{enumerate}
+  \item Six
+  \item Six
+  \item Six, the number of the beast
+\end{enumerate}   
+\end{minipage}
+  \end{minipage}\\
+
+\subsection*{Custom description}
+Use \textbf{description}. Note that \verb|\hfill| adds a horizontal gap.\\
+
+\begin{minipage}{\linewidth}
+      \centering
+      \begin{minipage}{0.45\linewidth}
+\begin{verbatim}
+\begin{description}
+  \item[Un] \hfill \\
+  Bon
+  \item[Deaux] \hfill \\
+  Hiver
+  \item[Trois] \hfill \\
+  F\'{e}vrier
+\end{description}
+\end{verbatim}
+      \end{minipage}
+      \hspace{0.05\linewidth}
+      \begin{minipage}{0.45\linewidth}
+ \begin{description}
+  \item[Un] \hfill \\
+  Bon
+  \item[Deaux] \hfill \\
+  Hiver
+  \item[Trois] \hfill \\
+  F\'{e}vrier
+\end{description}
+  
+\end{minipage}
+  \end{minipage}
+
+
+
+
+
+
+
+
+
+
+\chapter{Typesetting plain text and equations}
+Text is the most space consuming part of most theses. Accordingly, when writing such a work, much attention should be paid to how the text is typeset. This is indeed the main concern of \LaTeX; to make sure text is formatted correctly. This chapter will shortly discuss how to treat normal text and what one can do with it. We also treat the typesetting of equations, and the use of special characters.
+
+\section{Plain text}
+There is no mystery to the topic of text and paragraph formatting in \LaTeX. Again, there is really not any point in an introduction to name-drop all formatting commands out there. Text can be \textbf{bold}, \emph{emphasized}, \underline{underlined}, {\LARGE large} or {\tiny tiny} and in a number of other customized styles. The online documentation of these options is vast and can be easily accessed.
+
+When it comes to paragraphing, the typesetter will do this for you if you a line between paragraphs in your main document. The command '\verb|\\|' will force a line shift. If one wishes to omit the indent of a new paragraph, the command \verb|\noindent| before the first line will do the job.
+
+
+\section{Equations and special characters}
+In theoretical studies, the typesetting of equations and derivations can become a significant time sink. There exists a whole range of equation environments and packages which support special features which prevent need of custom macros (Protip: why implement something if it has already been done for you). I present here the most common environments and will also give an example of an extended derivation which incorporates many of the functions introduced.
+
+\url{http://en.wikibooks.org/wiki/LaTeX/Advanced_Mathematics}
+
+
+\subsection{Equations in general}
+The standard equation environment syntax is as follows:\\
+
+ \noindent \begin{minipage}{\linewidth}
+      \centering
+      \begin{minipage}{0.45\linewidth}
+\begin{verbatim}
+\begin{equation}
+\lim_{x\rightarrow0} f(x) 
+= \text{Dog}
+\end{equation}
+\end{verbatim}
+      \end{minipage}
+      \hspace{0.05\linewidth}
+      \begin{minipage}{0.45\linewidth}
+\begin{equation}
+\lim_{x\rightarrow0} f(x) = \text{Dog}
+\end{equation}
+\end{minipage}
+  \end{minipage}
+\\
+\\
+\noindent Note that the equation is automatically numbered. If you want to remove the equation number, add an asterisk (or add \verb|\nonumber| in the normal environment):\\
+\\
+\noindent \begin{minipage}{\linewidth}
+      \centering
+      \begin{minipage}{0.45\linewidth}
+\begin{verbatim}
+\begin{equation*}
+\lim_{x\rightarrow0} f(x) 
+= \infty^{Moose}
+\end{equation*}
+\end{verbatim}
+      \end{minipage}
+      \hspace{0.05\linewidth}
+      \begin{minipage}{0.45\linewidth}
+\begin{equation*}
+\lim_{x\rightarrow0} f(x) = \infty^{Moose}
+\end{equation*}
+\end{minipage}
+  \end{minipage}
+
+
+
+\subsection{Math mode: in-line equations}
+For in-line equations or parameter specification it is not practical to use the unnumbered equation environment. The \emph{math mode} solves this issue. To use this mode, type your expression between dollar signs: \verb|$...$|. Protip: do not write multiple row expressions such as common fractions in-line. As an example, an in-line substitute for $\frac{\text{mbar}\times \ell}{s}$ can be $\text{mbar}\cdot \ell s^{-1}$. The math mode can also be used for longer expressions, which will be an equivalent for the unnumbered equation environment. To use this, use the square brackets, \verb|\[ ... \]|, and end up with something like:\\
+\\
+\begin{minipage}{\linewidth}
+      \centering
+      \begin{minipage}{0.45\linewidth}
+\begin{verbatim}
+\[
+\int_\mathbb{R}  \mathrm{d}
+\xi e^{\xi^2} = 42
+\] 
+\end{verbatim}
+      \end{minipage}
+      \hspace{0.05\linewidth}
+      \begin{minipage}{0.45\linewidth}
+\[
+\int_\mathbb{R}  \mathrm{d}
+\xi e^{\xi^2} = 42
+\] 
+\end{minipage}
+  \end{minipage}
+
+
+
+
+\subsection{Special equation environments}
+There are a couple of other alternatives which are worthwhile mentioning. In small derivations or sets of coupled equations we often want to typeset lines of equations directly underneath each other. For a good presentation of such systems, the subsequent lines of equations should have some common anchor from which they can be aligned. In the environment \verb|align|, simply use the \verb|&|-character to place the alignment anchor. In the example below, note that this is placed such that all equal signs are aligned. Also note that \verb|\\| specifies a new line, and that \verb|\nonumber| removes the equation number for respective lines.
+
+
+
+{\small
+\noindent \begin{minipage}{\textwidth}
+\begin{lstlisting}[language={[LATEX]TeX},frame=single]
+\begin{align}
+\frac{\mathrm{d}N}{\mathrm{d}t} &= n_0A_pv_{in} \nonumber \\
+
+\frac{\mathrm{d}P_k}{\mathrm{d}t} &= \frac{k_B T}{V_k}
+\frac{\mathrm{d}N(t)}{\mathrm{d}t} \nonumber \\
+
+\Rightarrow v_{in}  &=  \frac{V_k}{n_0A_pT}\cdot \left(
+		\frac{\mathrm{d}P_k}{\mathrm{d}t}\right)
+\end{align}
+\end{lstlisting}
+\end{minipage}
+}
+
+
+\noindent will produce:
+
+\begin{align}
+\frac{\mathrm{d}N}{\mathrm{d}t} &= n_0A_pv_{in} \nonumber \\
+\frac{\mathrm{d}P_k}{\mathrm{d}t} &= \frac{k_B T}{V_k} \frac{\mathrm{d}N(t)}{\mathrm{d}t} \nonumber \\
+\Rightarrow v_{in} &= \frac{V_k}{n_0A_pT}\cdot \left(\frac{\mathrm{d}P_k}{\mathrm{d}t}\right)
+\end{align}
+
+\noindent For piecewise defined functions the \textbf{cases} environment will automatically bracket the definition correctly.\\ 
+
+{\small
+\noindent \begin{minipage}{\textwidth}
+\begin{lstlisting}[language={[LATEX]TeX},frame=single]
+\[
+f(n) = 
+\begin{cases} n/2 &\mbox{if } n \equiv 0 \\ 
+(3n +1)/2 & \mbox{if } n \equiv 1. 
+\end{cases} \pmod{2}
+\]
+\end{lstlisting}
+\end{minipage}
+}
+
+\noindent Produces (note the math mode):
+     
+\[
+f(n) = 
+\begin{cases} n/2 &\mbox{if } n \equiv 0 \\ 
+(3n +1)/2 & \mbox{if } n \equiv 1. 
+\end{cases} \pmod{2}
+\]
+
+\section*{An extended example of a derivation}
+
+\ldots We make two assumptions: (I) The dust particle mass is much larger than that of a gas molecule, i.e. $m_D>>m_g$, where $m_D$ and $m_g$ are the masses of single dust and neutral molecules, respectively. (II) The neutral gas molecules have velocities distributed after the Maxwell-Boltzmann distribution, thus in one dimension we obtain:
+
+\begin{equation}\label{cucky}
+f(v_g) = \left(\frac{m_g}{2\pi k_BT_g}\right)^\frac{1}{2}\text{exp}\left(-\frac{m_g v_g^2}{2k_BT_g}\right)
+\end{equation}
+where $f$ is the probability density described in appendix $\infty$.
+
+We consider a small flat surface element of a dust particle which moves through a gas with velocity $\vec{v_d}$. Let the geometry be defined spherically, such that the polar axis is defined as the normal of the surface element. If the dust moves at an angle $\theta$ to this normal, as shown in figure~\ref{fig:collision}, the transfer of momentum to the dust grain in the polar direction becomes: 
+
+\begin{equation}\label{mefisto}
+\Delta p = 2 m_g(v_g + v_d\cos \theta)
+\end{equation}
+where we have used the assumption that $m_D>>m_g$.
+
+\begin{figure}[t]
+\centering
+\begin{tikzpicture}[>=latex,scale=1.3]
+  \shade[ball color=gray!20!] (0,0) coordinate(O) circle (1.5) ;
+ \filldraw [draw=black,fill=blue,opacity=0.8] 
+         (0.95,-0.65)--(1.75,-0.35)--(1.65,-1.1)--(0.85,-1.4)--(0.95,-0.65)--cycle ;?\draw[->](1.35,-0.95)--(2,-1.4);
+\draw[dashed]
+(1.35,-0.95) -- (2.325,-1.3) ; 
+\draw[dashed]
+(1.35,-0.95) -- (2.325,-1.6225) ;       
+           \shade[ball color=gray!40!,opacity=0.9] (1.5,-1) coordinate(Hm) circle (.4) ;
+ % \draw (4,.2) node[right]{H$^-$} ;
+\draw (2.3,-1.3) arc (355:340:1) ;
+    \node[] at (330:2.85)  {$\theta$};
+\end{tikzpicture}
+\caption{Schematic of geometry in collision between large dust particle and gas molecule. The respective sizes are not in scale.}
+\label{fig:collision}
+\end{figure}
+
+We take into account the maxwellian nature of the neutral gas molecules, by using eg.~\eqref{cucky}. The probability of a gas molecule having a speed between $v_g$ and $v_g+\mathrm{d}v_g$ in one (the polar) direction is then:
+
+\begin{equation}
+f(v_g\rightarrow v_g+\mathrm{d}v_g)=\frac{1}{(\pi)^\frac{1}{2}v_{th,g}}\text{exp}\left(-\frac{1}{2}\frac{v_g^2}{v_{th,g}^2}\right)\mathrm{d}v_g
+\end{equation}
+where $v_{th,g}=(2k_BT_g/m_g)^\frac{1}{2}$ is the thermal velocity of the neutrals.
+
+A small surface area of the surface of the dust grain is in spherical coordinates given as $\mathrm{d}A= r_d^2\sin \theta \mathrm{d}\theta \mathrm{d}\phi$, where $r_d$ is the dust grain radius, and $\phi$ is the azimuthal coordinate. The collision frequency of neutral molecules on the surface element can be obtained as:
+
+\begin{equation}
+\nu_{g,d}=n_g(v_g+v_d\cos \theta)\frac{1}{(\pi)^\frac{1}{2}v_{th,g}}\text{exp}\left(-\frac{1}{2}\frac{v_g^2}{v_{th,g}^2}\right)\mathrm{d}v_g\mathrm{d}A
+\end{equation}
+where $n_g$ is the neutral gas density. The momentum transfer per unit time along the polar axis is subsequently yielded by multiplying with the term from eq.~\eqref{mefisto}:
+
+\begin{equation}
+\frac{\Delta p}{\Delta t} = 2m_gn_g(v_g+v_d\cos \theta)^2\frac{1}{(\pi)^\frac{1}{2}v_{th,g}}\text{exp}\left(-\frac{1}{2}\frac{v_g^2}{v_{th,g}^2}\right)\mathrm{d}v_g\mathrm{d}A
+\end{equation}
+The component of this force perpendicular to the grain velocity direction will be cancelled through integration over the entire grain surface, thus the drag can be stated as:
+
+\begin{equation}
+2m_gn_gr_d^2(v_g+v_d\cos \theta)^2\frac{1}{(\pi)^\frac{1}{2}v_{th,g}}\text{exp}\left(-\frac{1}{2}\frac{v_g^2}{v_{th,g}^2}\right)\mathrm{d}v_g\sin \theta \cos \theta \mathrm{d}\theta \mathrm{d}\phi
+\end{equation}
+
+We obtain the total drag  by integrating over all neutral velocities. If $v_g>v_d$, collisions will happen for all collision angles $\theta$, however if $v_g\leq v_d$, collisions will only happen if $\cos \theta > -v_g/v_d$. By using this, we may combine the supersonic and subsonic terms, and we state the total drag as:
+
+\begin{equation}
+2m_gn_gr_d^2\frac{1}{(\pi)^\frac{1}{2}v_{th,g}}(I_1 + I_2)
+\end{equation}
+where the integrals $I_1$ and $I_2$ are valid for the different velocity regimes:
+
+\begin{align*}
+I_1 &= \int_0^{2\pi}\int_{v_d}^\infty\int_0^\pi\mathrm{d}\phi\mathrm{d}v_g\mathrm{d}\theta (v_g+v_d\cos \theta)^2\text{exp}\left(-\frac{1}{2}\frac{v_g^2}{v_{th,g}^2}\right)\sin \theta \cos \theta \\
+I_2 &= \int_0^{2\pi}\int_{-v_d}^{+v_d}\int_0^{cos^{-1}(-\frac{v_g}{v_d})}\mathrm{d}\phi\mathrm{d}v_g\mathrm{d}\theta (v_g+v_d\cos \theta)^2\text{exp}\left(-\frac{1}{2}\frac{v_g^2}{v_{th,g}^2}\right)\sin \theta \cos \theta 
+\end{align*}
+
+These integrals can be calculated in terms of the relative flow of the background neutrals to the dust grain. The final result for the drag term, after inserting for the integrals, then becomes:
+
+\begin{align}
+\vec{F}_{drag} &= \pi r_d^2 m_g n_g v_{th,g}(\vec{v}_g-\vec{v}_d)\frac{1}{u}\Biggl\{\frac{1}{\sqrt{\pi}}\left(u + \frac{1}{2u}\right)\text{exp}(-u^2)\nonumber \\
+&+ \left(1+u^2-\frac{1}{4u^2}\right) \text{erf}(u)\Biggr\}
+\end{align}
+where $u=|\vec{v}_d-\vec{v}_g|/v_{th,g}$ is the normalized relative atom flow speed.
+
+
+\clearpage
+
+
+
+
+
+
+
+
+\begin{appendices}
+\noappendicestocpagenum
+\addappheadtotoc
+
+\chapter{How to pronounce \LaTeX}\label{pron}
+Who the balls cares?
+
+\end{appendices}
+
+\bibliographystyle{Bibliography/Template_LastNameFirst_Alphabetical}
+\bibliography{Bibliography/database_template}
+\end{document}
+
+
+
+
+

+ 539 - 0
Resources/LaTeX_Course_Resources/TeX Documents/LaTeX_Course_Slides.tex

@@ -0,0 +1,539 @@
+\documentclass{beamer}
+%
+% Choose how your presentation looks.
+%
+% For more themes, color themes and font themes, see:
+% http://deic.uab.es/~iblanes/beamer_gallery/index_by_theme.html
+%
+\mode<presentation>
+{
+  \usetheme{default}      % or try Darmstadt, Madrid, Warsaw, ...
+  \usecolortheme{rose} % or try albatross, beaver, crane, ...
+  \usefonttheme{serif}  % or try serif, structurebold, ...
+  \setbeamertemplate{navigation symbols}{}
+  \setbeamertemplate{caption}[numbered]
+} 
+
+\usepackage[english]{babel}
+\usepackage[utf8x]{inputenc}
+\usepackage{etex}
+
+\usepackage{amsmath,amsfonts,amssymb,amsthm,mathtools} % Most people will need these for mathematics
+
+%Figures
+\usepackage{graphicx}	%Graphics package
+\usepackage[center]{caption}
+\usepackage{subcaption}
+\usepackage{wrapfig}  % Wrap text around figures	
+\usepackage{float} % To place figures correctly
+
+\usepackage{makeidx} % Probably important.
+\usepackage{listings} % To include code-snippets
+\usepackage{color}
+\usepackage{hyperref} % Clickable links to urls, internal and external references etc.
+
+\lstset{
+    basicstyle=\footnotesize\ttfamily,
+  identifierstyle=\bfseries\color{green!40!black},
+  commentstyle=\itshape\color{purple!40!black},
+  keywordstyle=\color{blue},
+  stringstyle=\color{orange},
+}
+
+
+\usepackage[authoryear,square]{natbib} % References/bibliography package
+\usepackage{lipsum}  % Make dummy text
+
+
+% Table packages
+\usepackage{tabularx}
+\usepackage{array}
+\usepackage{booktabs}
+\newcommand*\rot{\rotatebox{90}}
+
+\usepackage{changepage}
+\usepackage{verbatim}
+\usepackage{cprotect}
+\usepackage{cancel}
+
+
+%Special in-document vector graphics:
+\usepackage{tikz}
+\usetikzlibrary{shapes.geometric,calc,positioning,3d,intersections,arrows}
+\usetikzlibrary{decorations.markings}
+\usepackage{pgfplots}
+
+
+% Custom characters
+\newcommand{\slfrac}[2]{\left.#1\middle/#2\right.} % Long on-line fraction-slash: \slfrac
+\newcommand{\degree}{\ensuremath{^\circ}} % The 'degree' character : \degree
+\DeclareRobustCommand{\orderof}{\ensuremath{\mathcal{O}}} % The 'Order of' character: \orderof
+
+
+
+
+
+
+\title[Pragmatic \LaTeX]{\LaTeX -- A pragmatic approach to typesetting your thesis}
+\author{Tarjei Antonsen}
+\institute{University of Troms\o}
+\date{\today}
+
+\begin{document}
+
+\begin{frame}
+  \titlepage
+\end{frame}
+
+% Uncomment these lines for an automatically generated outline.
+%\begin{frame}{Outline}
+%  \tableofcontents
+%\end{frame}
+
+
+
+
+\begin{frame}{Outline}
+  \tableofcontents
+\end{frame}
+
+\section{Introduction}
+
+%Frame%
+\begin{frame}{Introduction -- Preliminaries}
+\begin{itemize}
+  \item The preamble
+  \item The \TeX-document
+  \item Dispositions
+\end{itemize}
+
+\vskip 1cm
+
+\begin{block}{Protip}
+Be careful with poshing up your thesis too much. Try too keep the style clean, classic and tasteful!
+\end{block}
+
+\end{frame}
+
+%Frame%
+\subsection{The preamble}
+\begin{frame}[fragile]{The preamble}
+\begin{minipage}{0.42\textwidth}
+    \begin{itemize}
+        \item Where the document format  and global packages and commands are imported and defined.
+        \item Everything before '\verb|\begin{document}|'.
+        \item Custom commands may be defined here.
+    \end{itemize}
+\end{minipage}
+\begin{minipage}{0.55\textwidth}
+    \begin{lstlisting}[language={[LATEX]TeX},frame=single]
+%Document format
+\documentclass[11pt, a4paper,
+    twoside, titlepage]{book}
+\usepackage[latin1]{inputenc}
+%Maths
+\usepackage{amsmath,
+amsfonts,
+amssymb,
+amsthm,mathtools}
+
+%Figures
+\usepackage{graphicx}%Graphics
+\usepackage[center]{caption}
+\usepackage{subcaption}
+\usepackage{wrapfig} 	
+\usepackage{float}
+. . .
+\end{lstlisting}
+\end{minipage}
+\end{frame}
+
+
+\subsection{The main \TeX-document}
+\begin{frame}[fragile]{The main \TeX-document}
+\begin{minipage}{0.55\textwidth}
+    \begin{itemize}
+        \item The .tex-file which contains 'everything', and most importantly your thesis.
+        \item Text can be written directly here or imported with the '\verb|\include{}|'-command.
+        \item The hierarchy shown here should be employed:
+    \end{itemize}
+\end{minipage}
+\begin{minipage}{0.43\textwidth}
+    \begin{lstlisting}[language={[LATEX]TeX},frame=single]
+    \chapter{...}
+    \section{...}
+    \subsection{...}
+    \subsubsection{...}
+    %Unnumbered:
+    \subsection*{...}
+\end{lstlisting}
+\end{minipage}
+\end{frame}
+
+
+\subsection{Disposition}
+
+%Frame%
+\begin{frame}{Disposition of thesis I}
+\begin{description}
+  \item[I] \hfill \\
+  \textbf{Introduction}. Breifly describe the history and current state of knowledge of your field. Motivate your study and describe your angle of attack. Mention important results. Finally, give a summary of the outline of the thesis. 
+  \item[II] \hfill \\
+  \textbf{Background}. Extensively describe the components involved in your thesis; both general and on a more basic level. This must be well referenced and backed up by the literature. Try to include as many new studies as possible, as it shows that you are on par with the current knowledge.
+  \item[III] \hfill \\
+  \textbf{Methods}. Your approach to the problem. You may describe how your methods differ from other approaches here.
+\end{description}
+\end{frame}
+
+\begin{frame}{Disposition of thesis II}
+\begin{description}
+  \item[IV] \hfill \\
+  \textbf{Theoretical model}. If you have developed or you are using a theoretical model, e.g. in simulations or other considerations, discuss them here. For purely theoretical studies, this is your most important chapter and it will normally overlap with the methodology description. Derivations may be presented here.
+  \item[V] \hfill \\
+  \textbf{Results}. Present and thoroughly describe your findings.
+  \item[VI] \hfill \\
+   \textbf{Discussion}. Discuss your findings. Assess the successfulness of your approach. Discuss how your work contributes to the current literature.
+  \item[VII] \hfill \\
+  \textbf{Conclusions} 
+\end{description}
+\end{frame}
+
+\begin{frame}
+\frametitle{ \\ \centerline{\textbf{\huge Problem}}}
+\begin{minipage}{0.52\textwidth}
+    Import a package which produces dummy text, and use this to produce a few paragraphs. \\ 
+    
+    Vary the style and size of the text.
+    \end{minipage}
+\begin{minipage}{0.45\textwidth}
+\emph{\tiny \lipsum[1]}
+\end{minipage}
+\end{frame}
+
+% New section
+
+\section{Referencing}
+\begin{frame}{Referencing}
+\begin{itemize}
+\item Backing up your work with references to other peer reviewed studies is the most important step in ensuring its credibility.
+\item Internal referencing and citing external works will be presented here.
+\end{itemize}
+
+\begin{figure}
+\includegraphics[width=0.7\textwidth]{Figures/bibentry_example}
+\caption{\label{fig:bibentry}Example of a properly formatted entry in the bibliography.}
+\end{figure}
+
+\end{frame}
+
+%New frame
+\subsection{Internal references}
+\begin{frame}[fragile]{Internal references}
+\begin{minipage}{0.48\textwidth}
+    \begin{itemize}
+\item All internal references are named with the \textbf{label}-command.
+\item Practical when summarizing what e.g. a chapter discusses.
+\item Equations are cited differently than figures and sections etc.!
+\end{itemize}
+
+\end{minipage}
+\begin{minipage}{0.49\textwidth}
+\begin{lstlisting}[language={[LATEX]TeX},frame=single]
+%Label:
+\label{REF1}
+
+%Figures, Chpts, tabs etc.
+\ref{REF1}
+
+%Equations
+\eqref{REF1}
+\end{lstlisting}
+\end{minipage}
+\end{frame}
+
+
+%New frame
+\subsection{A proper bibliography}
+\begin{frame}[fragile]{A proper bibliography -- Getting started}
+\begin{minipage}{0.53\textwidth}
+    \begin{itemize}
+\item We combine \textbf{natbib} with \textbf{BibTeX} to get the best result. A few prerequisites to handle this are merely a few lines of code.
+\item This combination is highly customizable, and a custom style for a typical thesis is made for this course.
+\item To compile: $\LaTeX \rightarrow BibTeX\rightarrow \LaTeX\ \rightarrow \LaTeX$
+\end{itemize}
+
+\end{minipage}
+\begin{minipage}{0.45\textwidth}
+    \begin{lstlisting}[language={[LATEX]TeX},frame=single]
+%In the preamble:
+\usepackage[authoryear,
+square]{natbib}
+
+%Before \end{document}
+\bibliographystyle{
+Template_LastNameFirst...
+_Alphabetical}
+
+\bibliography
+{database_template}
+\end{lstlisting}
+\end{minipage}
+\end{frame}
+
+
+
+%New Frame
+\begin{frame}[fragile]{A proper bibliography -- Style and preferences}
+\begin{itemize}
+\item The style of citations is specified in the preamble, as shown previously. The style of the bibliography can be a bit trickier. To avoid using time on this issue, use the customized style made for this course named ''\verb|Template_LastNameFirst_Alphabetical.bst|''. This will sort the entries alphabetically after the last name of the first author.
+\end{itemize}
+ \begin{lstlisting}[language={[LATEX]TeX},frame=single]
+%Add right before \end{document}:
+\bibliographystyle{.../Template_LastNameFirst_Alphabetical}
+\bibliography{.../database_template}
+\end{lstlisting}
+\end{frame}
+
+
+%New Frame
+\begin{frame}[containsverbatim]{A proper bibliography -- The database file}
+
+\begin{itemize}
+\item All references are stored in a .bib file (a text file). The simplest modification of this file is to paste new entries directly into it. Special software may also be used for this purpose. 
+\item An example file named ''\verb|database_template.bib|'' is included here.
+\item Some common reference types are 'article', 'phdthesis', 'inproceedings' and 'book'.
+\end{itemize}
+
+\begin{block}{Protip}
+Where possible, always use the primary source in your references. Try to avoid using secondary and tertiary sources; webpages, 'references therein' etc.
+\end{block}
+\end{frame}
+
+
+
+
+
+%New Frame
+\begin{frame}[fragile]{A proper bibliography -- A database entry}
+\begin{lstlisting}[language={[LATEX]TeX},frame=single]
+@article {havnes96,
+author = {Havnes, O. and Tr{\o}im, J. and Blix,
+       T. and Mortensen, W. and N{\ae}sheim,
+       L. I. and Thrane, E. and T{\o}nnesen, T.},
+title = {First detection of charged dust 
+particles in the {E}arth's mesosphere},
+journal = {Journal of Geophysical Research:
+       Space Physics},
+volume = {101},
+number = {A5},
+issn = {2156-2202},
+doi = {10.1029/96JA00003},
+pages = {10839--10847},
+year = {1996},
+}
+\end{lstlisting}
+\end{frame}
+
+%New Frame
+\begin{frame}[containsverbatim]{A proper bibliography -- Using the database}
+\begin{itemize}
+\item There are two main ways to cite a work with \textbf{natbib}:
+\begin{itemize}
+\item \verb|\citet{...}| produces the normal format, i.e. Someone et al. (2008).
+\item \verb|\citep{...}| produces the citation in parenthesis, i.e. (Someone et al., 2008).
+\end{itemize}
+\item Other citation commands can be found in the online documentation.
+\end{itemize}
+
+\begin{block}{Protip}
+A typical bibliography entry is at least a couple of hundred characters long. In other words, you will save a lot of time importing the references from the publisher online as compared to manually punching them into you database.
+\end{block}
+\end{frame}
+
+
+
+
+% New frame
+\begin{frame}
+\frametitle{ \\ \centerline{\textbf{\huge Problem}}}
+\begin{columns}[c]
+\column{2.0in}
+Find the article '\emph{Broken Symmetries and the Masses of Gauge Bosons}' online, export the citation and use it with different styles!
+\column{2.3in}
+\framebox{\includegraphics[width=2.3in]{Figures/higgs}}
+\end{columns}
+\end{frame}
+
+
+
+
+%New section
+
+\section{Typesetting plain text and equations}
+\begin{frame}{Typesetting plain text and equations}
+The main treatment of these subjects is left to the compendium.
+\vspace{2cm}
+\begin{block}{Protip}
+Always look for macros or packages to simplify the typesetting of text or maths you use a lot. Packages made especially for typesetting e.g. quantum physics exist.
+\end{block}
+\end{frame}
+
+
+% New frame
+\subsection{Plain text}
+\begin{frame}[fragile]{Plain text}
+\begin{minipage}{0.50\textwidth}
+\begin{itemize}
+\item The main concern in text formatting with \LaTeX, is the style of the text it self (weight, font, size etc.). Some common commands are given in the box on the right.
+\item The layout takes care of itself (most often). 
+\item WikiBook entry: \url{http://en.wikibooks.org/wiki/LaTeX/Text_Formatting}.
+\end{itemize}
+
+\end{minipage}
+\begin{minipage}{0.45\textwidth}
+    \begin{lstlisting}[language={[LATEX]TeX},frame=single]
+%Bold (Text/Math-mode):
+\textbf{} / \mathbf{}
+%Emphasized
+\emph{}
+%Suppress indent
+\noindent
+%Local text size
+{\tiny ...} {\Huge} etc.
+%Underlined
+\underline{...}
+%Arrow vector (Math-m.)
+$\vec{...}$
+\end{lstlisting}
+\end{minipage}
+\end{frame}
+
+% New frame
+\subsection{Equations}
+\begin{frame}{Equations}
+
+\begin{itemize}
+\item General equation typesetting is handled in the compendium with an extended example; check it out.
+\item As one gains experience, the time spent on typesetting equations will decay exponentially. 
+\item \emph{Mathematica} can save you a lot of time, because of its fast shortcuts.
+\item Useful WikiBook entry: \url{http://en.wikibooks.org/wiki/LaTeX/Mathematics}.
+\end{itemize}
+
+
+\begin{block}{Protip}
+Vectors are defined by default with arrows. If you want bold vectors, a custom macro or package must be used.
+\end{block}
+\end{frame}
+
+
+% New frame
+\begin{frame}
+\frametitle{ \\ \centerline{\textbf{\huge Problem}}}
+
+
+Typeset the following equations:
+\begin{equation}
+\underbrace{ \pi r_d^2n_gv_{th,g}\cdot k_B T_g}_{P_N} =\frac{4\pi}{3}\rho_d r_d^3c_p\frac{\mathrm{d}T_d}{\mathrm{d}t} + L_d \frac{\mathrm{d} m_d}{\mathrm{d}t}
+\end{equation}
+
+\begin{equation}
+ \slfrac{\frac{\mathrm{d}T_d}{\mathrm{d}t} = \left(\hat{P}-L_d \frac{\mathrm{d}m_d}{\mathrm{d}t}\right)}{\frac{4\pi}{3}\rho_d r_d^3 c_p}
+\end{equation}
+
+\begin{align}
+\vec{F}_{drag} &= \pi r_d^2 m_g n_g v_{th,g}(\vec{v}_g-\vec{v}_d)\frac{1}{u}\Biggl\{\frac{1}{\sqrt{\pi}}\left(u + \frac{1}{2u}\right)\text{exp}(-u^2)\nonumber \\
+&+ \left(1+u^2-\frac{1}{4u^2}\right) \text{erf}(u)\Biggr\}
+\end{align}
+\end{frame}
+
+
+
+
+
+
+%New section
+
+\section{Figures and Tables}
+
+
+
+\begin{frame}{Figures and Tables}
+\begin{itemize}
+\item Like in equation typesetting, the environments for figures and tables are many.
+\item We treat the topic with help from the compendium. 
+\item Floats and format are topics to note!
+\item Matlab can be used to export decent looking figures.
+\end{itemize}
+\end{frame}
+
+\subsection{Figures}
+%New frame
+\begin{frame}[fragile]{Figures -- A typical entry}
+The commands \verb|\usepackage{graphics}| and \verb|\usepackage{float}| should be specified in the preamble. The following command set typesets a figure:
+\vspace{1cm}
+\begin{lstlisting}[language={[LATEX]TeX},frame=single]
+\begin{figure}
+\includegraphics[width=\textwidth]{.../filename}
+\caption{\label{fig:your-figure}Caption goes here.}
+\end{figure}
+\end{lstlisting}
+\end{frame}
+
+
+%New frame
+\subsection{Tables}
+\begin{frame}[containsverbatim]{Tables}
+\begin{itemize}
+\item The placement of a table is identical to figure placement. Note that the caption should be above.
+\item Use the \verb|tabular|-environment. 
+\item Matlab can be also be used to export tables.
+\item Tables can contain graphical objects.
+\end{itemize}
+\end{frame}
+
+\subsection{TikZ}
+\begin{frame}{TikZ}
+\begin{itemize}
+\item TikZ is an option to make in document vector graphics.
+\item Super nice and often super frustrating.
+\item Makes your figures fitting for even the most prestigious journals, if used correctly.
+\item See the compendium for a few examples. 
+\end{itemize}
+
+\begin{block}{Protip}
+Using TikZ will most likely cause death.
+\end{block}
+\end{frame}
+
+\begin{frame}
+\frametitle{ \\ \centerline{\textbf{\huge Problem}}}
+
+\begin{columns}[c]
+\column{1.5in}
+Make a table, import an image and typeset them corresponding to proper formatting.
+\column{1.5in}
+\framebox{\includegraphics[width=1.5in]{Figures/figure_wrapped}}
+\end{columns}
+
+\end{frame}
+
+
+
+
+% Commands to include a figure:
+%\begin{figure}
+%\includegraphics[width=\textwidth]{your-figure's-file-name}
+%\caption{\label{fig:your-figure}Caption goes here.}
+%\end{figure}
+
+
+\end{document}
+
+
+
+
+
+
+
+
+\end{document}

BIN
Resources/Natbib reference sheet.pdf


+ 23 - 0
bibliography.bib

@@ -0,0 +1,23 @@
+@book{patterson2013computer,
+	title={Computer organization and design: the hardware/software interface},
+	author={Patterson, David A and Hennessy, John L},
+	year={2013},
+	publisher={Newnes}
+}
+
+@misc{Publi6:Online,
+	author = {ISO/IEC},
+	title = {ISO/IEC standard 7498-1:1994},
+	howpublished = {\url{http://standards.iso.org/ittf/PubliclyAvailableStandards/s020269_ISO_IEC_7498-1_1994(E).zip}},
+	year = {1994},
+	note = {(Visited on 11/07/2014)}
+}
+
+@misc{BibTe3:online,
+	author = {nettrino},
+	title = {BibTeX entry from URL - Chrome Web Store},
+	howpublished = {\url{https://chrome.google.com/webstore/detail/bibtex-entry-from-url/mgpmgkhhbjgkpnanlmlhibjfgpdpgjec?utm_source=chrome-app-launcher-info-dialog}},
+	month = {},
+	year = {},
+	note = {(Visited on 10/20/2015)}
+}

+ 1435 - 0
natbib-bsts/firstnamefirst.bst

@@ -0,0 +1,1435 @@
+%% File: `plainnat.bst'
+%% A modification of `plain.bst' for use with natbib package 
+%%
+%% Copyright 1993-2007 Patrick W Daly
+%% Max-Planck-Institut f\"ur Sonnensystemforschung
+%% Max-Planck-Str. 2
+%% D-37191 Katlenburg-Lindau
+%% Germany
+%% E-mail: daly@mps.mpg.de
+%%
+%% This program can be redistributed and/or modified under the terms
+%% of the LaTeX Project Public License Distributed from CTAN
+%% archives in directory macros/latex/base/lppl.txt; either
+%% version 1 of the License, or any later version.
+%%
+ % Version and source file information:
+ % \ProvidesFile{natbst.mbs}[2007/11/26 1.93 (PWD)]
+ %
+ % BibTeX `plainnat' family
+ %   version 0.99b for BibTeX versions 0.99a or later,
+ %   for LaTeX versions 2.09 and 2e.
+ %
+ % For use with the `natbib.sty' package; emulates the corresponding
+ %   member of the `plain' family, but with author-year citations.
+ %
+ % With version 6.0 of `natbib.sty', it may also be used for numerical
+ %   citations, while retaining the commands \citeauthor, \citefullauthor,
+ %   and \citeyear to print the corresponding information.
+ %
+ % For version 7.0 of `natbib.sty', the KEY field replaces missing
+ %   authors/editors, and the date is left blank in \bibitem.
+ %
+ % Includes field EID for the sequence/citation number of electronic journals
+ %  which is used instead of page numbers.
+ %
+ % Includes fields ISBN and ISSN.
+ %
+ % Includes field URL for Internet addresses.
+ %
+ % Includes field DOI for Digital Object Idenfifiers.
+ %
+ % Works best with the url.sty package of Donald Arseneau.
+ %
+ % Works with identical authors and year are further sorted by
+ %   citation key, to preserve any natural sequence.
+ %
+ENTRY
+  { address
+    author
+    booktitle
+    chapter
+    doi
+    eid
+    edition
+    editor
+    howpublished
+    institution
+    isbn
+    issn
+    journal
+    key
+    month
+    note
+    number
+    organization
+    pages
+    publisher
+    school
+    series
+    title
+    type
+    url
+    volume
+    year
+  }
+  {}
+  { label extra.label sort.label short.list }
+
+INTEGERS { output.state before.all mid.sentence after.sentence after.block }
+
+FUNCTION {init.state.consts}
+{ #0 'before.all :=
+  #1 'mid.sentence :=
+  #2 'after.sentence :=
+  #3 'after.block :=
+}
+
+STRINGS { s t }
+
+FUNCTION {output.nonnull}
+{ 's :=
+  output.state mid.sentence =
+    { ", " * write$ }
+    { output.state after.block =
+        { add.period$ write$
+          newline$
+          "\newblock " write$
+        }
+        { output.state before.all =
+            'write$
+            { add.period$ " " * write$ }
+          if$
+        }
+      if$
+      mid.sentence 'output.state :=
+    }
+  if$
+  s
+}
+
+FUNCTION {output}
+{ duplicate$ empty$
+    'pop$
+    'output.nonnull
+  if$
+}
+
+FUNCTION {output.check}
+{ 't :=
+  duplicate$ empty$
+    { pop$ "empty " t * " in " * cite$ * warning$ }
+    'output.nonnull
+  if$
+}
+
+FUNCTION {fin.entry}
+{ add.period$
+  write$
+  newline$
+}
+
+FUNCTION {new.block}
+{ output.state before.all =
+    'skip$
+    { after.block 'output.state := }
+  if$
+}
+
+FUNCTION {new.sentence}
+{ output.state after.block =
+    'skip$
+    { output.state before.all =
+        'skip$
+        { after.sentence 'output.state := }
+      if$
+    }
+  if$
+}
+
+FUNCTION {not}
+{   { #0 }
+    { #1 }
+  if$
+}
+
+FUNCTION {and}
+{   'skip$
+    { pop$ #0 }
+  if$
+}
+
+FUNCTION {or}
+{   { pop$ #1 }
+    'skip$
+  if$
+}
+
+FUNCTION {new.block.checka}
+{ empty$
+    'skip$
+    'new.block
+  if$
+}
+
+FUNCTION {new.block.checkb}
+{ empty$
+  swap$ empty$
+  and
+    'skip$
+    'new.block
+  if$
+}
+
+FUNCTION {new.sentence.checka}
+{ empty$
+    'skip$
+    'new.sentence
+  if$
+}
+
+FUNCTION {new.sentence.checkb}
+{ empty$
+  swap$ empty$
+  and
+    'skip$
+    'new.sentence
+  if$
+}
+
+FUNCTION {field.or.null}
+{ duplicate$ empty$
+    { pop$ "" }
+    'skip$
+  if$
+}
+
+FUNCTION {emphasize}
+{ duplicate$ empty$
+    { pop$ "" }
+    { "\emph{" swap$ * "}" * }
+  if$
+}
+
+INTEGERS { nameptr namesleft numnames }
+
+FUNCTION {format.names}
+{ 's :=
+  #1 'nameptr :=
+  s num.names$ 'numnames :=
+  numnames 'namesleft :=
+    { namesleft #0 > }
+    { s nameptr "{vv~}{ll}{, f.}{, jj}" format.name$ 't :=
+      nameptr #1 >
+        { namesleft #1 >
+            { ", " * t * }
+            { numnames #2 >
+                { "," * }
+                'skip$
+              if$
+              t "others" =
+                { " et~al." * }
+                { " and " * t * }
+              if$
+            }
+          if$
+        }
+        't
+      if$
+      nameptr #1 + 'nameptr :=
+      namesleft #1 - 'namesleft :=
+    }
+  while$
+}
+
+FUNCTION {format.key}
+{ empty$
+    { key field.or.null }
+    { "" }
+  if$
+}
+
+FUNCTION {format.authors}
+{ author empty$
+    { "" }
+    { author format.names }
+  if$
+}
+
+FUNCTION {format.editors}
+{ editor empty$
+    { "" }
+    { editor format.names
+      editor num.names$ #1 >
+        { ", editors" * }
+        { ", editor" * }
+      if$
+    }
+  if$
+}
+
+FUNCTION {format.isbn}
+{ isbn empty$
+    { "" }
+    { new.block "ISBN " isbn * }
+  if$
+}
+
+FUNCTION {format.issn}
+{ issn empty$
+    { "" }
+    { new.block "ISSN " issn * }
+  if$
+}
+
+FUNCTION {format.url}
+{ url empty$
+    { "" }
+    { new.block "URL \url{" url * "}" * }
+  if$
+}
+
+FUNCTION {format.doi}
+{ doi empty$
+    { "" }
+    { new.block "\doi{" doi * "}" * }
+  if$
+}
+
+FUNCTION {format.title}
+{ title empty$
+    { "" }
+    { title "t" change.case$ }
+  if$
+}
+
+FUNCTION {format.full.names}
+{'s :=
+  #1 'nameptr :=
+  s num.names$ 'numnames :=
+  numnames 'namesleft :=
+    { namesleft #0 > }
+     { s nameptr "{jj}{vv~}{ll,~}{ff}" format.name$ 't :=
+      nameptr #1 >
+        {
+          namesleft #1 >
+            { ", " * t * }
+            {
+              numnames #2 >
+                { "," * }
+                'skip$
+              if$
+              t "others" =
+                { " et~al." * }
+                { " and " * t * }
+              if$
+            }
+          if$
+        }
+        't
+      if$
+      nameptr #1 + 'nameptr :=
+      namesleft #1 - 'namesleft :=
+    }
+  while$
+}
+
+FUNCTION {author.editor.full}
+{ author empty$
+    { editor empty$
+        { "" }
+        { editor format.full.names }
+      if$
+    }
+    { author format.full.names }
+  if$
+}
+
+FUNCTION {author.full}
+{ author empty$
+    { "" }
+    { author format.full.names }
+  if$
+}
+
+FUNCTION {editor.full}
+{ editor empty$
+    { "" }
+    { editor format.full.names }
+  if$
+}
+
+FUNCTION {make.full.names}
+{ type$ "book" =
+  type$ "inbook" =
+  or
+    'author.editor.full
+    { type$ "proceedings" =
+        'editor.full
+        'author.full
+      if$
+    }
+  if$
+}
+
+FUNCTION {output.bibitem}
+{ newline$
+  "\bibitem[" write$
+  label write$
+  ")" make.full.names duplicate$ short.list =
+     { pop$ }
+     { * }
+   if$
+  "]{" * write$
+  cite$ write$
+  "}" write$
+  newline$
+  ""
+  before.all 'output.state :=
+}
+
+FUNCTION {n.dashify}
+{ 't :=
+  ""
+    { t empty$ not }
+    { t #1 #1 substring$ "-" =
+        { t #1 #2 substring$ "--" = not
+            { "--" *
+              t #2 global.max$ substring$ 't :=
+            }
+            {   { t #1 #1 substring$ "-" = }
+                { "-" *
+                  t #2 global.max$ substring$ 't :=
+                }
+              while$
+            }
+          if$
+        }
+        { t #1 #1 substring$ *
+          t #2 global.max$ substring$ 't :=
+        }
+      if$
+    }
+  while$
+}
+
+FUNCTION {format.date}
+{ year duplicate$ empty$
+    { "empty year in " cite$ * warning$
+       pop$ "" }
+    'skip$
+  if$
+  month empty$
+    'skip$
+    { month
+      " " * swap$ *
+    }
+  if$
+  extra.label *
+}
+
+FUNCTION {format.btitle}
+{ title emphasize
+}
+
+FUNCTION {tie.or.space.connect}
+{ duplicate$ text.length$ #3 <
+    { "~" }
+    { " " }
+  if$
+  swap$ * *
+}
+
+FUNCTION {either.or.check}
+{ empty$
+    'pop$
+    { "can't use both " swap$ * " fields in " * cite$ * warning$ }
+  if$
+}
+
+FUNCTION {format.bvolume}
+{ volume empty$
+    { "" }
+    { "volume" volume tie.or.space.connect
+      series empty$
+        'skip$
+        { " of " * series emphasize * }
+      if$
+      "volume and number" number either.or.check
+    }
+  if$
+}
+
+FUNCTION {format.number.series}
+{ volume empty$
+    { number empty$
+        { series field.or.null }
+        { output.state mid.sentence =
+            { "number" }
+            { "Number" }
+          if$
+          number tie.or.space.connect
+          series empty$
+            { "there's a number but no series in " cite$ * warning$ }
+            { " in " * series * }
+          if$
+        }
+      if$
+    }
+    { "" }
+  if$
+}
+
+FUNCTION {format.edition}
+{ edition empty$
+    { "" }
+    { output.state mid.sentence =
+        { edition "l" change.case$ " edition" * }
+        { edition "t" change.case$ " edition" * }
+      if$
+    }
+  if$
+}
+
+INTEGERS { multiresult }
+
+FUNCTION {multi.page.check}
+{ 't :=
+  #0 'multiresult :=
+    { multiresult not
+      t empty$ not
+      and
+    }
+    { t #1 #1 substring$
+      duplicate$ "-" =
+      swap$ duplicate$ "," =
+      swap$ "+" =
+      or or
+        { #1 'multiresult := }
+        { t #2 global.max$ substring$ 't := }
+      if$
+    }
+  while$
+  multiresult
+}
+
+FUNCTION {format.pages}
+{ pages empty$
+    { "" }
+    { pages multi.page.check
+        { "pages" pages n.dashify tie.or.space.connect }
+        { "page" pages tie.or.space.connect }
+      if$
+    }
+  if$
+}
+
+FUNCTION {format.eid}
+{ eid empty$
+    { "" }
+    { "art." eid tie.or.space.connect }
+  if$
+}
+
+FUNCTION {format.vol.num.pages}
+{ volume field.or.null
+  number empty$
+    'skip$
+    { "\penalty0 (" number * ")" * *
+      volume empty$
+        { "there's a number but no volume in " cite$ * warning$ }
+        'skip$
+      if$
+    }
+  if$
+  pages empty$
+    'skip$
+    { duplicate$ empty$
+        { pop$ format.pages }
+        { ":\penalty0 " * pages n.dashify * }
+      if$
+    }
+  if$
+}
+
+FUNCTION {format.vol.num.eid}
+{ volume field.or.null
+  number empty$
+    'skip$
+    { "\penalty0 (" number * ")" * *
+      volume empty$
+        { "there's a number but no volume in " cite$ * warning$ }
+        'skip$
+      if$
+    }
+  if$
+  eid empty$
+    'skip$
+    { duplicate$ empty$
+        { pop$ format.eid }
+        { ":\penalty0 " * eid * }
+      if$
+    }
+  if$
+}
+
+FUNCTION {format.chapter.pages}
+{ chapter empty$
+    'format.pages
+    { type empty$
+        { "chapter" }
+        { type "l" change.case$ }
+      if$
+      chapter tie.or.space.connect
+      pages empty$
+        'skip$
+        { ", " * format.pages * }
+      if$
+    }
+  if$
+}
+
+FUNCTION {format.in.ed.booktitle}
+{ booktitle empty$
+    { "" }
+    { editor empty$
+        { "In " booktitle emphasize * }
+        { "In " format.editors * ", " * booktitle emphasize * }
+      if$
+    }
+  if$
+}
+
+FUNCTION {empty.misc.check}
+{ author empty$ title empty$ howpublished empty$
+  month empty$ year empty$ note empty$
+  and and and and and
+  key empty$ not and
+    { "all relevant fields are empty in " cite$ * warning$ }
+    'skip$
+  if$
+}
+
+FUNCTION {format.thesis.type}
+{ type empty$
+    'skip$
+    { pop$
+      type "t" change.case$
+    }
+  if$
+}
+
+FUNCTION {format.tr.number}
+{ type empty$
+    { "Technical Report" }
+    'type
+  if$
+  number empty$
+    { "t" change.case$ }
+    { number tie.or.space.connect }
+  if$
+}
+
+FUNCTION {format.article.crossref}
+{ key empty$
+    { journal empty$
+        { "need key or journal for " cite$ * " to crossref " * crossref *
+          warning$
+          ""
+        }
+        { "In \emph{" journal * "}" * }
+      if$
+    }
+    { "In " }
+  if$
+  " \citet{" * crossref * "}" *
+}
+
+FUNCTION {format.book.crossref}
+{ volume empty$
+    { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
+      "In "
+    }
+    { "Volume" volume tie.or.space.connect
+      " of " *
+    }
+  if$
+  editor empty$
+  editor field.or.null author field.or.null =
+  or
+    { key empty$
+        { series empty$
+            { "need editor, key, or series for " cite$ * " to crossref " *
+              crossref * warning$
+              "" *
+            }
+            { "\emph{" * series * "}" * }
+          if$
+        }
+        'skip$
+      if$
+    }
+    'skip$
+  if$
+  " \citet{" * crossref * "}" *
+}
+
+FUNCTION {format.incoll.inproc.crossref}
+{ editor empty$
+  editor field.or.null author field.or.null =
+  or
+    { key empty$
+        { booktitle empty$
+            { "need editor, key, or booktitle for " cite$ * " to crossref " *
+              crossref * warning$
+              ""
+            }
+            { "In \emph{" booktitle * "}" * }
+          if$
+        }
+        { "In " }
+      if$
+    }
+    { "In " }
+  if$
+  " \citet{" * crossref * "}" *
+}
+
+FUNCTION {article}
+{ output.bibitem
+  format.authors "author" output.check
+  author format.key output
+  new.block
+  format.title "title" output.check
+  new.block
+  crossref missing$
+    { journal emphasize "journal" output.check
+      eid empty$
+        { format.vol.num.pages output }
+        { format.vol.num.eid output }
+      if$
+      format.date "year" output.check
+    }
+    { format.article.crossref output.nonnull
+      eid empty$
+        { format.pages output }
+        { format.eid output }
+      if$
+    }
+  if$
+  format.issn output
+  format.doi output
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {book}
+{ output.bibitem
+  author empty$
+    { format.editors "author and editor" output.check
+      editor format.key output
+    }
+    { format.authors output.nonnull
+      crossref missing$
+        { "author and editor" editor either.or.check }
+        'skip$
+      if$
+    }
+  if$
+  new.block
+  format.btitle "title" output.check
+  crossref missing$
+    { format.bvolume output
+      new.block
+      format.number.series output
+      new.sentence
+      publisher "publisher" output.check
+      address output
+    }
+    { new.block
+      format.book.crossref output.nonnull
+    }
+  if$
+  format.edition output
+  format.date "year" output.check
+  format.isbn output
+  format.doi output
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {booklet}
+{ output.bibitem
+  format.authors output
+  author format.key output
+  new.block
+  format.title "title" output.check
+  howpublished address new.block.checkb
+  howpublished output
+  address output
+  format.date output
+  format.isbn output
+  format.doi output
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {inbook}
+{ output.bibitem
+  author empty$
+    { format.editors "author and editor" output.check
+      editor format.key output
+    }
+    { format.authors output.nonnull
+      crossref missing$
+        { "author and editor" editor either.or.check }
+        'skip$
+      if$
+    }
+  if$
+  new.block
+  format.btitle "title" output.check
+  crossref missing$
+    { format.bvolume output
+      format.chapter.pages "chapter and pages" output.check
+      new.block
+      format.number.series output
+      new.sentence
+      publisher "publisher" output.check
+      address output
+    }
+    { format.chapter.pages "chapter and pages" output.check
+      new.block
+      format.book.crossref output.nonnull
+    }
+  if$
+  format.edition output
+  format.date "year" output.check
+  format.isbn output
+  format.doi output
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {incollection}
+{ output.bibitem
+  format.authors "author" output.check
+  author format.key output
+  new.block
+  format.title "title" output.check
+  new.block
+  crossref missing$
+    { format.in.ed.booktitle "booktitle" output.check
+      format.bvolume output
+      format.number.series output
+      format.chapter.pages output
+      new.sentence
+      publisher "publisher" output.check
+      address output
+      format.edition output
+      format.date "year" output.check
+    }
+    { format.incoll.inproc.crossref output.nonnull
+      format.chapter.pages output
+    }
+  if$
+  format.isbn output
+  format.doi output
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {inproceedings}
+{ output.bibitem
+  format.authors "author" output.check
+  author format.key output
+  new.block
+  format.title "title" output.check
+  new.block
+  crossref missing$
+    { format.in.ed.booktitle "booktitle" output.check
+      format.bvolume output
+      format.number.series output
+      format.pages output
+      address empty$
+        { organization publisher new.sentence.checkb
+          organization output
+          publisher output
+          format.date "year" output.check
+        }
+        { address output.nonnull
+          format.date "year" output.check
+          new.sentence
+          organization output
+          publisher output
+        }
+      if$
+    }
+    { format.incoll.inproc.crossref output.nonnull
+      format.pages output
+    }
+  if$
+  format.isbn output
+  format.doi output
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {conference} { inproceedings }
+
+FUNCTION {manual}
+{ output.bibitem
+  format.authors output
+  author format.key output
+  new.block
+  format.btitle "title" output.check
+  organization address new.block.checkb
+  organization output
+  address output
+  format.edition output
+  format.date output
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {mastersthesis}
+{ output.bibitem
+  format.authors "author" output.check
+  author format.key output
+  new.block
+  format.title "title" output.check
+  new.block
+  "Master's thesis" format.thesis.type output.nonnull
+  school "school" output.check
+  address output
+  format.date "year" output.check
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {misc}
+{ output.bibitem
+  format.authors output
+  author format.key output
+  title howpublished new.block.checkb
+  format.title output
+  howpublished new.block.checka
+  howpublished output
+  format.date output
+  format.issn output
+  format.url output
+  new.block
+  note output
+  fin.entry
+  empty.misc.check
+}
+
+FUNCTION {phdthesis}
+{ output.bibitem
+  format.authors "author" output.check
+  author format.key output
+  new.block
+  format.btitle "title" output.check
+  new.block
+  "PhD thesis" format.thesis.type output.nonnull
+  school "school" output.check
+  address output
+  format.date "year" output.check
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {proceedings}
+{ output.bibitem
+  format.editors output
+  editor format.key output
+  new.block
+  format.btitle "title" output.check
+  format.bvolume output
+  format.number.series output
+  address output
+  format.date "year" output.check
+  new.sentence
+  organization output
+  publisher output
+  format.isbn output
+  format.doi output
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {techreport}
+{ output.bibitem
+  format.authors "author" output.check
+  author format.key output
+  new.block
+  format.title "title" output.check
+  new.block
+  format.tr.number output.nonnull
+  institution "institution" output.check
+  address output
+  format.date "year" output.check
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {unpublished}
+{ output.bibitem
+  format.authors "author" output.check
+  author format.key output
+  new.block
+  format.title "title" output.check
+  new.block
+  note "note" output.check
+  format.date output
+  format.url output
+  fin.entry
+}
+
+FUNCTION {default.type} { misc }
+
+
+MACRO {jan} {"January"}
+
+MACRO {feb} {"February"}
+
+MACRO {mar} {"March"}
+
+MACRO {apr} {"April"}
+
+MACRO {may} {"May"}
+
+MACRO {jun} {"June"}
+
+MACRO {jul} {"July"}
+
+MACRO {aug} {"August"}
+
+MACRO {sep} {"September"}
+
+MACRO {oct} {"October"}
+
+MACRO {nov} {"November"}
+
+MACRO {dec} {"December"}
+
+
+
+MACRO {acmcs} {"ACM Computing Surveys"}
+
+MACRO {acta} {"Acta Informatica"}
+
+MACRO {cacm} {"Communications of the ACM"}
+
+MACRO {ibmjrd} {"IBM Journal of Research and Development"}
+
+MACRO {ibmsj} {"IBM Systems Journal"}
+
+MACRO {ieeese} {"IEEE Transactions on Software Engineering"}
+
+MACRO {ieeetc} {"IEEE Transactions on Computers"}
+
+MACRO {ieeetcad}
+ {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
+
+MACRO {ipl} {"Information Processing Letters"}
+
+MACRO {jacm} {"Journal of the ACM"}
+
+MACRO {jcss} {"Journal of Computer and System Sciences"}
+
+MACRO {scp} {"Science of Computer Programming"}
+
+MACRO {sicomp} {"SIAM Journal on Computing"}
+
+MACRO {tocs} {"ACM Transactions on Computer Systems"}
+
+MACRO {tods} {"ACM Transactions on Database Systems"}
+
+MACRO {tog} {"ACM Transactions on Graphics"}
+
+MACRO {toms} {"ACM Transactions on Mathematical Software"}
+
+MACRO {toois} {"ACM Transactions on Office Information Systems"}
+
+MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
+
+MACRO {tcs} {"Theoretical Computer Science"}
+
+
+READ
+
+FUNCTION {sortify}
+{ purify$
+  "l" change.case$
+}
+
+INTEGERS { len }
+
+FUNCTION {chop.word}
+{ 's :=
+  'len :=
+  s #1 len substring$ =
+    { s len #1 + global.max$ substring$ }
+    's
+  if$
+}
+
+FUNCTION {format.lab.names}
+{ 's :=
+  s #1 "{vv~}{ll}" format.name$
+  s num.names$ duplicate$
+  #2 >
+    { pop$ " et~al." * }
+    { #2 <
+        'skip$
+        { s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
+            { " et~al." * }
+            { " and " * s #2 "{vv~}{ll}" format.name$ * }
+          if$
+        }
+      if$
+    }
+  if$
+}
+
+FUNCTION {author.key.label}
+{ author empty$
+    { key empty$
+        { cite$ #1 #3 substring$ }
+        'key
+      if$
+    }
+    { author format.lab.names }
+  if$
+}
+
+FUNCTION {author.editor.key.label}
+{ author empty$
+    { editor empty$
+        { key empty$
+            { cite$ #1 #3 substring$ }
+            'key
+          if$
+        }
+        { editor format.lab.names }
+      if$
+    }
+    { author format.lab.names }
+  if$
+}
+
+FUNCTION {author.key.organization.label}
+{ author empty$
+    { key empty$
+        { organization empty$
+            { cite$ #1 #3 substring$ }
+            { "The " #4 organization chop.word #3 text.prefix$ }
+          if$
+        }
+        'key
+      if$
+    }
+    { author format.lab.names }
+  if$
+}
+
+FUNCTION {editor.key.organization.label}
+{ editor empty$
+    { key empty$
+        { organization empty$
+            { cite$ #1 #3 substring$ }
+            { "The " #4 organization chop.word #3 text.prefix$ }
+          if$
+        }
+        'key
+      if$
+    }
+    { editor format.lab.names }
+  if$
+}
+
+FUNCTION {calc.short.authors}
+{ type$ "book" =
+  type$ "inbook" =
+  or
+    'author.editor.key.label
+    { type$ "proceedings" =
+        'editor.key.organization.label
+        { type$ "manual" =
+            'author.key.organization.label
+            'author.key.label
+          if$
+        }
+      if$
+    }
+  if$
+  'short.list :=
+}
+
+FUNCTION {calc.label}
+{ calc.short.authors
+  short.list
+  "("
+  *
+  year duplicate$ empty$
+  short.list key field.or.null = or
+     { pop$ "" }
+     'skip$
+  if$
+  *
+  'label :=
+}
+
+FUNCTION {sort.format.names}
+{ 's :=
+  #1 'nameptr :=
+  ""
+  s num.names$ 'numnames :=
+  numnames 'namesleft :=
+    { namesleft #0 > }
+    {
+      s nameptr "{vv{ } }{ll{ }}{  ff{ }}{  jj{ }}" format.name$ 't :=
+      nameptr #1 >
+        {
+          "   "  *
+          namesleft #1 = t "others" = and
+            { "zzzzz" * }
+            { numnames #2 > nameptr #2 = and
+                { "zz" * year field.or.null * "   " * }
+                'skip$
+              if$
+              t sortify *
+            }
+          if$
+        }
+        { t sortify * }
+      if$
+      nameptr #1 + 'nameptr :=
+      namesleft #1 - 'namesleft :=
+    }
+  while$
+}
+
+FUNCTION {sort.format.title}
+{ 't :=
+  "A " #2
+    "An " #3
+      "The " #4 t chop.word
+    chop.word
+  chop.word
+  sortify
+  #1 global.max$ substring$
+}
+
+FUNCTION {author.sort}
+{ author empty$
+    { key empty$
+        { "to sort, need author or key in " cite$ * warning$
+          ""
+        }
+        { key sortify }
+      if$
+    }
+    { author sort.format.names }
+  if$
+}
+
+FUNCTION {author.editor.sort}
+{ author empty$
+    { editor empty$
+        { key empty$
+            { "to sort, need author, editor, or key in " cite$ * warning$
+              ""
+            }
+            { key sortify }
+          if$
+        }
+        { editor sort.format.names }
+      if$
+    }
+    { author sort.format.names }
+  if$
+}
+
+FUNCTION {author.organization.sort}
+{ author empty$
+    { organization empty$
+        { key empty$
+            { "to sort, need author, organization, or key in " cite$ * warning$
+              ""
+            }
+            { key sortify }
+          if$
+        }
+        { "The " #4 organization chop.word sortify }
+      if$
+    }
+    { author sort.format.names }
+  if$
+}
+
+FUNCTION {editor.organization.sort}
+{ editor empty$
+    { organization empty$
+        { key empty$
+            { "to sort, need editor, organization, or key in " cite$ * warning$
+              ""
+            }
+            { key sortify }
+          if$
+        }
+        { "The " #4 organization chop.word sortify }
+      if$
+    }
+    { editor sort.format.names }
+  if$
+}
+
+
+FUNCTION {presort}
+{ calc.label
+  label sortify
+  "    "
+  *
+  type$ "book" =
+  type$ "inbook" =
+  or
+    'author.editor.sort
+    { type$ "proceedings" =
+        'editor.organization.sort
+        { type$ "manual" =
+            'author.organization.sort
+            'author.sort
+          if$
+        }
+      if$
+    }
+  if$
+  "    "
+  *
+  year field.or.null sortify
+  *
+  "    "
+  *
+  cite$
+  *
+  #1 entry.max$ substring$
+  'sort.label :=
+  sort.label *
+  #1 entry.max$ substring$
+  'sort.key$ :=
+}
+
+ITERATE {presort}
+
+SORT
+
+STRINGS { longest.label last.label next.extra }
+
+INTEGERS { longest.label.width last.extra.num number.label }
+
+FUNCTION {initialize.longest.label}
+{ "" 'longest.label :=
+  #0 int.to.chr$ 'last.label :=
+  "" 'next.extra :=
+  #0 'longest.label.width :=
+  #0 'last.extra.num :=
+  #0 'number.label :=
+}
+
+FUNCTION {forward.pass}
+{ last.label label =
+    { last.extra.num #1 + 'last.extra.num :=
+      last.extra.num int.to.chr$ 'extra.label :=
+    }
+    { "a" chr.to.int$ 'last.extra.num :=
+      "" 'extra.label :=
+      label 'last.label :=
+    }
+  if$
+  number.label #1 + 'number.label :=
+}
+
+FUNCTION {reverse.pass}
+{ next.extra "b" =
+    { "a" 'extra.label := }
+    'skip$
+  if$
+  extra.label 'next.extra :=
+  extra.label
+  duplicate$ empty$
+    'skip$
+    { "{\natexlab{" swap$ * "}}" * }
+  if$
+  'extra.label :=
+  label extra.label * 'label :=
+}
+
+EXECUTE {initialize.longest.label}
+
+ITERATE {forward.pass}
+
+REVERSE {reverse.pass}
+
+FUNCTION {bib.sort.order}
+{ sort.label  'sort.key$ :=
+}
+
+ITERATE {bib.sort.order}
+
+SORT
+
+FUNCTION {begin.bib}
+{   preamble$ empty$
+    'skip$
+    { preamble$ write$ newline$ }
+  if$
+  "\begin{thebibliography}{" number.label int.to.str$ * "}" *
+  write$ newline$
+  "\providecommand{\natexlab}[1]{#1}"
+  write$ newline$
+  "\providecommand{\url}[1]{\texttt{#1}}"
+  write$ newline$
+  "\expandafter\ifx\csname urlstyle\endcsname\relax"
+  write$ newline$
+  "  \providecommand{\doi}[1]{doi: #1}\else"
+  write$ newline$
+  "  \providecommand{\doi}{doi: \begingroup \urlstyle{rm}\Url}\fi"
+  write$ newline$
+}
+
+EXECUTE {begin.bib}
+
+EXECUTE {init.state.consts}
+
+ITERATE {call.type$}
+
+FUNCTION {end.bib}
+{ newline$
+  "\end{thebibliography}" write$ newline$
+}
+
+EXECUTE {end.bib}

+ 1435 - 0
natbib-bsts/surnamefirst.bst

@@ -0,0 +1,1435 @@
+%% File: `plainnat.bst'
+%% A modification of `plain.bst' for use with natbib package 
+%%
+%% Copyright 1993-2007 Patrick W Daly
+%% Max-Planck-Institut f\"ur Sonnensystemforschung
+%% Max-Planck-Str. 2
+%% D-37191 Katlenburg-Lindau
+%% Germany
+%% E-mail: daly@mps.mpg.de
+%%
+%% This program can be redistributed and/or modified under the terms
+%% of the LaTeX Project Public License Distributed from CTAN
+%% archives in directory macros/latex/base/lppl.txt; either
+%% version 1 of the License, or any later version.
+%%
+ % Version and source file information:
+ % \ProvidesFile{natbst.mbs}[2007/11/26 1.93 (PWD)]
+ %
+ % BibTeX `plainnat' family
+ %   version 0.99b for BibTeX versions 0.99a or later,
+ %   for LaTeX versions 2.09 and 2e.
+ %
+ % For use with the `natbib.sty' package; emulates the corresponding
+ %   member of the `plain' family, but with author-year citations.
+ %
+ % With version 6.0 of `natbib.sty', it may also be used for numerical
+ %   citations, while retaining the commands \citeauthor, \citefullauthor,
+ %   and \citeyear to print the corresponding information.
+ %
+ % For version 7.0 of `natbib.sty', the KEY field replaces missing
+ %   authors/editors, and the date is left blank in \bibitem.
+ %
+ % Includes field EID for the sequence/citation number of electronic journals
+ %  which is used instead of page numbers.
+ %
+ % Includes fields ISBN and ISSN.
+ %
+ % Includes field URL for Internet addresses.
+ %
+ % Includes field DOI for Digital Object Idenfifiers.
+ %
+ % Works best with the url.sty package of Donald Arseneau.
+ %
+ % Works with identical authors and year are further sorted by
+ %   citation key, to preserve any natural sequence.
+ %
+ENTRY
+  { address
+    author
+    booktitle
+    chapter
+    doi
+    eid
+    edition
+    editor
+    howpublished
+    institution
+    isbn
+    issn
+    journal
+    key
+    month
+    note
+    number
+    organization
+    pages
+    publisher
+    school
+    series
+    title
+    type
+    url
+    volume
+    year
+  }
+  {}
+  { label extra.label sort.label short.list }
+
+INTEGERS { output.state before.all mid.sentence after.sentence after.block }
+
+FUNCTION {init.state.consts}
+{ #0 'before.all :=
+  #1 'mid.sentence :=
+  #2 'after.sentence :=
+  #3 'after.block :=
+}
+
+STRINGS { s t }
+
+FUNCTION {output.nonnull}
+{ 's :=
+  output.state mid.sentence =
+    { ", " * write$ }
+    { output.state after.block =
+        { add.period$ write$
+          newline$
+          "\newblock " write$
+        }
+        { output.state before.all =
+            'write$
+            { add.period$ " " * write$ }
+          if$
+        }
+      if$
+      mid.sentence 'output.state :=
+    }
+  if$
+  s
+}
+
+FUNCTION {output}
+{ duplicate$ empty$
+    'pop$
+    'output.nonnull
+  if$
+}
+
+FUNCTION {output.check}
+{ 't :=
+  duplicate$ empty$
+    { pop$ "empty " t * " in " * cite$ * warning$ }
+    'output.nonnull
+  if$
+}
+
+FUNCTION {fin.entry}
+{ add.period$
+  write$
+  newline$
+}
+
+FUNCTION {new.block}
+{ output.state before.all =
+    'skip$
+    { after.block 'output.state := }
+  if$
+}
+
+FUNCTION {new.sentence}
+{ output.state after.block =
+    'skip$
+    { output.state before.all =
+        'skip$
+        { after.sentence 'output.state := }
+      if$
+    }
+  if$
+}
+
+FUNCTION {not}
+{   { #0 }
+    { #1 }
+  if$
+}
+
+FUNCTION {and}
+{   'skip$
+    { pop$ #0 }
+  if$
+}
+
+FUNCTION {or}
+{   { pop$ #1 }
+    'skip$
+  if$
+}
+
+FUNCTION {new.block.checka}
+{ empty$
+    'skip$
+    'new.block
+  if$
+}
+
+FUNCTION {new.block.checkb}
+{ empty$
+  swap$ empty$
+  and
+    'skip$
+    'new.block
+  if$
+}
+
+FUNCTION {new.sentence.checka}
+{ empty$
+    'skip$
+    'new.sentence
+  if$
+}
+
+FUNCTION {new.sentence.checkb}
+{ empty$
+  swap$ empty$
+  and
+    'skip$
+    'new.sentence
+  if$
+}
+
+FUNCTION {field.or.null}
+{ duplicate$ empty$
+    { pop$ "" }
+    'skip$
+  if$
+}
+
+FUNCTION {emphasize}
+{ duplicate$ empty$
+    { pop$ "" }
+    { "\emph{" swap$ * "}" * }
+  if$
+}
+
+INTEGERS { nameptr namesleft numnames }
+
+FUNCTION {format.names}
+{ 's :=
+  #1 'nameptr :=
+  s num.names$ 'numnames :=
+  numnames 'namesleft :=
+    { namesleft #0 > }
+    { s nameptr "{ll,~}{ff}{vv~}{, jj}" format.name$ 't :=
+      nameptr #1 >
+        { namesleft #1 >
+            { ", " * t * }
+            { numnames #2 >
+                { "," * }
+                'skip$
+              if$
+              t "others" =
+                { " et~al." * }
+                { " and " * t * }
+              if$
+            }
+          if$
+        }
+        't
+      if$
+      nameptr #1 + 'nameptr :=
+      namesleft #1 - 'namesleft :=
+    }
+  while$
+}
+
+FUNCTION {format.key}
+{ empty$
+    { key field.or.null }
+    { "" }
+  if$
+}
+
+FUNCTION {format.authors}
+{ author empty$
+    { "" }
+    { author format.names }
+  if$
+}
+
+FUNCTION {format.editors}
+{ editor empty$
+    { "" }
+    { editor format.names
+      editor num.names$ #1 >
+        { ", editors" * }
+        { ", editor" * }
+      if$
+    }
+  if$
+}
+
+FUNCTION {format.isbn}
+{ isbn empty$
+    { "" }
+    { new.block "ISBN " isbn * }
+  if$
+}
+
+FUNCTION {format.issn}
+{ issn empty$
+    { "" }
+    { new.block "ISSN " issn * }
+  if$
+}
+
+FUNCTION {format.url}
+{ url empty$
+    { "" }
+    { new.block "URL \url{" url * "}" * }
+  if$
+}
+
+FUNCTION {format.doi}
+{ doi empty$
+    { "" }
+    { new.block "\doi{" doi * "}" * }
+  if$
+}
+
+FUNCTION {format.title}
+{ title empty$
+    { "" }
+    { title "t" change.case$ }
+  if$
+}
+
+FUNCTION {format.full.names}
+{'s :=
+  #1 'nameptr :=
+  s num.names$ 'numnames :=
+  numnames 'namesleft :=
+    { namesleft #0 > }
+     { s nameptr "{jj}{vv~}{ll,~}{ff}" format.name$ 't :=
+      nameptr #1 >
+        {
+          namesleft #1 >
+            { ", " * t * }
+            {
+              numnames #2 >
+                { "," * }
+                'skip$
+              if$
+              t "others" =
+                { " et~al." * }
+                { " and " * t * }
+              if$
+            }
+          if$
+        }
+        't
+      if$
+      nameptr #1 + 'nameptr :=
+      namesleft #1 - 'namesleft :=
+    }
+  while$
+}
+
+FUNCTION {author.editor.full}
+{ author empty$
+    { editor empty$
+        { "" }
+        { editor format.full.names }
+      if$
+    }
+    { author format.full.names }
+  if$
+}
+
+FUNCTION {author.full}
+{ author empty$
+    { "" }
+    { author format.full.names }
+  if$
+}
+
+FUNCTION {editor.full}
+{ editor empty$
+    { "" }
+    { editor format.full.names }
+  if$
+}
+
+FUNCTION {make.full.names}
+{ type$ "book" =
+  type$ "inbook" =
+  or
+    'author.editor.full
+    { type$ "proceedings" =
+        'editor.full
+        'author.full
+      if$
+    }
+  if$
+}
+
+FUNCTION {output.bibitem}
+{ newline$
+  "\bibitem[" write$
+  label write$
+  ")" make.full.names duplicate$ short.list =
+     { pop$ }
+     { * }
+   if$
+  "]{" * write$
+  cite$ write$
+  "}" write$
+  newline$
+  ""
+  before.all 'output.state :=
+}
+
+FUNCTION {n.dashify}
+{ 't :=
+  ""
+    { t empty$ not }
+    { t #1 #1 substring$ "-" =
+        { t #1 #2 substring$ "--" = not
+            { "--" *
+              t #2 global.max$ substring$ 't :=
+            }
+            {   { t #1 #1 substring$ "-" = }
+                { "-" *
+                  t #2 global.max$ substring$ 't :=
+                }
+              while$
+            }
+          if$
+        }
+        { t #1 #1 substring$ *
+          t #2 global.max$ substring$ 't :=
+        }
+      if$
+    }
+  while$
+}
+
+FUNCTION {format.date}
+{ year duplicate$ empty$
+    { "empty year in " cite$ * warning$
+       pop$ "" }
+    'skip$
+  if$
+  month empty$
+    'skip$
+    { month
+      " " * swap$ *
+    }
+  if$
+  extra.label *
+}
+
+FUNCTION {format.btitle}
+{ title emphasize
+}
+
+FUNCTION {tie.or.space.connect}
+{ duplicate$ text.length$ #3 <
+    { "~" }
+    { " " }
+  if$
+  swap$ * *
+}
+
+FUNCTION {either.or.check}
+{ empty$
+    'pop$
+    { "can't use both " swap$ * " fields in " * cite$ * warning$ }
+  if$
+}
+
+FUNCTION {format.bvolume}
+{ volume empty$
+    { "" }
+    { "volume" volume tie.or.space.connect
+      series empty$
+        'skip$
+        { " of " * series emphasize * }
+      if$
+      "volume and number" number either.or.check
+    }
+  if$
+}
+
+FUNCTION {format.number.series}
+{ volume empty$
+    { number empty$
+        { series field.or.null }
+        { output.state mid.sentence =
+            { "number" }
+            { "Number" }
+          if$
+          number tie.or.space.connect
+          series empty$
+            { "there's a number but no series in " cite$ * warning$ }
+            { " in " * series * }
+          if$
+        }
+      if$
+    }
+    { "" }
+  if$
+}
+
+FUNCTION {format.edition}
+{ edition empty$
+    { "" }
+    { output.state mid.sentence =
+        { edition "l" change.case$ " edition" * }
+        { edition "t" change.case$ " edition" * }
+      if$
+    }
+  if$
+}
+
+INTEGERS { multiresult }
+
+FUNCTION {multi.page.check}
+{ 't :=
+  #0 'multiresult :=
+    { multiresult not
+      t empty$ not
+      and
+    }
+    { t #1 #1 substring$
+      duplicate$ "-" =
+      swap$ duplicate$ "," =
+      swap$ "+" =
+      or or
+        { #1 'multiresult := }
+        { t #2 global.max$ substring$ 't := }
+      if$
+    }
+  while$
+  multiresult
+}
+
+FUNCTION {format.pages}
+{ pages empty$
+    { "" }
+    { pages multi.page.check
+        { "pages" pages n.dashify tie.or.space.connect }
+        { "page" pages tie.or.space.connect }
+      if$
+    }
+  if$
+}
+
+FUNCTION {format.eid}
+{ eid empty$
+    { "" }
+    { "art." eid tie.or.space.connect }
+  if$
+}
+
+FUNCTION {format.vol.num.pages}
+{ volume field.or.null
+  number empty$
+    'skip$
+    { "\penalty0 (" number * ")" * *
+      volume empty$
+        { "there's a number but no volume in " cite$ * warning$ }
+        'skip$
+      if$
+    }
+  if$
+  pages empty$
+    'skip$
+    { duplicate$ empty$
+        { pop$ format.pages }
+        { ":\penalty0 " * pages n.dashify * }
+      if$
+    }
+  if$
+}
+
+FUNCTION {format.vol.num.eid}
+{ volume field.or.null
+  number empty$
+    'skip$
+    { "\penalty0 (" number * ")" * *
+      volume empty$
+        { "there's a number but no volume in " cite$ * warning$ }
+        'skip$
+      if$
+    }
+  if$
+  eid empty$
+    'skip$
+    { duplicate$ empty$
+        { pop$ format.eid }
+        { ":\penalty0 " * eid * }
+      if$
+    }
+  if$
+}
+
+FUNCTION {format.chapter.pages}
+{ chapter empty$
+    'format.pages
+    { type empty$
+        { "chapter" }
+        { type "l" change.case$ }
+      if$
+      chapter tie.or.space.connect
+      pages empty$
+        'skip$
+        { ", " * format.pages * }
+      if$
+    }
+  if$
+}
+
+FUNCTION {format.in.ed.booktitle}
+{ booktitle empty$
+    { "" }
+    { editor empty$
+        { "In " booktitle emphasize * }
+        { "In " format.editors * ", " * booktitle emphasize * }
+      if$
+    }
+  if$
+}
+
+FUNCTION {empty.misc.check}
+{ author empty$ title empty$ howpublished empty$
+  month empty$ year empty$ note empty$
+  and and and and and
+  key empty$ not and
+    { "all relevant fields are empty in " cite$ * warning$ }
+    'skip$
+  if$
+}
+
+FUNCTION {format.thesis.type}
+{ type empty$
+    'skip$
+    { pop$
+      type "t" change.case$
+    }
+  if$
+}
+
+FUNCTION {format.tr.number}
+{ type empty$
+    { "Technical Report" }
+    'type
+  if$
+  number empty$
+    { "t" change.case$ }
+    { number tie.or.space.connect }
+  if$
+}
+
+FUNCTION {format.article.crossref}
+{ key empty$
+    { journal empty$
+        { "need key or journal for " cite$ * " to crossref " * crossref *
+          warning$
+          ""
+        }
+        { "In \emph{" journal * "}" * }
+      if$
+    }
+    { "In " }
+  if$
+  " \citet{" * crossref * "}" *
+}
+
+FUNCTION {format.book.crossref}
+{ volume empty$
+    { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
+      "In "
+    }
+    { "Volume" volume tie.or.space.connect
+      " of " *
+    }
+  if$
+  editor empty$
+  editor field.or.null author field.or.null =
+  or
+    { key empty$
+        { series empty$
+            { "need editor, key, or series for " cite$ * " to crossref " *
+              crossref * warning$
+              "" *
+            }
+            { "\emph{" * series * "}" * }
+          if$
+        }
+        'skip$
+      if$
+    }
+    'skip$
+  if$
+  " \citet{" * crossref * "}" *
+}
+
+FUNCTION {format.incoll.inproc.crossref}
+{ editor empty$
+  editor field.or.null author field.or.null =
+  or
+    { key empty$
+        { booktitle empty$
+            { "need editor, key, or booktitle for " cite$ * " to crossref " *
+              crossref * warning$
+              ""
+            }
+            { "In \emph{" booktitle * "}" * }
+          if$
+        }
+        { "In " }
+      if$
+    }
+    { "In " }
+  if$
+  " \citet{" * crossref * "}" *
+}
+
+FUNCTION {article}
+{ output.bibitem
+  format.authors "author" output.check
+  author format.key output
+  new.block
+  format.title "title" output.check
+  new.block
+  crossref missing$
+    { journal emphasize "journal" output.check
+      eid empty$
+        { format.vol.num.pages output }
+        { format.vol.num.eid output }
+      if$
+      format.date "year" output.check
+    }
+    { format.article.crossref output.nonnull
+      eid empty$
+        { format.pages output }
+        { format.eid output }
+      if$
+    }
+  if$
+  format.issn output
+  format.doi output
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {book}
+{ output.bibitem
+  author empty$
+    { format.editors "author and editor" output.check
+      editor format.key output
+    }
+    { format.authors output.nonnull
+      crossref missing$
+        { "author and editor" editor either.or.check }
+        'skip$
+      if$
+    }
+  if$
+  new.block
+  format.btitle "title" output.check
+  crossref missing$
+    { format.bvolume output
+      new.block
+      format.number.series output
+      new.sentence
+      publisher "publisher" output.check
+      address output
+    }
+    { new.block
+      format.book.crossref output.nonnull
+    }
+  if$
+  format.edition output
+  format.date "year" output.check
+  format.isbn output
+  format.doi output
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {booklet}
+{ output.bibitem
+  format.authors output
+  author format.key output
+  new.block
+  format.title "title" output.check
+  howpublished address new.block.checkb
+  howpublished output
+  address output
+  format.date output
+  format.isbn output
+  format.doi output
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {inbook}
+{ output.bibitem
+  author empty$
+    { format.editors "author and editor" output.check
+      editor format.key output
+    }
+    { format.authors output.nonnull
+      crossref missing$
+        { "author and editor" editor either.or.check }
+        'skip$
+      if$
+    }
+  if$
+  new.block
+  format.btitle "title" output.check
+  crossref missing$
+    { format.bvolume output
+      format.chapter.pages "chapter and pages" output.check
+      new.block
+      format.number.series output
+      new.sentence
+      publisher "publisher" output.check
+      address output
+    }
+    { format.chapter.pages "chapter and pages" output.check
+      new.block
+      format.book.crossref output.nonnull
+    }
+  if$
+  format.edition output
+  format.date "year" output.check
+  format.isbn output
+  format.doi output
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {incollection}
+{ output.bibitem
+  format.authors "author" output.check
+  author format.key output
+  new.block
+  format.title "title" output.check
+  new.block
+  crossref missing$
+    { format.in.ed.booktitle "booktitle" output.check
+      format.bvolume output
+      format.number.series output
+      format.chapter.pages output
+      new.sentence
+      publisher "publisher" output.check
+      address output
+      format.edition output
+      format.date "year" output.check
+    }
+    { format.incoll.inproc.crossref output.nonnull
+      format.chapter.pages output
+    }
+  if$
+  format.isbn output
+  format.doi output
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {inproceedings}
+{ output.bibitem
+  format.authors "author" output.check
+  author format.key output
+  new.block
+  format.title "title" output.check
+  new.block
+  crossref missing$
+    { format.in.ed.booktitle "booktitle" output.check
+      format.bvolume output
+      format.number.series output
+      format.pages output
+      address empty$
+        { organization publisher new.sentence.checkb
+          organization output
+          publisher output
+          format.date "year" output.check
+        }
+        { address output.nonnull
+          format.date "year" output.check
+          new.sentence
+          organization output
+          publisher output
+        }
+      if$
+    }
+    { format.incoll.inproc.crossref output.nonnull
+      format.pages output
+    }
+  if$
+  format.isbn output
+  format.doi output
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {conference} { inproceedings }
+
+FUNCTION {manual}
+{ output.bibitem
+  format.authors output
+  author format.key output
+  new.block
+  format.btitle "title" output.check
+  organization address new.block.checkb
+  organization output
+  address output
+  format.edition output
+  format.date output
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {mastersthesis}
+{ output.bibitem
+  format.authors "author" output.check
+  author format.key output
+  new.block
+  format.title "title" output.check
+  new.block
+  "Master's thesis" format.thesis.type output.nonnull
+  school "school" output.check
+  address output
+  format.date "year" output.check
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {misc}
+{ output.bibitem
+  format.authors output
+  author format.key output
+  title howpublished new.block.checkb
+  format.title output
+  howpublished new.block.checka
+  howpublished output
+  format.date output
+  format.issn output
+  format.url output
+  new.block
+  note output
+  fin.entry
+  empty.misc.check
+}
+
+FUNCTION {phdthesis}
+{ output.bibitem
+  format.authors "author" output.check
+  author format.key output
+  new.block
+  format.btitle "title" output.check
+  new.block
+  "PhD thesis" format.thesis.type output.nonnull
+  school "school" output.check
+  address output
+  format.date "year" output.check
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {proceedings}
+{ output.bibitem
+  format.editors output
+  editor format.key output
+  new.block
+  format.btitle "title" output.check
+  format.bvolume output
+  format.number.series output
+  address output
+  format.date "year" output.check
+  new.sentence
+  organization output
+  publisher output
+  format.isbn output
+  format.doi output
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {techreport}
+{ output.bibitem
+  format.authors "author" output.check
+  author format.key output
+  new.block
+  format.title "title" output.check
+  new.block
+  format.tr.number output.nonnull
+  institution "institution" output.check
+  address output
+  format.date "year" output.check
+  format.url output
+  new.block
+  note output
+  fin.entry
+}
+
+FUNCTION {unpublished}
+{ output.bibitem
+  format.authors "author" output.check
+  author format.key output
+  new.block
+  format.title "title" output.check
+  new.block
+  note "note" output.check
+  format.date output
+  format.url output
+  fin.entry
+}
+
+FUNCTION {default.type} { misc }
+
+
+MACRO {jan} {"January"}
+
+MACRO {feb} {"February"}
+
+MACRO {mar} {"March"}
+
+MACRO {apr} {"April"}
+
+MACRO {may} {"May"}
+
+MACRO {jun} {"June"}
+
+MACRO {jul} {"July"}
+
+MACRO {aug} {"August"}
+
+MACRO {sep} {"September"}
+
+MACRO {oct} {"October"}
+
+MACRO {nov} {"November"}
+
+MACRO {dec} {"December"}
+
+
+
+MACRO {acmcs} {"ACM Computing Surveys"}
+
+MACRO {acta} {"Acta Informatica"}
+
+MACRO {cacm} {"Communications of the ACM"}
+
+MACRO {ibmjrd} {"IBM Journal of Research and Development"}
+
+MACRO {ibmsj} {"IBM Systems Journal"}
+
+MACRO {ieeese} {"IEEE Transactions on Software Engineering"}
+
+MACRO {ieeetc} {"IEEE Transactions on Computers"}
+
+MACRO {ieeetcad}
+ {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
+
+MACRO {ipl} {"Information Processing Letters"}
+
+MACRO {jacm} {"Journal of the ACM"}
+
+MACRO {jcss} {"Journal of Computer and System Sciences"}
+
+MACRO {scp} {"Science of Computer Programming"}
+
+MACRO {sicomp} {"SIAM Journal on Computing"}
+
+MACRO {tocs} {"ACM Transactions on Computer Systems"}
+
+MACRO {tods} {"ACM Transactions on Database Systems"}
+
+MACRO {tog} {"ACM Transactions on Graphics"}
+
+MACRO {toms} {"ACM Transactions on Mathematical Software"}
+
+MACRO {toois} {"ACM Transactions on Office Information Systems"}
+
+MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
+
+MACRO {tcs} {"Theoretical Computer Science"}
+
+
+READ
+
+FUNCTION {sortify}
+{ purify$
+  "l" change.case$
+}
+
+INTEGERS { len }
+
+FUNCTION {chop.word}
+{ 's :=
+  'len :=
+  s #1 len substring$ =
+    { s len #1 + global.max$ substring$ }
+    's
+  if$
+}
+
+FUNCTION {format.lab.names}
+{ 's :=
+  s #1 "{vv~}{ll}" format.name$
+  s num.names$ duplicate$
+  #2 >
+    { pop$ " et~al." * }
+    { #2 <
+        'skip$
+        { s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
+            { " et~al." * }
+            { " and " * s #2 "{vv~}{ll}" format.name$ * }
+          if$
+        }
+      if$
+    }
+  if$
+}
+
+FUNCTION {author.key.label}
+{ author empty$
+    { key empty$
+        { cite$ #1 #3 substring$ }
+        'key
+      if$
+    }
+    { author format.lab.names }
+  if$
+}
+
+FUNCTION {author.editor.key.label}
+{ author empty$
+    { editor empty$
+        { key empty$
+            { cite$ #1 #3 substring$ }
+            'key
+          if$
+        }
+        { editor format.lab.names }
+      if$
+    }
+    { author format.lab.names }
+  if$
+}
+
+FUNCTION {author.key.organization.label}
+{ author empty$
+    { key empty$
+        { organization empty$
+            { cite$ #1 #3 substring$ }
+            { "The " #4 organization chop.word #3 text.prefix$ }
+          if$
+        }
+        'key
+      if$
+    }
+    { author format.lab.names }
+  if$
+}
+
+FUNCTION {editor.key.organization.label}
+{ editor empty$
+    { key empty$
+        { organization empty$
+            { cite$ #1 #3 substring$ }
+            { "The " #4 organization chop.word #3 text.prefix$ }
+          if$
+        }
+        'key
+      if$
+    }
+    { editor format.lab.names }
+  if$
+}
+
+FUNCTION {calc.short.authors}
+{ type$ "book" =
+  type$ "inbook" =
+  or
+    'author.editor.key.label
+    { type$ "proceedings" =
+        'editor.key.organization.label
+        { type$ "manual" =
+            'author.key.organization.label
+            'author.key.label
+          if$
+        }
+      if$
+    }
+  if$
+  'short.list :=
+}
+
+FUNCTION {calc.label}
+{ calc.short.authors
+  short.list
+  "("
+  *
+  year duplicate$ empty$
+  short.list key field.or.null = or
+     { pop$ "" }
+     'skip$
+  if$
+  *
+  'label :=
+}
+
+FUNCTION {sort.format.names}
+{ 's :=
+  #1 'nameptr :=
+  ""
+  s num.names$ 'numnames :=
+  numnames 'namesleft :=
+    { namesleft #0 > }
+    {
+      s nameptr "{vv{ } }{ll{ }}{  ff{ }}{  jj{ }}" format.name$ 't :=
+      nameptr #1 >
+        {
+          "   "  *
+          namesleft #1 = t "others" = and
+            { "zzzzz" * }
+            { numnames #2 > nameptr #2 = and
+                { "zz" * year field.or.null * "   " * }
+                'skip$
+              if$
+              t sortify *
+            }
+          if$
+        }
+        { t sortify * }
+      if$
+      nameptr #1 + 'nameptr :=
+      namesleft #1 - 'namesleft :=
+    }
+  while$
+}
+
+FUNCTION {sort.format.title}
+{ 't :=
+  "A " #2
+    "An " #3
+      "The " #4 t chop.word
+    chop.word
+  chop.word
+  sortify
+  #1 global.max$ substring$
+}
+
+FUNCTION {author.sort}
+{ author empty$
+    { key empty$
+        { "to sort, need author or key in " cite$ * warning$
+          ""
+        }
+        { key sortify }
+      if$
+    }
+    { author sort.format.names }
+  if$
+}
+
+FUNCTION {author.editor.sort}
+{ author empty$
+    { editor empty$
+        { key empty$
+            { "to sort, need author, editor, or key in " cite$ * warning$
+              ""
+            }
+            { key sortify }
+          if$
+        }
+        { editor sort.format.names }
+      if$
+    }
+    { author sort.format.names }
+  if$
+}
+
+FUNCTION {author.organization.sort}
+{ author empty$
+    { organization empty$
+        { key empty$
+            { "to sort, need author, organization, or key in " cite$ * warning$
+              ""
+            }
+            { key sortify }
+          if$
+        }
+        { "The " #4 organization chop.word sortify }
+      if$
+    }
+    { author sort.format.names }
+  if$
+}
+
+FUNCTION {editor.organization.sort}
+{ editor empty$
+    { organization empty$
+        { key empty$
+            { "to sort, need editor, organization, or key in " cite$ * warning$
+              ""
+            }
+            { key sortify }
+          if$
+        }
+        { "The " #4 organization chop.word sortify }
+      if$
+    }
+    { editor sort.format.names }
+  if$
+}
+
+
+FUNCTION {presort}
+{ calc.label
+  label sortify
+  "    "
+  *
+  type$ "book" =
+  type$ "inbook" =
+  or
+    'author.editor.sort
+    { type$ "proceedings" =
+        'editor.organization.sort
+        { type$ "manual" =
+            'author.organization.sort
+            'author.sort
+          if$
+        }
+      if$
+    }
+  if$
+  "    "
+  *
+  year field.or.null sortify
+  *
+  "    "
+  *
+  cite$
+  *
+  #1 entry.max$ substring$
+  'sort.label :=
+  sort.label *
+  #1 entry.max$ substring$
+  'sort.key$ :=
+}
+
+ITERATE {presort}
+
+SORT
+
+STRINGS { longest.label last.label next.extra }
+
+INTEGERS { longest.label.width last.extra.num number.label }
+
+FUNCTION {initialize.longest.label}
+{ "" 'longest.label :=
+  #0 int.to.chr$ 'last.label :=
+  "" 'next.extra :=
+  #0 'longest.label.width :=
+  #0 'last.extra.num :=
+  #0 'number.label :=
+}
+
+FUNCTION {forward.pass}
+{ last.label label =
+    { last.extra.num #1 + 'last.extra.num :=
+      last.extra.num int.to.chr$ 'extra.label :=
+    }
+    { "a" chr.to.int$ 'last.extra.num :=
+      "" 'extra.label :=
+      label 'last.label :=
+    }
+  if$
+  number.label #1 + 'number.label :=
+}
+
+FUNCTION {reverse.pass}
+{ next.extra "b" =
+    { "a" 'extra.label := }
+    'skip$
+  if$
+  extra.label 'next.extra :=
+  extra.label
+  duplicate$ empty$
+    'skip$
+    { "{\natexlab{" swap$ * "}}" * }
+  if$
+  'extra.label :=
+  label extra.label * 'label :=
+}
+
+EXECUTE {initialize.longest.label}
+
+ITERATE {forward.pass}
+
+REVERSE {reverse.pass}
+
+FUNCTION {bib.sort.order}
+{ sort.label  'sort.key$ :=
+}
+
+ITERATE {bib.sort.order}
+
+SORT
+
+FUNCTION {begin.bib}
+{   preamble$ empty$
+    'skip$
+    { preamble$ write$ newline$ }
+  if$
+  "\begin{thebibliography}{" number.label int.to.str$ * "}" *
+  write$ newline$
+  "\providecommand{\natexlab}[1]{#1}"
+  write$ newline$
+  "\providecommand{\url}[1]{\texttt{#1}}"
+  write$ newline$
+  "\expandafter\ifx\csname urlstyle\endcsname\relax"
+  write$ newline$
+  "  \providecommand{\doi}[1]{doi: #1}\else"
+  write$ newline$
+  "  \providecommand{\doi}{doi: \begingroup \urlstyle{rm}\Url}\fi"
+  write$ newline$
+}
+
+EXECUTE {begin.bib}
+
+EXECUTE {init.state.consts}
+
+ITERATE {call.type$}
+
+FUNCTION {end.bib}
+{ newline$
+  "\end{thebibliography}" write$ newline$
+}
+
+EXECUTE {end.bib}

+ 71 - 0
pre.tex

@@ -0,0 +1,71 @@
+\documentclass{article}
+\usepackage[utf8]{inputenc}
+
+% Flexible and complete interface to document dimensions
+\usepackage{geometry}
+
+% Enhanced support for graphics
+% easy and flex­i­ble user in­ter­face to cus­tomize page layout
+\usepackage{graphicx}	
+
+% Publication quality tables in LATEX
+% for much better looking tables
+\usepackage{booktabs} 	
+
+% Extending the array and tabular environments
+% for better arrays (eg matrices) in maths
+\usepackage{array} 		
+
+% Enumerate and itemize within paragraphs
+% very flexible & customisable lists (eg. enumerate/itemize, etc.)
+\usepackage{paralist} 	
+
+% Reimplementation of and extensions to LATEX verbatim
+% adds environment for commenting out blocks of text
+\usepackage{verbatim} 	
+
+% Figures broken into subfigures
+% make it possible to include more than one captioned figure/table in a single float
+\usepackage{subfig} 
+
+% Verbatim with URL-sensitive line breaks	
+% com­mand that al­lows line­breaks at cer­tain char­ac­ters or com­bi­na­tions of char­ac­ters
+\usepackage{url}
+
+% Flexible bibliography support
+% authoryear to numbers for numerical citation
+\usepackage[authoryear,square]{natbib} 
+
+% Extensive control of page headers and footers
+\usepackage{fancyhdr}
+
+% Control sectional headers
+\usepackage{sectsty}
+
+
+%%% ToC (table of contents) APPEARANCE
+\usepackage[nottoc,notlof,notlot]{tocbibind} % Put the bibliography in the ToC
+\usepackage[titles,subfigure]{tocloft} % Alter the style of the Table of Contents
+
+% Add colour to LATEX tables
+\usepackage{colortbl}
+
+% Produces figures which text can flow around
+\usepackage{wrapfig}
+
+% AMS mathematical facilities for LATEX
+\usepackage{amsmath}
+
+% Easy access to the Lorem Ipsum dummy text
+\usepackage{lipsum}
+
+% Reference last page for Page N of M type footers
+\usepackage{lastpage}
+
+% SOME SETUP: Do not edit
+\allsectionsfont{\sffamily\mdseries\upshape}
+\renewcommand{\cftsecfont}{\rmfamily\mdseries\upshape}
+\renewcommand{\cftsecpagefont}{\rmfamily\mdseries\upshape} % No bold!
+\geometry{a4paper}
+
+%%% END Article customizations

BIN
report.pdf


+ 276 - 0
report.tex

@@ -0,0 +1,276 @@
+%%% DOCUMENT BEGIN
+
+\input{pre}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%% FILL INN THE DETAILS %%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%% Personal details %%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\def \myname{My name}
+\def \mysign{abc123}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%% Course details %%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\def \university{University of Tromsø \\The Arctic University of Norway}
+\def \coursecode{XXX-0000}
+\def \coursename{Course name}
+\def \coursedep{Department of ...}		% e.g Computer Science
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%% Document details %%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\def \doctype{Assignment}				% project, thesis etc.
+\def \docnum{0}							% Assigment 1, 2, 3 etc?
+\def \docdesc{My assignment}			% Assignment header
+\def \docdate{\today}					% Will be todays date
+
+%%%%%%%%%%%%%%%%%%%% DONE EDITING DETAILS %%%%%%%%%%%%%%%%%%%%%%%%%
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% NO EDIT %%%%%%%%%%%%%%% VARIABLES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\def \thetitle {\coursecode\ \coursename}			% The title
+\def \thesubtitle {\doctype\ \#\docnum: \docdesc}	% The subtitle
+\def \theauthor {\myname\ -- \mysign}				% The author
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% NO EDIT %%%%%%%%%%%%%% PAGE STYLE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\pagestyle{fancy}
+\pagestyle{fancyplain} 					% or: empty, plain, fancy
+\renewcommand{\headrulewidth}{1pt} 
+\renewcommand{\footrulewidth}{0pt}
+\lhead{\fancyplain{}{\thetitle\ -- \thesubtitle}}	% left header
+\chead{}											% center header
+\rhead{\fancyplain{}{\theauthor{}}}					% right header
+\lfoot{}											% left footer
+\cfoot{Page {\thepage} of \pageref{LastPage}}		% center footer
+\rfoot{}											% right footer
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%% DOCUMENT BEGIN %%%%%%%%%%%%%%%%%%%%%%%%%%
+\begin{document}						 % Nothing more to do here
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% NO EDIT %%%%%%%%%%%%% DOCUMENT FRONTPAGE %%%%%%%%%%%%%%%%%%%%%%%%
+\begin{titlepage}
+	\begin{center}
+		\textsc{\\[3.5cm] \huge \university}\\[1.5cm]
+		\textsc{\LARGE \thetitle}\\[0.5cm]
+		\textsc{\Large \thesubtitle}\\[1.5cm]
+		\LARGE{\theauthor} \\[0.5cm] \large{\coursedep}
+		\vfill
+		{\large \docdate}
+	\end{center}
+	\thispagestyle{empty}
+\end{titlepage}
+\newpage{}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% NO EDIT %%%%%%%%%%%%% TABLE OF CONTENTS %%%%%%%%%%%%%%%%%%%%%%%%%
+\thispagestyle{empty}
+\tableofcontents{}
+\newpage{}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%% DOCUMENT BODY %%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Start counting pages from document body (excl. frontpage and Toc)
+\setcounter{page}{1}
+
+%%%%%%%%%%%%%%%%%%%% INTRO TECHNICAL REPORT %%%%%%%%%%%%%%%%%%%%%%%
+% A technical report complements and describes the work which has 
+% been done, e.g:
+% – Contribution and lessons learned
+% – To enable the reader to gain insight and to reproduce the work
+% Structured report:
+% – Follows some basic principles (covered for in each section)
+
+%%%%%%%%%%%%%%%%%%% DESCRIPTION INTRODUCTION %%%%%%%%%%%%%%%%%%%%%%
+% Gives a brief introduction to the problem
+% – E.g. “In this paper, we describe the design and implementation 
+% 	of a set ADT.”
+% A subsection can state the requirements for the particular 
+% assignment/problem. The introduction should not give away to many 
+% details or discoveries (this comes later).
+\section{Introduction}
+\label{sec:intro}
+
+This report-template adopts the suggested report structure given 
+by the Department of Computer Science at The University of Tromsø.
+
+Each section is commented with the information it should contain, 
+e.g (from source code from Section~\ref{sec:intro}):
+
+\begin{verbatim}
+%%%%%%%%%%%%%%%%%%% DESCRIPTION INTRODUCTION %%%%%%%%%%%%%%%%%%%%%%
+% Gives a brief introduction to the problem
+% - E.g. In this paper, we describe the design and implementation 
+% 	of a set ADT.
+% A subsection can state the requirements for the particular 
+% assignment/problem. The introduction should not give away to many 
+% details or discoveries (this comes later).
+\end{verbatim}
+
+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.
+
+\subsection{Bibliography}
+\label{sub:bibliography}
+
+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. 
+
+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.
+
+\subsubsection{Compiling and lost references}
+\label{ssub:compilinglostref}
+
+\begin{itemize}
+	\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.
+	\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.
+\end{itemize}
+
+% subsubsection compilinglostref (end)
+
+% subsection bibliography (end)
+
+\subsection{Citation example}
+\label{sub:citation}
+
+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}.
+
+% subsection citation (end)
+
+\subsection{Resources to LaTeX}
+\label{sub:resources}
+
+See the folder "Resources" for many tips and tricks :) - GOOD LUCK.
+
+% subsection resources (end)
+
+% section intro (end)
+
+%%%%%%%%%%%%%%% DESCRIPTION TECHNICAL BACKGROUND %%%%%%%%%%%%%%%%%%
+% Covers the topics needed to solve the problem
+% – E.g. a high-level description of linked-lists and/or trees
+% – “What you needed to know before solving the problem”
+% Does NOT explain your solution
+% – This is covered in the design and implementation sections
+\section{Technical background}
+\label{sec:techback}
+
+% Content
+\lipsum[2-3] % Generate dummy text
+
+% section techback (end)
+
+%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION DESIGN %%%%%%%%%%%%%%%%%%%%%%%%%
+% “How did you solve the problem?” Give a detailed description of 
+% your solution, e.g:
+% – Set union was implemented using a merge algorithm (along with 
+%	a description of the algorithm).
+% Should NOT contain references to actual code, i.e:
+% – The solution should be language (C, Python etc.) and platform 
+%	(Windows, Linux) agnostic.
+% Figures are essential!
+\section{Design}
+\label{sec:design}
+
+% Content
+\lipsum[4-5] % Generate dummy text
+
+% section design (end)
+
+%%%%%%%%%%%%%%%%%%% DESCRIPTION IMPLEMENTATION %%%%%%%%%%%%%%%%%%%%%
+% Technical details to how the problem was solved 
+% (briefly) and (can) contain the answer to:
+% – Which language was used?
+% – Any troubles during the implementation?
+% – Any bugs?
+% – How was the development process?
+% This is NOT a step-by-step explanation of the implementation
+% – As the report is a high-level description of how a problem was solved
+% – Don’t copy and paste code into the report
+\section{Implementation}
+\label{sec:implementation}
+
+% Content
+\lipsum[4-5] % Generate dummy text
+
+% section implementation (end)
+
+%%%%%%%%%%%%%%%%%%%%% DESCRIPTION DISCUSSION %%%%%%%%%%%%%%%%%%%%%%%
+% Discuss the design choices made
+% – In favor of your solution
+% – Compare to other solutions (e.g. trees vs lists)
+% Non-functional aspects
+% – Performance, scalability, robustness etc.
+% – Use Big-Oh notation to describe the algorithms
+\section{Discussion}
+\label{sec:discussion}
+
+% Content
+\lipsum[4-5] % Generate dummy text
+
+% section discussion (end)
+
+
+%%%%%%%%%%%%%%%%%%%%% DESCRIPTION EVALUATION %%%%%%%%%%%%%%%%%%%%%%%
+% Prove that your implementation is correct and performs as should.
+% Correctness checking:
+% – Validating that the behavior and output is correct given 
+%	some input.
+% Performance:
+% – Metrics such as time, storage cost and memory consumption
+% – Compare your solution to others
+% – Graphs (e.g. insertion time in list with increasing size)
+\subsection{Evaluation}
+\label{sub:evaluation}
+
+% Content
+\lipsum[4-5] % Generate dummy text
+
+% subsection evaluation (end)
+
+%%%%%%%%%%%%%%%%%%%%% DESCRIPTION CONCLUSION %%%%%%%%%%%%%%%%%%%%%%%
+% Sum up by restating the problem and solution
+% – E.g. “In this report we have described a set ADT.”
+% Follow up with a brief summary of the solution along with 
+% lessons learned
+% – E.g. “By using lists, we were able to implement set operation 
+%	in linear time”
+\section{Conclusion}
+\label{sec:conclusion}
+
+% Content
+\lipsum[4-5] % Generate dummy text
+
+% section conclusion (end)
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%% BIBLIOGRAPHY %%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% NOTES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% Edit the file "bibliography.bib" and add all your references to 
+% this file. The syntax is Bibtex, which you can read more about
+% here: http://www.bibtex.org/Format/.
+%
+% There are also examples on how to format these entries in the
+% file, but as a tip there are many websites who offers a link
+% such as «cite this page», that will generate this bibtex-entry
+% for you.
+%
+% IMPORTANT!
+% 1. A bibtex-entry must be cited to show up in the bibliography. 
+%	 More about cite, citet, citep here: https://goo.gl/sGjup3
+% 2. There is a bug in either bibtex or latex, so you must(!)
+% 2.1	Compile the bibtex-file (after citation) 2-3 times.
+% 2.2 	Compile the latex-file (after citation) 2-3 times.
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\newpage
+% if you want surname, firstname, change to "lastnamefirst"
+\bibliographystyle{natbib-bsts/firstnamefirst}
+\bibliography{bibliography}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%% DOCUMENT END %%%%%%%%%%%%%%%%%%%%%%%%%%
+\end{document}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%