parent
9f87167761
commit
912ae64b1b
@ -0,0 +1,56 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>LaTeX公式渲染示例</title>
|
||||
<script>
|
||||
MathJax = {
|
||||
tex: {
|
||||
inlineMath: [['$', '$'], ['\\(', '\\)']],
|
||||
displayMath: [['$$', '$$'], ['\\[', '\\]']],
|
||||
processEscapes: true
|
||||
},
|
||||
svg: {
|
||||
fontCache: 'global'
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script src="./js/tex-mml-chtml.js" id="MathJax-script"></script>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, 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
|
||||
}
|
||||
};
|
||||
</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>
|
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue