Permanently change math renderer of Quarto Presentation

I am using the latest release of RStudio (2023.12.1+422) on an M1 Mac with macOS 14.3.1. I have the following simple Quarto presentation:

---
title: "PSY9511: Seminar 4"
format: revealjs
---

## Ridge Regression

Recall linear regression

$$y = \beta_{0} + \sum_{j=1}^{p} x_{j} \beta_{j} + \epsilon$$

Estimates $\hat{\beta}_{j}$ obtained by minimizing

$$\text{RSS} = \sum_{i=1}^{n}\left(y_{i} - \beta_{0} - \sum_{j=1}^{p} x_{ij}\beta_{j}\right)^{2}$$

When I render it, and show the output in the Presentation tab in RStudio, the math is visible, but not as nice as one would expect. I have figured out that I can fix this by right-clicking one of the equations, and then Math Settings --> Math Renderer and then choosing "Common HTML" instead of the default with is "HTML-CSS". Then it works fine, but whenever I recompile the presentation the math renderer jumps back to "HTML-CSS", and the math does not look nice anymore. See attached screenshot.

My question is: Is there a way I can permanently set the math renderer to "Common HTML" in the RStudio viewer?

I believe this needs to be set by configuring MathJax : MathJax Output Formats — MathJax 3.2 documentation

I think it should be possible, but it may require updating of the default in the revealjs format

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.