viktorstrate / algebra-latex

Parse and calculate latex formatted math
https://www.npmjs.com/package/algebra-latex
MIT License
28 stars 9 forks source link

Ommiting the implied multiplication #2

Closed Benjadahl closed 7 years ago

Benjadahl commented 7 years ago

I would like to be able to avoid the implied multiplication of variables, so that it is possible to have variables with names longer than one character.

I attempted to add this behavior in my fork at commit 5f9f340 however, I believe the implementation is a tad bad, so I did not create a PR, do you know of a better way to do this?

I am also experiencing some weird behavior with it, where it will always follow the first parameter you gave it. Even if you call the function a second time.

Thanks for your time and great project :)

viktorstrate commented 7 years ago

I think it should be a part of the parser, instead of the formatter. I will work on a solution, thanks for the feedback.

Benjadahl commented 7 years ago

Thanks a lot!