Highlight LateX Code Math Environment within R Studio using Sweave and .RNW File

42 Views Asked by At

When creating a pdf involving LateX and R code in Rstudio, is it possible to have LaTeX code highlighted whenever a math environment is created?

I am frequently having errors from unmatched $ symbols and the debugger doesn't make them easy to find. I would like the appearance of the code within a .RNW file in R studio to emphasize whether or not I have closed math mode when writing LateX code.

This question from over three years ago is similar

Syntax highlighting for LaTeX code in RStudio

and remains unanswered. However that question references a tool through a link that no longer works, and is regarding Bookdown, which I am not interested in currently.

0

There are 0 best solutions below