-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathreport.tex
More file actions
209 lines (181 loc) · 6.03 KB
/
report.tex
File metadata and controls
209 lines (181 loc) · 6.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
%master_report.tex, can't be edited - Mark
% edit the content.tex file instead
\documentclass[a4paper,11pt,hidelinks]{report}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage[titletoc,toc,page]{appendix}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{amssymb}
\usepackage{titlesec}
\usepackage{helvet}
\renewcommand{\familydefault}{\sfdefault}
\usepackage{calc}
\usepackage{amsfonts}
\usepackage{lipsum}
\usepackage[amsmath,amsthm,thmmarks]{ntheorem}
\usepackage{fancyvrb}
\usepackage{setspace}
\usepackage[T1]{fontenc}
\doublespacing
\usepackage{url}
\usepackage{letltxmacro}
%\usepackage{bigints}
\usepackage{soul}
\usepackage[top=20mm,left=20mm,right=20mm,bottom=20mm,footskip=25pt]{geometry} %was 0.14in, don't know why - Mark
\usepackage{fancyhdr}
\usepackage{footnote}
\usepackage{appendix}
\usepackage{siunitx}
\usepackage{multirow}
\usepackage{wrapfig}
\usepackage{textgreek}
\usepackage{longtable}
\usepackage{bigstrut}
\usepackage[table,dvipsnames]{xcolor}
\usepackage{pdfpages}
\usepackage{titling}
\usepackage{csquotes}
\usepackage{pbox}
\usepackage{booktabs}
\usepackage[export]{adjustbox}
\usepackage{array}
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
%\usepackage{pbox}
\usepackage{rotating} % added by Mark for use in table
\usepackage{pifont} % added by Mark to include tick symbols in table
\usepackage{listings} % added by Xiaonan to include Matlab code
\lstset{
basicstyle=\small\ttfamily,
columns=flexible,
breaklines=true
}
\usepackage{caption} % changed to caption / should still work
\usepackage{tocloft} % added by Mark for TOC names
\usepackage{textcomp}
\setcounter{tocdepth}{4}
\setcounter{secnumdepth}{4}
%References & bibliography - add your own .bib files with \addbibresource command
\usepackage[backend=bibtex,style=numeric-comp,sorting=none]{biblatex} % Disabled Sorting - Mark
\DeclareBibliographyAlias{webpage}{online} %ignore warnings
\bibliography{bib}
\AtBeginDocument{\let\latexlabel\label}
\titleformat{\chapter}[hang]
{\normalfont\huge\bfseries}{\thechapter}{17.5pt}{\huge}
\titlespacing*{\chapter}{0pt}{-40pt}{0pt}
\titlespacing*{\section}{0pt}{0pt}{0pt}
\titlespacing*{\subsection}{0pt}{0pt}{0pt}
\titlespacing*{\subsubsection}{0pt}{0pt}{0pt} %reduce spacing to fit with other stuff
%Remove the Page number from the part pages - Mark
\makeatletter
\renewcommand\part{%
\if@openright
\cleardoublepage
\else
\clearpage
\fi
\thispagestyle{empty}% % Original »plain« replaced by »emptyx
\addtocounter{page}{-1} %Decrease the page counter so the part page doesn't count, added by Mark
\if@twocolumn
\onecolumn
\@tempswatrue
\else
\@tempswafalse
\fi
\null\vfil
\secdef\@part\@spart}
\makeatother
% From http://tex.stackexchange.com/questions/54115/how-to-let-part-stay-solo-page-and-no-page-number
\newcommand\numberthis{\addtocounter{equation}{1}\tag{\theequation}}
% All sqrts closed
\LetLtxMacro{\oldsqrt}{\sqrt}
\renewcommand{\sqrt}[1][]{%
\def\DHLindex{#1}\mathpalette\DHLhksqrt}
\def\DHLhksqrt#1#2{%
\setbox0=\hbox{$#1\oldsqrt[\DHLindex]{#2\,}$}\dimen0=\ht0
\advance\dimen0-0.2\ht0
\setbox2=\hbox{\vrule height\ht0 depth -\dimen0}%
{\box0\lower0.71pt\box2}}
\makeatletter
\newcommand*\@dblLabelI {}
\newcommand*\@dblLabelII {}
\newcommand*\@dblequationAux {}
\def\@dblequationAux #1,#2,%
{\def\@dblLabelI{\label{#1}}\def\@dblLabelII{\label{#2}}}
\newcommand*{\doubleequation}[3][]{%
\par\vskip\abovedisplayskip\noindent
\if\relax\detokenize{#1}\relax
\let\@dblLabelI\@empty
\let\@dblLabelII\@empty
\else % we assume here that the optional argument
% has the required shape A,B
\@dblequationAux #1,%
\fi
\makebox[0.5\linewidth-1.5em]{%
\hspace{\stretch2}%
\makebox[0pt]{$\displaystyle #2$}%
\hspace{\stretch1}%
}%
\makebox[0.5\linewidth-1.5em]{%
\hspace{\stretch1}%
\makebox[0pt]{$\displaystyle #3$}%
\hspace{\stretch2}%
}%
\makebox[3em][r]{(%
\refstepcounter{equation}\theequation\@dblLabelI,
\refstepcounter{equation}\theequation\@dblLabelII)}%
\par\vskip\belowdisplayskip
}
\makeatother
\renewcommand{\headrulewidth}{0pt}
% For multi-line cells - see http://tex.stackexchange.com/questions/2441/how-to-add-a-forced-line-break-inside-a-table-cell
\newcommand{\multicell}[2][c]{%
\begin{tabular}[#1]{@{}c@{}}#2\end{tabular}}
\setlength{\headheight}{13.6pt}
%Toc indents and dimensions
\setlength{\cftsecindent}{1.5em}
\setlength{\cftsecnumwidth}{2.8em}
\setlength{\cftsubsecindent}{4.0em}
\setlength{\cftsubsecnumwidth}{3.6em}
\setlength{\cftsubsubsecindent}{7.4em}
\setlength{\cftsubsubsecnumwidth}{4.5em}
\usepackage{hyperref}
\pretitle{%
\begin{center}
%\LARGE
\includegraphics[width=4.5cm]{Images/cover.jpg}\\ \Huge%[\bigskipamount]
}
\posttitle{\end{center}}
% Title Page
\title{Analysis of Activity Data from Smartphones}
\author{Jamieson Brynes, Somerville College}
\makeatletter
\renewcommand{\@pnumwidth}{2.3em}
\newcommand{\setauthor}[1]{%
\addtocontents{toc}{\protect\@namedef{authortag}{#1}}%
}
\newcommand{\putafterpnum}{%
\ifcsname authortag\endcsname
\makebox[0pt][r]{\smash{\colorbox{white}{\strut\authortag}\hspace{\@pnumwidth}}}%
\global\let\authortag\relax
\fi
}
\renewcommand{\cftchapafterpnum}{\putafterpnum}
\renewcommand{\cftsecafterpnum}{\putafterpnum}
\renewcommand{\cftsubsecafterpnum}{\putafterpnum}
\renewcommand{\cftsubsubsecafterpnum}{\putafterpnum}
\makeatother
\begin{document}
\maketitle
\pagestyle{fancy}
\includepdf[pages={1}]{Text/authorship.pdf}
\include{Text/abstract}
\include{Text/introduction}
\include{Text/step_counter}
\include{Text/sleep_detection}
\include{Text/conclusion}
\printbibliography[title={References}]
\includepdf[pages={1}]{Text/risk_1.pdf}
\includepdf[pages={1}]{Text/risk_2.pdf}
\end{document}