如何解决MathJax:如何使数学可复制?
我正在使用 MathJax 在 HTML 文档中显示一些方程。我想要做的在以下代码段中进行了解释:
<!DOCTYPE html>
<html>
<head>
<title>Math in HTML</title>
<Meta charset="utf-8">
<script>
MathJax = {
tex: {
inlineMath: [['$','$'],['\\(','\\)']]
},svg: {
fontCache: 'global'
}
};
</script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
</head>
<body>
<h1>Mathematic equations</h1>
<p>I cannot select this equation:
$$\intop_0^1f(x)dx=\pi$$
nor this one $x^2 + 3x - 2 = \zeta$.
</p>
<p>I would like that when someone copy-pastes the prevIoUs paragraph he/she would get:
<code>I cannot select this equation:
$$\intop_0^1f(x)dx=\pi$$
nor this one $x^2 + 3x - 2 = \zeta$.</code>
</body>
</html>
基本上,我想让数学选择并复制到剪贴板以获取 Latex 代码。这可能吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。