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

边栏推荐
猜你喜欢
![[development environment] Dell computer system reinstallation (download Dell OS recovery tool | use Dell OS recovery tool to make USB flash disk system | install system)](/img/e0/e9cb42f241a60995d4598ba6a1a2fe.jpg)
[development environment] Dell computer system reinstallation (download Dell OS recovery tool | use Dell OS recovery tool to make USB flash disk system | install system)

联合搜索:搜索中的所有需求

Stm32-dac Experiment & high frequency DAC output test

Dangbei projection 4K laser projection X3 Pro received unanimous praise: 10000 yuan projector preferred

每日学习3

< schéma de développement de la machine d'exercice oral > machine d'exercice oral / trésor d'exercice oral / trésor de mathématiques pour enfants / lecteur LCD de calculatrice pour enfants IC - vk1621

Who is better, Qianyuan projection Xiaoming Q1 pro or Jimi new play? Which configuration is higher than haqu K1?

QT new project

STM32 library function for GPIO initialization

uniapp自动化测试学习
随机推荐
obsidian安装第三方插件——无法加载插件
Fabric. JS free drawing ellipse
Design and implementation of car query system based on php+mysql
Golang 快速生成数据库表的 model 和 queryset
STM32 library function for GPIO initialization
STM32库函数进行GPIO初始化
一张图彻底掌握prototype、__proto__、constructor之前的关系(JS原型、原型链)
Chapter 9: xshell free version installation
Start to write a small demo - three piece chess
docker mysql
Golang quickly generates model and queryset of database tables
Data consistency between redis and database
The evolution process of the correct implementation principle of redis distributed lock and the summary of redison's actual combat
Custom events, global event bus, message subscription and publishing, $nexttick
<口算練習機 方案開發原理圖>口算練習機/口算寶/兒童數學寶/兒童計算器 LCD液晶顯示驅動IC-VK1621B,提供技術支持
[development environment] Dell computer system reinstallation (download Dell OS recovery tool | use Dell OS recovery tool to make USB flash disk system | install system)
NLA自然语言分析,让数据分析更智能
什么是 eRDMA?丨科普漫画图解
Generally speaking, if the error of inconsistent tab and space occurs frequently
PyQt5_ Qscrollarea content is saved as a picture