google/latexify_py

math.pow not working properly on google colab

Yeaseen opened this issue · 3 comments

Environment

If you used latexify on the browser, fill the following items.

  • Browser: Google Chrome Version 120.0.6099.62 (Official Build) (arm64)
  • Frontend: Google Colaboratory

If you used latexify in your own environment, fill in at least the following items.
Feel free to add other items if you think they are useful.

  • Python: Python 3.10.12
  • Package manager: pip 23.1.2
  • Latexify version: 0.4.2

Description

In my book, math.pow can't be perfectly read by latexify. Check out the output:
Screenshot 2023-12-04 at 10 53 32 PM

I've attached all the required tests and outputs. The above function was taken from one of the tests of latexify provided on the git repo.

Reproduction

Just try out the above function I wrote.

Expected behavior

The output should be the math expression: Screenshot 2023-12-04 at 10 54 11 PM

odashi commented

@Yeaseen Currently expanding pow is an optional behavior. Adding the option expand_functions=["pow"] would work as expected.

無題

As similar issues have been reported recently, I'm now considering to enable this feature by default.

That's great!

I think the issue still remains. It's closed; it might have been skipped.

Image