vscode-R
vscode-R copied to clipboard
Latex rendering on helppages
Thanks very much for this wonderful extension :heart:
Latex-style equations appear on many help pages. Here I consider the example ?metafor::rma help page:

Even the R-Terminal does a better job (interpreting "( ... )" and "[ .... ]" correctly and removing it):

R-Studio renders it nicely:

I think many users will appreciate this :smile:
Thanks for reporting. I could reproduce the problem.
Does equations in ?rnorm render properly?
Thanks for your reproducing.
?rnorm renders fine.
looking at the source of the man-page of rnorm one sees that the math is encoded with \deqn{ ...math...} instead of \[ ...math \] (or \eqn{ ...inline-math...} instead \( ...inline-math... \) respectively).
@ManuelHentschel Any thoughts on how we could make help pages render it correctly?
That package seems to be using mathjaxr to render equations, which does not work in the help viewer because the corresponding javascript is not loaded/run.
This issue is stale because it has been open for 365 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.