当前位置:网站首页>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>
边栏推荐
猜你喜欢
Tujia muniao meituan has a discount match in summer. Will it be fragrant if the threshold is low?
ONNX+TensorRT:将预处理操作写入ONNX并完成TRT部署
途家木鸟美团夏日折扣对垒,门槛低就一定香吗?
一张图彻底掌握prototype、__proto__、constructor之前的关系(JS原型、原型链)
HMS core machine learning service helps zaful users to shop conveniently
fatal: unsafe repository is owned by someone else 的解决方法
由粒子加速器产生的反中子形成的白洞
YoloV6训练:训练自己数据集遇到的各种问题
Quick analysis: easy to share the Internet
Tmall product details interface (APP, H5 end)
随机推荐
字符串匹配问题
卷积神经网络(入门)
uniapp自动化测试学习
Xilinx Vivado set *.svh as SystemVerilog Header
[development environment] StarUML tool (download software | StarUML installation | StarUML creation project)
PTA question bank== > complex four operations, one for one, examination seat number (7-73)
Fabric.js 元素被选中时保持原有层级
Adhere to the foundation of 20 minutes go every day II
MQ教程 | Exchange(交换机)
Socket and socket address
测试框架TestNG的使用(二):testNG xml的使用
【apipost】使用教程
fatal: unsafe repository is owned by someone else 的解决方法
docker mysql
STM32 standard firmware library function name (I)
Chinese science and technology from the Winter Olympics (III): the awakening and evolution of digital people
Bit by bit of OpenCV calling USB camera
1. Editing weapon VIM
Fabric.js 动态设置字号大小
3、函数指针和指针函数