7 Formatting for a thesis or article
7.1 Formatting for a thesis
We have made a quarto Masters thesis template that you can download and use. It takes care of formatting the thesis’ cover page which otherwise would need you to know some LaTeX.
7.2 Journal-specific formatting
Manuscript templates have been developed for some publisher’s journals. To use a template, run this code in the RStudio Terminal (Not the console), changing the publisher name as necessary for one on this list of the available templates, and follow the instructions.
quarto use template quarto-journals/plos
This will download the journal template and make a qmd file with the YAML set up. Edit this file so it becomes your manuscript. Render as usual to produce the PDF and the tex file that you might need for submission. You can read more about journal formats in the Quarto guide.
7.3 Line numbers
If you are creating a PDF, you can include line numbers by adding a header-includes section to the YAML.
---
title: "My Manuscript"
format: pdf
header-includes:
- \usepackage{lineno}
- \linenumbers
---
Other LaTeX packages can be added in a similar way to add extra functionality, for example, pages in landscape.