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

边栏推荐
- Certik released the defi security report in 2021, disclosing key data of industry development (PDF download link attached)
- 提示:SQL Server 阻止了对组件‘Ad Hoc Distributed Queries ‘的STATEMENT ‘OpenRowset/OpenDatasource“”
- Convolutional neural network (Introduction)
- tmall. product. schema. Get (product information acquisition schema acquisition), Taobao store upload commodity API interface, Taobao commodity publishing interface, Taobao commodity upload API interf
- Golang quickly generates model and queryset of database tables
- Fabric. Usage of JS eraser (including recovery function)
- Fabric.js 手动加粗文本iText
- Federated Search: all requirements in search
- The use of TestNG, the testing framework (II): the use of TestNG XML
- Thoroughly master prototype__ proto__、 Relationship before constructor (JS prototype, prototype chain)
猜你喜欢

uniapp自动化测试学习

Fabric.js 上划线、中划线(删除线)、下划线

Method of creating linked server for cross server data access

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

Development and design of animation surrounding mall sales website based on php+mysql

Chinese science and technology from the Winter Olympics (III): the awakening and evolution of digital people

<口算練習機 方案開發原理圖>口算練習機/口算寶/兒童數學寶/兒童計算器 LCD液晶顯示驅動IC-VK1621B,提供技術支持

Yolov3 & yolov5 output result description

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 '

Xilinx Vivado set *.svh as SystemVerilog Header
随机推荐
threejs的控制器 立方體空間 基本控制器+慣性控制+飛行控制
Yolov3 & yolov5 output result description
PTA题库 ===>复数四则运算,一帮一,考试座位号(7-73)
Certik released the defi security report in 2021, disclosing key data of industry development (PDF download link attached)
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 '
<口算練習機 方案開發原理圖>口算練習機/口算寶/兒童數學寶/兒童計算器 LCD液晶顯示驅動IC-VK1621B,提供技術支持
Solve the problem that openocd fails to burn STM32 and cannot connect through SWD
OpenCV调用USB摄像头的点滴
<口算练习机 方案开发原理图>口算练习机/口算宝/儿童数学宝/儿童计算器 LCD液晶显示驱动IC-VK1621B,提供技术支持
< 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
Tip: SQL Server blocked the state 'openrowset/opendatasource' of component 'ad hoc distributed queries'
Solving the longest subsequence with linear DP -- three questions
2、const 型指针
STM32 library function for GPIO initialization
Factal: Unsafe repository is owned by someone else Solution
Adhere to the foundation of 20 minutes go every day II
The most complete analysis of Flink frame window function
taobao.trade.get( 获取单笔交易的部分信息),淘宝店铺订单接口,淘宝oAuth2.0接口,淘宝R2接口代码对接分享
Quarkus learning IV - project development to deployment
Fabric. Keep the original level when JS element is selected