Quarto slow when cache: true

Glad it works !

Just to clarify, you can use pdflatex also with latex-auto-mk: true - not need to opt out. Only opt out if you don't want auto-install of packages for example.

If there is an issue with latex-auto-mk: true, I'll be interesting to know!

Also look at how to format full code content for next time

FAQ: How to Format R Markdown Source