Debian Codegraph @

man/withMathJax.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/shinyui.R
3 \name{withMathJax}
4 \alias{withMathJax}
5 \title{Load the MathJax library and typeset math expressions}
6 \usage{
7 withMathJax(...)
8 }
9 \arguments{
10 \item{...}{any HTML elements to apply MathJax to}
11 }
12 \description{
13 This function adds MathJax to the page and typeset the math expressions (if
14 found) in the content \code{...}. It only needs to be called once in an app
15 unless the content is rendered \emph{after} the page is loaded, e.g. via
16 \code{\link[=renderUI]{renderUI()}}, in which case we have to call it explicitly every
17 time we write math expressions to the output.
18 }
19 \examples{
20 withMathJax(helpText("Some math here $$\\\\alpha+\\\\beta$$"))
21 # now we can just write "static" content without withMathJax()
22 div("more math here $$\\\\sqrt{2}$$")
23 }