-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtesis.sty
232 lines (195 loc) · 6.33 KB
/
tesis.sty
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
%\NeedsTeXFormat{LaTeX2e}[01/06/2002]
%\ProvidesClass{ucsptesis}[19/03/2007 v1.0 UCSP Formato de tesis para la UCSP]
%\DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}
%\ProcessOptions*
%\LoadClass[a4paper,openany,12pt]{book}
%*****************************************************************************
%Definiendo Paquetes
%*****************************************************************************
%*****************************************************************************
%Diseñando Carátula
%*****************************************************************************
\renewcommand{\maketitle}
{
\thispagestyle{empty}
\begin{figure}[h]
\center
\includegraphics[scale = 0.25]{ucsp}
\end{figure}
\begin{center}
\vspace*{1cm}
{\Large \textbf \@title \par}
\vspace*{3cm}
{\large \textbf \@author}\\
\vspace*{\stretch{1}}
\textbf{Orientador: \@orientador}
\vspace*{\stretch{1}}
\end{center}
\presentar
\vspace*{\stretch{1}}
\begin{center}
\textbf{UCSP - Universidad Católica San Pablo}\\
\textbf{ $\,$\mes\ de\ \the\year$\,$}
\end{center}
\pagebreak
\dedicatoria
}
%*****************************************************************************
%Diseñando presentación
%*****************************************************************************
\newcommand{\presentacion}{\gdef\@presentacion}
\presentacion{Tesis profesional presentada al Programa
Profesional de Ingeniería Informática como parte de los requisitos
para obtener el Título Profesional de Ingeniero Informático.}
\newcommand{\presentar}
{
\begin{flushright}
\begin{tabular}{p{10cm}}
\normalsize\it\@presentacion
\end{tabular}
\end{flushright}
}
%*****************************************************************************
%Diseñando Orientador
%*****************************************************************************
\newcommand{\orientador}{\gdef\@orientador}
%*****************************************************************************
%Diseñando Dedicatoria
%*****************************************************************************
\newcommand{\dedicado}{\gdef\@dedicado}
\dedicado{}
\newcommand{\dedicatoria}
{
\begin{flushright}
\vspace*{2.6cm}
\begin{tabular}{p{7cm}}
\normalsize\it\@dedicado
\end{tabular}
\end{flushright}
\thispagestyle{empty}
}
%*****************************************************************************
%Diseñando Agradecimientos
%*****************************************************************************
\newenvironment{agradecimientos}
{
\chapter*{Agradecimientos}
\hrule
\vspace*{0.5cm}
\parindent 0cm
\narrower
\vfill
\thispagestyle{empty}
}
{
\vfill
\vfill
\vfill
\clearpage
}
%*****************************************************************************
%Diseñando Abstract
%*****************************************************************************
\newenvironment{abstract}
{
\chapter*{Abstract}
\hrule
\vspace*{0.5cm}
\narrower
\vfill
\thispagestyle{empty}
}
{
\vfill
\vfill
\vfill
\clearpage
}
%*****************************************************************************
%Diseñando Resumen
%*****************************************************************************
\newenvironment{resumen}
{
\chapter*{Resumen}
\hrule
\vspace*{0.5cm}
\narrower
\vfill
\thispagestyle{empty}
}
{
\vfill
\vfill
\vfill
\clearpage
}
%*****************************************************************************
%Diseñando los Índices
%*****************************************************************************
%\newif \if@listtab
%\newif \if@listfig
%\newcommand{\itb}{\@listtabtrue}
%\newcommand{\ifg}{\@listfigtrue}
%
%\newcommand{\indice}[1]
%{
% #1
% \pagenumbering{arabic}
%
% \tableofcontents
%
% \if@listtab
% \listoftables
% \fi
%
% \if@listfig
% \listoffigures
% \fi
%}
%*****************************************************************************
%Diseñando Encabezado y Pie de Página
%*****************************************************************************
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LO]{\leftmark}
\fancyhead[RE]{\rightmark}
\fancyfoot[L]{Ingeniería Informática - UCSP}
\fancyfoot[R]{\thepage}
\renewcommand{\chaptermark}[1]
{\markboth{\MakeUppercase{\chaptername}\ \thechapter. #1}{}}
\renewcommand{\sectionmark}[1]
{\markright{\thesection. #1}}
\renewcommand{\headrulewidth}{0.1pt}
\renewcommand{\footrulewidth}{0.1pt}
%*****************************************************************************
%Diseñando Párrafos
%*****************************************************************************
\parindent 1cm
\parskip 0.4cm
%*****************************************************************************
%Diseñando la Bibliografía
%*****************************************************************************
\newcommand{\bibliografia}[1]
{
}
%*****************************************************************************
%Mensajes de Error
%*****************************************************************************
\renewcommand{\@title}{\ClassError{UCSP}{Falta especificar \string\title{}}
{Use el comando \string\title{} en el preambulo para especificar \MessageBreak
el titulo de su tesis.}}
\renewcommand{\title}[1]{\gdef\@title{#1}}
\renewcommand{\@author}{\ClassError{UCSP}{Falta especificar \string\author{}}
{Use el comando \string\author{} en el preambulo para especificar su nombre.}}
\renewcommand{\author}[1]{\gdef\@author{#1}}
\renewcommand{\@dedicado}{\ClassError{UCSP}{Falta especificar \string\dedicado{}}
{Use el comando \string\dedicado{} en el preambulo para especificar su dedicatoria.}}
\renewcommand{\dedicado}[1]{\gdef\@dedicado{#1}}
%*****************************************************************************
%Nombre de mes
%*****************************************************************************
\newcommand{\mes}{\ifcase\month\or Enero\or Febrero\or
Marzo\or Abril\or Mayo\or Junio\or Julio\or Agosto\or Septiembre\or
Octubre\or Noviembre\or Diciembre\fi}
%*****************************************************************************
\endinput