-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreport.tex
142 lines (102 loc) · 3.75 KB
/
report.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
%set up the document
\documentclass[12pt, a4paper,]{report}
%package for encoding and and babel in spanish
\usepackage[utf8]{inputenc}
\usepackage[spanish,mexico]{babel}
%package for set margin
\usepackage[left=3cm, right=3cm, top=6cm, bottom=4cm]{geometry}
%package for line spacing
\usepackage{setspace}
%package for images
\usepackage[pdftex]{graphicx}
%package for subfigures
\usepackage{subfigure}
%set path for images
\graphicspath{{figures/}}
%package provides control over the typesetting of the \maketitle
\usepackage{titling}
%package for custom title of chapter
\usepackage{titlesec}
%set title of chapter
\titleformat{\chapter} %comand
[display] %shape
{\bfseries\huge\filcenter} %format
{\chaptertitlename\ \thechapter} %label
{.2em} %space between label and title
{} %insert code before title
%package for advanced cite
\usepackage{csquotes}
%package to change the style of itemize
\usepackage{enumitem}
%package to change the style of tables
\usepackage{booktabs}
%package custom caption
\usepackage{caption}
\captionsetup[table]{labelsep=newline,singlelinecheck=false}
%package for bibliography with biblatex
\usepackage[backend=biber,style=apa,bibencoding=utf8]{biblatex}
%add path of bibliographic data
\addbibresource{bibliography/references.bib}
%set local language for apa
\DeclareLanguageMapping{spanish}{spanish-apa}
%package for custom appendix
\usepackage[page,toc]{appendix}
%define variables for labels of appendix in spanish-Perú
\newcommand{\appendixnameperu}{Ánexo}
\newcommand{\appendixpagenameperu}{Ánexos}
%allocate defined variables
\addto\captionsspanish{\renewcommand\appendixname{\appendixnameperu}
\renewcommand\appendixtocname{\appendixpagenameperu}
\renewcommand\appendixpagename{\appendixpagenameperu}
}
%-------------------------------------------------------------------
%start document
\begin{document}
%import cover
\include{intro/cover}
%set line spacing: double
\doublespace{}
%import thanks and acknowledgement
\include{intro/thanks}
\include{intro/acknowledge}
%set line spacing: intermediate for indexes
\onehalfspacing{}
%start counting in roman
\pagenumbering{roman}
%sets pagination style
\pagestyle{plain}
%make indexes: content,figure and tables
\tableofcontents
\listoffigures
\listoftables
%ends current page and show next content in another sheet
\clearpage
%again set line spacing: double for general content
\doublespace{}
%start counting on arabic
\pagenumbering{arabic}
%import chapter
\include{chapters/introduction}
\include{chapters/summary}
\include{chapters/institution}
\include{chapters/theory}
\include{chapters/tools}
\include{chapters/results}
\include{chapters/conclusion}
%enable the title for bibliography
\printbibheading[heading=bibintoc]
%enables title for subsection and filters reference books
\printbibliography[heading=subbibintoc, type=book, title={Libros consultados}]
%enables title for subsection and filters reference thesis
\printbibliography[heading=subbibintoc, type=thesis, title={Tesis consultadas}]
%enables title for subsection and filters reference articles
\printbibliography[heading=subbibintoc, type=article, title={Artículos consultados}]
%enables title for subsection and electronic references
\printbibliography[heading=subbibintoc, type=online, title={Referencias electrónicas}]
%ends current page and show next content in another sheet
\clearpage
%start appendix
\appendix
%include all additional documents
\include{appendices/appendix}
\end{document}