You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using mathquill in a project for which I have used tex math parser to parse latex and math.js to evaluate . It is working fine for me but when I am trying to solve hyperbolic functions it throws error undefine I know this is because we dont have hyperbolic functions in tex math parser..So I want to use math-latex-parser because it has build in functions for hyperbolic functions as well What should I do to use it in my below function? I have already tried using mathLatexParser.parse but it throws error at complie
Here is my mathquill function
import { parseTex} from 'tex-math-parser'
export var MQ = MathQuill.getInterface(2);
export var answerSpan = document.getElementById('answer');
export var workingSpan = document.getElementById('working');
export var mathSpan = document.getElementById('math');
export var answerMathField = MQ.MathField(answerSpan, {
handlers: {
edit: function () {
var enteredMath = answerMathField.latex(); // Get entered math in LaTeX format
workingSpan.innerHTML = enteredMath;
I am using mathquill in a project for which I have used tex math parser to parse latex and math.js to evaluate . It is working fine for me but when I am trying to solve hyperbolic functions it throws error undefine I know this is because we dont have hyperbolic functions in tex math parser..So I want to use math-latex-parser because it has build in functions for hyperbolic functions as well What should I do to use it in my below function? I have already tried using mathLatexParser.parse but it throws error at complie
Here is my mathquill function
import { parseTex} from 'tex-math-parser'
export var MQ = MathQuill.getInterface(2);
export var answerSpan = document.getElementById('answer');
export var workingSpan = document.getElementById('working');
export var mathSpan = document.getElementById('math');
export var answerMathField = MQ.MathField(answerSpan, {
handlers: {
edit: function () {
var enteredMath = answerMathField.latex(); // Get entered math in LaTeX format
workingSpan.innerHTML = enteredMath;
}
}).focus();
console.log('hello there')
here is my click event on btns
document.getElementById("sinh").onclick = function (){
answerMathField.cmd('\sinh').typedText('(').focus();
}
The text was updated successfully, but these errors were encountered: