MCPcopy
hub / github.com/josdejong/mathjs / toTex

Method toTex

src/expression/node/Node.js:327–335  ·  view source on GitHub ↗

* Get LaTeX representation. (wrapper function) * * This function can get an object of the following form: * { * handler: //This can be a callback function of the form * // "function callback(node, options)"or * // a map that maps function name

(options)

Source from the content-addressed store, hash-verified

325 * @return {string}
326 */
327 toTex (options) {
328 const customString = this._getCustomString(options)
329
330 if (typeof customString !== 'undefined') {
331 return customString
332 }
333
334 return this._toTex(options)
335 }
336
337 /**
338 * Internal function to generate the LaTeX output.

Callers

nothing calls this directly

Calls 2

_getCustomStringMethod · 0.95
_toTexMethod · 0.95

Tested by

no test coverage detected