QQ扫一扫联系
LatexEasy是一个Latex数学公式解决方案网站,提供基于Latex的数学公式编辑和在线渲染
https://latexeasy.com/en/demo/sdk
<iframe id="liveEditor" frameborder="0" style="width:100%;height:400px;border:0;outline:none;" src="https://latexeasy.com/editor"></iframe><script src="https://latexeasy.com/vendor/LatexEasyEditor/editor/sdk.js"></script><script> var letexeasy = new window.LatexEasy(document.getElementById('liveEditor')); letexeasy.on('ready', function () { console.log('LatexEasy.ready'); letexeasy.call('set.latex', { latex: 'x=\\frac {-b\\pm \\sqrt \{\{b\}^\{2\}-4ac\}\} {2a}' }); }); letexeasy.init();</script>
letexeasy.call('set.latex', { latex: 'x=\\frac {-b\\pm \\sqrt \{\{b\}^\{2\}-4ac\}\} {2a}'});
letexeasy.call('get.latex', {}, function(data){ console.log(data);});
letexeasy.call('get.svg', {}, function(data){ console.log(data);});
latexeasy.on('ready', function(){ console.log('latex init finished');});