Displaying 2 results from an estimated 2 matches for "loadmathjax".
2020 May 05
1
Use of MathJax (or something similar) in .Rd files
...in Rd files. The package has been submitted to CRAN, but those who want to try this out already can get it here:
https://github.com/wviechtb/mathjaxr
or in other words:
install.packages("remotes")
remotes::install_github("wviechtb/mathjaxr")
Package authors can then use the \loadmathjax macro to enable its use and the \mjeqn{latex}{ascii} and \mjdeqn{latex}{ascii} macros for including inline and displayed equations.
Feedback and suggestions more than welcome!
Best,
Wolfgang
>-----Original Message-----
>From: Ravi Varadhan [mailto:ravi.varadhan at jhu.edu]
>Sent: Thursd...
2020 Apr 30
2
Use of MathJax (or something similar) in .Rd files
Thanks Gabor and Duncan! It works. For those interested, I added this to the beginning of the \details{} section:
\if{html}{\out{
<script id="MathJax-script" async
src="https://cdn.jsdelivr.net/npm/mathjax at 3/es5/tex-mml-chtml.js">
</script>
}}
And then I can use:
\if{html}{\out{\(B_{x(a,b)} = \int_0^x t^{a-1} (1-t)^{b-1} dt\)}}
or