1 |
125 |
guanucolui |
% ******************************************************************************
|
2 |
|
|
% ****************************** Custom Margin *********************************
|
3 |
|
|
|
4 |
|
|
% Add `custommargin' in the document class options to use this section
|
5 |
|
|
% Set {innerside margin / outerside margin / topmargin / bottom margin} and
|
6 |
|
|
% other page dimensions
|
7 |
|
|
\ifsetMargin
|
8 |
|
|
\else
|
9 |
|
|
\RequirePackage[left=37mm,right=30mm,top=35mm,bottom=30mm]{geometry}
|
10 |
|
|
\setFancyHdr % To apply fancy header after geometry package is loaded
|
11 |
|
|
\fi
|
12 |
|
|
|
13 |
|
|
% *****************************************************************************
|
14 |
|
|
% ******************* Fonts (like different typewriter fonts etc.)*************
|
15 |
|
|
|
16 |
|
|
% Add `customfont' in the document class option to use this section
|
17 |
|
|
\ifsetFont
|
18 |
|
|
\else
|
19 |
|
|
% Set your custom font here and use `customfont' in options. Leave empty to
|
20 |
|
|
% load computer modern font (default LaTeX font).
|
21 |
|
|
\RequirePackage{libertine}
|
22 |
|
|
\fi
|
23 |
|
|
|
24 |
|
|
% *****************************************************************************
|
25 |
|
|
% *************************** Bibliography and References ********************
|
26 |
|
|
|
27 |
|
|
%\usepackage{cleveref} %Referencing without need to explicitly state fig /table
|
28 |
|
|
|
29 |
|
|
% Add `custombib' in the document class option to use this section
|
30 |
|
|
\ifsetBib % True, Bibliography option is chosen in class options
|
31 |
|
|
\else % If custom bibliography style chosen then load bibstyle here
|
32 |
|
|
\RequirePackage[square, sort, numbers, authoryear]{natbib} % CustomBib
|
33 |
|
|
\fi
|
34 |
|
|
|
35 |
|
|
% changes the default name `Bibliography` -> `References'
|
36 |
126 |
guanucolui |
\renewcommand{\bibname}{Referencias}
|
37 |
125 |
guanucolui |
|
38 |
|
|
% *****************************************************************************
|
39 |
|
|
% *************** Changing the Visual Style of Chapter Headings ***************
|
40 |
|
|
% Uncomment the section below. Requires titlesec package.
|
41 |
|
|
|
42 |
|
|
%\RequirePackage{titlesec}
|
43 |
|
|
%\newcommand{\PreContentTitleFormat}{\titleformat{\chapter}[display]{\scshape\Large}
|
44 |
|
|
%{\Large\filleft{\chaptertitlename} \Huge\thechapter}
|
45 |
|
|
%{1ex}{}
|
46 |
|
|
%[\vspace{1ex}\titlerule]}
|
47 |
|
|
%\newcommand{\ContentTitleFormat}{\titleformat{\chapter}[display]{\scshape\huge}
|
48 |
|
|
%{\Large\filleft{\chaptertitlename} \Huge\thechapter}{1ex}
|
49 |
|
|
%{\titlerule\vspace{1ex}\filright}
|
50 |
|
|
%[\vspace{1ex}\titlerule]}
|
51 |
|
|
%\newcommand{\PostContentTitleFormat}{\PreContentTitleFormat}
|
52 |
|
|
%\PreContentTitleFormat
|
53 |
|
|
|
54 |
|
|
|
55 |
|
|
% *****************************************************************************
|
56 |
|
|
% **************************** Custom Packages ********************************
|
57 |
|
|
% *****************************************************************************
|
58 |
|
|
|
59 |
|
|
|
60 |
|
|
% ************************* Algorithms and Pseudocode **************************
|
61 |
|
|
|
62 |
|
|
%\usepackage{algpseudocode}
|
63 |
|
|
|
64 |
|
|
|
65 |
|
|
% ********************Captions and Hyperreferencing / URL **********************
|
66 |
|
|
|
67 |
|
|
% Captions: This makes captions of figures use a boldfaced small font.
|
68 |
|
|
%\RequirePackage[small,bf]{caption}
|
69 |
|
|
|
70 |
|
|
\RequirePackage[labelsep=space,tableposition=top]{caption}
|
71 |
|
|
\renewcommand{\figurename}{Fig.} %to support older versions of captions.sty
|
72 |
127 |
guanucolui |
%\renewcommand{\captionfont}{\tiny}
|
73 |
125 |
guanucolui |
|
74 |
|
|
% ************************ Formatting / Footnote *******************************
|
75 |
|
|
|
76 |
|
|
%\usepackage[perpage]{footmisc} %Range of footnote options
|
77 |
|
|
|
78 |
|
|
|
79 |
|
|
% ****************************** Line Numbers **********************************
|
80 |
|
|
|
81 |
|
|
%\RequirePackage{lineno}
|
82 |
|
|
%\linenumbers
|
83 |
|
|
|
84 |
|
|
% ************************** Graphics and figures *****************************
|
85 |
|
|
|
86 |
|
|
%\usepackage{rotating}
|
87 |
|
|
%\usepackage{wrapfig}
|
88 |
|
|
%\usepackage{float}
|
89 |
|
|
\usepackage{subfig} %note: subfig must be included after the `caption` package.
|
90 |
|
|
|
91 |
|
|
|
92 |
|
|
% ********************************* Table **************************************
|
93 |
|
|
|
94 |
|
|
%\usepackage{longtable}
|
95 |
|
|
%\usepackage{multicol}
|
96 |
|
|
%\usepackage{multirow}
|
97 |
|
|
%\usepackage{tabularx}
|
98 |
|
|
|
99 |
|
|
|
100 |
|
|
% ***************************** Math and SI Units ******************************
|
101 |
|
|
|
102 |
|
|
\usepackage{amsfonts}
|
103 |
|
|
\usepackage{amsmath}
|
104 |
|
|
\usepackage{amssymb}
|
105 |
|
|
%\usepackage{siunitx} % use this package module for SI units
|
106 |
|
|
|
107 |
|
|
|
108 |
|
|
% ******************************************************************************
|
109 |
|
|
% ************************* User Defined Commands ******************************
|
110 |
|
|
% ******************************************************************************
|
111 |
|
|
|
112 |
|
|
|
113 |
|
|
% ********************** TOC depth and numbering depth *************************
|
114 |
|
|
|
115 |
|
|
\setcounter{secnumdepth}{2}
|
116 |
|
|
\setcounter{tocdepth}{2}
|
117 |
|
|
|
118 |
|
|
% ******************************* Nomenclature *********************************
|
119 |
|
|
|
120 |
|
|
% To change the name of the Nomenclature section, uncomment the following line
|
121 |
|
|
|
122 |
126 |
guanucolui |
\renewcommand\nomname{Nomenclatura}
|
123 |
125 |
guanucolui |
|
124 |
|
|
|
125 |
|
|
% ********************************* Appendix ***********************************
|
126 |
|
|
|
127 |
|
|
% The default value of both \appendixtocname and \appendixpagename is `Appendices'. These names can all be changed via:
|
128 |
|
|
|
129 |
126 |
guanucolui |
\renewcommand{\appendixtocname}{Lista de Anexos}
|
130 |
|
|
\renewcommand{\appendixname}{Anexo}
|
131 |
125 |
guanucolui |
|
132 |
126 |
guanucolui |
% ********************************* Agregados por lguanuco ***********************************
|
133 |
|
|
|
134 |
|
|
%\usepackage[utf8]{inputenc}
|
135 |
|
|
%\usepackage[spanish]{babel}
|
136 |
|
|
\usepackage{acronym}
|
137 |
128 |
guanucolui |
\usepackage{multirow}
|
138 |
|
|
\usepackage{array}
|
139 |
258 |
guanucolui |
\usepackage{multicol}
|
140 |
299 |
guanucolui |
\usepackage[table]{xcolor}
|
141 |
|
|
\usepackage{pdfpages}
|
142 |
302 |
guanucolui |
%\usepackage[sorting=none]{biblatex}
|
143 |
126 |
guanucolui |
|
144 |
299 |
guanucolui |
\usepackage{listings}
|
145 |
|
|
\definecolor{light-gray}{gray}{0.9}
|
146 |
|
|
\lstset{
|
147 |
|
|
basicstyle=\ttfamily\footnotesize,%\scriptsize,
|
148 |
|
|
backgroundcolor=\color{light-gray},
|
149 |
|
|
language=bash,
|
150 |
|
|
keywordstyle=\bfseries,
|
151 |
|
|
breaklines=true,
|
152 |
|
|
keywords=[2]{INT8U,INT16U,DIO\_DI,DIO\_DO,CPU\_INT16S,CPU\_INT08U}
|
153 |
|
|
}
|
154 |
|
|
\lstset{literate=
|
155 |
|
|
{á}{{\'a}}1 {é}{{\'e}}1 {í}{{\'i}}1 {ó}{{\'o}}1 {ú}{{\'u}}1
|
156 |
|
|
{Á}{{\'A}}1 {É}{{\'E}}1 {Í}{{\'I}}1 {Ó}{{\'O}}1 {Ú}{{\'U}}1
|
157 |
|
|
{à}{{\`a}}1 {è}{{\'e}}1 {ì}{{\`i}}1 {ò}{{\`o}}1 {ù}{{\`u}}1
|
158 |
|
|
{À}{{\`A}}1 {È}{{\'E}}1 {Ì}{{\`I}}1 {Ò}{{\`O}}1 {Ù}{{\`U}}1
|
159 |
|
|
{ä}{{\"a}}1 {ë}{{\"e}}1 {ï}{{\"i}}1 {ö}{{\"o}}1 {ü}{{\"u}}1
|
160 |
|
|
{Ä}{{\"A}}1 {Ë}{{\"E}}1 {Ï}{{\"I}}1 {Ö}{{\"O}}1 {Ü}{{\"U}}1
|
161 |
|
|
{â}{{\^a}}1 {ê}{{\^e}}1 {î}{{\^i}}1 {ô}{{\^o}}1 {û}{{\^u}}1
|
162 |
|
|
{Â}{{\^A}}1 {Ê}{{\^E}}1 {Î}{{\^I}}1 {Ô}{{\^O}}1 {Û}{{\^U}}1
|
163 |
|
|
{œ}{{\oe}}1 {Œ}{{\OE}}1 {æ}{{\ae}}1 {Æ}{{\AE}}1 {ß}{{\ss}}1
|
164 |
|
|
{ç}{{\c c}}1 {Ç}{{\c C}}1 {ø}{{\o}}1 {å}{{\r a}}1 {Å}{{\r A}}1
|
165 |
|
|
{€}{{\EUR}}1 {£}{{\pounds}}1 {"}{{``}}1 {~}{{$\sim$}}1
|
166 |
|
|
}
|
167 |
|
|
\newcommand{\problema}[1]{\vspace{1.5ex}\textbf{Problema: #1}}
|
168 |
|
|
\newcommand{\solucion}[1]{\vspace{1.5ex}\textbf{Solución:} #1 \vspace{1.5ex}}
|
169 |
|
|
|
170 |
|
|
|
171 |
126 |
guanucolui |
\DeclareUnicodeCharacter{00A0}{}
|
172 |
|
|
|
173 |
|
|
\renewcommand{\chaptername}{Capítulo}
|
174 |
|
|
\renewcommand{\contentsname}{Contenidos} %Contents
|
175 |
|
|
\renewcommand{\figurename}{Figura} %Figure (for captions)
|
176 |
|
|
\renewcommand{\indexname}{Índice} %Index
|
177 |
|
|
\renewcommand{\listfigurename}{Lista de Figuras} %List of Figures
|
178 |
|
|
\renewcommand{\listtablename}{Lista de Tablas} %List of Tables
|
179 |
|
|
\renewcommand{\partname}{Parte} %Part
|
180 |
|
|
\renewcommand{\seename}{ver} %see (makeidx package)
|
181 |
|
|
\renewcommand{\tablename}{Tabla} %Table (for caption)
|
182 |
215 |
guanucolui |
|
183 |
|
|
\renewcommand{\arraystretch}{1.3}
|
184 |
|
|
|