summaryrefslogtreecommitdiff
path: root/latex_styles/thesis_sty.sty
blob: 1110b48fc76826701745accf85e8f3f5fb3bf725 (plain)
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
\RequirePackage[T1]{fontenc}
\RequirePackage[utf8]{inputenc}
\RequirePackage{amsmath}
\RequirePackage{amssymb}
\RequirePackage{amsfonts}
\RequirePackage{amssymb}
\RequirePackage{amsthm}

\RequirePackage[style=numeric-comp,%
sorting=none,%
maxbibnames=3,%
minbibnames=3,%
maxcitenames=1,%
mincitenames=1,%
isbn=false,%
url=false,%
doi=false,%
eprint=false,%
related=false]{biblatex}
\renewbibmacro{in:}{}

\RequirePackage[labelfont={rm},labelformat=parens,format=hang,parskip=5pt]{subfig}
\RequirePackage[textfont={normalfont}, labelfont={sc,bf}, labelsep=period, parskip=1pt, aboveskip=5pt,
indention=18pt]{caption}
%\RequirePackage[textfont={normalfont}, labelfont={sc,bf}, labelsep=period, parskip=1pt, aboveskip=5pt,
%indention=18pt]{caption}

\RequirePackage{supertabular}
\RequirePackage{longtable}
\RequirePackage{booktabs}
\RequirePackage{multirow}
\RequirePackage[section]{placeins}
\RequirePackage{graphicx}
\RequirePackage{multicol}
\RequirePackage{xcolor}
% colors
\definecolor{red}{rgb}{1,0,0}

\RequirePackage{verbatim}
\RequirePackage{shortvrb} % using \MakeShortVerb{\|} and \DeleteShortVerb{\|} you can define a new verbatim
                          % environment setter

\RequirePackage{geometry}
\geometry{
  a4paper,
  total={150mm,240mm},
  left=20mm,
  %top=20mm,
}
\parskip=1mm
%\parindent=0mm
\usepackage{setspace}

\RequirePackage[all]{xy}

\RequirePackage{tcolorbox}

% encabezados
\RequirePackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0.4pt}
\fancyhf{}
\fancyhead[RO,LE]{\thepage}
\fancyhead[LO]{\nouppercase{\rightmark}}	% Estilo: 1.3. Seccion primera
\fancyhead[RE]{\nouppercase{\leftmark}}	        % Estilo: Capitulo 1. Primer Capitulo

% settings
\RequirePackage{kantlipsum}
\RequirePackage{appendix}
%\RequirePackage[none]{hyphenat} %para que justifique el texto, ademas hay que agregar \sloppy luego del \begin{document}

% font
%\RequirePackage[bitstream-charter]{mathdesign}
%\RequirePackage{kpfonts}

\RequirePackage{varioref}
%\labelformat{section}{secci{\'o}n~#1}
%\labelformat{subsection}{secci{\'o}n~#1}
%\labelformat{equation}{(#1)}
%\labelformat{figure}{f\/igura~#1}
%\labelformat{table}{tabla~#1}
% Para modificar el separador de caption, ie. Figura 1. en lugar de Figura 1:

\RequirePackage[breaklinks, colorlinks=true, pdfstartview=FitV, linkcolor=black, citecolor=black,
urlcolor=black]{hyperref}
% \renewcommand*{\backref}[1]{}
% \renewcommand*{\backrefalt}[4]{
% 	\ifcase #1 (No citado.)
% 	\or (Citado en página~#2.)
% 	\else (Citado en páginas #2.)
% 	\fi%
% }
% \renewcommand*{\backrefsep}{, }
% \renewcommand*{\backreftwosep}{ y~}
% \renewcommand*{\backreflastsep}{ y~}

% to define depth of section in TOC
%\setcounter{secnumdepth}{3} % para que ponga 1.1.1.1.
%\setcounter{tocdepth}{4} % para que añadir las secciones en el índice

% available levels
% -1 = partes
%0 = capítulos
%1 = secciones
%2 = subsecciones
%3 = subsubsecciones
%4 = párrafos
%--------------------------------------------------------------------------------------

% some defined commands
\newcommand{\R}{\mathbb{R}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\I}{\mathbb{I}}
\newcommand{\raya}{\rule{2cm}{0.01cm}\\}
\newcommand{\ds}{\displaystyle}
\newcommand{\sen}{\mathop{\rm sen}\nolimits}
%\newcommand{\tanh}{\mathop{\rm tan}\nolimits}
\newcommand{\senh}{\mathop{\rm senh}\nolimits}
\newcommand{\arcsen}{\mathop{\rm arcsen}\nolimits}
\newcommand{\arcsec}{\mathop{\rm arcsec}\nolimits}
\newcommand{\A}{\,\textup{\r{A}}}
\newcommand{\C}{\,^{\circ}C}
\newcommand{\degree}{\,^{\circ}}
\newcommand{\erfc}{\mathop{\rm erfc}\nolimits}
\newcommand{\erf}{\mathop{\rm erf}\nolimits}
\newcommand{\rb}[1]{\raisebox{-.4ex}[0pt]{#1}}

\RequirePackage{minitoc}

% define white pages after chapters if needed when using openright book option
\makeatletter
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
  \hbox{}
  \vspace*{\fill}
  % \begin{center}
  %   Esta página se ha dejado en blanco intencionalmente.
  % \end{center}
  \vspace*{\fill}
  \thispagestyle{empty}
  \newpage
  \if@twocolumn\hbox{}\newpage\fi\fi\fi}
\makeatother