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

Quarto Support #64

Open
cttnguyen opened this issue Dec 7, 2022 · 1 comment
Open

Quarto Support #64

cttnguyen opened this issue Dec 7, 2022 · 1 comment

Comments

@cttnguyen
Copy link

Thanks for the really useful package. I'm running into some problems when trying to use showtext with Quarto.

I'm familiar with using fig.showtext = TRUE in rmarkdown code chunks and fig_retina = 1 for html output, but how can the same be specified for Quarto?

Also is there a way to set fig.showtext for all code blocks?

@grantmcdermott
Copy link

grantmcdermott commented Jul 30, 2023

The following YAML option works for me:

knitr:
  opts_knit:
    fig.showtext: true

P.S. If you're using base R plots, then I would recommend adding global.par: true (or maybe global.device: true) to opts_knit so that any font family set in par persists over the full document. (See here.)

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