Replies: 1 comment
-
|
Currently, the It could be interesting to implement Anyone interested in implementing toTex for all data types? |
Beta Was this translation helpful? Give feedback.
-
|
Currently, the It could be interesting to implement Anyone interested in implementing toTex for all data types? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
While MathJS Node can be easily converted to TeX by simply calling
toTexmethod, it looks like there's no reliable way to achieve the same result for the calculated value. While some values may havetoTexmethod, the others don't.Please consider the following examples:
toTexmethod.toTexmethod if it was originally registered for this custom type.simplify("pi + 2pi")), the resulting object will havetoTexmethod.I think it would be nice to be able to convert the result of evaluation to TeX as well. For example, if you are multiplying two matrices and converting this expression to TeX, you are very likely want to convert the resulting matrix to TeX as well.
So far my only idea of how to achieve this, is to feed the result back to
parse()method and then convert this Node to TeX. But there's should be a better way.Beta Was this translation helpful? Give feedback.
All reactions