![]() |
在 Blogger 上顯示方程式/數學式的方法,可使用 MathJax,使用方法如下: |
---|
- 至「版面配置」
- 點選任一「新增小工具」
- 選擇「HTML/JavaScript」
- 填寫底下 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>
匯入後即可使用 MathJax 進行方程式的撰寫。
底下列出幾個簡單的範例:
1. 快速置中公式:
- $$E =mc^2$$
2.置中公式:
- \[{x_{1,2}} = \frac{{ - b \pm \sqrt {{b^2} - 4ac} }}{{2a}}\]
- 二元一次方程式解為:
3. 行內(inline)公式:
- \({x_{1,2}} = \frac{{ - b \pm \sqrt {{b^2} - 4ac} }}{{2a}}\)
- 二元一次方程式解為:
4. 矩陣範例:
- \(
- \begin{bmatrix}
- X\\
- Y\\
- Z\\
- \end{bmatrix}
- =
- \begin{bmatrix}
- R\\
- G\\
- B\\
- \end{bmatrix}
- \)
相關連結:
- https://en.wikibooks.org/wiki/LaTeX/Mathematics
No comments:
Post a Comment