Advertisement
Guest User

Untitled

a guest
Jan 27th, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.31 KB | None | 0 0
  1. %% ----------------------------------------------------------------
  2. %% GDP.tex
  3. %% ----------------------------------------------------------------
  4.  
  5. \documentclass{ecsgdp} % Use the GDP Report Style
  6. \graphicspath{{../Figures/}} % Location of your graphics files
  7. \usepackage{natbib} % Use Natbib style for the refs.
  8. \usepackage[parfill]{parskip}
  9. \usepackage{amsmath}
  10. \usepackage{pdflscape}
  11. \hypersetup{colorlinks=true} % Set to false for black/white printing
  12. \input{Definitions} % Include your abbreviations
  13.  
  14. %% ----------------------------------------------------------------
  15.  
  16. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  17. % Code Snippet
  18. % LaTeX Template
  19. % Version 1.0 (14/2/13)
  20. %
  21. % This template has been downloaded from:
  22. % http://www.LaTeXTemplates.com
  23. %
  24. % Original author:
  25. % Velimir Gayevskiy (vel@latextemplates.com)
  26. %
  27. % License:
  28. % CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
  29. %
  30. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  31.  
  32. \usepackage{listings} % Required for inserting code snippets
  33. \usepackage[usenames,dvipsnames]{color} % Required for specifying custom colors and referring to colors by name
  34.  
  35. \definecolor{DarkGreen}{rgb}{0.0,0.4,0.0} % Comment color
  36. \definecolor{highlight}{RGB}{255,251,204} % Code highlight color
  37.  
  38. \lstdefinestyle{Style1}{ % Define a style for your code snippet, multiple definitions can be made if, for example, you wish to insert multiple code snippets using different programming languages into one document
  39. language=Perl, % Detects keywords, comments, strings, functions, etc for the language specified
  40. backgroundcolor=\color{highlight}, % Set the background color for the snippet - useful for highlighting
  41. basicstyle=\footnotesize\ttfamily, % The default font size and style of the code
  42. breakatwhitespace=false, % If true, only allows line breaks at white space
  43. breaklines=true, % Automatic line breaking (prevents code from protruding outside the box)
  44. captionpos=b, % Sets the caption position: b for bottom; t for top
  45. commentstyle=\usefont{T1}{pcr}{m}{sl}\color{DarkGreen}, % Style of comments within the code - dark green courier font
  46. deletekeywords={}, % If you want to delete any keywords from the current language separate them by commas
  47. %escapeinside={\%}, % This allows you to escape to LaTeX using the character in the bracket
  48. firstnumber=1, % Line numbers begin at line 1
  49. frame=single, % Frame around the code box, value can be: none, leftline, topline, bottomline, lines, single, shadowbox
  50. frameround=tttt, % Rounds the corners of the frame for the top left, top right, bottom left and bottom right positions
  51. keywordstyle=\color{Blue}\bf, % Functions are bold and blue
  52. morekeywords={}, % Add any functions no included by default here separated by commas
  53. numbers=left, % Location of line numbers, can take the values of: none, left, right
  54. numbersep=10pt, % Distance of line numbers from the code box
  55. numberstyle=\tiny\color{Gray}, % Style used for line numbers
  56. rulecolor=\color{black}, % Frame border color
  57. showstringspaces=false, % Don't put marks in string spaces
  58. showtabs=false, % Display tabs in the code as lines
  59. stepnumber=5, % The step distance between line numbers, i.e. how often will lines be numbered
  60. stringstyle=\color{Purple}, % Strings are purple
  61. tabsize=2, % Number of spaces per tab in the code
  62. }
  63.  
  64. % Create a command to cleanly insert a snippet with the style above anywhere in the document
  65. \newcommand{\insertcode}[2]{\begin{itemize}\item[]\lstinputlisting[caption=#2,label=#1,style=Style1]{#1}\end{itemize}} % The first argument is the script location/filename and the second is a caption for the listing
  66.  
  67. %% ----------------------------------------------------------------
  68. \begin{document}
  69. \frontmatter
  70. \title {Acoustic Vehicle Detection}
  71. \authors {\texorpdfstring
  72. {\href{mailto:tjb2g11@ecs.soton.ac.uk}{Thomas J. Bell}}
  73. {},
  74. {\href{mailto:cd2g11@ecs.soton.ac.uk}{Charlie Dedic}},
  75. {\href{mailto:hli1g11@ecs.soton.ac.uk}{Hussein L. Iga}},
  76. {\href{mailto:mr8g10@ecs.soton.ac.uk}{Michael Roberts}},
  77. {\href{mailto:las3g11@ecs.soton.ac.uk}{Luke A. Smallwood}}
  78. {}
  79. }
  80. \addresses {\groupname\\\deptname\\\univname}
  81. \date {\today}
  82. \subject {}
  83. \keywords {}
  84. \supervisor {Dr Geoff Merrett}
  85. \examiner {Dr Alex Weddell}
  86. \degree {Master of Engineering}
  87. \maketitle
  88. \begin{abstract}
  89. This work is all about \dots
  90. \end{abstract}
  91. \tableofcontents
  92. \listoffigures
  93. \listoftables
  94. \lstlistoflistings
  95. \listofsymbols{ll}{$w$ & The weight vector}
  96. \acknowledgements{Thanks to some people.}
  97. \dedicatory{To \dots}
  98. \mainmatter
  99. %% ----------------------------------------------------------------
  100. \include{Chapters/Introduction}
  101. \include{Chapters/Background}
  102. \include{Chapters/InitialSystemDevelopment}
  103. \include{Chapters/HardwareDesign}
  104. \include{Chapters/SoftwareDesign}
  105. \include{Chapters/HardwareImplementation}
  106. \include{Chapters/DataCollection}
  107. \include{Chapters/SoftwareImplementation}
  108. \include{Chapters/ResultsAndTesting}
  109. \include{Chapters/ProjectManagement}
  110. \include{Chapters/RecommendationsForFutureWork}
  111. \include{Chapters/Conclusions}
  112. \appendix
  113. \include{Appendices/AppendixA}
  114. \backmatter
  115. \bibliography{ECS}
  116. \bibliographystyle{plain}
  117. \end{document}
  118. %% ----------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement