gpt4 book ai didi

math - 使用 mathjax 显示数学分数

转载 作者:行者123 更新时间:2023-12-05 01:46:09 26 4
gpt4 key购买 nike

我在 ckeditor 中使用 mathjax,我想打印分数。那么,我必须编写什么命令来打印下面链接中提到的分数?(这是图片:tinypic.com/r/23k465g/9

这是我正在尝试的:

<html>
<head>
<script type="text/javascript" async
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>

<title> mathsjax</title>
</head>
<body>
$$7\(frac\({4}{3}\)\)$$
</body>
</html>

但它不起作用。所以,请给我一个解决方案

最佳答案

$$7\frac{4}{3}$$

或在文本行中

$7\dfrac{4}{3}$

请注意,\(...\) 定义了一个文本行数学环境,即在 LaTeX 中等同于 $...$

关于math - 使用 mathjax 显示数学分数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37222210/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com