0
我想在我的網頁上啓用MathJax,但它不工作。MathJAX不在網頁上顯示
我第一次一個簡單的空HTML頁面上嘗試如下:
<script type="text/x-mathjax-config">
MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
</script>
<script type="text/javascript"
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<div style="offsetWidth: 720; offsetHeight: 54; width: 714px; height: 48px; position: static; top: auto; right: auto; bottom: auto; left: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 6px; margin-left: 0px; color: #000000; display: block; visibility: visible">
<p>
</p><p>When $a \ne 0$, there are two solutions to \(ax^2 + bx + c = 0\) and they are<br>$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$</p>
<p></p>
</div>
以上是正確顯示。
但是,當我在網頁上,其中有其他元素和一些CSS,然後我得到一個「錯誤準備HTML-CSS輸出(預處理)」,公式被替換爲[MathProcessingError]。
我不知道什麼更多的信息提供這個問題。如果您需要更多信息,請告訴我。
你能發佈導致問題的整頁嗎?或者提供一個URL?如果沒有更多關於該網頁實際內容的詳細信息,診斷問題並不容易。見[這個問題](http://meta.math.stackexchange.com/questions/3942/certain-comment-contents-break-latex-rendering-for-the-whole-page)和[this one](http:可能相關的問題,包括某些數學如何觸發這個問題。 –
感謝您的鏈接。我弄清楚了什麼是錯的。謝謝您的幫助。如果您可以通過鏈接回答問題,我可以將其標記爲正確。 – Siddharth
你可以發佈你的解決方案嗎? – fxp