How to get inline preview of numbered math equations using \begin{equation}

RStudio IDE supports inline/tool mathjax equation previews of equations using $ or $$ syntax for RMarkdown documents, e.g.

a^2+b^2=c^2

However, if I want numbered labeled equations in bookdown I need to use LaTeX equation syntax

\begin{equation}
a^2+b^2=c^2 \label{eq:pythagoras}
\end{equation}

(Typically actually \begin{align})
These are not, AFAICT, previewable. This is vexing because it is precisely these equations which are likely to be complex enough to need preview.

Is this feature on the RStudio roadmap? Or is it perhaps already in there and I just haven't noticed where?

1 Like

I think this is the first time we've heard this request -- would you mind filing this as a feature request at https://github.com/rstudio/rstudio/issues, so we don't lose track of it?

2 Likes

Thanks! Consider the issue open.

I wonder if yihui or the other RMarkdown folks have a workaround?

Or, to turn this idea around, I wonder if it would be a useful feature for knitr/latex documents to also offer preview of the equations in RStudio IDE, i.e. support LaTeX equations in LaTeX documents even.

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