sympy/sympy — pull request #2752 by asmeurer (2014-01-12 01:17:48+00:00)
Title: Underscore escaped in latex with \operatorname

A previous pull request https://github.com/sympy/sympy/pull/996 breaks my usage of sympy in the IPython notebook. To get nice readable math with MathJax I use Latex symbol names, which works really well everywhere except when a symbol with a subscript is used as a function name

The code

```python
a1, x = sympy.symbols(r'\alpha_1 x')
display(a1)
display(a1(x))
```

produces

```latex
\alpha_{1}
\operatorname{\alpha\_1}{\left (x \right )}
```

The escaped underscore breaks the user experience and makes the equations look bad. I understand that my use case is hard to combine with whatever the original pull request code's author did. Can this be made configurable? Or perhaps prefer the way that makes usage of Latex nicer? The pull request author could have put the backslash in the symbol name to avoid the problem, while it is now impossible to fix for my use case ...