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.
-
While MathJS Node can be easily converted to TeX by simply calling
toTex
method, it looks like there's no reliable way to achieve the same result for the calculated value. While some values may havetoTex
method, the others don't.Please consider the following examples:
toTex
method.toTex
method if it was originally registered for this custom type.simplify("pi + 2pi")
), the resulting object will havetoTex
method.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