I want to change the fonts for the title and headings of my document (rendering .rmd to pdf using latex engine xelatex). When trying to render, I keep getting the error:
even though \titlefont is called only once. I checked the log file and \titlefont only appears once, which is where the log lists the above error. I tried commenting out all other commands to try and isolate the problem, nothing worked.