latexify_py icon indicating copy to clipboard operation
latexify_py copied to clipboard

Ability to get latex without getting function name

Open MAKMED1337 opened this issue 2 years ago • 1 comments

import latexify
def solve(a):
	return 5 * a
print(latexify.get_latex(solve, no_function=True))

to be 5a, not \mathrm{solve}(a) \triangleq 5a

i think it's better to create another function not parameter or set by default

MAKMED1337 avatar Oct 19 '22 15:10 MAKMED1337

(EDIT: as for the new function names) Using latexify.expression or something similar would be good. I also guess that the current function names with_latex and get_latex is weird a little; possibly we can redefine it as latexify.equation (but we also need to keep the current functions for a while, for backward compatibility).

odashi avatar Oct 20 '22 06:10 odashi