-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.tex
150 lines (122 loc) · 3.75 KB
/
main.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
% -*- Mode:TeX -*-
%% IMPORTANT: The official thesis specifications are available at:
%%
%% Please verify your thesis' formatting and copyright
%% assignment before submission. If you notice any
%% discrepancies between these templates and the
%% MIT Libraries' specs, please let us know
%% by e-mailing [email protected]
%% The documentclass options along with the pagestyle can be used to generate
%% a technical report, a draft copy, or a regular thesis. You may need to
%% re-specify the pagestyle after you \include cover.tex. For more
%% information, see the first few lines of mitthesis.cls.
%\documentclass[12pt,vi,twoside]{mitthesis}
%%
%% If you want your thesis copyright to you instead of MIT, use the
%% ``vi'' option, as above.
%%
%\documentclass[12pt,twoside,leftblank]{mitthesis}
%%
%% If you want blank pages before new chapters to be labelled ``This
%% Page Intentionally Left Blank'', use the ``leftblank'' option, as
%% above.
% Add all your packages here
\documentclass[12pt,twoside]{mitthesis}
\usepackage{enumerate}
\usepackage{graphicx}
\usepackage{booktabs}
%\def\spanishoptions{mexico}
%\usepackage[spanish]{babel}
%\usepackage[T1]{fontenc}
%\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{bm}
\usepackage{subcaption}
\usepackage{lgrind}
\usepackage{listings}
\usepackage{color}
\usepackage{float}
\usepackage{placeins}
\usepackage{times}
\usepackage{algorithm}
\usepackage{algorithmicx}
\usepackage{algpseudocode}
\usepackage{ifxetex}
\ifxetex
\usepackage{fontspec}
\else
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\fi
\usepackage{caption}
%\DeclareCaptionFormat{myformat}{#1#2#3}
\newlength\myindention
\DeclareCaptionFormat{myformat}%
{#1#2#3 \hspace*{\myindention}}
\captionsetup{format=myformat}
% \captionsetup[lstlisting]{position=bottom,format=myformat}
\renewcommand{\lstlistingname}{Algoritmo}
%\bibliographystyle{named}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}
%\fancyhead[RO,RE]{\fontsize{10}{12} \selectfont \thepage}
\fancyhead[LO]{\fontsize{10}{12} \selectfont \leftmark}
\fancyhead[LE]{\fontsize{10}{12} \selectfont \leftmark}
\renewcommand{\headrulewidth}{0.0pt}
\renewcommand{\footrulewidth}{0.0pt}
%\addto\captionsspanish{%
% \renewcommand{\appendixname}%
% {Anexos}%
%}
\PassOptionsToPackage{hyphens}{url}\usepackage{hyperref}
\usepackage{blindtext}
\usepackage{etoolbox}
\patchcmd{\chapter}{plain}{fancy}{}{}
%\usepackage{fontspec}
%\setmainfont{Times New Roman}
%\setmainfont{Arial}
%\usepackage[T1,T2A]{fontenc}
%\usepackage[latin1]{inputenc}
%\usepackage[spanish]{babel}
%\selectlanguage{spanish}
%\pagestyle{plain}
%% This bit allows you to either specify only the files which you wish to
%% process, or `all' to process all files which you \include.
%% Krishna Sethuraman (1990).
% \typein [\files]{Enter file names to process, (chap1,chap2 ...), or
% `all' to process all files:}
\def\all{all}
% \ifx\files\all \typeout{Including all files.} \else \typeout{Including only \files.} \includeonly{\files} \fi
\begin{document}
\include{cover}
% Some departments (e.g. 5) require an additional signature page. See
% signature.tex for more information and uncomment the following line if
% applicable.
% \include{signature}
%\pagestyle{plain}
\pagestyle{fancy}
\rfoot{\thepage}
%\fancyfoot[R]{\thepage}
\setcounter{page}{1}
\renewcommand{\thepage}{\roman{page}}% Roman numerals for page counter
\include{contents}
\setcounter{page}{1}
\renewcommand{\thepage}{\arabic{page}}
\include{chap1}
\include{chap2}
\include{chap3}
\include{chap4}
\include{chap5}
\include{chap6}
\include{chap7}
\include{chap8}
\include{chap9}
\appendix
\setcounter{secnumdepth}{1}
\include{biblio}
\include{appa}
%\include{appb}
\end{document}