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

边栏推荐
- STM32 library function for GPIO initialization
- Fabric. JS free drawing ellipse
- 1. Editing weapon VIM
- Contrôleur pour threejs cube Space Basic Controller + Inertial Control + Flight Control
- Fabric. JS upper dash, middle dash (strikethrough), underline
- 博睿数据一体化智能可观测平台入选中国信通院2022年“云原生产品名录”
- STM32 standard firmware library function name (I)
- [apipost] tutorial
- Certik released the defi security report in 2021, disclosing key data of industry development (PDF download link attached)
- Why can't browsers read JSX?
猜你喜欢

报错:npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

测试框架TestNG的使用(二):testNG xml的使用

复用和分用

A white hole formed by antineutrons produced by particle accelerators

Fatal: unsafe repository is owned by someone else

Tencent cloud tstor unified storage passed the evaluation of the first batch of basic file storage capabilities of the ICT Institute

Xilinx Vivado set *.svh as SystemVerilog Header

STM32 library function for GPIO initialization

Fabric.js 橡皮擦的用法(包含恢复功能)

Daily learning 2
随机推荐
Database connection pool and data source
socket(套接字)与socket地址
Pychart connects to the remote server
Basic knowledge of QT original code
Fabric.js 缩放画布
卷积神经网络(入门)
Large top heap, small top heap and heap sequencing
Openharmony notes --------- (4)
3、函数指针和指针函数
tmall.product.schema.get( 产品信息获取schema获取 ),淘宝店铺上传商品API接口,淘宝商品发布接口,淘宝商品上传API接口,店铺上传接口,oAuth2.0接口
[QNX Hypervisor 2.2用户手册]6.3 Guest与外部之间通信
NLA自然语言分析实现数据分析零门槛
Convolutional neural network (Introduction)
数据库连接池和数据源
STM32库函数进行GPIO初始化
2. Const pointer
Find the maximum inscribed circle of the contour
What is erdma? Popular science cartoon illustration
Yyds dry goods inventory software encryption lock function
Simple verification code generator for 51 single chip microcomputer experiment