当前位置:网站首页>mathML转latex
mathML转latex
2022-07-02 11:21:00 【徐同保】
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>
边栏推荐
- taobao.trade.get( 获取单笔交易的部分信息),淘宝店铺订单接口,淘宝oAuth2.0接口,淘宝R2接口代码对接分享
- 3. Function pointers and pointer functions
- <口算练习机 方案开发原理图>口算练习机/口算宝/儿童数学宝/儿童计算器 LCD液晶显示驱动IC-VK1621B,提供技术支持
- 检查密码
- Start to write a small demo - three piece chess
- Uniapp automated test learning
- Fabric.js 元素被选中时保持原有层级
- NLA natural language analysis makes data analysis more intelligent
- 提示:SQL Server 阻止了对组件‘Ad Hoc Distributed Queries ‘的STATEMENT ‘OpenRowset/OpenDatasource“”
- C语言高级用法--函数指针:回调函数;转换表
猜你喜欢
Borui data integrated intelligent observable platform was selected into the "Yunyuan production catalogue" of China Academy of communications in 2022
每日学习3
Use of swagger
C crystal report printing
测试框架TestNG的使用(二):testNG xml的使用
STM32 library function for GPIO initialization
Federated Search: all requirements in search
Default slot, named slot, scope slot
跨服务器数据访问的创建链接服务器方法
Penetrate the remote connection database through the Intranet
随机推荐
Essential elements of science fiction 3D scenes - City
每日学习3
taobao.logistics.dummy.send( 无需物流发货处理 )接口,淘宝店铺发货API接口,淘宝订单发货接口,淘宝r2接口,淘宝oAu2.0接口
There is no solution to the decryption error of the remote user 'sa' and the service master password mapped from the remote server 'to the local user' (null) /sa '
Openharmony notes --------- (4)
The evolution process of the correct implementation principle of redis distributed lock and the summary of redison's actual combat
每日学习2
Yyds dry goods inventory software encryption lock function
taobao.trade.get( 获取单笔交易的部分信息),淘宝店铺订单接口,淘宝oAuth2.0接口,淘宝R2接口代码对接分享
PyQt5_QScrollArea内容保存成图片
Design and implementation of car query system based on php+mysql
How many knowledge points can a callable interface have?
3、函数指针和指针函数
Go operation redis
联合搜索:搜索中的所有需求
STM32 standard firmware library function name memory (II)
Fabric. JS free drawing ellipse
Fabric. JS zoom canvas
threejs的控制器 立方體空間 基本控制器+慣性控制+飛行控制
Solving the longest subsequence with linear DP -- three questions