wjschne / apaquarto

A quarto extension for creating APA7 documents in .docx, .html, and .pdf formats
https://wjschne.github.io/apaquarto/
Creative Commons Zero v1.0 Universal
170 stars 15 forks source link

ussing a different fon than Times Roman #98

Open JensBoelte opened 1 week ago

JensBoelte commented 1 week ago

Hello

I did not manage to change the font from Times Roman to Calibri or Arial by using mainfont. I inserted the font specification at the top-level or under the apaquatro-key.

format:
  apaquarto-html:
    fontsize: 11pt
    mainfont: "Calibri"
  apaquarto-docx:
    mainfont: "Calibri"
    fontsize: 11pt

Interestingly, the reference section

{6EE8EA1F-CFEB-4140-8FAF-66ECC2A2CD7A}

and the TOC on the left-hand side of the html document are set in Calibri and not Times Roman.

{29D76120-6D12-48EB-9D3E-50443BB79D7E}

Any idea how I can get the main text including headings etc. in the same font as the references?

I am using quarto-version 1.5.57 from RStudio.

Thanks in advance.

Best wishes Jens

wjschne commented 1 week ago

For the html, I think I have it fixed. For docx, however, Quarto does not support the mainfont option. We would need to change the reference docx styles. You can do that manually by changing the default font in the _extentions/apaquarto/apaquarto.docx file. Recent changes in Pandoc might make it possible to make style changes in docx more easily, but I am not yet sure how to do it.