← All templates

University of the Algarve master's dissertation, FCT (community)

A template for master's dissertations at the University of the Algarve's Faculty of Sciences and Technology, following the faculty's 2023 regulation: cover and title page, declaration of authorship, abstracts in Portuguese and English with the long Portuguese summary, contents and lists of figures and tables, abbreviations, six chapter skeletons, biblatex author-year references, appendices and annexes; English sample, with a Portuguese twin in thesis/ptpt.

Create an account to use this
Category
Thesis
Document class
report (report.cls) — ships with TeX Live
Workflow
Thesis / dissertation — submissions and revision rounds
Author
Jorge Baptista (ualg-thesis-template)
Source
Jorge Baptista (ualg-thesis-template)
Licence
report.cls: LaTeX Project Public License (installed with TeX). The sample text is Jorge Baptista (ualg-thesis-template)'s, provided for authors preparing a submission.

These are the publisher’s own files. This project starts from Jorge Baptista (ualg-thesis-template)’s package for this publication — their manuscript, their report.cls, their bibliography style — so what compiles here is what they would have given you.

Jorge Baptista (ualg-thesis-template) serves this exact file to University of the Algarve. Check Jorge Baptista (ualg-thesis-template)’s author pages for the current instructions.

Where this differs from the publisher’s download.

  • Note: A community template: ualg-thesis-template is written by Jorge Baptista; it is not issued or endorsed by the University of the Algarve. Check it against the current thesis regulations of your university. The University's emblem is not included: the cover shows a placeholder box until you add the file named by \thesisLogoPath in metadata.tex.

What you get

  • LICENSE.md · 7 KB
  • thesis/en/backmatter/annexes.tex · 70 B
  • thesis/en/backmatter/appendices.tex · 154 B
  • thesis/en/bibliography/references.bib · 517 B
  • thesis/en/chapters/01-introduction.tex · 477 B
  • thesis/en/chapters/02-literature.tex · 238 B
  • thesis/en/chapters/03-methodology.tex · 335 B
  • thesis/en/chapters/04-results.tex · 159 B
  • thesis/en/chapters/05-discussion.tex · 152 B
  • thesis/en/chapters/06-conclusions.tex · 112 B
  • thesis/en/frontmatter/abbreviations.tex · 475 B
  • thesis/en/frontmatter/abstract-en.tex · 284 B
  • thesis/en/frontmatter/abstract-pt-long.tex · 332 B
  • thesis/en/frontmatter/abstract-pt.tex · 295 B
  • thesis/en/frontmatter/acknowledgements.tex · 165 B
  • thesis/en/frontmatter/cover.tex · 415 B
  • thesis/en/frontmatter/declaration.tex · 1 KB
  • thesis/en/frontmatter/dedication.tex · 136 B
  • thesis/en/frontmatter/errata.tex · 400 B
  • thesis/en/frontmatter/title-page.tex · 525 B
  • thesis/en/main.tex — the file that is compiled · 2 KB
  • thesis/en/metadata.tex · 619 B
  • thesis/en/styles/fct-ualg-thesis.sty · 5 KB
  • thesis/ptpt/backmatter/annexes-pt.tex · 70 B
  • thesis/ptpt/backmatter/appendices-pt.tex · 162 B
  • thesis/ptpt/bibliography/references.bib · 517 B
  • thesis/ptpt/chapters/01-introduction-pt.tex · 480 B
  • thesis/ptpt/chapters/02-literature-pt.tex · 261 B
  • thesis/ptpt/chapters/03-methodology-pt.tex · 333 B
  • thesis/ptpt/chapters/04-results-pt.tex · 168 B
  • thesis/ptpt/chapters/05-discussion-pt.tex · 153 B
  • thesis/ptpt/chapters/06-conclusions-pt.tex · 132 B
  • thesis/ptpt/frontmatter/abbreviations-pt.tex · 430 B
  • thesis/ptpt/frontmatter/abstract-en.tex · 284 B
  • thesis/ptpt/frontmatter/abstract-pt.tex · 295 B
  • thesis/ptpt/frontmatter/acknowledgements-pt.tex · 165 B
  • thesis/ptpt/frontmatter/cover.tex · 415 B
  • thesis/ptpt/frontmatter/declaration.tex · 1 KB
  • thesis/ptpt/frontmatter/dedication-pt.tex · 142 B
  • thesis/ptpt/frontmatter/errata-pt.tex · 401 B
  • thesis/ptpt/frontmatter/title-page-pt.tex · 493 B
  • thesis/ptpt/main.tex · 2 KB
  • thesis/ptpt/metadata.tex · 659 B
  • thesis/ptpt/styles/fct-ualg-thesis.sty · 5 KB

These become your files. Editing them afterwards changes your project and nothing else — a project owns its files from the moment it is made.

Source

LICENSE.md · 7 KB
# CC0 1.0 Universal

CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER.

### Statement of Purpose

The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work").

Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others.

For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights.

1. **Copyright and Related Rights.** A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following:

    i. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work;

    ii. moral rights retained by the original author(s) and/or performer(s);

    iii. publicity and privacy rights pertaining to a person's image or likeness depicted in a Work;

    iv. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below;

    v. rights protecting the extraction, dissemination, use and reuse of data in a Work;

    vi. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and

    vii. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof.

2. **Waiver.** To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer's heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer's express Statement of Purpose.

3. **Public License Fallback.** Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "License"). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer's express Statement of Purpose.

4. **Limitations and Disclaimers.**

    a. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document.

    b. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law.

    c. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work.

    d. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work.
thesis/en/backmatter/annexes.tex · 70 B
\chapter{Primary data}
[Include material not produced by the author.]
thesis/en/backmatter/appendices.tex · 154 B
\chapter{Questionnaire}
[Include questionnaires, instruments, or original data.]

\chapter{Additional tables}
[Include large tables or detailed results.]
thesis/en/bibliography/references.bib · 517 B
@book{azevedo2000,
  author    = {Azevedo, Carlos A. M.},
  year      = {2000},
  title     = {Teses, Relatorios e Trabalhos Escolares: Sugestoes para Estruturas da Escrita},
  location  = {Lisboa},
  publisher = {Universidade Catolica Editora}
}

@article{modigliani1958,
  author  = {Modigliani, Franco and Miller, Merton},
  year    = {1958},
  title   = {The Cost of Capital, Corporation Finance and the Theory of Investment},
  journal = {The American Economic Review},
  volume  = {48},
  pages   = {261-297}
}
thesis/en/chapters/01-introduction.tex · 477 B
\section{Topic and problem}
[Describe the topic and the problem statement.]
For an initial reference, see \textcite{azevedo2000}.

\section{Objectives and relevance}
[State the general and specific objectives and justify relevance.]

\section{Research questions or hypotheses}
[List the research questions or hypotheses.]

\section{Scope and limitations}
[Define scope, period, and constraints.]

\section{Thesis structure}
[Provide a brief summary of the following chapters.]
thesis/en/chapters/02-literature.tex · 238 B
\section{Concepts and theoretical framing}
[Present key concepts and framing.]

\section{Related work}
[Discuss relevant literature and main contributions.]

\subsection{Critical synthesis}
[Identify gaps and implications for the study.]
thesis/en/chapters/03-methodology.tex · 335 B
\section{Research design}
[Explain the research design and methodological approach.]

\section{Population and sample}
[Define the population, sample, and sampling method.]

\section{Instruments and data collection}
[Describe instruments and procedures.]

\section{Analysis techniques}
[Describe analysis techniques and justification.]
thesis/en/chapters/04-results.tex · 159 B
\section{Results overview}
[Present results and analytical procedures.]

\section{Tables and figures}
[Include tables/figures and reference them in the text.]
thesis/en/chapters/05-discussion.tex · 152 B
\section{Interpretation of results}
[Discuss results and comparisons with the literature.]

\section{Limitations}
[State limitations and implications.]
thesis/en/chapters/06-conclusions.tex · 112 B
\section{Summary}
[Recap the main results.]

\section{Recommendations}
[State recommendations and future work.]
thesis/en/frontmatter/abbreviations.tex · 475 B
\clearpage
\thispagestyle{plain}
\addcontentsline{toc}{chapter}{LIST OF ABBREVIATIONS}
\begin{center}
\MakeUppercase{LIST OF ABBREVIATIONS}
\end{center}
\begin{spacing}{1}
\setlength{\parskip}{0pt}
\begin{description}[style=standard, align=left, labelwidth=2.5cm, labelsep=0.5cm, leftmargin=3cm]
  \item[OECD] Organisation for Economic Co-operation and Development
  \item[FDI] Foreign Direct Investment
  \item[R\&D] Research and Development
\end{description}
\end{spacing}
thesis/en/frontmatter/abstract-en.tex · 284 B
\clearpage
\thispagestyle{plain}
\begin{otherlanguage}{english}
\addcontentsline{toc}{chapter}{ABSTRACT}
\begin{center}
\MakeUppercase{ABSTRACT}
\end{center}
[Abstract in English, max 300 words.]

\noindent\textbf{Keywords:} keyword1; keyword2; keyword3; keyword4
\end{otherlanguage}
thesis/en/frontmatter/abstract-pt-long.tex · 332 B
\clearpage
\thispagestyle{plain}
\begin{otherlanguage}{portuguese}
\addcontentsline{toc}{chapter}{RESUMO ALARGADO}
\begin{center}
\MakeUppercase{RESUMO ALARGADO}
\end{center}
[Resumo em portugues com pelo menos 1000 palavras. Obrigatorio quando a tese e redigida em ingles e separado do Resumo de 300 palavras.]
\end{otherlanguage}
thesis/en/frontmatter/abstract-pt.tex · 295 B
\clearpage
\thispagestyle{plain}
\begin{otherlanguage}{portuguese}
\addcontentsline{toc}{chapter}{RESUMO}
\begin{center}
\MakeUppercase{RESUMO}
\end{center}
[Resumo em portugues com ate 300 palavras.]

\noindent\textbf{Palavras-chave:} palavra1; palavra2; palavra3; palavra4
\end{otherlanguage}
thesis/en/frontmatter/acknowledgements.tex · 165 B
\clearpage
\thispagestyle{plain}
\addcontentsline{toc}{chapter}{ACKNOWLEDGEMENTS}
\begin{spacing}{1}
\setlength{\parskip}{0pt}
[Acknowledgements text]
\end{spacing}
thesis/en/frontmatter/cover.tex · 415 B
\thispagestyle{empty}
\begin{center}
\vspace*{2cm}
{\Large\MakeUppercase{\thesisAuthor}\par}
\vfill
{\Large\bfseries\MakeUppercase{\thesisTitle}\par}
\if\relax\detokenize{\thesisSubtitle}\relax
\else
{\large\MakeUppercase{\thesisSubtitle}\par}
\fi
\vspace{\stretch{2}}
\ualglogo\par
\vspace{\stretch{0.20}}
{\MakeUppercase{\thesisUniversity}\par}
{\MakeUppercase{\thesisFaculty}\par}
{\thesisYear\par}
\end{center}
thesis/en/frontmatter/declaration.tex · 1 KB
\clearpage
\thispagestyle{plain}
\begin{otherlanguage}{portuguese}
\addcontentsline{toc}{chapter}{DECLARACAO DE AUTORIA}
\begin{center}
\MakeUppercase{\thesisTitle}
\end{center}
\vspace{1cm}
\begin{center}
Declara\c{c}\~{a}o de autoria de trabalho
\end{center}
\vspace{1cm}
Declaro ser o(a) autor(a) deste trabalho, que \'{e} original e in\'{e}dito. Autores e trabalhos % chktex 36
consultados est\~{a}o devidamente citados no texto e constam da listagem de refer\^{e}ncias
inclu\'{\i}da.
\vspace{2cm}
\begin{center}
(\thesisAuthor)\\
\vspace{1cm}
\rule{6cm}{0.4pt}\\
(assinatura)
\end{center}
% For the digital PDF, do not add an autograph signature.
\end{otherlanguage}

\clearpage
\thispagestyle{plain}
\begin{otherlanguage}{portuguese}
\textcopyright\ Copyright: (\thesisAuthor).
A Universidade do Algarve reserva para si o direito, em conformidade com o disposto
no C\'{o}digo do Direito de Autor e dos Direitos Conexos, de arquivar, reproduzir e
publicar a obra, independentemente do meio utilizado, bem como de a divulgar
atrav\'{e}s de reposit\'{o}rios cient\'{\i}ficos e de admitir a sua c\'{o}pia e distribui\c{c}\~{a}o para fins
meramente educacionais ou de investiga\c{c}\~{a}o e n\~{a}o comerciais, conquanto seja dado o
devido cr\'{e}dito ao autor e editor respetivos.
\end{otherlanguage}
thesis/en/frontmatter/dedication.tex · 136 B
\clearpage
\thispagestyle{plain}
\addcontentsline{toc}{chapter}{DEDICATION}
\begin{center}
\vspace*{3cm}
[Dedication text]
\end{center}
thesis/en/frontmatter/errata.tex · 400 B
\clearpage
\thispagestyle{plain}
\addcontentsline{toc}{chapter}{ERRATA}
\begin{center}
\MakeUppercase{ERRATA}
\end{center}
\begin{spacing}{1}
\setlength{\parskip}{0pt}
\begin{tabular}{p{0.2\textwidth}p{0.35\textwidth}p{0.35\textwidth}}
\toprule
\textbf{Location} & \textbf{Reads} & \textbf{Should read} \\
\midrule
line X, para Y, page Z &\ldots{}&\ldots{} \\
\bottomrule
\end{tabular}
\end{spacing}
thesis/en/frontmatter/title-page.tex · 525 B
\clearpage
\thispagestyle{plain}
\begin{center}
\vspace*{2cm}
{\Large\MakeUppercase{\thesisAuthor}\par}
\vfill
{\Large\bfseries\MakeUppercase{\thesisTitle}\par}
\if\relax\detokenize{\thesisSubtitle}\relax
\else
{\large\MakeUppercase{\thesisSubtitle}\par}
\fi
\vfill
{\thesisType\par}
{\thesisDegree\par}
\vfill
{Work supervised by:\par}
{\thesisAdvisors\par}
\vspace{\stretch{2}}
\ualglogo\par
\vspace{\stretch{0.2}}
{\MakeUppercase{\thesisUniversity}\par}
{\MakeUppercase{\thesisFaculty}\par}
{\thesisYear\par}
\end{center}
thesis/en/main.tex — the file that is compiled · 2 KB
\documentclass[12pt,a4paper]{report}

\usepackage{styles/fct-ualg-thesis}
\usepackage{csquotes}
\usepackage[backend=biber,style=authoryear,maxnames=99,minnames=99,giveninits=true,uniquename=init]{biblatex}
\addbibresource{bibliography/references.bib}

\input{metadata}

\begin{document}
\selectlanguage{english}
\renewcommand{\ualgpagename}{Page}
\pagenumbering{roman}

\input{frontmatter/cover}
\input{frontmatter/title-page}
\input{frontmatter/declaration}

% Optional sections (uncomment if needed)
%\input{frontmatter/dedication}
%\input{frontmatter/acknowledgements}

\input{frontmatter/abstract-pt}
\input{frontmatter/abstract-en}
% Required for English theses (separate from the 300-word Resumo)
\input{frontmatter/abstract-pt-long}

\renewcommand{\contentsname}{TABLE OF CONTENTS}
\renewcommand{\listfigurename}{LIST OF FIGURES}
\renewcommand{\listtablename}{LIST OF TABLES}
\renewcommand{\bibname}{REFERENCES}

\ualgtableofcontents
\ifualghasfigures
\ualglistoffigures
\fi
\ifualghastables
\ualglistoftables
\fi
\input{frontmatter/abbreviations}

% Optional errata (uncomment if needed)
%\input{frontmatter/errata}

\clearpage
\pagenumbering{arabic}

\chapter{Introduction}
\input{chapters/01-introduction}

\chapter{Literature Review}
\input{chapters/02-literature}

\chapter{Methodology}
\input{chapters/03-methodology}

\chapter{Results}
\input{chapters/04-results}

\chapter{Discussion}
\input{chapters/05-discussion}

\chapter{Conclusions}
\input{chapters/06-conclusions}

\clearpage
\begin{spacing}{1}
\setlength{\parskip}{0pt}
\defbibheading{ualgbib}{\chapter*{REFERENCES}\addcontentsline{toc}{chapter}{REFERENCES}}
\printbibliography[heading=ualgbib]
\end{spacing}

\ualgappendixsetup
\input{backmatter/appendices}

\ualgannexsetup
\input{backmatter/annexes}

\end{document}
thesis/en/metadata.tex · 619 B
% Thesis metadata (update these fields)
\newcommand{\thesisAuthor}{Full Name}
\newcommand{\thesisTitle}{Thesis Title}
\newcommand{\thesisSubtitle}{Subtitle (optional)}
\newcommand{\thesisType}{Dissertation / Project / Internship Report}
\newcommand{\thesisDegree}{Master's in \ldots{}}
\newcommand{\thesisAdvisors}{Supervisor: Full Name\\Co-supervisor: Full Name}
\newcommand{\thesisYear}{2026}
\newcommand{\thesisUniversity}{Universidade do Algarve}
\newcommand{\thesisFaculty}{Faculdade de Ci\^{e}ncias e Tecnologia}
\newcommand{\thesisLogoPath}{figures/ualg-emblem.jpg}
\newcommand{\thesisLogoWidth}{0.15\textwidth}
thesis/en/styles/fct-ualg-thesis.sty · 5 KB
\ProvidesPackage{styles/fct-ualg-thesis}[2024/01/01 FCT UAlg thesis style]

\RequirePackage[T1]{fontenc}
\RequirePackage[utf8]{inputenc}
\RequirePackage[english,portuguese]{babel}
\RequirePackage{mathptmx}
\RequirePackage{graphicx}
\RequirePackage[a4paper,left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm]{geometry}
\RequirePackage{setspace}
\RequirePackage{titlesec}
\RequirePackage{fancyhdr}
\RequirePackage{caption}
\RequirePackage{etoolbox}
\RequirePackage{float}
\RequirePackage{enumitem}
\RequirePackage[hang,flushmargin]{footmisc}
\RequirePackage{amsmath}
\RequirePackage{chngcntr}
\RequirePackage{tocloft}
\RequirePackage{booktabs}
\RequirePackage{longtable}

% Line spacing and paragraph spacing
\onehalfspacing
\setlength{\parskip}{0pt}

% Page style: no header, page number in footer (center)
\pagestyle{fancy}
\fancyhf{}
\fancyfoot[C]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}

% Chapter/section formatting
\titleformat{\chapter}
  {\normalfont\bfseries\Large}
  {\chaptername\ \thechapter.}
  {1em}
  {\MakeUppercase}
\titleformat{\section}
  {\normalfont\bfseries}
  {\thesection}
  {1em}
  {}
\titleformat{\subsection}
  {\normalfont\bfseries}
  {\thesubsection}
  {1em}
  {}

% Captions and float placement
\captionsetup{font={small,stretch=1},labelfont=bf}
\floatstyle{plaintop}
\restylefloat{table}
\restylefloat{figure}
\addto\captionsenglish{%
  \renewcommand{\tablename}{Table}%
  \renewcommand{\figurename}{Figure}%
}
\addto\captionsportuguese{%
  \renewcommand{\tablename}{Tabela}%
  \renewcommand{\figurename}{Figura}%
}

% Lists (keep compact; line spacing remains controlled by setspace)
\setlist{itemsep=0pt, topsep=0.5\baselineskip}

% Footnotes: size 9-10, single-spaced
\renewcommand{\footnotesize}{\fontsize{9}{11}\selectfont}
\renewcommand{\footnotelayout}{\setstretch{1}}

% Track whether figures/tables exist for conditional lists (set via aux on next run)
\newif\ifualghasfigures
\newif\ifualghastables
\makeatletter
\newcommand{\ualgmarkcaption}{%
  \ifx\@captype\@undefined\else
    \ifstrequal{\@captype}{figure}{%
      \global\ualghasfigurestrue
      \protected@write\@auxout{}{\string\global\string\ualghasfigurestrue}%
    }{}%
    \ifstrequal{\@captype}{table}{%
      \global\ualghastablestrue
      \protected@write\@auxout{}{\string\global\string\ualghastablestrue}%
    }{}%
  \fi
}
\pretocmd{\caption}{\ualgmarkcaption}{}{}
\makeatother

% Equations: consecutive numbering across the document
\counterwithout{equation}{chapter}

% Figures/tables numbering by chapter
\counterwithin{figure}{chapter}
\counterwithin{table}{chapter}

% Names for lists and bibliography
\renewcommand{\contentsname}{TABLE OF CONTENTS}
\renewcommand{\listfigurename}{LIST OF FIGURES}
\renewcommand{\listtablename}{LIST OF TABLES}
\renewcommand{\bibname}{REFERENCES}

% Block quote for long citations (>3 lines)
\newenvironment{ualgblockquote}{
  \begin{list}{}{\setlength{\leftmargin}{1.5cm}\setlength{\rightmargin}{1.5cm}}
  \item\relax\singlespacing
}{\end{list}}

% Optional logo (fallback if file is missing)
\newcommand{\ualglogo}{%
  \IfFileExists{\thesisLogoPath}{%
    \includegraphics[width=\thesisLogoWidth]{\thesisLogoPath}%
  }{%
    \fbox{UAlg-FCT Logo}%
  }%
}

% Custom TOC/LOF/LOT with "Pagina" header and single spacing
\makeatletter
\newcommand{\ualgpagename}{Pagina}
\newcommand{\ualgtitleline}[1]{%
  \begin{center}\MakeUppercase{#1}\end{center}%
  \noindent\hfill \ualgpagename\par
}
\newcommand{\ualgtableofcontents}{%
  \clearpage
  \ualgtitleline{\contentsname}%
  {\singlespacing\setlength{\parskip}{0pt}\@starttoc{toc}}%
}
\newcommand{\ualglistoffigures}{%
  \clearpage
  \ualgtitleline{\listfigurename}%
  \addcontentsline{toc}{chapter}{\listfigurename}%
  {\singlespacing\setlength{\parskip}{0pt}\@starttoc{lof}}%
}
\newcommand{\ualglistoftables}{%
  \clearpage
  \ualgtitleline{\listtablename}%
  \addcontentsline{toc}{chapter}{\listtablename}%
  {\singlespacing\setlength{\parskip}{0pt}\@starttoc{lot}}%
}
\makeatother

% Appendix/annex helpers
\newcommand{\ualgappendixsetup}{%
  \appendix
  \renewcommand{\chaptername}{Appendix}%
  \renewcommand{\appendixname}{Appendix}%
  \renewcommand{\thechapter}{\arabic{chapter}}%
}
\newcommand{\ualgappendixsetuppt}{%
  \appendix
  \renewcommand{\chaptername}{Apendice}%
  \renewcommand{\appendixname}{Apendice}%
  \renewcommand{\thechapter}{\arabic{chapter}}%
}
\newcommand{\ualgannexsetup}{%
  \setcounter{chapter}{0}%
  \renewcommand{\chaptername}{Annex}%
  \renewcommand{\appendixname}{Annex}%
  \makeatletter\renewcommand{\@chapapp}{Annex}\makeatother%
  \renewcommand{\thechapter}{\Alph{chapter}}%
}
\newcommand{\ualgannexsetuppt}{%
  \setcounter{chapter}{0}%
  \renewcommand{\chaptername}{Anexo}%
  \renewcommand{\appendixname}{Anexo}%
  \makeatletter\renewcommand{\@chapapp}{Anexo}\makeatother%
  \renewcommand{\thechapter}{\Alph{chapter}}%
}
thesis/ptpt/backmatter/annexes-pt.tex · 70 B
\chapter{Dados primarios}
[Inclua material nao produzido pelo autor.]
thesis/ptpt/backmatter/appendices-pt.tex · 162 B
\chapter{Questionario}
[Inclua questionarios, instrumentos ou dados originais.]

\chapter{Tabelas adicionais}
[Inclua tabelas extensas ou resultados detalhados.]
thesis/ptpt/bibliography/references.bib · 517 B
@book{azevedo2000,
  author    = {Azevedo, Carlos A. M.},
  year      = {2000},
  title     = {Teses, Relatorios e Trabalhos Escolares: Sugestoes para Estruturas da Escrita},
  location  = {Lisboa},
  publisher = {Universidade Catolica Editora}
}

@article{modigliani1958,
  author  = {Modigliani, Franco and Miller, Merton},
  year    = {1958},
  title   = {The Cost of Capital, Corporation Finance and the Theory of Investment},
  journal = {The American Economic Review},
  volume  = {48},
  pages   = {261-297}
}
thesis/ptpt/chapters/01-introduction-pt.tex · 480 B
\section{Tema e problema a investigar}
[Descreva o tema e a problematica.]
Como referencia inicial, ver \textcite{azevedo2000}.

\section{Objetivos e relevancia}
[Indique objetivos gerais e especificos, e justifique a relevancia.]

\section{Hipoteses ou perguntas de investigacao}
[Liste as hipoteses/perguntas a testar.]

\section{Limites do estudo}
[Delimite o ambito, periodo e restricoes.]

\section{Estrutura do trabalho}
[Apresente um resumo breve dos capitulos seguintes.]
thesis/ptpt/chapters/02-literature-pt.tex · 261 B
\section{Conceitos e enquadramento teorico}
[Apresente conceitos-chave e enquadramento.]

\section{Trabalhos relacionados}
[Discuta literatura relevante e principais contributos.]

\subsection{Sintese critica}
[Identifique lacunas e implicacoes para o estudo.]
thesis/ptpt/chapters/03-methodology-pt.tex · 333 B
\section{Desenho de investigacao}
[Explique o desenho e a abordagem metodologica.]

\section{Populacao e amostra}
[Defina a populacao, a amostra e o metodo de amostragem.]

\section{Instrumentos e recolha de dados}
[Descreva instrumentos e procedimentos.]

\section{Tecnicas de analise}
[Indique tecnicas de analise e justificacao.]
thesis/ptpt/chapters/04-results-pt.tex · 168 B
\section{Descricao dos resultados}
[Apresente resultados e procedimentos analiticos.]

\section{Tabelas e figuras}
[Apresente tabelas/figuras com referencia no texto.]
thesis/ptpt/chapters/05-discussion-pt.tex · 153 B
\section{Interpretacao dos resultados}
[Discuta os resultados e comparacoes com a literatura.]

\section{Limitacoes}
[Indique limitacoes e implicacoes.]
thesis/ptpt/chapters/06-conclusions-pt.tex · 132 B
\section{Sintese}
[Recapitule os principais resultados.]

\section{Recomendacoes}
[Indique recomendacoes e desenvolvimento futuro.]
thesis/ptpt/frontmatter/abbreviations-pt.tex · 430 B
\clearpage
\thispagestyle{plain}
\addcontentsline{toc}{chapter}{LISTA DE ABREVIATURAS}
\begin{center}
\MakeUppercase{LISTA DE ABREVIATURAS}
\end{center}
\begin{spacing}{1}
\setlength{\parskip}{0pt}
\begin{description}[style=nextline]
  \item[OCDE] Organizacao para a Cooperacao e o Desenvolvimento Economico
  \item[IDE] Investimento Direto Estrangeiro
  \item[I\&D] Investigacao e Desenvolvimento
\end{description}
\end{spacing}
thesis/ptpt/frontmatter/abstract-en.tex · 284 B
\clearpage
\thispagestyle{plain}
\begin{otherlanguage}{english}
\addcontentsline{toc}{chapter}{ABSTRACT}
\begin{center}
\MakeUppercase{ABSTRACT}
\end{center}
[Abstract in English, max 300 words.]

\noindent\textbf{Keywords:} keyword1; keyword2; keyword3; keyword4
\end{otherlanguage}
thesis/ptpt/frontmatter/abstract-pt.tex · 295 B
\clearpage
\thispagestyle{plain}
\begin{otherlanguage}{portuguese}
\addcontentsline{toc}{chapter}{RESUMO}
\begin{center}
\MakeUppercase{RESUMO}
\end{center}
[Resumo em portugues com ate 300 palavras.]

\noindent\textbf{Palavras-chave:} palavra1; palavra2; palavra3; palavra4
\end{otherlanguage}
thesis/ptpt/frontmatter/acknowledgements-pt.tex · 165 B
\clearpage
\thispagestyle{plain}
\addcontentsline{toc}{chapter}{AGRADECIMENTOS}
\begin{spacing}{1}
\setlength{\parskip}{0pt}
[Texto de agradecimentos]
\end{spacing}
thesis/ptpt/frontmatter/cover.tex · 415 B
\thispagestyle{empty}
\begin{center}
\vspace*{2cm}
{\Large\MakeUppercase{\thesisAuthor}\par}
\vfill
{\Large\bfseries\MakeUppercase{\thesisTitle}\par}
\if\relax\detokenize{\thesisSubtitle}\relax
\else
{\large\MakeUppercase{\thesisSubtitle}\par}
\fi
\vspace{\stretch{2}}
\ualglogo\par
\vspace{\stretch{0.20}}
{\MakeUppercase{\thesisUniversity}\par}
{\MakeUppercase{\thesisFaculty}\par}
{\thesisYear\par}
\end{center}
thesis/ptpt/frontmatter/declaration.tex · 1 KB
\clearpage
\thispagestyle{plain}
\begin{otherlanguage}{portuguese}
\addcontentsline{toc}{chapter}{DECLARACAO DE AUTORIA}
\begin{center}
\MakeUppercase{\thesisTitle}
\end{center}
\vspace{1cm}
\begin{center}
Declara\c{c}\~{a}o de autoria de trabalho
\end{center}
\vspace{1cm}
Declaro ser o(a) autor(a) deste trabalho, que \'{e} original e in\'{e}dito. Autores e trabalhos % chktex 36
consultados est\~{a}o devidamente citados no texto e constam da listagem de refer\^{e}ncias
inclu\'{\i}da.
\vspace{2cm}
\begin{center}
(\thesisAuthor)\\
\vspace{1cm}
\rule{6cm}{0.4pt}\\
(assinatura)
\end{center}
% For the digital PDF, do not add an autograph signature.
\end{otherlanguage}

\clearpage
\thispagestyle{plain}
\begin{otherlanguage}{portuguese}
\textcopyright\ Copyright: (\thesisAuthor).
A Universidade do Algarve reserva para si o direito, em conformidade com o disposto
no C\'{o}digo do Direito de Autor e dos Direitos Conexos, de arquivar, reproduzir e
publicar a obra, independentemente do meio utilizado, bem como de a divulgar
atrav\'{e}s de reposit\'{o}rios cient\'{\i}ficos e de admitir a sua c\'{o}pia e distribui\c{c}\~{a}o para fins
meramente educacionais ou de investiga\c{c}\~{a}o e n\~{a}o comerciais, conquanto seja dado o
devido cr\'{e}dito ao autor e editor respetivos.
\end{otherlanguage}
thesis/ptpt/frontmatter/dedication-pt.tex · 142 B
\clearpage
\thispagestyle{plain}
\addcontentsline{toc}{chapter}{DEDICATORIA}
\begin{center}
\vspace*{3cm}
[Texto da dedicatoria]
\end{center}
thesis/ptpt/frontmatter/errata-pt.tex · 401 B
\clearpage
\thispagestyle{plain}
\addcontentsline{toc}{chapter}{ERRATA}
\begin{center}
\MakeUppercase{ERRATA}
\end{center}
\begin{spacing}{1}
\setlength{\parskip}{0pt}
\begin{tabular}{p{0.2\textwidth}p{0.35\textwidth}p{0.35\textwidth}}
\toprule
\textbf{Local} & \textbf{Onde se le} & \textbf{Deve ler-se} \\
\midrule
l. X, para. Y, pag. Z &\ldots{}&\ldots{} \\
\bottomrule
\end{tabular}
\end{spacing}
thesis/ptpt/frontmatter/title-page-pt.tex · 493 B
\clearpage
\thispagestyle{plain}
\begin{center}
\vspace*{2cm}
{\Large\MakeUppercase{\thesisAuthor}\par}
\vfill
{\Large\bfseries\MakeUppercase{\thesisTitle}\par}
\if\relax\detokenize{\thesisSubtitle}\relax
\else
{\large\MakeUppercase{\thesisSubtitle}\par}
\fi
\vfill
{\thesisType\par}
{\thesisDegree\par}
\vfill
{Trabalho efetuado sob a orientacao de:\par}
{\thesisAdvisors\par}
\vfill
{\MakeUppercase{\thesisUniversity}\par}
{\MakeUppercase{\thesisFaculty}\par}
{\thesisYear\par}
\end{center}
thesis/ptpt/main.tex · 2 KB
\documentclass[12pt,a4paper]{report}

\usepackage{styles/fct-ualg-thesis}
\usepackage{csquotes}
\usepackage[backend=biber,style=authoryear,maxnames=99,minnames=99,giveninits=true,uniquename=init]{biblatex}
\addbibresource{bibliography/references.bib}

\input{metadata}

\begin{document}
\selectlanguage{portuguese}
\renewcommand{\ualgpagename}{P\'agina}
\pagenumbering{roman}

\input{frontmatter/cover}
\input{frontmatter/title-page-pt}
\input{frontmatter/declaration}

% Optional sections (uncomment if needed)
%\input{frontmatter/dedication-pt}
%\input{frontmatter/acknowledgements-pt}

\input{frontmatter/abstract-pt}
\input{frontmatter/abstract-en}

\renewcommand{\contentsname}{\'{I}NDICE GERAL}
\renewcommand{\listfigurename}{\'{I}NDICE DE FIGURAS}
\renewcommand{\listtablename}{\'{I}NDICE DE TABELAS}
\renewcommand{\bibname}{BIBLIOGRAFIA}

\ualgtableofcontents
\ifualghasfigures
\ualglistoffigures
\fi
\ifualghastables
\ualglistoftables
\fi
\input{frontmatter/abbreviations-pt}

% Optional errata (uncomment if needed)
%\input{frontmatter/errata-pt}

\clearpage
\pagenumbering{arabic}

\chapter{Introdu\c{c}\~{a}o}
\input{chapters/01-introduction-pt}

\chapter{Revis\~{a}o da Literatura}
\input{chapters/02-literature-pt}

\chapter{Metodologia}
\input{chapters/03-methodology-pt}

\chapter{Resultados}
\input{chapters/04-results-pt}

\chapter{Discuss\~{a}o}
\input{chapters/05-discussion-pt}

\chapter{Conclus\~{o}es}
\input{chapters/06-conclusions-pt}

\clearpage
\begin{spacing}{1}
\setlength{\parskip}{0pt}
\defbibheading{ualgbib}{\chapter*{BIBLIOGRAFIA}\addcontentsline{toc}{chapter}{BIBLIOGRAFIA}}
\printbibliography[heading=ualgbib]
\end{spacing}

\ualgappendixsetuppt
\input{backmatter/appendices-pt}

\ualgannexsetuppt
\input{backmatter/annexes-pt}

\end{document}
thesis/ptpt/metadata.tex · 659 B
% Metadados da tese (atualiza estes campos)
\newcommand{\thesisAuthor}{Nome completo}
\newcommand{\thesisTitle}{T\'{\i}tulo da tese}
\newcommand{\thesisSubtitle}{Subt\'{\i}tulo (opcional)}
\newcommand{\thesisType}{Disserta\c{c}\~ao / Projeto / Relat\'orio de Est\'agio}
\newcommand{\thesisDegree}{Mestrado em \ldots{}}
\newcommand{\thesisAdvisors}{Orientador: Nome completo\\Coorientador: Nome completo}
\newcommand{\thesisYear}{2026}
\newcommand{\thesisUniversity}{Universidade do Algarve}
\newcommand{\thesisFaculty}{Faculdade de Ci\^{e}ncias e Tecnologia}
\newcommand{\thesisLogoPath}{figures/ualg-emblem.jpg}
\newcommand{\thesisLogoWidth}{0.15\textwidth}
thesis/ptpt/styles/fct-ualg-thesis.sty · 5 KB
\ProvidesPackage{styles/fct-ualg-thesis}[2024/01/01 FCT UAlg thesis style]

\RequirePackage[T1]{fontenc}
\RequirePackage[utf8]{inputenc}
\RequirePackage[english,portuguese]{babel}
\RequirePackage{mathptmx}
\RequirePackage{graphicx}
\RequirePackage[a4paper,left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm]{geometry}
\RequirePackage{setspace}
\RequirePackage{titlesec}
\RequirePackage{fancyhdr}
\RequirePackage{caption}
\RequirePackage{etoolbox}
\RequirePackage{float}
\RequirePackage{enumitem}
\RequirePackage[hang,flushmargin]{footmisc}
\RequirePackage{amsmath}
\RequirePackage{chngcntr}
\RequirePackage{tocloft}
\RequirePackage{booktabs}
\RequirePackage{longtable}

% Line spacing and paragraph spacing
\onehalfspacing
\setlength{\parskip}{0pt}

% Page style: no header, page number in footer (center)
\pagestyle{fancy}
\fancyhf{}
\fancyfoot[C]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}

% Chapter/section formatting
\titleformat{\chapter}
  {\normalfont\bfseries\Large}
  {\chaptername\ \thechapter.}
  {1em}
  {\MakeUppercase}
\titleformat{\section}
  {\normalfont\bfseries}
  {\thesection}
  {1em}
  {}
\titleformat{\subsection}
  {\normalfont\bfseries}
  {\thesubsection}
  {1em}
  {}

% Captions and float placement
\captionsetup{font={small,stretch=1},labelfont=bf}
\floatstyle{plaintop}
\restylefloat{table}
\restylefloat{figure}
\addto\captionsenglish{%
  \renewcommand{\tablename}{Table}%
  \renewcommand{\figurename}{Figure}%
}
\addto\captionsportuguese{%
  \renewcommand{\tablename}{Tabela}%
  \renewcommand{\figurename}{Figura}%
}

% Lists (keep compact; line spacing remains controlled by setspace)
\setlist{itemsep=0pt, topsep=0.5\baselineskip}

% Footnotes: size 9-10, single-spaced
\renewcommand{\footnotesize}{\fontsize{9}{11}\selectfont}
\renewcommand{\footnotelayout}{\setstretch{1}}

% Track whether figures/tables exist for conditional lists (set via aux on next run)
\newif\ifualghasfigures
\newif\ifualghastables
\makeatletter
\newcommand{\ualgmarkcaption}{%
  \ifx\@captype\@undefined\else
    \ifstrequal{\@captype}{figure}{%
      \global\ualghasfigurestrue
      \protected@write\@auxout{}{\string\global\string\ualghasfigurestrue}%
    }{}%
    \ifstrequal{\@captype}{table}{%
      \global\ualghastablestrue
      \protected@write\@auxout{}{\string\global\string\ualghastablestrue}%
    }{}%
  \fi
}
\pretocmd{\caption}{\ualgmarkcaption}{}{}
\makeatother

% Equations: consecutive numbering across the document
\counterwithout{equation}{chapter}

% Figures/tables numbering by chapter
\counterwithin{figure}{chapter}
\counterwithin{table}{chapter}

% Names for lists and bibliography
\renewcommand{\contentsname}{TABLE OF CONTENTS}
\renewcommand{\listfigurename}{LIST OF FIGURES}
\renewcommand{\listtablename}{LIST OF TABLES}
\renewcommand{\bibname}{REFERENCES}

% Block quote for long citations (>3 lines)
\newenvironment{ualgblockquote}{
  \begin{list}{}{\setlength{\leftmargin}{1.5cm}\setlength{\rightmargin}{1.5cm}}
  \item\relax\singlespacing
}{\end{list}}

% Optional logo (fallback if file is missing)
\newcommand{\ualglogo}{%
  \IfFileExists{\thesisLogoPath}{%
    \includegraphics[width=\thesisLogoWidth]{\thesisLogoPath}%
  }{%
    \fbox{UAlg-FCT Logo}%
  }%
}

% Custom TOC/LOF/LOT with "Pagina" header and single spacing
\makeatletter
\newcommand{\ualgpagename}{Pagina}
\newcommand{\ualgtitleline}[1]{%
  \begin{center}\MakeUppercase{#1}\end{center}%
  \noindent\hfill \ualgpagename\par
}
\newcommand{\ualgtableofcontents}{%
  \clearpage
  \ualgtitleline{\contentsname}%
  {\singlespacing\setlength{\parskip}{0pt}\@starttoc{toc}}%
}
\newcommand{\ualglistoffigures}{%
  \clearpage
  \ualgtitleline{\listfigurename}%
  \addcontentsline{toc}{chapter}{\listfigurename}%
  {\singlespacing\setlength{\parskip}{0pt}\@starttoc{lof}}%
}
\newcommand{\ualglistoftables}{%
  \clearpage
  \ualgtitleline{\listtablename}%
  \addcontentsline{toc}{chapter}{\listtablename}%
  {\singlespacing\setlength{\parskip}{0pt}\@starttoc{lot}}%
}
\makeatother

% Appendix/annex helpers
\newcommand{\ualgappendixsetup}{%
  \appendix
  \renewcommand{\chaptername}{Appendix}%
  \renewcommand{\appendixname}{Appendix}%
  \renewcommand{\thechapter}{\arabic{chapter}}%
}
\newcommand{\ualgappendixsetuppt}{%
  \appendix
  \renewcommand{\chaptername}{Apendice}%
  \renewcommand{\appendixname}{Apendice}%
  \renewcommand{\thechapter}{\arabic{chapter}}%
}
\newcommand{\ualgannexsetup}{%
  \setcounter{chapter}{0}%
  \renewcommand{\chaptername}{Annex}%
  \renewcommand{\appendixname}{Annex}%
  \makeatletter\renewcommand{\@chapapp}{Annex}\makeatother%
  \renewcommand{\thechapter}{\Alph{chapter}}%
}
\newcommand{\ualgannexsetuppt}{%
  \setcounter{chapter}{0}%
  \renewcommand{\chaptername}{Anexo}%
  \renewcommand{\appendixname}{Anexo}%
  \makeatletter\renewcommand{\@chapapp}{Anexo}\makeatother%
  \renewcommand{\thechapter}{\Alph{chapter}}%
}

The first page, as this template compiles today. Click it to enlarge, and again to shrink. Open the file ↗