File: withMathJax.Rd

package info (click to toggle)
r-cran-shiny 1.5.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 8,224 kB
  • sloc: javascript: 17,081; sh: 28; makefile: 21
file content (23 lines) | stat: -rw-r--r-- 831 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shinyui.R
\name{withMathJax}
\alias{withMathJax}
\title{Load the MathJax library and typeset math expressions}
\usage{
withMathJax(...)
}
\arguments{
\item{...}{any HTML elements to apply MathJax to}
}
\description{
This function adds MathJax to the page and typeset the math expressions (if
found) in the content \code{...}. It only needs to be called once in an app
unless the content is rendered \emph{after} the page is loaded, e.g. via
\code{\link[=renderUI]{renderUI()}}, in which case we have to call it explicitly every
time we write math expressions to the output.
}
\examples{
withMathJax(helpText("Some math here $$\\\\alpha+\\\\beta$$"))
# now we can just write "static" content without withMathJax()
div("more math here $$\\\\sqrt{2}$$")
}