The input
ToExpression["\\sqrt{x y}", TeXForm]
gives me the $Failed output.
Maybe my very old computer is the problem, but that's the only command that has caused me problems, and that input is from the tutorials.
|
The input
gives me the Maybe my very old computer is the problem, but that's the only command that has caused me problems, and that input is from the tutorials. |
||||
|
Edit An updated version of this answer is here. I forgot that there was some duplication when I posted the linked answer, but the material in that answer is more recent so I'll update that one and leave this post unchanged. End edit The conversion from $\LaTeX$ in general is rather quirky, but I don't see a failure of the kind you see. However, there is in fact something wrong: The $\LaTeX$ syntax you're entering is completely valid and it should be interpreted as the square root of the product of two variables, So there is really a bug in how products are interpreted. The work-around is to put thin spaces in your $\LaTeX$ code explicitly, as in
Now the question still is why your conversion failed. My only explanation for that would be that before executing the Edit To expand a little on the quirks of $\LaTeX$-to-Mathematica conversion, here are some more points to watch out for:
I copied this list from this my web page where I also collected some notes on the reverse process of getting equations out of Mathematica. Edit 2 A comment by RM below brings to mind another point that is related more to $\LaTeX$: some novice authors write lazy expressions like Not knowing this feature, you may think that Mathematica has every right to interpret |
|||||||||||||
|
Syntax::stresc: Unknown string escape \s.. – Verbeia♦ Mar 10 '12 at 23:20Sqrt[xy]— not quite correct, but better than just$Failed. However when entered directly to the kernel, for some strange reason it complains if there's no X display ... (Can't open display ":0.0"). – celtschk Mar 10 '12 at 23:20