Re: [R-pkg-devel] RES: MathJax for Rd files

2020-05-13 Thread Viechtbauer, Wolfgang (SP)
20:31 >To: Viechtbauer, Wolfgang (SP); 'Duncan Murdoch'; r-package-devel@r- >project.org >Subject: RES: [R-pkg-devel] RES: MathJax for Rd files > >Thank you so much! It works! >In my example, I've created a simple helper function, preview_rd() > >pre

Re: [R-pkg-devel] RES: MathJax for Rd files

2020-05-13 Thread Viechtbauer, Wolfgang (SP)
tz'; r- >package-de...@r-project.org >Subject: Re: [R-pkg-devel] RES: MathJax for Rd files > >On 13/05/2020 12:35 p.m., Tiago Olivoto wrote: >> Thanks, Wolfgang and Helmut for the explanations. >> When I was trying to use >> >> #'\if{html}{\ou

Re: [R-pkg-devel] RES: MathJax for Rd files

2020-05-13 Thread Duncan Murdoch
On 13/05/2020 12:35 p.m., Tiago Olivoto wrote: Thanks, Wolfgang and Helmut for the explanations. When I was trying to use #'\if{html}{\out{'https://cdn.jsdelivr.net/npm/mathjax@3.0.5/es5/tex-chtml-full.js #' }} #' #'And then typing #' \ifelse{html}{\out{\[\sqrt{a^2}\]}}{\deqn{\sqrt{a^2}}} My

[R-pkg-devel] RES: MathJax for Rd files

2020-05-13 Thread Tiago Olivoto
Thanks, Wolfgang and Helmut for the explanations. When I was trying to use #'\if{html}{\out{'https://cdn.jsdelivr.net/npm/mathjax@3.0.5/es5/tex-chtml-full.js #' }} #' #'And then typing #' \ifelse{html}{\out{\[\sqrt{a^2}\]}}{\deqn{\sqrt{a^2}}} My mgidi.Rd file was produced with devtools::docume

[R-pkg-devel] RES: MathJax for Rd files

2020-05-13 Thread Tiago Olivoto
Dear Wolfgang, Thank you so much for the awesome package I've installed mathjaxr and it worked. I have some more questions, with a short example bellow I created an equation in my mgidi.R file as follows #' \loadmathjax #' \mjsdeqn{MGIDI_i = \sum\limits_{j = 1}^f} And then I ran devtools::documen