fromLaTex("1 \\cdot 2") returns 2 There is also a small problem with \\cdot tag. fromLaTex("3\\cdot2") returns 3 (need to add blank spaces around \\cdot to parse correctly)