当前位置:网站首页>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>

边栏推荐
- docker mysql
- Fabric. JS manual bold text iText
- STM32 standard firmware library function name memory (II)
- Systemserver process
- [deep learning] simple implementation of neural network forward propagation
- NLA自然语言分析,让数据分析更智能
- Who is better, Qianyuan projection Xiaoming Q1 pro or Jimi new play? Which configuration is higher than haqu K1?
- Methods of software testing
- Fabric.js 动态设置字号大小
- uniapp自动化测试学习
猜你喜欢

Use of swagger

Fabric.js 缩放画布

Yyds dry goods inventory software encryption lock function

Do you know that there is an upper limit on the size of Oracle data files?

Penetrate the remote connection database through the Intranet

跨服务器数据访问的创建链接服务器方法
![[development environment] 010 editor tool (tool download | binary file analysis template template installation | shortcut key viewing and setting)](/img/de/7d70f513577e93f1bde1969935a29e.jpg)
[development environment] 010 editor tool (tool download | binary file analysis template template installation | shortcut key viewing and setting)

关于Flink框架窗口(window)函数最全解析

Custom events, global event bus, message subscription and publishing, $nexttick

Development and design of animation surrounding mall sales website based on php+mysql
随机推荐
kaggle如何使用utility script
php链表创建和遍历
The evolution process of the correct implementation principle of redis distributed lock and the summary of redison's actual combat
OpenCV调用USB摄像头的点滴
Fabric. Usage of JS eraser (including recovery function)
什么是 eRDMA?丨科普漫画图解
Fabric.js 缩放画布
The use of TestNG, the testing framework (II): the use of TestNG XML
Route (II)
Fabric.js 自由绘制圆形
Do you know that there is an upper limit on the size of Oracle data files?
STM32标准固件库函数名(一)
PTA题库 ===>复数四则运算,一帮一,考试座位号(7-73)
tmall.product.schema.get( 产品信息获取schema获取 ),淘宝店铺上传商品API接口,淘宝商品发布接口,淘宝商品上传API接口,店铺上传接口,oAuth2.0接口
STM32 standard firmware library function name memory (II)
Fabric. JS zoom canvas
Federated Search: all requirements in search
途家木鸟美团夏日折扣对垒,门槛低就一定香吗?
Basic knowledge of QT original code
Golang quickly generates model and queryset of database tables