Skip to content

Why do I get an error when rendering with Typst on macOS? #11680

Answered by cderv
cbrnr asked this question in Q&A
Discussion options

You must be logged in to vote

Setting format: pdf works fine, so I'm not sure how to test this with RMarkdown. I agree that it might have to do with knitr, but maybe it's because Quarto uses knitr incorrectly?

This is a matter of graphic device.

  • format: pdf sets for knitr dev = 'pdf' which means grDevices::pdf() will be used.
  • format: typst sets for knitr dev = 'svg' which means grDevices::svg will be used.

Now in R, from ?grDevices::svg, see the note

In principle these devices are independent of X11 (as is seen by their presence on Windows). But on a Unix-alike the cairo libraries may be distributed as part of the X11 system and hence that (for example, on macOS, XQuartz) may need to be installed.

This is why yo…

Replies: 2 comments 25 replies

Comment options

You must be logged in to vote
25 replies
@mcanouil
Comment options

@cbrnr
Comment options

@mcanouil
Comment options

@cderv
Comment options

Answer selected by cbrnr
@cbrnr
Comment options

@cderv
Comment options

@cbrnr
Comment options

@cderv
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants