| normalize_mathquill | R Documentation |
Converts the Unicode characters commonly emitted by visual formula editors
(MathQuill, embedded in many learning platforms) or by plain keyboard input
into the LaTeX commands understood by latex2r().
normalize_mathquill(x)
x |
string |
Minus signs and dashes become -, the multiplication and division symbols
become \times, \cdot and /, Greek letters become the corresponding
LaTeX commands, and accented vowels become \bar{}, \tilde{} or
\hat{} (or their base letter when the accent has no meaning here).
This function is applied automatically by latex2r() before scanning, but
it is exported so callers can inspect the normalized version of a formula.
string
normalize_mathquill("×")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.