title: Convert a LaTex formula to a type that can be used inside SymPy
body: <p>I want to parse LaTeX formulas and directly use them as SymPy expressions. In other words, what I need is something similar to sympify:</p>
  
  <pre><code>from sympy import sympify
  f = sympify('x^2 + sin(y) + 1/2')
  print f
  </code></pre>
  
  <p>but that can take LaTeX expressions (strings) as input, for example:</p>
  
  <pre><code>f = latex_sympify('\frac{x}{1+x}')
  </code></pre>
  
  <p>Given that sympify is able to convert a string with a regular mathematical expression into a SymPy object, if there is anything that can convert LaTeX into a regular mathematical expression, I guess that would do the trick---but I would prefer to do everything within Python.</p>
  
  <p>Any suggestions will be much appreciated.</p>