latex/utfsm-thesis-clean/thesis_utfsm.sty

110 lines
4.3 KiB
Plaintext
Raw Permalink Normal View History

2020-05-15 12:16:32 -04:00
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Estilos (LateX styles) para Memorias y Tesis, UTFSM, Chile
% =============================================
%
% Autor:
% Israel Figueroa <israel.figueroa@usm.cl>
% Jaime C. Rubin-de-Celis <jaime@rubin-de-celis.com>
%
% Licencia:
% Copyright (c) 2019, Israel Figueroa P.
% GPLv3 License
%
% Nota:
% Las imágenes son propiedad intelectual de la UTFSM.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ProvidesPackage{thesis_utfsm}[6/6/2016 UTFSM Thesis Style Sheet]
\typeout{UTFSM Thesis Style}
% Márgenes (UTFSM)
\RequirePackage{geometry}
\geometry{verbose,tmargin=25mm,bmargin=25mm,lmargin=40mm,rmargin=25mm}
% Numeración de las notas al pie según capítulo
\RequirePackage{chngcntr}
\counterwithout{footnote}{chapter}
% Custom Colors
\RequirePackage{xcolor}
\definecolor{gray20}{gray}{0.20}
\definecolor{gray50}{gray}{0.50}
\definecolor{gray80}{gray}{0.80}
%---------------------------------------------------------------------------
%%% CAPTIONS
\RequirePackage[font=small,labelfont=bf,justification=centering]{caption}
% Caption Fonts and Weight
% You can try with the next line for multiple caption in a figure/table,
% however remember it is incompatible with 'subfig'.
%\RequirePackage{subcaption}
%---------------------------------------------------------------------------
%---------------------------------------------------------------------------
%%% HEADERS AND FOOTERS
\fancyhf{}
%\fancyhead[L]{\scriptsize \rightmark}
%\fancyfoot[L]{\includegraphics[height=2.5mm]{logousm.png}{\small \hspace{2mm}Departamento de Electrónica e Informática, Universidad Santa María}}
\fancypagestyle{plain}{%
\fancyhf{} % clear all header and footer fields
\fancyhead[LE]{\scriptsize \leftmark}
\fancyhead[RE]{\scriptsize \rightmark}
\fancyhead[LO]{\scriptsize \rightmark}
\fancyhead[RO]{\scriptsize \leftmark}
\fancyfoot[RO]{\bfseries \thepage} % except the center
\fancyfoot[LO]{{\footnotesize\hsp[5]Universidad T\'ecnica Federico Santa Mar\'ia, Departamento de Electr\'onica e Inform\'atica}}
\fancyfoot[RE]{{\footnotesize Universidad T\'ecnica Federico Santa Mar\'ia, Departamento de Electr\'onica e Inform\'atica}\hsp[5]\includegraphics[height=4mm]{figures/logousm.png}}
\fancyfoot[LE]{\bfseries \thepage} % except the center
\renewcommand{\headrulewidth}{0.1pt}
\renewcommand{\footrulewidth}{0.1pt}
}
%---------------------------------------------------------------------------
%---------------------------------------------------------------------------
%%% FONTS
% Tipo de Letra (Times New Roman).
\RequirePackage{txfonts}
% En Línux, es posible que sea necesario reconstruir el mapa de fuentes.
% Como administrador, puede ejecutar el siguiente comando:
% # updmap-sys --enable Map=txfonts.map
%
% El tipo de letra debe ser ocupado después de las librerías matemáticas
% pues contienen macros que son incompatibles con amsmath y amssymb.
%
% Alternativas:
%\RequirePackage{times} % No recomendado (Deprecated!)
% Forzar Times New Roman en fórmulas matemáticas (No recomendado!):
%\RequirePackage{mathptmx}
% Las siguientes lineas cambiarán el documento a Arial (La UTFSM no lo aprueba!).
%\renewcommand{\rmdefault}{phv} % Convert to Arial
%\renewcommand{\sfdefault}{phv} % Convert to Arial
%---------------------------------------------------------------------------
%---------------------------------------------------------------------------
%%% CHAPTER HEADINGS
%\titleformat{\chapter}[hang]
%{\Huge\bfseries}
%{\thechapter\hsp\textcolor{gray80}{|}\hsp}{0pt}
%{\Huge\bfseries}
\makeatletter % IMPORTANT! (Do not delete or move!)
%---------------------------------------------------------------------------
%---------------------------------------------------------------------------
% Cambiar los Títulos (sólo en español (Chile))
\addto{\captionsspanish}{\renewcommand{\contentsname} {\'Indice de Contenidos}}
\addto{\captionsspanish}{\renewcommand{\listfigurename} {\'Indice de Figuras}}
\addto{\captionsspanish}{\renewcommand{\listtablename} {\'Indice de Tablas}}
\addto{\captionsspanish}{\renewcommand{\tablename} {Tabla}}
\addto{\captionsspanish}{\renewcommand{\appendixname} {Anexo}}
%---------------------------------------------------------------------------