math.pow not working properly on google colab
Yeaseen opened this issue · 3 comments
Yeaseen commented
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:
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
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.
Yeaseen commented
That's great!
Yeaseen commented