Displaying 2 results from an estimated 2 matches for "mjdeqn".
Did you mean:
deqn
2020 May 05
1
Use of MathJax (or something similar) in .Rd files
...t 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: Thursday, 30 April, 2020 15:58
>To: Viechtbauer, Wolfgang (SP); r-de...
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