-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.tex
236 lines (196 loc) · 5.76 KB
/
project.tex
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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
% !TeX spellcheck = en_US
\documentclass[a4paper,11pt, hidelinks]{book}
\usepackage{listings}
\usepackage{xspace}
\usepackage[utf8]{inputenc}
\usepackage[spanish, english]{babel}
% \usepackage[style=list, number=none]{glossary} %
\usepackage{titlesec}
\usepackage{dirtytalk}
% \usepackage{pailatino}
% \decimalpoint
\usepackage{dcolumn}
\newcolumntype{.}{D{.}{\esperiod}{-1}}
\makeatletter
\addto\shorthandsspanish{\let\esperiod\es@period@code}
\makeatother
%\usepackage[chapter]{algorithm}
\RequirePackage{verbatim}
%\RequirePackage[Glenn]{fncychap}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage[table,xcdraw]{xcolor}
\usepackage{afterpage}
\usepackage{longtable}
\usepackage{rotating}
\usepackage[pdfborder={000}]{hyperref} %referencia
\newcommand{\BibTeX}{{\sc Bib}\TeX}
% ********************************************************************
% Re-usable information
% ********************************************************************
\newcommand{\mySubject}{Trabajo Fin de Grado\xspace}
\newcommand{\myTitle}{Creation of a voice-driven controller for home automation\xspace}
\newcommand{\myTitleES}{Creación de un controlador domótico activado por voz\xspace}
\newcommand{\myDegree}{Grado en Ingeniería Informática\xspace}
\newcommand{\myName}{David Vargas Carrillo\xspace}
\newcommand{\myEmail}{dvcarrillo@correo.ugr.es\xspace}
\newcommand{\myProf}{Juan Antonio Holgado Terriza\xspace}
%\newcommand{\mySupervisor}{Put name here\xspace}
\newcommand{\myFaculty}{Escuela Técnica Superior de Ingenierías Informática y de
Telecomunicación\xspace}
\newcommand{\myFacultyShort}{E.T.S. de Ingenierías Informática y de
Telecomunicación\xspace}
\newcommand{\myDepartment}{Departamento de Lenguajes y Sistemas Informáticos\xspace}
\newcommand{\myUni}{\protect{Universidad de Granada}\xspace}
\newcommand{\myLocation}{Granada\xspace}
\newcommand{\myTime}{\today\xspace}
\newcommand{\myTimeES}{{\selectlanguage{spanish}\today}}
\newcommand{\myVersion}{Version 0.1\xspace}
\hypersetup{
pdfauthor = {\myName (\myEmail)},
pdftitle = {\myTitle},
pdfsubject = {\mySubject},
pdfkeywords = {home automation, voice assistance, distributed systems, Raspberry Pi, open source},
pdfcreator = {LaTeX y BibTeX con MacTeX y TeXstudio},
pdfproducer = {pdflatex}
}
%\hyphenation{}
%\usepackage{doxygen/doxygen}
%\usepackage{pdfpages}
\usepackage{url}
\usepackage{colortbl,longtable}
\usepackage[stable]{footmisc}
\usepackage{index}
%\makeindex
%\usepackage[style=long, cols=2,border=plain,toc=true,number=none]{glossary}
% \makeglossary
% Definición de comandos que me son utiles:
%\renewcommand{\indexname}{Índice alfabético}
%\renewcommand{\glossaryname}{Glosario}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LO]{\leftmark}
\fancyhead[RE]{\rightmark}
\fancyhead[RO,LE]{\textbf{\thepage}}
\renewcommand{\chaptermark}[1]{\markboth{\textbf{#1}}{}}
\renewcommand{\sectionmark}[1]{\markright{\textbf{\thesection. #1}}}
\setlength{\headheight}{1.5\headheight}
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
%Definimos los tipos teorema, ejemplo y definición podremos usar estos tipos
%simplemente poniendo \begin{teorema} \end{teorema} ...
\newtheorem{teorema}{Teorema}[chapter]
\newtheorem{ejemplo}{Ejemplo}[chapter]
\newtheorem{definicion}{Definición}[chapter]
\definecolor{gray97}{gray}{.97}
\definecolor{gray75}{gray}{.75}
\definecolor{gray45}{gray}{.45}
\definecolor{gray30}{gray}{.94}
\lstset{ frame=Ltb,
framerule=0.5pt,
aboveskip=0.5cm,
framextopmargin=3pt,
framexbottommargin=3pt,
framexleftmargin=0.1cm,
framesep=0pt,
rulesep=.4pt,
backgroundcolor=\color{gray97},
rulesepcolor=\color{black},
%
stringstyle=\ttfamily,
showstringspaces = false,
basicstyle=\scriptsize\ttfamily,
commentstyle=\color{gray45},
keywordstyle=\bfseries,
%
numbers=left,
numbersep=6pt,
numberstyle=\tiny,
numberfirstline = false,
breaklines=true,
}
% Minimizar fragmentado de listados
\lstnewenvironment{listing}[1][]
{\lstset{#1}\pagebreak[0]}{\pagebreak[0]}
\lstdefinestyle{CodigoC}
{
basicstyle=\scriptsize,
frame=single,
language=C,
numbers=left
}
\lstdefinestyle{CodigoC++}
{
basicstyle=\scriptsize,
frame=single,
backgroundcolor=\color{gray30},
language=C++,
numbers=left
}
\lstdefinestyle{PythonCode}
{
basicstyle=\scriptsize,
frame=single,
backgroundcolor=\color{gray30},
language=Python,
numbers=left
}
\lstdefinestyle{Consola}
{basicstyle=\scriptsize\bf\ttfamily,
backgroundcolor=\color{gray30},
frame=single,
numbers=none
}
\newcommand{\bigrule}{\titlerule[0.5mm]}
% Para conseguir que en las páginas en blanco no ponga cabeceras
\makeatletter
\def\clearpage{%
\ifvmode
\ifnum \@dbltopnum =\m@ne
\ifdim \pagetotal <\topskip
\hbox{}
\fi
\fi
\fi
\newpage
\thispagestyle{empty}
\write\m@ne{}
\vbox{}
\penalty -\@Mi
}
\makeatother
\usepackage{pdfpages}
\begin{document}
\input{front/front}
\input{prefaces/preface}
\frontmatter
\tableofcontents
\listoffigures
\listoftables
\mainmatter
\setlength{\parskip}{5pt}
\input{chapters/01_Introduction}
\input{chapters/02_ProjectManagement}
\input{chapters/03_HomeAutomation}
\input{chapters/04_VoiceAssistance}
\input{chapters/05_ProductAnalysis}
\input{chapters/06_OpenHAB}
\input{chapters/07_ProjectDevelopment}
\input{chapters/08_ConclusionsFutureWork}
\nocite{asadullah16}
\nocite{openHABCommunity}
\nocite{raspberryPiForums}
\nocite{pythonDocumentation}
\nocite{mdnWebDocs}
\nocite{cmusphinxFaq}
\nocite{microsoftCortanaDev}
\nocite{cleveroad}
\nocite{ascherPythonCookbok}
\bibliographystyle{plain}
\bibliography{bibliography/bibliography}
\addcontentsline{toc}{chapter}{Bibliography}
\appendix
\input{appendices/01_VoiceAssistantScript}
\input{appendices/02_ToolsUsed}
\newpage \
\thispagestyle{empty}
\end{document}