TeX(r"(\alpha + \beta)")) (fixes #45).TeX(r"($^{18}$ O)") (e.g. a free-standing superscript or subscript) would not render.TeX(r"(a \,\, b)")) (fixes issue #40)=, <, >, \ge, \le) (fixes issue #38)TeX("") returns expression('') (an empty expression of length 1) (fixes issue #40)vignette("supported-commands", package = "latex2exp").\Upsilon and \varpi for Greek letter variants\uparrow, \downarrow, \Uparrow, \Downarrow, \to\euro for the euro character\langle, \rangle for angle bracket (supported in R 4.1)\lceil, \rceil, \lfloor, \rfloor for ceil/floor brackets\| for double-pipe brackets (\norm{expr} is an alternative command for typesetting a vector norm).\bra, \ket, \braket for representing vectors with the braket notation\smiley, \diamond, \sharp, \eightnote, \twonotes, \sun, \venus, \mars, \Exclam, \dagger, \ddagger, \(up|down|right|left)triangleTeX(r"($\alpha(\beta)$)") now renders more similarly to how plotmath renders the expression alpha(beta).,, ' and '' in math mode.\frac fractions. Now a small space is inserted after the fraction, so that multiple fractions are separated.\lceil, \rceil, \lfloor, \rfloor)TeX("$\\left(\\frac{M}{L}\\right.$"))TeX(r'($\alpha^\beta$)') rather than TeX('\\alpha^\\beta))bold and italic to TeX(). These can be used to make the entire expression bold or italic.\phantom{} (PR)latex2exp() function; use TeX() instead.\lbrack and \rbrack to type left and right square brackets.Fixes bug #4 (“fix parsing of numbers”), where certain numbers inside formulas where not parsed correctly.
Fixes bug #3 (“subscript and superscript style”). latex2exp now renders combined subscripts and superscripts correctly.
Fixes bug #2 (white space causes unexpected behaviour). latex2exp should now be a bit more compliant with how LaTeX handles whitespace.
latex2exp is now a proper package.
Formulas must now be enclosed between dollar characters ($), as in LaTeX proper. Text does not need to be enclosed in \text tags anymore.