Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ussing a different fon than Times Roman #98

Open
JensBoelte opened this issue Nov 21, 2024 · 1 comment
Open

ussing a different fon than Times Roman #98

JensBoelte opened this issue Nov 21, 2024 · 1 comment

Comments

@JensBoelte
Copy link

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
Copy link
Owner

wjschne commented Nov 22, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants