当前位置:网站首页>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 :
边栏推荐
- qml 弹窗框架,可定制
- <口算練習機 方案開發原理圖>口算練習機/口算寶/兒童數學寶/兒童計算器 LCD液晶顯示驅動IC-VK1621B,提供技術支持
- Tmall product details interface (APP, H5 end)
- 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 '
- PHP linked list creation and traversal
- Large top heap, small top heap and heap sequencing
- taobao. trades. sold. Get query the transaction data that the seller has sold (according to the creation time), Taobao store sales order query API interface, Taobao R2 interface, Taobao oauth2.0 trans
- Pychart connects to the remote server
- PTA question bank== > complex four operations, one for one, examination seat number (7-73)
- Error: NPM warn config global ` --global`, `--local` are deprecated Use `--location=global` instead.
猜你喜欢
Actual combat sharing of shutter screen acquisition
测试框架TestNG的使用(二):testNG xml的使用
MathML to latex
mathjax 入门(web显示数学公式,矢量的)
YoloV6训练:训练自己数据集遇到的各种问题
Chinese science and technology from the Winter Olympics (III): the awakening and evolution of digital people
Fabric.js 自由绘制圆形
The most complete analysis of Flink frame window function
Wechat applet uses towxml to display formula
Advanced C language (realize simple address book)
随机推荐
Find the maximum inscribed circle of the contour
JMeter script parameterization
[apipost] tutorial
Xilinx Vivado set *. svh as SystemVerilog Header
Obsidian installs third-party plug-ins - unable to load plug-ins
Full of knowledge points, how to use JMeter to generate encrypted data and write it to the database? Don't collect it quickly
uniapp自动化测试学习
天猫商品详情接口(APP,H5端)
检查密码
info [email protected]: The platform “win32“ is incompatible with this module.
docker mysql
Implement a server with multi process concurrency
STM32库函数进行GPIO初始化
Tip: SQL Server blocked the state 'openrowset/opendatasource' of component 'ad hoc distributed queries'
电脑怎么设置扬声器播放麦克风的声音
PTA题库 ===>复数四则运算,一帮一,考试座位号(7-73)
使用mathtype编辑公式,复制粘贴时设置成仅包含mathjax语法的公式
PHP linked list creation and traversal
Makefile 分隔文件名与后缀
【apipost】使用教程