not possible to define separate buttons in html without mathlive's built-in keyboard buttons
amanborka opened this issue · 2 comments
amanborka commented
Is there a function to introduce several buttons in HTML and click on them to enter a mathematical expression without using the mathlive keyboard?
arnog commented
Sure, you would do something like:
<math-field id="mf"></math-field>
<button onclick="document.getElementById('mf').insert('\\pi')">Pi</button>
amanborka commented
Sure, you would do something like:
<math-field id="mf"></math-field> <button onclick="document.getElementById('mf').insert('\\pi')">Pi</button>
Thank you very much, my problem is solved