You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.2 KiB
50 lines
1.2 KiB
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>LaTeX公式渲染示例</title>
|
|
<!-- 使用BootCDN提供的MathJax -->
|
|
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
|
|
<style>
|
|
body {
|
|
font-family: "Microsoft YaHei", sans-serif;
|
|
line-height: 1.6;
|
|
margin: 20px;
|
|
}
|
|
|
|
.image-placeholder {
|
|
background-color: #f0f0f0;
|
|
padding: 10px;
|
|
margin: 10px 0;
|
|
border: 1px dashed #ccc;
|
|
}
|
|
|
|
</style>
|
|
<script>
|
|
MathJax = {
|
|
tex: {
|
|
inlineMath: [['$', '$'], ['\\(', '\\)']],
|
|
processEscapes: true
|
|
},
|
|
svg: {
|
|
fontCache: 'global',
|
|
font: 'STIX-Web'
|
|
}
|
|
};
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<h1>数学公式示例</h1>
|
|
|
|
<p>行内公式示例:当$x \to 0$时,$\sin x \approx x$。</p>
|
|
|
|
<p>行间公式示例:</p>
|
|
<p>$$\frac{-b \pm \sqrt{b^2-4ac}}{2a}$$</p>
|
|
|
|
<div class="image-placeholder">【图片1】</div>
|
|
|
|
<p>勾股定理:$a^2 + b^2 = c^2$</p>
|
|
|
|
<div class="image-placeholder">【图片2】</div>
|
|
</body>
|
|
</html> |