I am creating a short report with quarto in rstudio, rendering it to pdf. I use the quarto titlepages extension to create a title page with a logo and a background image. I can get everything to work except for the size of the title font.
I've been searching in the web for hours, and trying all approaches I could think off, but the font size of the title never changes...can someone give me a hint on what I am doing wrong?
This is my YAML:
---
title: "Effect of treatment on the species 1"
author: "Author 1 and Author 2"
date: ' `r paste("Date:",Sys.Date())`'
lang: gl
format:
titlepage-pdf:
documentclass: scrbook
titlepage: plain
titlepage-geometry:
- top=70mm
- bottom=30mm
- right=30mm
- left=30mm
titlepage-logo: "images/circularNegro.png"
titlepage-bg-image: "images/OsTres.png"
titlepage-theme:
elements: ["\\titleblock", "\\logoblock", "\\authorblock", "(biólogos colexiados)" ]
page-fontfamily: "Helvetica Neue"
page-align: center
title-fontsize: 30
title-align: center
title-space-after: 3cm
author-fontsize: 16
author-style: plain
logo-align: center
logo-size: 4cm
logo-space-after: 1cm
bg-image-location: "ULCorner"
bg-image-size: 21cm
pdf:
# Fonts
mainfont: Helvetica Neue
fontsize: 12pt
papersize: A4
margin-top: 25mm
margin-bottom: 25mm
margin-left: 25mm
margin-right: 25mm
toc: true
toc-depth: 2
toc-title: Táboa de contidos
editor: visual
---
I tried with title-fontsize: 30 and with title-style: "large" but none of them would change the font size. I also tried changing the document class from article, to scrartcl and scrbook. I did also simplify all the YAML and even remove completely the format: pdf: section of it, but title font size did never change. I finally tried to define title font size with CSS (which I do not know) by including the following chunk after the YAML (based on this question Change title size and color in Quarto (html output)):
```{css, echo=FALSE}
.title {
font-size: 24px;
font-family: "Helvetica Neue";
}
```
When I do that I get the following error:
Unable to locate an installed version of Python 3.