当前位置:网站首页>Introduction to mathjax (web display of mathematical formulas, vector)
Introduction to mathjax (web display of mathematical formulas, vector)
2022-07-02 14:48:00 【Xu Tongbao】


<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>MathJax Font</title>
<!-- <script type="text/javascript"
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=AM_HTMLorMML"></script> -->
<!-- <script
id="MathJax-script"
async
src="https://cdn.jsdelivr.net/npm/[email protected]/es5/tex-mml-chtml.js"
></script> -->
<script
id="MathJax-script"
src="./mathjax/es5/tex-mml-chtml.js"
></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
"HTML-CSS" : {
availableFonts : ["STIX"],
preferredFont : "STIX",
webFont : "STIX-Web",
imageFont : null
}
});
</script>
</head>
<body>
<p>
When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and
they are \[x = {-b \pm \sqrt{b^2-4ac} \over 2a}.\]
</p>
<p>
When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and
they are \[x = {-b \pm \sqrt{b^2-4ac} \over 2a}.\]
</p>
</body>
</html>
stay vue You need to re render the data in order to change the formula :
clearTimeout(timer);
timer = setTimeout(() => {
this.$nextTick(() => {
window.MathJax.typeset();
});
}, 500);
https://jsbin.com/vujogafize/edit?html,output
https://www.osgeo.cn/mathjax/basic/accessibility.html
self-control mathjax Online editor .

<template>
<div>
<div>mathValue:</div>
<p v-html="mathValue"></p>
<el-input
:value="mathValue"
type="textarea"
@input="handleMathValue"
></el-input>
</div>
</template>
<script>
import { MathfieldElement } from "mathlive";
let mf;
export default {
data() {
return {
mathValue: "\\( x = {-b \\pm \\sqrt{b^2-4ac} \\over 2a} \\)",
};
},
mounted() {
this.formatMath();
},
methods: {
formatMath() {
window.MathJax.typeset();
},
handleMathValue(e) {
this.mathValue = e;
this.$nextTick(() => {
this.formatMath();
});
},
},
};
</script>
<style></style>
Rich text can also be :

Online editor :
边栏推荐
- 4. Array pointer and pointer array
- threejs的控制器 立方體空間 基本控制器+慣性控制+飛行控制
- Fabric. JS upper dash, middle dash (strikethrough), underline
- Onnx+tensorrt: write preprocessing operations to onnx and complete TRT deployment
- 途家木鸟美团夏日折扣对垒,门槛低就一定香吗?
- STM32 standard firmware library function name memory (II)
- Fabric. JS free drawing ellipse
- 测试框架TestNG的使用(二):testNG xml的使用
- Solve the problem that openocd fails to burn STM32 and cannot connect through SWD
- 提示:SQL Server 阻止了对组件‘Ad Hoc Distributed Queries ‘的STATEMENT ‘OpenRowset/OpenDatasource“”
猜你喜欢

Fundamentals of software testing

Li Chuang EDA learning notes 15: draw border or import border (DXF file)

途家木鸟美团夏日折扣对垒,门槛低就一定香吗?

Tujia muniao meituan has a discount match in summer. Will it be fragrant if the threshold is low?

电脑怎么设置扬声器播放麦克风的声音

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

socket(套接字)与socket地址

Fabric.js 缩放画布

C#代码审计实战+前置知识

Yolov3 & yolov5 output result description
随机推荐
taobao.trades.sold.get-查询卖家已卖出的交易数据(根据创建时间),淘宝店铺卖出订单查询API接口,淘宝R2接口,淘宝oAuth2.0交易接口代码分享
Use of freemaker
Fabric.js 自由绘制圆形
跨服务器数据访问的创建链接服务器方法
Fabric.js 元素被选中时保持原有层级
Method of creating linked server for cross server data access
【NOI模拟赛】伊莉斯elis(贪心,模拟)
天猫商品详情接口(APP,H5端)
Understanding of mongodb
Teamtalk source code analysis win client
用户隐私协议有些汉字编码不规范导致网页显示乱码,需要统一找出来处理一下
Obsidian installs third-party plug-ins - unable to load plug-ins
复用和分用
threejs的控制器 立方體空間 基本控制器+慣性控制+飛行控制
【NOI模拟赛】刮痧(动态规划)
PHP linked list creation and traversal
数据库连接池和数据源
3、函数指针和指针函数
求轮廓最大内接圆
mathjax 入门(web显示数学公式,矢量的)