This Quarto extension provides a template and format for doctoral dissertations at Universitat Pompeu Fabra (UPF).
See a rendered example here.
This template follows the structure and formatting guidelines listed by Guies BibTIC:
For now, only the PDF output in B5 (recommended by UPF) is available. If you want to contribute extending this template and formatting to Microsoft Word and Open Document output formats, do not hesitate to contact me, aor to open an issue or pull request. Any other contributions are also welcome! :rocket:
:bulb: This template does not generate the cover of the book. You must request it separately opening a CAU
Quarto needs to be 1.3.0 or higher. I also recommend an updated version of MikTeX complications during compilation.
quarto use template gongcastro/upfthesis
This will install the extension and create an set up the structure of the project. If you are used to working from RStudio, I recommend you create a new project in this same folder.
The downloaded directory contains several sub-directories and files:
.qmd
) files with the body of the thesis. Each section embedded in a different file. The chapters included are based on the Theses: Parts and content section of the Guies BibTIC UPF website. Some of these sections might not be required. If so, you may keep them from being included in the rendered output by removing them from the _quarto.yml file (chapters:
) section. For example, here I am commenting out the Glossary section, which is not required:chapters:
- index.qmd
- chapters/01-introduction.qmd
- chapters/02-chapter-1.qmd
- chapters/03-chapter-2.qmd
- chapters/04-discussion.qmd
- chapters/05-bibliography.qmd
#- chapters/06-glossary.qmd
:bulb: Note that the numeric prefix in each
.qmd
file is only there for convenience: the order in which the files appear in the rendered output is determined by the order in which they appear inchapters:
. Also, you may place these files wherever you want in the directory (e.g., in the base directory), as long as you indicate their right paths inchapters:
.
.qmd
files will look for the images (and any other refered resource) in the same folder they are located. In this template repository, the .qmd
files are locating in the chapters/
folder, so images are found in the parent directory using double dots ../img/image.png
.:bulb: You may create as many folders as you find convenient to store files that will be used in your dissertation. The img/ folder is one of those folders you may delete or rename. Just remember to change the file paths referring to the affected files accordingly.
chapters:
in the _quarto.yml
file..bib
document or your .bib
document is named differently, you can do the appropriate changes in the _quarto.yml
file. For instance, this is how you can indicate more than one .bib
file:bibliography:
- references.bib
- other-references.bib
To render your dissertation to a PDF, you can use the Quarto command line in your console (Command Prompt/Power Shell in Windows, Terminal in MacOS, and command line in Linux):
quarto render
This will render the thesis in PDF and Word formats by default. You can control in which format the theris is rendered this way:
quarto render --to upfthesis-pdf
If you don't want to render the thesis is either document ever, you can change the default behaviour in the _quarto.yml
file, by changing:
format:
upfthesis-pdf: default
upfthesis-docx: default
To:
format:
upfthesis-pdf: default
\blandscape
and \elandscape
commands (from the lscape
LaTeX package) to flip pages to landscape mode. This wway some figures or tables may take more space and be easier to read. This is especially convenient for B5 format.logo.png
file in the main directory with the official logo in colour.