This makes use of `AsciiMathML`

javascript functions. Standard LaTeX input will be turned into MathML and displayed through any brower extension that can handle MathML (such as MathPlayer)

1 2 3 4 |

`x` |
String containing mathematics in a LaTeX notation |

`file` |
HTML target output file |

`label` |
String - Label to be displayed before the equation |

`inline` |
Boolean - Place of the equation within the output flux - see details |

`count` |
Boolean - Should the equation be numbered or not? |

`...` |
... |

Mathematical notations will be translated in MathML by the `AsciiMathML`

javascript program of Peter Jipsen. Note that his functions allow translating equations with a notation simpler than LaTeX (see his page on `AsciiMathML`

for details). Pieces of LaTeX could be put *inline* (within text) or on a single line : same opposition that the one between $...$ and $$...$$. In order to work, a reference to the javascipt file has to be present within the HTML file **and** the HTML body tag has also to include `onload="translate()"`

. All the necessary stuff is included in `HTMLInitFile`

.

no value returned.

Eric Lecoutre

AsciiMathML: http://www1.chapman.edu/~jipsen/mathml/asciimath.xml

1 2 3 4 5 6 7 8 9 10 11 12 13 | ```
## Not run:
fic = HTMLInitFile()
HTML.title("sample page",1,file=fic)
HTML("First paragraph",file=fic)
cat("Some text and then an equation:",file=fic,append=TRUE)
HTML(as.latex("\int_{-\infty}^{1}f(x)dx") ,file=fic)
cat(". Nice isn't it?",file=fic,append=TRUE)
HTML(as.latex("\int_{-\infty}^{1}f(x)dx",inline=FALSE) ,file=fic)
HTML(as.latex("\int_{-\infty}^{1}f(x)dx",inline=FALSE,count=TRUE) ,file=fic)
HTML(as.latex("\int_{-\infty}^{1}f(x)dx",inline=FALSE,label="My equation") ,file=fic)
cat("file:", fic, "is created")
browseURL(fic)
## End(Not run)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.