Translate R Expressions to 'MathML' and 'LaTeX'/'MathJax'


[Up] [Top]

Documentation for package ‘mathml’ version 0.5

Help Pages

%+-% Plus Minus, it shows x and calculates x +- y
%->% Right arrow, presented as x -> y
%.% Product x * y, shown as x dot y
%<-% Left arrow, presented as x <- y
%<->% Double sided arrow, presented as x <-> y
%<=% Right double arrow, displayed as x => y
%<=>% If and only if condition, displayed as x <=> y
%==% Equivalence, shown as x == y
%=>% Left double arrow, displayed as x <= y
%=~% Congruence, shown as x =~ y
%dbldown% Down double arrow, displayed as x dArr y
%dblup% Up double arrow, displayed as x uArr y
%down% Down arrow, presented as x downarrow y
%prop% Proportional, shown as x prop y
%up% Up arrow, presented as x up y
%~~% Approximate equality, shown as x ~~ y
add add
add_left add_left
add_right add_right
cal Calligraphic font
canonical Canonicalize an R call: Reorder the function arguments
denote denote This is a function that allows the user to insert abbreviations in the formula, explain them and make the needed computations
dfrac Division displayed as large fraction
dot Multiplication
fname Return function body
frac Division displayed as fraction
hook Hook for custom symbols
instead instead
mathjax Mathjax output
mathml MathML output
mathml_preproc Map R operators to their respective Prolog counterparts
name Add a name attribute to an element (most often, an R function)
nodot Multiplication
omit omit
omit_left omit_left This is a function that allows the user to highlight the mistakes, in particular the omissions in the left-hand side of the expression
omit_right omit_right This is a function that allows the user to highlight the mistakes, in particular the omissions in the right-hand side of the expression
over Division displayed as fraction
subscript Subscript. On the R side, this function is a wrapper of identity, but allows for decorations.
subsupscript Subsupscript. This is a wrapper for the identity function, but decorates the result with a sub- and a superscript.
superscript Superscript. This is a wrapper for the identity function, but decorates the result with a superscript.
times Multiplication