当前位置:网站首页>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 :
边栏推荐
- 3. Function pointers and pointer functions
- Fabric. JS dynamically set font size
- < schematic diagram of oral arithmetic exercise machine program development> oral arithmetic exercise machine / oral arithmetic treasure / children's math treasure / children's calculator LCD LCD driv
- 大顶堆、小顶堆与堆排序
- 4. Array pointer and pointer array
- Yolov6 training: various problems encountered in training your dataset
- Tmall product details interface (APP, H5 end)
- <口算练习机 方案开发原理图>口算练习机/口算宝/儿童数学宝/儿童计算器 LCD液晶显示驱动IC-VK1621B,提供技术支持
- Method of creating linked server for cross server data access
- Simple verification code generator for 51 single chip microcomputer experiment
猜你喜欢

Pychart connects to the remote server

fatal: unsafe repository is owned by someone else 的解决方法

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

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

Tip: SQL Server blocked the state 'openrowset/opendatasource' of component 'ad hoc distributed queries'
[email protected]: The platform “win32“ is incompatible with this module."/>info [email protected]: The platform “win32“ is incompatible with this module.

Fabric. JS zoom canvas

<口算练习机 方案开发原理图>口算练习机/口算宝/儿童数学宝/儿童计算器 LCD液晶显示驱动IC-VK1621B,提供技术支持

跨服务器数据访问的创建链接服务器方法

Makefile separates file names and suffixes
随机推荐
threejs的控制器 立方體空間 基本控制器+慣性控制+飛行控制
NLA natural language analysis realizes zero threshold of data analysis
STM32-DAC实验&高频DAC输出测试
途家木鸟美团夏日折扣对垒,门槛低就一定香吗?
fatal: unsafe repository is owned by someone else 的解决方法
Li Chuang EDA learning notes 15: draw border or import border (DXF file)
C#代码审计实战+前置知识
Certik released the defi security report in 2021, disclosing key data of industry development (PDF download link attached)
Fabric. JS free drawing ellipse
Convolutional neural network (Introduction)
Fabric.js 上划线、中划线(删除线)、下划线
Thoroughly master prototype__ proto__、 Relationship before constructor (JS prototype, prototype chain)
字符串匹配问题
Find the maximum inscribed circle of the contour
JMeter script parameterization
Pychart connects to the remote server
篇9:XShell免费版安装
PHP linked list creation and traversal
Teamtalk source code analysis win client
Ad20 cannot select the solution of component packaging in PCB editor