#title 모니위키에서 LaTeX 표현 방법
과거에는 MoniWiki 자체에서 서버 사이드 TeX 렌더링을 제공하는 플러그인이 있었지만, 최근에는 MoniWiki의 틀에 얽매이기보다 최신 웹 환경에서 TeX 수식을 표현할 수 있는 렌더링 라이브러리인 '''KaTeX을 사용하는 편이 훨씬 편하다'''.
> 1.3 The Game of the Name
> (전략)
> One of the hardest things about using [[html($$\LaTeX$$)]] is deciding how to pronounce it. This is also one of the few things I'm not going to tell you about [[html($$\LaTeX$$)]], since pronunciation is best determined by usage, not flat. [[html($$\TeX$$)]] is usually pronounced teck, making lah-teck, and lay-teck the logical choices; but language is not always logical, so lay-tecks is also possible.
> (후략)
> ― LaTeX: A Document Preparation System (1994), Leslie Lamport.
== KaTeX 설치 방법 ==
1. `config.php` `$extra_header`에 다음을 추가한다.
{{{#!vim html
}}}
2. 모니위키 본문에서 LaTeX의 inline math {{{$ ... $}}} 또는 display math {{{$$ ... $$}}}를 출력해야 한다.
$가나다$
$$\sum_{n=1}^\infty a_n = \int_0^1 f$$
== 예시 ==
[[html($$\sum_{n=1}^\infty a_n = \int_0^1 f$$)]]
[[html($$SSIM(x, y) = \frac{(2\mu_x\mu_y + C_1)(2\sigma_{xy} + C_2)}{(\mu_x^2 + \mu_y^2 + C_1)(\sigma_x^2 + \sigma_y^2 + C_2)}$$)]]
[[html($$\Delta E = \sqrt{(\Delta L^*)^2 + (\Delta a^*)^2 + (\Delta b^*)^2}$$)]]
----
CategoryNonClassified