728x90

기술관련 블로그를 쓰다보면 수식을 가끔 써야할 경우가 있는데 이 때 수식을 입력할 수 있는 방법에 대해 소개해 드리겠습니다.

 

먼저 블로그 관리로 들어갑니다. 그리고 좌측 사이드바 꾸미기에서 스킨 편집을 눌러줍니다.

아래와 같은 화면 우측에 있는 html 편집 버튼을 눌러줍니다.

 

위와 같이 HTML 편집 창에서 <head>와 </head>사이에 아래 코드를 넣고 적용을 눌러줍니다.

<script>
	(function () {
		var script = document.createElement("script");
		script.type = "text/javascript";
		script.src  = "https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
		document.getElementsByTagName("head")[0].appendChild(script);
	})();
</script>

이제 수식을 입력할 수 있으며 수식을 표현하기 위해서는 수식의 앞 뒤에 '$$'를 입력하면 됩니다.

$$x^2$$

$$x^2$$

다양한 수식 정보는 www.statpower.net/Content/310/R%20Stuff/SampleMarkdown.html 링크를 참고하시면 됩니다.

 

An Example R Markdown

Introduction This is an R Markdown document. By studying the document source code file, compiling it, and observing the result, side-by-side with the source, you’ll learn a lot about the R Markdown and LaTeX mathematical typesetting language, and you’l

www.statpower.net

 

728x90

+ Recent posts