How to access MathJax extensions (like siunitx) from Rmarkdown via Pandoc & Knitr?
问题 Working with Rmarkdown in Rstudio , using pandoc and knitr , I am targetting PDF output via LaTeX and HTML output with MathJax . I would like to use some of the MathJax extensions that are available, to allow richer LaTeX for the PDF target. Specifically, I am trying to use the siunitx extension right now, although I am also interested in others (e.g. physics ). Using siunitx works fine with LaTeX for PDF output, but I've had a hard time getting it working with HTML output. Here an example