Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass[a4paper,12pt,twoside]{memoir}
- usepackage{textcomp}%place this usepackage before "gensymb" or two warnings
- will appear in the document!
- usepackage{gensymb}
- usepackage{siunitx}
- usepackage[danish,english]{babel}
- usepackage[utf8]{inputenc}
- usepackage{geometry} % Side størrelse og margin
- usepackage{graphicx, float} % Visning af billeder
- usepackage{lastpage} % Sidste side antal
- usepackage{parskip} % Linjehøjde
- usepackage{titlesec, color} % Chapter udseende
- usepackage{etoolbox,fancyhdr} % Header og footer
- usepackage{caption} % Centrering af caption
- usepackage[inline]{enumitem} % Ekstra list egenskaber
- usepackage[table,xcdraw,dvipsnames]{xcolor} % Farve til tabel
- usepackage{amsmath} % Matematik
- numberwithin{equation}{section} % Definerer dybden af equation-numre
- usepackage{amssymb} % Symboler
- usepackage{longtable} % Ekstra tabeller
- usepackage{makecell} % Linjeskift i tabel
- usepackage{pdfpages} % Inkluder PDF
- usepackage{wrapfig} % Tekst omkring figur
- usepackage[style=numeric,sorting=none]{biblatex} % Kilder
- usepackage[newfloat]{minted} % Til kode
- usepackage{csquotes}
- usepackage{siunitx} % Smarte enheder
- usepackage{array,multirow} % Multirow tabeller
- %usepackage{dblfloatfix} % To enable figures at the bottom of page
- (Removed since it includes the fixltx2e usepackages)[link: v
- https://ctan.org/pkg/dblfloatfix]
- usepackage{pgfplots}
- usepackage{hyperref} % Links
- usepackage{wrapfig}
- usepackage{lscape}
- usepackage{blindtext}
- DeclareCaptionLabelFormat{andtable}{#1~#2 & tablename~thetable}
- usemintedstyle{vs}
- usepackage[normalem]{ulem} %Tabel-sager
- useunder{uline}{ul}{} %Tabel-sager
- newcommand{notation}[1]{text{ }[#1]}
- % Opsætning af SI units visning af brøker
- sisetup{
- per-mode=fraction,
- fraction-function=tfrac,
- exponent-product = cdot,
- output-product = cdot,
- output-decimal-marker = {,}
- }
- % Definition af farve
- definecolor{light-gray}{gray}{0.75}
- newcommand{headrulecolor}[1]{patchcmd{headrule}{hrule}
- {color{#1}hrule}{}{}}
- pagestyle{fancy}
- newcommandtab[1][1cm]{hspace*{#1}}
- % Header udseende
- fancyhead{}
- fancyhead[RO]{nouppercase{leftmark}}
- fancyhead[LO]{nouppercase{rightmark}}
- fancyhead[RE]{nouppercase{rightmark}}
- fancyhead[LE]{nouppercase{leftmark}}
- fancyhfoffset[L]{0em}
- headrulecolor{light-gray}
- setlength{headheight}{15pt}
- % Opsætning af dokument-egenskaber
- bibliography{Kilder/bibliotek.bib}
- graphicspath{Billeder/}
- geometry{a4paper, left=30mm, top=40mm, right=30mm}
- setlength{parindent}{0em}
- setlength{parskip}{1.3em}
- % Nummerering af subsections
- setsecnumdepth{subsubsection}
- % Chapter udseende
- chapterstyle{veelo}
- openany % Fjern blanke sider
- setlength{beforechapskip}{40pt}
- setlength{midchapskip}{25pt}
- setlength{afterchapskip}{40pt}
- % Overskrift mellemrum
- titlespacing*{section}{0pt}{25pt}{0pt}
- titlespacing*{subsection}{0pt}{10pt}{0pt}
- % Definition af hiddensubsection
- newcommand{hiddensubsection}[1]{
- stepcounter{subsection}
- subsection*
- {arabic{chapter}.arabic{section}.arabic{subsection}hspace{1em}{#1}}
- }
- raggedbottom % Justerer afstand mellem tabel og næste brødtekst NIX PILLE
- addtocaptionsdanish{% Ændrer navnet på ToC til Indholdsfortegnelse
- renewcommand{contentsname}%
- {Indholdsfortegnelse}%
- }
- setcounter{tocdepth}{2} %Definerer hvor meget der skal med i ToC (f.eks.
- subsection eller subsubsection)
- % Kommentar til kode
- newenvironment{code}{captionsetup{type=listing}}{}
- SetupFloatingEnvironment{listing}{name=Source Code}
- include{preamble}
- include{codeAmble}
- include{energyData}
- include{Afsnit/Chapter-7/ConclusionsToAcceptTests}
- pgfplotsset{compat=1.15} %Jeg (Mads) er ikke rigtig sikker paa, hvad dette
- goer, men det fiksede en fejl i dokumentet
- pgfplotsset{% basis: example on p. 262 of the pgfplots manual
- /pgfplots/area legend/.style={
- /pgfplots/legend image code/.code={
- fill[##1] (0cm,0.6em) rectangle (0.9em,-0.3em);
- }, },
- }
- begin{document}
- lstdefinestyle{FormattedNumber}{%
- literate=*{0}{{FormatDigit{0}}}{1}%
- {1}{{FormatDigit{1}}}{1}%
- {2}{{FormatDigit{2}}}{1}%
- {3}{{FormatDigit{3}}}{1}%
- {4}{{FormatDigit{4}}}{1}%
- {5}{{FormatDigit{5}}}{1}%
- {6}{{FormatDigit{6}}}{1}%
- {7}{{FormatDigit{7}}}{1}%
- {8}{{FormatDigit{8}}}{1}%
- {9}{{FormatDigit{9}}}{1}%
- {.0}{{FormatDigit{.0}}}{2}% Following is to ensure that only
- periods
- {.1}{{FormatDigit{.1}}}{2}% followed by a digit are changed.
- {.2}{{FormatDigit{.2}}}{2}%
- {.3}{{FormatDigit{.3}}}{2}%
- {.4}{{FormatDigit{.4}}}{2}%
- {.5}{{FormatDigit{.5}}}{2}%
- {.6}{{FormatDigit{.6}}}{2}%
- {.7}{{FormatDigit{.7}}}{2}%
- {.8}{{FormatDigit{.8}}}{2}%
- {.9}{{FormatDigit{.9}}}{2}%
- %{,}{{FormatDigit{,}}{1}% depends if you want the "," in color
- { }{{ }}{1}% handle the space
- ,%
- }
- begin{otherlanguage}{english}
- pagenumbering{gobble} % Remove page numbers (and reset to 1)
- input{Afsnit/frontpage.tex}
- newpage
- pagenumbering{roman} % Remove page numbers (and reset to 1)
- input{Afsnit/preface.tex}
- newpage
- setlength{parskip}{0em}
- newpage
- tableofcontents*
- setlength{parskip}{1.75em}
- newpage
- renewcommand{arraystretch}{1.4}
- setlength{tabcolsep}{12pt}
- setlength{parskip}{1.35em}
- newpage
- % Footer udseende
- fancyfoot{}
- % Footer design
- fancyfoot[RO]{thepage of pageref{LastPage}}
- fancyfoot[LE]{thepage of pageref{LastPage}}
- % Footer og header design på kapitel sider
- fancypagestyle{plain}{
- fancyfoot[C]{}
- fancyfoot[RO]{thepage of pageref{LastPage}}
- fancyfoot[LE]{thepage of pageref{LastPage}}
- renewcommand{headrulewidth}{0pt}
- fancyhead{}
- }
- pagenumbering{arabic}
- input{Afsnit/Chapter-1/0-Chapter1Main.tex}
- input{Afsnit/Chapter-2/0-Chapter2Main.tex}
- input{Afsnit/Chapter-5/0-Chapter5Main.tex} %Sensor Chapter
- input{Afsnit/Chapter-6/0-Chapter6Main.tex} %HUB Sensor
- input{Afsnit/Chapter-7/0-Chapter7Main.tex}
- input{Afsnit/Chapter-8/0-Chapter8Main.tex}
- printbibliography
- end{otherlanguage}{}
- begin{appendices}
- renewcommand{thesubsection}{Alph{subsection}}
- begin{otherlanguage}{english}
- input{Afsnit/Appendix/appendix.tex}
- end{otherlanguage}{}
- newpage
- end{appendices}
- %pagenumbering{roman} % Remove page numbers (and reset to 1)
- %pagenumbering{arabic}% resets `page` counter to 1
- %renewcommand*{thepage}{Aarabic{page}}
- end{document}
Add Comment
Please, Sign In to add comment