当前位置:网站首页>MathML to latex
MathML to latex
2022-07-02 14:42:00 【Xu Tongbao】
https://www.npmjs.com/package/mathml2latex
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<script src="./node_modules//mathml2latex/dist/mathml2latex.js"></script>
</head>
<body>
<script>
// const mathmlHtml =
// '<math display="block"><mfrac><mi>a</mi><mi>b</mi></mfrac></math>'
const mathmlHtml = ` <div>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msup><mi>a</mi><mn>2</mn></msup>
<mo>+</mo>
<msup><mi>b</mi><mn>2</mn></msup>
<mo>=</mo>
<msup><mi>c</mi><mn>2</mn></msup>
</mrow>
</math>
</div>`
const latex = MathML2LaTeX.convert(mathmlHtml)
console.log(latex)
</script>
</body>
</html>
边栏推荐
- Factal: Unsafe repository is owned by someone else Solution
- Find the maximum inscribed circle of the contour
- Delete element (with transition animation)
- Packet capturing tool Fiddler learning
- 字符串匹配问题
- Reuse and distribution
- Bit by bit of OpenCV calling USB camera
- 关于Flink框架窗口(window)函数最全解析
- 4. Array pointer and pointer array
- Understanding of mongodb
猜你喜欢
fatal: unsafe repository is owned by someone else 的解决方法
A white hole formed by antineutrons produced by particle accelerators
Fabric. JS upper dash, middle dash (strikethrough), underline
Chinese science and technology from the Winter Olympics (III): the awakening and evolution of digital people
jmeter脚本参数化
taobao. trade. memo. Add (add remarks to a transaction) interface, Taobao store flag insertion interface, Taobao order flag insertion API interface, oauth2.0 interface
天猫商品详情接口(APP,H5端)
Fabric.js 橡皮擦的用法(包含恢复功能)
fatal: unsafe repository is owned by someone else 的解决方法
每日学习2
随机推荐
mongodb的认识
Yyds dry goods inventory software encryption lock function
Contrôleur pour threejs cube Space Basic Controller + Inertial Control + Flight Control
Fabric.js 手动加粗文本iText
每日学习2
Quarkus learning IV - project development to deployment
taobao. logistics. dummy. Send (no logistics delivery processing) interface, Taobao store delivery API interface, Taobao order delivery interface, Taobao R2 interface, Taobao oau2.0 interface
《可供方案开发》口算训练机/数学宝/儿童口算宝/智能数学宝 LCD液晶显示驱动IC-VK1622(LQFP64封装),原厂技术支持
天猫商品详情接口(APP,H5端)
检查密码
The evolution process of the correct implementation principle of redis distributed lock and the summary of redison's actual combat
TeamTalk源码分析之win-client
Fabric. JS free drawing ellipse
快解析:轻松实现共享上网
Daily learning 2
PyQt5_ Qscrollarea content is saved as a picture
一张图彻底掌握prototype、__proto__、constructor之前的关系(JS原型、原型链)
Fabric. JS upper dash, middle dash (strikethrough), underline
STM32库函数进行GPIO初始化
测试框架TestNG的使用(二):testNG xml的使用