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 (将#修改为@)