생각하는 기계공장

Tistory에 Latex 사용하는 방법 본문

알아두면 좋은 팁

Tistory에 Latex 사용하는 방법

JEONG.T.M 2021. 9. 30. 10:30

편집 모드 변경 (기본모드 --> HTML)

HTML 편집 상태에서 아래 script 복사 붙여넣고 Latex 수식을 아래에 기입하고 저장.

(기본모드로 돌아와서 글 작성 가능)

<script type="text/x-mathjax-config">
MathJax.Hub.Config({
  tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}
});
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-MML-AM_CHTML"></script>

% Latex 수식
$ x = \frac{-b \pm \sqrt{b^2 - 4ac} }{2a} $

$ x = \frac{-b \pm \sqrt{b^2 - 4ac} }{2a} $