vscode-R icon indicating copy to clipboard operation
vscode-R copied to clipboard

Latex rendering on helppages

Open LGraz opened this issue 2 years ago • 5 comments
trafficstars

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: image

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

R-Studio renders it nicely: image

I think many users will appreciate this :smile:

LGraz avatar May 08 '23 13:05 LGraz

Thanks for reporting. I could reproduce the problem.

Does equations in ?rnorm render properly?

image

renkun-ken avatar May 08 '23 14:05 renkun-ken

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).

LGraz avatar May 08 '23 23:05 LGraz

@ManuelHentschel Any thoughts on how we could make help pages render it correctly?

renkun-ken avatar May 11 '23 13:05 renkun-ken

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.

ManuelHentschel avatar May 15 '23 20:05 ManuelHentschel

This issue is stale because it has been open for 365 days with no activity.

github-actions[bot] avatar May 15 '24 01:05 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar May 29 '24 01:05 github-actions[bot]