MSc Thesis at Faculty of Medicine of the University of Porto Template
%% UP THESIS STYLE for LaTeX2e
%% how to use upteses for MIMED dissertations
%%
%% PLEASE send improvements to jlopes at fe.up.pt and to jcf at fe.up.pt
%%
%%========================================
%% Commands: pdflatex thesis
%% bibtex thesis
%% makeindex thesis (only if creating an index)
%% pdflatex thesis
%% Alternative:
%% latexmk -pdf thesis.tex
%%========================================
\documentclass[11pt,a4paper,twoside,openright]{report}
\usepackage[utf8]{inputenc}
%\usepackage[latin1]{inputenc}
%%%%%%% English version
%% MIMED options
\usepackage[mimed]{styles/upteses} % work version
%\usepackage[mimed,juri]{styles/upteses} % juri verrion
%\usepackage[mimed,final]{styles/upteses} % final version
%% Additional options for upteses.sty:
%% - portugues: titles, etc in portuguese
%% - onpaper: links are not shown (for paper versions)
%% - backrefs: include back references from bibliography to citation place
%%%%%%% Portuguese version
%\usepackage[mimed,portugues]{upteses} % work version
%\usepackage[mimed,portugues,juri]{upteses} % juri version
%\usepackage[mimed,portugues,final]{upteses} % final version
%% Uncomment the next lines if side by side graphics used
%\usepackage[lofdepth,lotdepth]{subfig}
%\usepackage{graphicx}
%\usepackage{float}
%% Include color package
\usepackage{color}
\definecolor{cloudwhite}{cmyk}{0,0,0,0.025}
%% Include source-code listings package
\usepackage{listings}
\lstset{ %
language=C, % choose the language of the code
basicstyle=\footnotesize\ttfamily,
keywordstyle=\bfseries,
numbers=left, % where to put the line-numbers
numberstyle=\scriptsize\texttt, % the size of the fonts that are used for the line-numbers
stepnumber=1, % the step between two line-numbers. If it's 1 each line will be numbered
numbersep=8pt, % how far the line-numbers are from the code
frame=tb,
float=htb,
aboveskip=8mm,
belowskip=4mm,
backgroundcolor=\color{cloudwhite},
showspaces=false, % show spaces adding particular underscores
showstringspaces=false, % underline spaces within strings
showtabs=false, % show tabs within strings adding particular underscores
tabsize=2, % sets default tabsize to 2 spaces
captionpos=b, % sets the caption-position to bottom
breaklines=true, % sets automatic line breaking
breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
escapeinside={\%*}{*)}, % if you want to add a comment within your code
morekeywords={*,var,template,new} % if you want to add more keywords to the set
}
%% Uncomment to create an index (at the end of the document)
%\makeindex
%% Path to the figures directory
%% TIP: use folder ``figures'' to keep all your figures
\graphicspath{{figures/}}
%%----------------------------------------
%% TIP: if you want to define more macros, use an external file to keep them
\include{mymacros}
%%----------------------------------------
%%========================================
%% Start of document
%%========================================
\begin{document}
%%----------------------------------------
%% Information about the work
%%----------------------------------------
\title{Title of Thesis}
\author{Name of Student}
%% Uncomment next line for date of submission
%\pdisdate{July 31, 2008}
%\thesisdate{July 31, 2008}
%%Uncomment next line for copyright text if used
%\copyrightnotice{Name of the Author, 2008}
\supervisor{Supervisor}{First Supervisor Name}
\supervisor{Second Supervisor}{Second Supervisor Name}
%% Uncomment committee stuff in the final version
%\committeetext{Approved in oral examination by the committee:}
%\committeemember{Chair}{Prof.\ Name of the President}
%\committeemember{External Examiner}{Prof.\ Name of the Examiner}
%\committeemember{Supervisor}{Prof.\ Name of the Supervisor}
%\committeetext{Aprovado em provas públicas pelo Júri:}
%\committeemember{Presidente}{Prof.\ Nome do presidente do júri}
%\committeemember{Arguente}{Prof.\ Nome do arguente do júri}
%\committeemember{Vogal}{Prof.\ Nome do vogal do júri}
%% Specify cover logo (in folder ``figures'')
% \logo{uporto-feup.pdf}
\logo{uporto-fmup.png}
%% Uncomment next line for additional text below the author's name (front page)
\additionalfronttext{Preparação da Dissertação}
%%----------------------------------------
%% Preliminary materials
%%----------------------------------------
% remove unnecssary \include{} commands
\begin{Prolog}
\include{pieces/cover} % the cover page
\include{pieces/integrity} % the declaration of integrity
\include{pieces/reproducibility} % the declaration of reproducibility
\include{pieces/abstract} % the abstract
\include{pieces/acknows} % the acknowledgments
\include{pieces/quote} % initial quotation if desired
\cleardoublepage
\pdfbookmark[0]{Table of Contents}{contents}
\tableofcontents
\cleardoublepage
\pdfbookmark[0]{List of Figures}{figures}
\listoffigures
\cleardoublepage
\pdfbookmark[0]{List of Tables}{tables}
\listoftables
\include{pieces/abbrevs} % the list of abbreviations used
\end{Prolog}
%%----------------------------------------
%% Body
%%----------------------------------------
\StartBody
%% TIP: use a separate file for each chapter
\include{chapters/chapter1}
\include{chapters/chapter2}
\include{chapters/chapter3}
\include{chapters/chapter4}
\include{chapters/chapter5}
%% comment next 2 commands if numbered appendices are not used
\appendix
\include{appendices/appendix1}
%%----------------------------------------
%% Final materials
%%----------------------------------------
%% Bibliography
%% Comment the next command if BibTeX file not used
%% bibliography is in ``myrefs.bib''
\PrintBib{references}
%% Index
%% Uncomment next command if index is required
%% don't forget to run ``makeindex thesis'' command
%\PrintIndex
\end{document}