我想在我的html页面上放一些简单的数学符号。为此,我跟着 this manual并包括
<script type="text/javascript" async
scr="https://cdnjs.cloudflare.com/ajax/libsmathjax/2.7.2/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
进入标题。然后,我在我的html文件中添加了一些非常简单的LaTeX-Code,即
$$\pi$$ \(\mathbb{R}\)
不幸的是,这些数学符号没有显示出来。你知道为什么MathJax不能正常工作吗?
以下是整个html-Code:也许你找到了MathJax不起作用的原因。
<!DOCTYP html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>Title</title>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<link rel="stylesheet" href="../../style1.css" type="text/css">
<style> #picture {max-width: 350px; height: auto; } </style>
<link rel="stylesheet" href="../style2.css" type="text/css">
<meta name="viewport" content="width=device-width; initial-scale=1.0">
<script type="text/javascript" async
scr="https://cdnjs.cloudflare.com/ajax/libsmathjax/2.7.2/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
</head>
<body>
<?php include ("kopf.php"); ?>
<div class="bodydiv">
<h2 class="title2">Title1</h2>
<hr /><br />
<img id="picture" src="picture.jpg" alt="picture">
<p> This is just a test... $$\pi$$ \(\mathbb{R}\)</p>
<h3 class="title">Title2</h3>
<p><ul>
<li>Link 1 </li>
</ul></p>
<h3 class="title">Title3</h3>
<p><ul>
<li> Link 1</li>
<li> Link 2 </li>
<li> Link 3 </li>
<li> Link 4 </li>
</ul></p>
<h3 class="title3">Title4</h3>
<ul>
<li> Literature 1</li>
<li> Literature 1</li>
<li> Literature 1</li>
<li> Literature 1</li>
<li> Literature 1</li>
</ul>
<br />
<?php include ("footer.php"); ?>
</div>
</body>
</html>