Catatan ringan kali ini perihal LATEX.
Menambahkan script LATEX di blog, sederhana dan gampang dilakukan. Cukup tambahkan script berikut.
<script type="text/j4vascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js">
MathJax.Hub.Config({
extensions: ["tex2jax.js","TeX/AMSmath.js","TeX/AMSsymbols.js"],
jax: ["input/TeX", "output/HTML-CSS"],
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
},
"HTML-CSS": { availableFonts: ["TeX"] }
});
</script>
MathJax.Hub.Config({
extensions: ["tex2jax.js","TeX/AMSmath.js","TeX/AMSsymbols.js"],
jax: ["input/TeX", "output/HTML-CSS"],
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
},
"HTML-CSS": { availableFonts: ["TeX"] }
});
</script>
Selanjutnay masuk ke account blog, lalu edit Theme.
Pilih edit HTML dan letakkan script tersebut di bawah <head>.
Sekarang tinggal tuliskan script LATEX yang diinginkan, contoh.
$\begin{equation}G\left(s\right) = \left[\begin{matrix} \begin{array}{c|c} A & B \\ \hline C & D \end{array} \end{matrix}\right] = C\left(sI - A\right)^{-1}B+D\end{equation}$ Sumber http://lang8088.blogspot.com
EmoticonEmoticon