from sympy import * x, alpha = symbols('x alpha') latex(alpha/x) Out[1]: '\\frac{\\alpha}{x}'
This does not work in latex. What am I doing to get the correct conclusion, i.e.: '\ frac {\ alpha} {x}'?
This is the correct conclusion ( reprin this case, print some characters, \). Try to print it.
repr
\
>>> x = '\\frac{\\alpha}{x}' >>> x '\\frac{\\alpha}{x}' >>> print(x) \frac{\alpha}{x}
Got it!
Record:
print latex(alpha/x) \frac{\alpha}{x}
Sorry to bother you guys!
Source: https://habr.com/ru/post/1527526/More articles:numpy.i is missing. What is the recommended way to install it? - pythonAsk the dispatcher to send a response without a Content-Type header - ruby-on-railsWhich loops should be parallelized, external or internal - c ++Xcode Toolkit Generation - iosGet variable name with highest number from Python 3.3.4 list - pythonPHP gets the largest number of three variables - phpHow to convert String to Drawable - androidWhat is the correct way to use the android.text.format.DateFormat.format method - androidjQuery selector all identifiers that are integers - javascriptSVG height element not dynamic? - htmlAll Articles