Guest User

Untitled

a guest
May 25th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.74 KB | None | 0 0
  1. documentclass[a4paper,12pt,twoside]{memoir}
  2. usepackage{textcomp}%place this usepackage before "gensymb" or two warnings
  3. will appear in the document!
  4. usepackage{gensymb}
  5. usepackage{siunitx}
  6. usepackage[danish,english]{babel}
  7. usepackage[utf8]{inputenc}
  8. usepackage{geometry} % Side størrelse og margin
  9. usepackage{graphicx, float} % Visning af billeder
  10. usepackage{lastpage} % Sidste side antal
  11. usepackage{parskip} % Linjehøjde
  12. usepackage{titlesec, color} % Chapter udseende
  13. usepackage{etoolbox,fancyhdr} % Header og footer
  14. usepackage{caption} % Centrering af caption
  15. usepackage[inline]{enumitem} % Ekstra list egenskaber
  16. usepackage[table,xcdraw,dvipsnames]{xcolor} % Farve til tabel
  17. usepackage{amsmath} % Matematik
  18. numberwithin{equation}{section} % Definerer dybden af equation-numre
  19. usepackage{amssymb} % Symboler
  20. usepackage{longtable} % Ekstra tabeller
  21. usepackage{makecell} % Linjeskift i tabel
  22. usepackage{pdfpages} % Inkluder PDF
  23. usepackage{wrapfig} % Tekst omkring figur
  24. usepackage[style=numeric,sorting=none]{biblatex} % Kilder
  25. usepackage[newfloat]{minted} % Til kode
  26. usepackage{csquotes}
  27. usepackage{siunitx} % Smarte enheder
  28. usepackage{array,multirow} % Multirow tabeller
  29. %usepackage{dblfloatfix} % To enable figures at the bottom of page
  30. (Removed since it includes the fixltx2e usepackages)[link: v
  31. https://ctan.org/pkg/dblfloatfix]
  32. usepackage{pgfplots}
  33. usepackage{hyperref} % Links
  34. usepackage{wrapfig}
  35. usepackage{lscape}
  36. usepackage{blindtext}
  37.  
  38.  
  39. DeclareCaptionLabelFormat{andtable}{#1~#2 & tablename~thetable}
  40.  
  41. usemintedstyle{vs}
  42.  
  43.  
  44. usepackage[normalem]{ulem} %Tabel-sager
  45. useunder{uline}{ul}{} %Tabel-sager
  46.  
  47. newcommand{notation}[1]{text{ }[#1]}
  48.  
  49. % Opsætning af SI units visning af brøker
  50. sisetup{
  51. per-mode=fraction,
  52. fraction-function=tfrac,
  53. exponent-product = cdot,
  54. output-product = cdot,
  55. output-decimal-marker = {,}
  56. }
  57.  
  58. % Definition af farve
  59. definecolor{light-gray}{gray}{0.75}
  60.  
  61. newcommand{headrulecolor}[1]{patchcmd{headrule}{hrule}
  62. {color{#1}hrule}{}{}}
  63. pagestyle{fancy}
  64.  
  65. newcommandtab[1][1cm]{hspace*{#1}}
  66.  
  67. % Header udseende
  68. fancyhead{}
  69. fancyhead[RO]{nouppercase{leftmark}}
  70. fancyhead[LO]{nouppercase{rightmark}}
  71. fancyhead[RE]{nouppercase{rightmark}}
  72. fancyhead[LE]{nouppercase{leftmark}}
  73. fancyhfoffset[L]{0em}
  74. headrulecolor{light-gray}
  75. setlength{headheight}{15pt}
  76.  
  77. % Opsætning af dokument-egenskaber
  78. bibliography{Kilder/bibliotek.bib}
  79. graphicspath{Billeder/}
  80. geometry{a4paper, left=30mm, top=40mm, right=30mm}
  81. setlength{parindent}{0em}
  82. setlength{parskip}{1.3em}
  83.  
  84. % Nummerering af subsections
  85. setsecnumdepth{subsubsection}
  86.  
  87. % Chapter udseende
  88. chapterstyle{veelo}
  89. openany % Fjern blanke sider
  90.  
  91. setlength{beforechapskip}{40pt}
  92. setlength{midchapskip}{25pt}
  93. setlength{afterchapskip}{40pt}
  94.  
  95. % Overskrift mellemrum
  96.  
  97. titlespacing*{section}{0pt}{25pt}{0pt}
  98. titlespacing*{subsection}{0pt}{10pt}{0pt}
  99.  
  100. % Definition af hiddensubsection
  101. newcommand{hiddensubsection}[1]{
  102. stepcounter{subsection}
  103. subsection*
  104. {arabic{chapter}.arabic{section}.arabic{subsection}hspace{1em}{#1}}
  105. }
  106.  
  107. raggedbottom % Justerer afstand mellem tabel og næste brødtekst NIX PILLE
  108.  
  109. addtocaptionsdanish{% Ændrer navnet på ToC til Indholdsfortegnelse
  110. renewcommand{contentsname}%
  111. {Indholdsfortegnelse}%
  112. }
  113.  
  114. setcounter{tocdepth}{2} %Definerer hvor meget der skal med i ToC (f.eks.
  115. subsection eller subsubsection)
  116.  
  117. % Kommentar til kode
  118. newenvironment{code}{captionsetup{type=listing}}{}
  119. SetupFloatingEnvironment{listing}{name=Source Code}
  120.  
  121. include{preamble}
  122. include{codeAmble}
  123. include{energyData}
  124. include{Afsnit/Chapter-7/ConclusionsToAcceptTests}
  125.  
  126. pgfplotsset{compat=1.15} %Jeg (Mads) er ikke rigtig sikker paa, hvad dette
  127. goer, men det fiksede en fejl i dokumentet
  128. pgfplotsset{% basis: example on p. 262 of the pgfplots manual
  129. /pgfplots/area legend/.style={
  130. /pgfplots/legend image code/.code={
  131. fill[##1] (0cm,0.6em) rectangle (0.9em,-0.3em);
  132. }, },
  133. }
  134. begin{document}
  135. lstdefinestyle{FormattedNumber}{%
  136. literate=*{0}{{FormatDigit{0}}}{1}%
  137. {1}{{FormatDigit{1}}}{1}%
  138. {2}{{FormatDigit{2}}}{1}%
  139. {3}{{FormatDigit{3}}}{1}%
  140. {4}{{FormatDigit{4}}}{1}%
  141. {5}{{FormatDigit{5}}}{1}%
  142. {6}{{FormatDigit{6}}}{1}%
  143. {7}{{FormatDigit{7}}}{1}%
  144. {8}{{FormatDigit{8}}}{1}%
  145. {9}{{FormatDigit{9}}}{1}%
  146. {.0}{{FormatDigit{.0}}}{2}% Following is to ensure that only
  147. periods
  148. {.1}{{FormatDigit{.1}}}{2}% followed by a digit are changed.
  149. {.2}{{FormatDigit{.2}}}{2}%
  150. {.3}{{FormatDigit{.3}}}{2}%
  151. {.4}{{FormatDigit{.4}}}{2}%
  152. {.5}{{FormatDigit{.5}}}{2}%
  153. {.6}{{FormatDigit{.6}}}{2}%
  154. {.7}{{FormatDigit{.7}}}{2}%
  155. {.8}{{FormatDigit{.8}}}{2}%
  156. {.9}{{FormatDigit{.9}}}{2}%
  157. %{,}{{FormatDigit{,}}{1}% depends if you want the "," in color
  158. { }{{ }}{1}% handle the space
  159. ,%
  160. }
  161. begin{otherlanguage}{english}
  162.  
  163. pagenumbering{gobble} % Remove page numbers (and reset to 1)
  164. input{Afsnit/frontpage.tex}
  165. newpage
  166. pagenumbering{roman} % Remove page numbers (and reset to 1)
  167. input{Afsnit/preface.tex}
  168. newpage
  169.  
  170. setlength{parskip}{0em}
  171. newpage
  172.  
  173. tableofcontents*
  174.  
  175. setlength{parskip}{1.75em}
  176. newpage
  177.  
  178. renewcommand{arraystretch}{1.4}
  179. setlength{tabcolsep}{12pt}
  180. setlength{parskip}{1.35em}
  181.  
  182. newpage
  183.  
  184. % Footer udseende
  185. fancyfoot{}
  186. % Footer design
  187. fancyfoot[RO]{thepage of pageref{LastPage}}
  188. fancyfoot[LE]{thepage of pageref{LastPage}}
  189. % Footer og header design på kapitel sider
  190. fancypagestyle{plain}{
  191. fancyfoot[C]{}
  192. fancyfoot[RO]{thepage of pageref{LastPage}}
  193. fancyfoot[LE]{thepage of pageref{LastPage}}
  194. renewcommand{headrulewidth}{0pt}
  195. fancyhead{}
  196. }
  197.  
  198. pagenumbering{arabic}
  199.  
  200. input{Afsnit/Chapter-1/0-Chapter1Main.tex}
  201. input{Afsnit/Chapter-2/0-Chapter2Main.tex}
  202. input{Afsnit/Chapter-5/0-Chapter5Main.tex} %Sensor Chapter
  203. input{Afsnit/Chapter-6/0-Chapter6Main.tex} %HUB Sensor
  204. input{Afsnit/Chapter-7/0-Chapter7Main.tex}
  205. input{Afsnit/Chapter-8/0-Chapter8Main.tex}
  206.  
  207.  
  208.  
  209.  
  210.  
  211. printbibliography
  212.  
  213. end{otherlanguage}{}
  214. begin{appendices}
  215. renewcommand{thesubsection}{Alph{subsection}}
  216. begin{otherlanguage}{english}
  217. input{Afsnit/Appendix/appendix.tex}
  218. end{otherlanguage}{}
  219. newpage
  220. end{appendices}
  221.  
  222.  
  223. %pagenumbering{roman} % Remove page numbers (and reset to 1)
  224. %pagenumbering{arabic}% resets `page` counter to 1
  225. %renewcommand*{thepage}{Aarabic{page}}
  226. end{document}
Add Comment
Please, Sign In to add comment