Catatan ringan Daily Life of Engineering Student kali ini tentang LATEX.
Menambahkan script LATEX di blog, sederhana dan mudah dilakukan. Cukup tambahkan script berikut.
<script type="text/javascript" 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, kemudian 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}$